Skip to content

Commit

Permalink
Release 0.0.860
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 25, 2024
1 parent 0c4dac5 commit 6dc093a
Show file tree
Hide file tree
Showing 51 changed files with 221 additions and 88 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.853",
"version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"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.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
"x-revert-t-id": xRevertTId,
Expand Down
20 changes: 14 additions & 6 deletions src/api/resources/crm/resources/company/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -153,7 +153,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -244,7 +244,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -338,7 +338,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -419,12 +419,20 @@ export class Company {
request: Revert.crm.SearchCompaniesRequest,
requestOptions?: Company.RequestOptions
): Promise<Revert.crm.SearchCompaniesResponse> {
const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request;
const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request;
const _queryParams: Record<string, string | string[]> = {};
if (fields != null) {
_queryParams["fields"] = fields;
}

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

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

const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production,
Expand All @@ -434,7 +442,7 @@ export class Company {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"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,8 @@

export interface SearchCompaniesRequest {
fields?: string;
pageSize?: string;
cursor?: string;
/**
* Your official API key for accessing revert apis.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ import * as Revert from "../../../../..";

export interface SearchCompaniesResponse {
status: Revert.common.ResponseStatus;
next?: string;
previous?: string;
results: Revert.common.Company[];
}
20 changes: 14 additions & 6 deletions src/api/resources/crm/resources/contact/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -153,7 +153,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -245,7 +245,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -349,7 +349,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -441,12 +441,20 @@ export class Contact {
request: Revert.crm.SearchContactsRequest,
requestOptions?: Contact.RequestOptions
): Promise<Revert.crm.SearchContactsResponse> {
const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request;
const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request;
const _queryParams: Record<string, string | string[]> = {};
if (fields != null) {
_queryParams["fields"] = fields;
}

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

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

const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production,
Expand All @@ -456,7 +464,7 @@ export class Contact {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"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,8 @@

export interface SearchContactsRequest {
fields?: string;
pageSize?: string;
cursor?: string;
/**
* Your official API key for accessing revert apis.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ import * as Revert from "../../../../..";

export interface SearchContactsResponse {
status: Revert.common.ResponseStatus;
next?: string;
previous?: string;
results: Revert.common.Contact[];
}
20 changes: 14 additions & 6 deletions src/api/resources/crm/resources/deal/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -153,7 +153,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -244,7 +244,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -338,7 +338,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"x-revert-api-token": xRevertApiToken,
"x-revert-t-id": xRevertTId,
"x-api-version": xApiVersion != null ? xApiVersion : undefined,
Expand Down Expand Up @@ -421,12 +421,20 @@ export class Deal {
request: Revert.crm.SearchDealsRequest,
requestOptions?: Deal.RequestOptions
): Promise<Revert.crm.SearchDealsResponse> {
const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request;
const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request;
const _queryParams: Record<string, string | string[]> = {};
if (fields != null) {
_queryParams["fields"] = fields;
}

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

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

const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production,
Expand All @@ -436,7 +444,7 @@ export class Deal {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@revertdotdev/node",
"X-Fern-SDK-Version": "0.0.853",
"X-Fern-SDK-Version": "0.0.860",
"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,8 @@

export interface SearchDealsRequest {
fields?: string;
pageSize?: string;
cursor?: string;
/**
* Your official API key for accessing revert apis.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ import * as Revert from "../../../../..";

export interface SearchDealsResponse {
status: Revert.common.ResponseStatus;
next?: string;
previous?: string;
results: Revert.common.Deal[];
}
Loading

0 comments on commit 6dc093a

Please sign in to comment.