diff --git a/package.json b/package.json index a512539..8c97237 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/api/resources/chat/resources/channels/client/Client.ts b/src/api/resources/chat/resources/channels/client/Client.ts index ee339f6..3823ea3 100644 --- a/src/api/resources/chat/resources/channels/client/Client.ts +++ b/src/api/resources/chat/resources/channels/client/Client.ts @@ -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, diff --git a/src/api/resources/chat/resources/messages/client/Client.ts b/src/api/resources/chat/resources/messages/client/Client.ts index 26ef25e..aac9c71 100644 --- a/src/api/resources/chat/resources/messages/client/Client.ts +++ b/src/api/resources/chat/resources/messages/client/Client.ts @@ -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, diff --git a/src/api/resources/chat/resources/users/client/Client.ts b/src/api/resources/chat/resources/users/client/Client.ts index 167ab1a..dc2af34 100644 --- a/src/api/resources/chat/resources/users/client/Client.ts +++ b/src/api/resources/chat/resources/users/client/Client.ts @@ -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, diff --git a/src/api/resources/connection/client/Client.ts b/src/api/resources/connection/client/Client.ts index b9787a6..f889841 100644 --- a/src/api/resources/connection/client/Client.ts +++ b/src/api/resources/connection/client/Client.ts @@ -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, @@ -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, @@ -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, }, @@ -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, @@ -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, @@ -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, @@ -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, }, @@ -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, diff --git a/src/api/resources/crm/resources/company/client/Client.ts b/src/api/resources/crm/resources/company/client/Client.ts index 3c9b3c1..cb4e942 100644 --- a/src/api/resources/crm/resources/company/client/Client.ts +++ b/src/api/resources/crm/resources/company/client/Client.ts @@ -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, @@ -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, @@ -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, @@ -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, @@ -419,12 +419,20 @@ export class Company { request: Revert.crm.SearchCompaniesRequest, requestOptions?: Company.RequestOptions ): Promise { - const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; + const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; 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, @@ -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, diff --git a/src/api/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts b/src/api/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts index ac64f51..2ae41a3 100644 --- a/src/api/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts +++ b/src/api/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts @@ -4,6 +4,8 @@ export interface SearchCompaniesRequest { fields?: string; + pageSize?: string; + cursor?: string; /** * Your official API key for accessing revert apis. */ diff --git a/src/api/resources/crm/resources/company/types/SearchCompaniesResponse.ts b/src/api/resources/crm/resources/company/types/SearchCompaniesResponse.ts index 99e32eb..2d8a370 100644 --- a/src/api/resources/crm/resources/company/types/SearchCompaniesResponse.ts +++ b/src/api/resources/crm/resources/company/types/SearchCompaniesResponse.ts @@ -6,5 +6,7 @@ import * as Revert from "../../../../.."; export interface SearchCompaniesResponse { status: Revert.common.ResponseStatus; + next?: string; + previous?: string; results: Revert.common.Company[]; } diff --git a/src/api/resources/crm/resources/contact/client/Client.ts b/src/api/resources/crm/resources/contact/client/Client.ts index 8066aca..4d6fa63 100644 --- a/src/api/resources/crm/resources/contact/client/Client.ts +++ b/src/api/resources/crm/resources/contact/client/Client.ts @@ -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, @@ -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, @@ -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, @@ -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, @@ -441,12 +441,20 @@ export class Contact { request: Revert.crm.SearchContactsRequest, requestOptions?: Contact.RequestOptions ): Promise { - const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; + const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; 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, @@ -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, diff --git a/src/api/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts b/src/api/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts index 370ee15..93a4f58 100644 --- a/src/api/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts +++ b/src/api/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts @@ -4,6 +4,8 @@ export interface SearchContactsRequest { fields?: string; + pageSize?: string; + cursor?: string; /** * Your official API key for accessing revert apis. */ diff --git a/src/api/resources/crm/resources/contact/types/SearchContactsResponse.ts b/src/api/resources/crm/resources/contact/types/SearchContactsResponse.ts index df6ee49..d530e34 100644 --- a/src/api/resources/crm/resources/contact/types/SearchContactsResponse.ts +++ b/src/api/resources/crm/resources/contact/types/SearchContactsResponse.ts @@ -6,5 +6,7 @@ import * as Revert from "../../../../.."; export interface SearchContactsResponse { status: Revert.common.ResponseStatus; + next?: string; + previous?: string; results: Revert.common.Contact[]; } diff --git a/src/api/resources/crm/resources/deal/client/Client.ts b/src/api/resources/crm/resources/deal/client/Client.ts index 19e8eb0..5922ab5 100644 --- a/src/api/resources/crm/resources/deal/client/Client.ts +++ b/src/api/resources/crm/resources/deal/client/Client.ts @@ -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, @@ -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, @@ -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, @@ -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, @@ -421,12 +421,20 @@ export class Deal { request: Revert.crm.SearchDealsRequest, requestOptions?: Deal.RequestOptions ): Promise { - const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; + const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; 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, @@ -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, diff --git a/src/api/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts b/src/api/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts index beca803..5effeea 100644 --- a/src/api/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts +++ b/src/api/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts @@ -4,6 +4,8 @@ export interface SearchDealsRequest { fields?: string; + pageSize?: string; + cursor?: string; /** * Your official API key for accessing revert apis. */ diff --git a/src/api/resources/crm/resources/deal/types/SearchDealsResponse.ts b/src/api/resources/crm/resources/deal/types/SearchDealsResponse.ts index e60f67e..fb4b780 100644 --- a/src/api/resources/crm/resources/deal/types/SearchDealsResponse.ts +++ b/src/api/resources/crm/resources/deal/types/SearchDealsResponse.ts @@ -6,5 +6,7 @@ import * as Revert from "../../../../.."; export interface SearchDealsResponse { status: Revert.common.ResponseStatus; + next?: string; + previous?: string; results: Revert.common.Deal[]; } diff --git a/src/api/resources/crm/resources/event/client/Client.ts b/src/api/resources/crm/resources/event/client/Client.ts index bb95125..facbdf1 100644 --- a/src/api/resources/crm/resources/event/client/Client.ts +++ b/src/api/resources/crm/resources/event/client/Client.ts @@ -49,7 +49,7 @@ export class Event { 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, @@ -153,7 +153,7 @@ export class Event { 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, @@ -244,7 +244,7 @@ export class Event { 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, @@ -338,7 +338,7 @@ export class Event { 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, @@ -421,12 +421,20 @@ export class Event { request: Revert.crm.SearchEventsRequest, requestOptions?: Event.RequestOptions ): Promise { - const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; + const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; 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, @@ -436,7 +444,7 @@ export class Event { 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, @@ -529,7 +537,7 @@ export class Event { 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, diff --git a/src/api/resources/crm/resources/event/client/requests/SearchEventsRequest.ts b/src/api/resources/crm/resources/event/client/requests/SearchEventsRequest.ts index dca7f16..5d0b8f5 100644 --- a/src/api/resources/crm/resources/event/client/requests/SearchEventsRequest.ts +++ b/src/api/resources/crm/resources/event/client/requests/SearchEventsRequest.ts @@ -4,6 +4,8 @@ export interface SearchEventsRequest { fields?: string; + pageSize?: string; + cursor?: string; /** * Your official API key for accessing revert apis. */ diff --git a/src/api/resources/crm/resources/event/types/SearchEventsResponse.ts b/src/api/resources/crm/resources/event/types/SearchEventsResponse.ts index a9368a9..4a51076 100644 --- a/src/api/resources/crm/resources/event/types/SearchEventsResponse.ts +++ b/src/api/resources/crm/resources/event/types/SearchEventsResponse.ts @@ -6,5 +6,7 @@ import * as Revert from "../../../../.."; export interface SearchEventsResponse { status: Revert.common.ResponseStatus; + next?: string; + previous?: string; results: Revert.common.Event[]; } diff --git a/src/api/resources/crm/resources/lead/client/Client.ts b/src/api/resources/crm/resources/lead/client/Client.ts index 32d33e4..4c2ef43 100644 --- a/src/api/resources/crm/resources/lead/client/Client.ts +++ b/src/api/resources/crm/resources/lead/client/Client.ts @@ -49,7 +49,7 @@ export class Lead { 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, @@ -153,7 +153,7 @@ export class Lead { 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, @@ -244,7 +244,7 @@ export class Lead { 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, @@ -338,7 +338,7 @@ export class Lead { 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, @@ -421,12 +421,20 @@ export class Lead { request: Revert.crm.SearchLeadsRequest, requestOptions?: Lead.RequestOptions ): Promise { - const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; + const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; 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, @@ -436,7 +444,7 @@ export class Lead { 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, diff --git a/src/api/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts b/src/api/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts index d092223..288fb9d 100644 --- a/src/api/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts +++ b/src/api/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts @@ -4,6 +4,8 @@ export interface SearchLeadsRequest { fields?: string; + pageSize?: string; + cursor?: string; /** * Your official API key for accessing revert apis. */ diff --git a/src/api/resources/crm/resources/lead/types/SearchLeadsResponse.ts b/src/api/resources/crm/resources/lead/types/SearchLeadsResponse.ts index a1d7e50..51a3839 100644 --- a/src/api/resources/crm/resources/lead/types/SearchLeadsResponse.ts +++ b/src/api/resources/crm/resources/lead/types/SearchLeadsResponse.ts @@ -6,5 +6,7 @@ import * as Revert from "../../../../.."; export interface SearchLeadsResponse { status: Revert.common.ResponseStatus; + next?: string; + previous?: string; results: Revert.common.Lead[]; } diff --git a/src/api/resources/crm/resources/note/client/Client.ts b/src/api/resources/crm/resources/note/client/Client.ts index 283bc2a..804b4d9 100644 --- a/src/api/resources/crm/resources/note/client/Client.ts +++ b/src/api/resources/crm/resources/note/client/Client.ts @@ -49,7 +49,7 @@ export class Note { 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, @@ -153,7 +153,7 @@ export class Note { 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, @@ -244,7 +244,7 @@ export class Note { 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, @@ -338,7 +338,7 @@ export class Note { 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, @@ -421,12 +421,20 @@ export class Note { request: Revert.crm.SearchNotesRequest, requestOptions?: Note.RequestOptions ): Promise { - const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; + const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; 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, @@ -436,7 +444,7 @@ export class Note { 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, diff --git a/src/api/resources/crm/resources/note/client/requests/SearchNotesRequest.ts b/src/api/resources/crm/resources/note/client/requests/SearchNotesRequest.ts index 3d24022..8891830 100644 --- a/src/api/resources/crm/resources/note/client/requests/SearchNotesRequest.ts +++ b/src/api/resources/crm/resources/note/client/requests/SearchNotesRequest.ts @@ -4,6 +4,8 @@ export interface SearchNotesRequest { fields?: string; + pageSize?: string; + cursor?: string; /** * Your official API key for accessing revert apis. */ diff --git a/src/api/resources/crm/resources/note/types/SearchNotesResponse.ts b/src/api/resources/crm/resources/note/types/SearchNotesResponse.ts index 2e73923..4c96096 100644 --- a/src/api/resources/crm/resources/note/types/SearchNotesResponse.ts +++ b/src/api/resources/crm/resources/note/types/SearchNotesResponse.ts @@ -6,5 +6,7 @@ import * as Revert from "../../../../.."; export interface SearchNotesResponse { status: Revert.common.ResponseStatus; + next?: string; + previous?: string; results: Revert.common.Note[]; } diff --git a/src/api/resources/crm/resources/properties/client/Client.ts b/src/api/resources/crm/resources/properties/client/Client.ts index 37a20a0..3ec0a69 100644 --- a/src/api/resources/crm/resources/properties/client/Client.ts +++ b/src/api/resources/crm/resources/properties/client/Client.ts @@ -44,7 +44,7 @@ export class Properties { 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, @@ -135,7 +135,7 @@ export class Properties { 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, diff --git a/src/api/resources/crm/resources/proxy/client/Client.ts b/src/api/resources/crm/resources/proxy/client/Client.ts index 7d52b77..b7d1998 100644 --- a/src/api/resources/crm/resources/proxy/client/Client.ts +++ b/src/api/resources/crm/resources/proxy/client/Client.ts @@ -43,7 +43,7 @@ export class Proxy { 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, diff --git a/src/api/resources/crm/resources/task/client/Client.ts b/src/api/resources/crm/resources/task/client/Client.ts index adc1768..9617860 100644 --- a/src/api/resources/crm/resources/task/client/Client.ts +++ b/src/api/resources/crm/resources/task/client/Client.ts @@ -49,7 +49,7 @@ export class Task { 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, @@ -153,7 +153,7 @@ export class Task { 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, @@ -244,7 +244,7 @@ export class Task { 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, @@ -338,7 +338,7 @@ export class Task { 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, @@ -421,12 +421,20 @@ export class Task { request: Revert.crm.SearchTasksRequest, requestOptions?: Task.RequestOptions ): Promise { - const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; + const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; 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, @@ -436,7 +444,7 @@ export class Task { 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, diff --git a/src/api/resources/crm/resources/task/client/requests/SearchTasksRequest.ts b/src/api/resources/crm/resources/task/client/requests/SearchTasksRequest.ts index e2a081c..addc26a 100644 --- a/src/api/resources/crm/resources/task/client/requests/SearchTasksRequest.ts +++ b/src/api/resources/crm/resources/task/client/requests/SearchTasksRequest.ts @@ -4,6 +4,8 @@ export interface SearchTasksRequest { fields?: string; + pageSize?: string; + cursor?: string; /** * Your official API key for accessing revert apis. */ diff --git a/src/api/resources/crm/resources/task/types/SearchTasksResponse.ts b/src/api/resources/crm/resources/task/types/SearchTasksResponse.ts index 970c7f8..32724d2 100644 --- a/src/api/resources/crm/resources/task/types/SearchTasksResponse.ts +++ b/src/api/resources/crm/resources/task/types/SearchTasksResponse.ts @@ -6,5 +6,7 @@ import * as Revert from "../../../../.."; export interface SearchTasksResponse { status: Revert.common.ResponseStatus; + next?: string; + previous?: string; results: Revert.common.Task[]; } diff --git a/src/api/resources/crm/resources/user/client/Client.ts b/src/api/resources/crm/resources/user/client/Client.ts index ba654f4..0298bf8 100644 --- a/src/api/resources/crm/resources/user/client/Client.ts +++ b/src/api/resources/crm/resources/user/client/Client.ts @@ -49,7 +49,7 @@ export class User { 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, @@ -153,7 +153,7 @@ export class User { 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, @@ -244,7 +244,7 @@ export class User { 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, diff --git a/src/api/resources/fieldMapping/client/Client.ts b/src/api/resources/fieldMapping/client/Client.ts index 64864a3..27cfdd7 100644 --- a/src/api/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/fieldMapping/client/Client.ts @@ -42,7 +42,7 @@ export class FieldMapping { 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-public-token": xRevertPublicToken, "x-revert-t-id": xRevertTId, "x-revert-t-token": xRevertTToken, @@ -123,7 +123,7 @@ export class FieldMapping { 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, }, @@ -212,7 +212,7 @@ export class FieldMapping { 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-public-token": xRevertPublicToken, "x-revert-t-id": xRevertTId, "x-revert-t-token": xRevertTToken, @@ -305,7 +305,7 @@ export class FieldMapping { 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, }, @@ -394,7 +394,7 @@ export class FieldMapping { 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, }, contentType: "application/json", @@ -485,7 +485,7 @@ export class FieldMapping { 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, }, contentType: "application/json", diff --git a/src/api/resources/metadata/client/Client.ts b/src/api/resources/metadata/client/Client.ts index 67e9ff0..376a6d9 100644 --- a/src/api/resources/metadata/client/Client.ts +++ b/src/api/resources/metadata/client/Client.ts @@ -42,7 +42,7 @@ export class Metadata { 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-public-token": xRevertPublicToken, }, contentType: "application/json", diff --git a/src/api/resources/sync/client/Client.ts b/src/api/resources/sync/client/Client.ts index 46096e3..fce3369 100644 --- a/src/api/resources/sync/client/Client.ts +++ b/src/api/resources/sync/client/Client.ts @@ -44,7 +44,7 @@ export class Sync { 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-connection-api-key": xConnectionApiKey != null ? xConnectionApiKey : undefined, diff --git a/src/api/resources/ticket/resources/collection/client/Client.ts b/src/api/resources/ticket/resources/collection/client/Client.ts index 5035d1e..9cd5e9a 100644 --- a/src/api/resources/ticket/resources/collection/client/Client.ts +++ b/src/api/resources/ticket/resources/collection/client/Client.ts @@ -56,7 +56,7 @@ export class Collection { 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, diff --git a/src/api/resources/ticket/resources/comment/client/Client.ts b/src/api/resources/ticket/resources/comment/client/Client.ts index bdf094b..80f54a3 100644 --- a/src/api/resources/ticket/resources/comment/client/Client.ts +++ b/src/api/resources/ticket/resources/comment/client/Client.ts @@ -49,7 +49,7 @@ export class Comment { 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, @@ -153,7 +153,7 @@ export class Comment { 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, @@ -249,7 +249,7 @@ export class Comment { 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, @@ -349,7 +349,7 @@ export class Comment { 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, diff --git a/src/api/resources/ticket/resources/proxy/client/Client.ts b/src/api/resources/ticket/resources/proxy/client/Client.ts index a259764..133641a 100644 --- a/src/api/resources/ticket/resources/proxy/client/Client.ts +++ b/src/api/resources/ticket/resources/proxy/client/Client.ts @@ -43,7 +43,7 @@ export class Proxy { 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, diff --git a/src/api/resources/ticket/resources/task/client/Client.ts b/src/api/resources/ticket/resources/task/client/Client.ts index 9ce0861..2a94fb8 100644 --- a/src/api/resources/ticket/resources/task/client/Client.ts +++ b/src/api/resources/ticket/resources/task/client/Client.ts @@ -49,7 +49,7 @@ export class Task { 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, @@ -153,7 +153,7 @@ export class Task { 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, @@ -248,7 +248,7 @@ export class Task { 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, @@ -349,7 +349,7 @@ export class Task { 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, diff --git a/src/api/resources/ticket/resources/user/client/Client.ts b/src/api/resources/ticket/resources/user/client/Client.ts index 70852a7..ebd47aa 100644 --- a/src/api/resources/ticket/resources/user/client/Client.ts +++ b/src/api/resources/ticket/resources/user/client/Client.ts @@ -49,7 +49,7 @@ export class User { 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, @@ -153,7 +153,7 @@ export class User { 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, diff --git a/src/serialization/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts b/src/serialization/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts index 4db78d3..ffea37e 100644 --- a/src/serialization/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts +++ b/src/serialization/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts @@ -8,7 +8,10 @@ import * as core from "../../../../../../../core"; export const SearchCompaniesRequest: core.serialization.Schema< serializers.crm.SearchCompaniesRequest.Raw, - Omit + Omit< + Revert.crm.SearchCompaniesRequest, + "fields" | "pageSize" | "cursor" | "xRevertApiToken" | "xRevertTId" | "xApiVersion" + > > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/company/types/SearchCompaniesResponse.ts b/src/serialization/resources/crm/resources/company/types/SearchCompaniesResponse.ts index 66719ed..fe2670d 100644 --- a/src/serialization/resources/crm/resources/company/types/SearchCompaniesResponse.ts +++ b/src/serialization/resources/crm/resources/company/types/SearchCompaniesResponse.ts @@ -11,6 +11,8 @@ export const SearchCompaniesResponse: core.serialization.ObjectSchema< Revert.crm.SearchCompaniesResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + next: core.serialization.string().optional(), + previous: core.serialization.string().optional(), results: core.serialization.list( core.serialization.lazyObject(async () => (await import("../../../../..")).common.Company) ), @@ -19,6 +21,8 @@ export const SearchCompaniesResponse: core.serialization.ObjectSchema< export declare namespace SearchCompaniesResponse { interface Raw { status: serializers.common.ResponseStatus.Raw; + next?: string | null; + previous?: string | null; results: serializers.common.Company.Raw[]; } } diff --git a/src/serialization/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts b/src/serialization/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts index 1f8beae..edb0c5c 100644 --- a/src/serialization/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts +++ b/src/serialization/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts @@ -8,7 +8,10 @@ import * as core from "../../../../../../../core"; export const SearchContactsRequest: core.serialization.Schema< serializers.crm.SearchContactsRequest.Raw, - Omit + Omit< + Revert.crm.SearchContactsRequest, + "fields" | "pageSize" | "cursor" | "xRevertApiToken" | "xRevertTId" | "xApiVersion" + > > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/contact/types/SearchContactsResponse.ts b/src/serialization/resources/crm/resources/contact/types/SearchContactsResponse.ts index d162e55..f8f0069 100644 --- a/src/serialization/resources/crm/resources/contact/types/SearchContactsResponse.ts +++ b/src/serialization/resources/crm/resources/contact/types/SearchContactsResponse.ts @@ -11,6 +11,8 @@ export const SearchContactsResponse: core.serialization.ObjectSchema< Revert.crm.SearchContactsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + next: core.serialization.string().optional(), + previous: core.serialization.string().optional(), results: core.serialization.list( core.serialization.lazyObject(async () => (await import("../../../../..")).common.Contact) ), @@ -19,6 +21,8 @@ export const SearchContactsResponse: core.serialization.ObjectSchema< export declare namespace SearchContactsResponse { interface Raw { status: serializers.common.ResponseStatus.Raw; + next?: string | null; + previous?: string | null; results: serializers.common.Contact.Raw[]; } } diff --git a/src/serialization/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts b/src/serialization/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts index fd758d0..fbdba9e 100644 --- a/src/serialization/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts +++ b/src/serialization/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts @@ -8,7 +8,10 @@ import * as core from "../../../../../../../core"; export const SearchDealsRequest: core.serialization.Schema< serializers.crm.SearchDealsRequest.Raw, - Omit + Omit< + Revert.crm.SearchDealsRequest, + "fields" | "pageSize" | "cursor" | "xRevertApiToken" | "xRevertTId" | "xApiVersion" + > > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/deal/types/SearchDealsResponse.ts b/src/serialization/resources/crm/resources/deal/types/SearchDealsResponse.ts index 7e57aeb..d8325c9 100644 --- a/src/serialization/resources/crm/resources/deal/types/SearchDealsResponse.ts +++ b/src/serialization/resources/crm/resources/deal/types/SearchDealsResponse.ts @@ -11,6 +11,8 @@ export const SearchDealsResponse: core.serialization.ObjectSchema< Revert.crm.SearchDealsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + next: core.serialization.string().optional(), + previous: core.serialization.string().optional(), results: core.serialization.list( core.serialization.lazyObject(async () => (await import("../../../../..")).common.Deal) ), @@ -19,6 +21,8 @@ export const SearchDealsResponse: core.serialization.ObjectSchema< export declare namespace SearchDealsResponse { interface Raw { status: serializers.common.ResponseStatus.Raw; + next?: string | null; + previous?: string | null; results: serializers.common.Deal.Raw[]; } } diff --git a/src/serialization/resources/crm/resources/event/client/requests/SearchEventsRequest.ts b/src/serialization/resources/crm/resources/event/client/requests/SearchEventsRequest.ts index 4f5531f..b935cf8 100644 --- a/src/serialization/resources/crm/resources/event/client/requests/SearchEventsRequest.ts +++ b/src/serialization/resources/crm/resources/event/client/requests/SearchEventsRequest.ts @@ -8,7 +8,10 @@ import * as core from "../../../../../../../core"; export const SearchEventsRequest: core.serialization.Schema< serializers.crm.SearchEventsRequest.Raw, - Omit + Omit< + Revert.crm.SearchEventsRequest, + "fields" | "pageSize" | "cursor" | "xRevertApiToken" | "xRevertTId" | "xApiVersion" + > > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/event/types/SearchEventsResponse.ts b/src/serialization/resources/crm/resources/event/types/SearchEventsResponse.ts index e014bb0..aca7e27 100644 --- a/src/serialization/resources/crm/resources/event/types/SearchEventsResponse.ts +++ b/src/serialization/resources/crm/resources/event/types/SearchEventsResponse.ts @@ -11,6 +11,8 @@ export const SearchEventsResponse: core.serialization.ObjectSchema< Revert.crm.SearchEventsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + next: core.serialization.string().optional(), + previous: core.serialization.string().optional(), results: core.serialization.list( core.serialization.lazyObject(async () => (await import("../../../../..")).common.Event) ), @@ -19,6 +21,8 @@ export const SearchEventsResponse: core.serialization.ObjectSchema< export declare namespace SearchEventsResponse { interface Raw { status: serializers.common.ResponseStatus.Raw; + next?: string | null; + previous?: string | null; results: serializers.common.Event.Raw[]; } } diff --git a/src/serialization/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts b/src/serialization/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts index 075b7f4..fa50b56 100644 --- a/src/serialization/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts +++ b/src/serialization/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts @@ -8,7 +8,10 @@ import * as core from "../../../../../../../core"; export const SearchLeadsRequest: core.serialization.Schema< serializers.crm.SearchLeadsRequest.Raw, - Omit + Omit< + Revert.crm.SearchLeadsRequest, + "fields" | "pageSize" | "cursor" | "xRevertApiToken" | "xRevertTId" | "xApiVersion" + > > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/lead/types/SearchLeadsResponse.ts b/src/serialization/resources/crm/resources/lead/types/SearchLeadsResponse.ts index 91e38e7..4ff3824 100644 --- a/src/serialization/resources/crm/resources/lead/types/SearchLeadsResponse.ts +++ b/src/serialization/resources/crm/resources/lead/types/SearchLeadsResponse.ts @@ -11,6 +11,8 @@ export const SearchLeadsResponse: core.serialization.ObjectSchema< Revert.crm.SearchLeadsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + next: core.serialization.string().optional(), + previous: core.serialization.string().optional(), results: core.serialization.list( core.serialization.lazyObject(async () => (await import("../../../../..")).common.Lead) ), @@ -19,6 +21,8 @@ export const SearchLeadsResponse: core.serialization.ObjectSchema< export declare namespace SearchLeadsResponse { interface Raw { status: serializers.common.ResponseStatus.Raw; + next?: string | null; + previous?: string | null; results: serializers.common.Lead.Raw[]; } } diff --git a/src/serialization/resources/crm/resources/note/client/requests/SearchNotesRequest.ts b/src/serialization/resources/crm/resources/note/client/requests/SearchNotesRequest.ts index 9bb8885..e3280a1 100644 --- a/src/serialization/resources/crm/resources/note/client/requests/SearchNotesRequest.ts +++ b/src/serialization/resources/crm/resources/note/client/requests/SearchNotesRequest.ts @@ -8,7 +8,10 @@ import * as core from "../../../../../../../core"; export const SearchNotesRequest: core.serialization.Schema< serializers.crm.SearchNotesRequest.Raw, - Omit + Omit< + Revert.crm.SearchNotesRequest, + "fields" | "pageSize" | "cursor" | "xRevertApiToken" | "xRevertTId" | "xApiVersion" + > > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/note/types/SearchNotesResponse.ts b/src/serialization/resources/crm/resources/note/types/SearchNotesResponse.ts index 4b90c43..95e76f4 100644 --- a/src/serialization/resources/crm/resources/note/types/SearchNotesResponse.ts +++ b/src/serialization/resources/crm/resources/note/types/SearchNotesResponse.ts @@ -11,6 +11,8 @@ export const SearchNotesResponse: core.serialization.ObjectSchema< Revert.crm.SearchNotesResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + next: core.serialization.string().optional(), + previous: core.serialization.string().optional(), results: core.serialization.list( core.serialization.lazyObject(async () => (await import("../../../../..")).common.Note) ), @@ -19,6 +21,8 @@ export const SearchNotesResponse: core.serialization.ObjectSchema< export declare namespace SearchNotesResponse { interface Raw { status: serializers.common.ResponseStatus.Raw; + next?: string | null; + previous?: string | null; results: serializers.common.Note.Raw[]; } } diff --git a/src/serialization/resources/crm/resources/task/client/requests/SearchTasksRequest.ts b/src/serialization/resources/crm/resources/task/client/requests/SearchTasksRequest.ts index 7bfee6f..b0d2d0b 100644 --- a/src/serialization/resources/crm/resources/task/client/requests/SearchTasksRequest.ts +++ b/src/serialization/resources/crm/resources/task/client/requests/SearchTasksRequest.ts @@ -8,7 +8,10 @@ import * as core from "../../../../../../../core"; export const SearchTasksRequest: core.serialization.Schema< serializers.crm.SearchTasksRequest.Raw, - Omit + Omit< + Revert.crm.SearchTasksRequest, + "fields" | "pageSize" | "cursor" | "xRevertApiToken" | "xRevertTId" | "xApiVersion" + > > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/task/types/SearchTasksResponse.ts b/src/serialization/resources/crm/resources/task/types/SearchTasksResponse.ts index 256c448..0eda4be 100644 --- a/src/serialization/resources/crm/resources/task/types/SearchTasksResponse.ts +++ b/src/serialization/resources/crm/resources/task/types/SearchTasksResponse.ts @@ -11,6 +11,8 @@ export const SearchTasksResponse: core.serialization.ObjectSchema< Revert.crm.SearchTasksResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + next: core.serialization.string().optional(), + previous: core.serialization.string().optional(), results: core.serialization.list( core.serialization.lazyObject(async () => (await import("../../../../..")).common.Task) ), @@ -19,6 +21,8 @@ export const SearchTasksResponse: core.serialization.ObjectSchema< export declare namespace SearchTasksResponse { interface Raw { status: serializers.common.ResponseStatus.Raw; + next?: string | null; + previous?: string | null; results: serializers.common.Task.Raw[]; } }