Skip to content

Commit

Permalink
Release 0.0.1067
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 30, 2024
1 parent d32875b commit 965808a
Show file tree
Hide file tree
Showing 40 changed files with 173 additions and 93 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@revertdotdev/node",
"version": "0.0.1066",
"version": "0.0.1067",
"private": false,
"repository": "https://github.com/revertinc/revert-node-ts",
"main": "./index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/chat/resources/channels/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Channels {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/chat/resources/messages/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Messages {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/chat/resources/users/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Users {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down
16 changes: 8 additions & 8 deletions src/api/resources/connection/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class Connection {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
"x-revert-t-id": xRevertTId,
Expand Down Expand Up @@ -133,7 +133,7 @@ export class Connection {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
"x-revert-t-id": xRevertTId,
Expand Down Expand Up @@ -223,7 +223,7 @@ export class Connection {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
},
Expand Down Expand Up @@ -312,7 +312,7 @@ export class Connection {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
"x-revert-t-id": xRevertTId,
Expand Down Expand Up @@ -405,7 +405,7 @@ export class Connection {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
"x-revert-t-id": xRevertTId,
Expand Down Expand Up @@ -495,7 +495,7 @@ export class Connection {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
"x-revert-t-id": xRevertTId,
Expand Down Expand Up @@ -587,7 +587,7 @@ export class Connection {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
},
Expand Down Expand Up @@ -668,7 +668,7 @@ export class Connection {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
"x-revert-t-id": xRevertTId,
Expand Down
22 changes: 15 additions & 7 deletions src/api/resources/crm/resources/company/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ export class Company {
request: Revert.crm.GetCompanyRequest,
requestOptions?: Company.RequestOptions
): Promise<Revert.crm.GetCompanyResponse> {
const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request;
const { fields, associations, xRevertApiToken, xRevertTId, xApiVersion } = request;
const _queryParams: Record<string, string | string[]> = {};
if (fields != null) {
_queryParams["fields"] = fields;
}

if (associations != null) {
_queryParams["associations"] = associations;
}

const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production,
Expand All @@ -49,7 +53,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -130,12 +134,16 @@ export class Company {
request: Revert.crm.GetCompaniesRequest,
requestOptions?: Company.RequestOptions
): Promise<Revert.crm.GetCompaniesResponse> {
const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request;
const { fields, associations, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request;
const _queryParams: Record<string, string | string[]> = {};
if (fields != null) {
_queryParams["fields"] = fields;
}

if (associations != null) {
_queryParams["associations"] = associations;
}

if (pageSize != null) {
_queryParams["pageSize"] = pageSize;
}
Expand All @@ -153,7 +161,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -244,7 +252,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -338,7 +346,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -442,7 +450,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

export interface GetCompaniesRequest {
fields?: string;
associations?: string;
pageSize?: string;
cursor?: string;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

export interface GetCompanyRequest {
fields?: string;
associations?: string;
/**
* Your official API key for accessing revert apis.
*/
Expand Down
22 changes: 15 additions & 7 deletions src/api/resources/crm/resources/contact/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ export class Contact {
request: Revert.crm.GetContactRequest,
requestOptions?: Contact.RequestOptions
): Promise<Revert.crm.GetContactResponse> {
const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request;
const { fields, associations, xRevertApiToken, xRevertTId, xApiVersion } = request;
const _queryParams: Record<string, string | string[]> = {};
if (fields != null) {
_queryParams["fields"] = fields;
}

if (associations != null) {
_queryParams["associations"] = associations;
}

const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production,
Expand All @@ -49,7 +53,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -130,7 +134,7 @@ export class Contact {
request: Revert.crm.GetContactsRequest,
requestOptions?: Contact.RequestOptions
): Promise<Revert.crm.GetContactsResponse> {
const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request;
const { fields, pageSize, cursor, associations, xRevertApiToken, xRevertTId, xApiVersion } = request;
const _queryParams: Record<string, string | string[]> = {};
if (fields != null) {
_queryParams["fields"] = fields;
Expand All @@ -144,6 +148,10 @@ export class Contact {
_queryParams["cursor"] = cursor;
}

if (associations != null) {
_queryParams["associations"] = associations;
}

const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production,
Expand All @@ -153,7 +161,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -245,7 +253,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -349,7 +357,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -464,7 +472,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

export interface GetContactRequest {
fields?: string;
associations?: string;
/**
* Your official API key for accessing revert apis.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface GetContactsRequest {
fields?: string;
pageSize?: string;
cursor?: string;
associations?: string;
/**
* Your official API key for accessing revert apis.
*/
Expand Down
22 changes: 15 additions & 7 deletions src/api/resources/crm/resources/deal/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ export class Deal {
request: Revert.crm.GetDealRequest,
requestOptions?: Deal.RequestOptions
): Promise<Revert.crm.GetDealResponse> {
const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request;
const { fields, associations, xRevertApiToken, xRevertTId, xApiVersion } = request;
const _queryParams: Record<string, string | string[]> = {};
if (fields != null) {
_queryParams["fields"] = fields;
}

if (associations != null) {
_queryParams["associations"] = associations;
}

const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production,
Expand All @@ -49,7 +53,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -130,7 +134,7 @@ export class Deal {
request: Revert.crm.GetDealsRequest,
requestOptions?: Deal.RequestOptions
): Promise<Revert.crm.GetDealsResponse> {
const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request;
const { fields, pageSize, cursor, associations, xRevertApiToken, xRevertTId, xApiVersion } = request;
const _queryParams: Record<string, string | string[]> = {};
if (fields != null) {
_queryParams["fields"] = fields;
Expand All @@ -144,6 +148,10 @@ export class Deal {
_queryParams["cursor"] = cursor;
}

if (associations != null) {
_queryParams["associations"] = associations;
}

const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production,
Expand All @@ -153,7 +161,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -244,7 +252,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -338,7 +346,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -444,7 +452,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.1066",
"X-Fern-SDK-Version": "0.0.1067",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

export interface GetDealRequest {
fields?: string;
associations?: string;
/**
* Your official API key for accessing revert apis.
*/
Expand Down
Loading

0 comments on commit 965808a

Please sign in to comment.