diff --git a/package.json b/package.json index 95bf374..f6bc5c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@revertdotdev/node", - "version": "0.0.744", + "version": "0.0.774", "private": false, "repository": "https://github.com/revertinc/revert-node-ts", "main": "./index.js", diff --git a/src/Client.ts b/src/Client.ts index bcdc0e0..0e1d096 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -7,6 +7,7 @@ import * as core from "./core"; import { Chat } from "./api/resources/chat/client/Client"; import { Connection } from "./api/resources/connection/client/Client"; import { Crm } from "./api/resources/crm/client/Client"; +import { FieldMapping } from "./api/resources/fieldMapping/client/Client"; import { Metadata } from "./api/resources/metadata/client/Client"; import { Ticket } from "./api/resources/ticket/client/Client"; @@ -42,6 +43,12 @@ export class RevertClient { return (this._crm ??= new Crm(this._options)); } + protected _fieldMapping: FieldMapping | undefined; + + public get fieldMapping(): FieldMapping { + return (this._fieldMapping ??= new FieldMapping(this._options)); + } + protected _metadata: Metadata | undefined; public get metadata(): Metadata { diff --git a/src/api/resources/chat/resources/channels/client/Client.ts b/src/api/resources/chat/resources/channels/client/Client.ts index 0020332..1ed0ced 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.744", + "X-Fern-SDK-Version": "0.0.774", "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 a0c1a36..5558d9a 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.744", + "X-Fern-SDK-Version": "0.0.774", "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 644541b..3837068 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.744", + "X-Fern-SDK-Version": "0.0.774", "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 090a2c0..9c9811a 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-api-version": xApiVersion != null ? xApiVersion : undefined, "x-revert-t-id": xRevertTId, @@ -564,4 +564,87 @@ export class Connection { }); } } + + /** + * Get the OAuth connection event status. This endpoint responds with a `http.ServerResponse` instead of `json`. + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + */ + public async getIntegrationStatus( + revertPublicToken: string, + request: Revert.GetConnectStatusRequest, + requestOptions?: Connection.RequestOptions + ): Promise { + const { tenantId, xRevertApiToken, xApiVersion } = request; + const _queryParams: Record = {}; + _queryParams["tenantId"] = tenantId; + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, + `connection/integration-status/${revertPublicToken}` + ), + method: "GET", + headers: { + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@revertdotdev/node", + "X-Fern-SDK-Version": "0.0.774", + "x-revert-api-token": xRevertApiToken, + "x-api-version": xApiVersion != null ? xApiVersion : undefined, + }, + contentType: "application/json", + queryParameters: _queryParams, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : undefined, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.GetConnectStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 401: + throw new Revert.common.UnAuthorizedError( + await serializers.common.BaseError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new Revert.common.InternalServerError( + await serializers.common.BaseError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.RevertError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.RevertError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.RevertTimeoutError(); + case "unknown": + throw new errors.RevertError({ + message: _response.error.errorMessage, + }); + } + } } diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/DeleteAccountFieldMappingConfigRequest.ts b/src/api/resources/connection/client/requests/GetConnectStatusRequest.ts similarity index 50% rename from src/api/resources/crm/resources/fieldMapping/client/requests/DeleteAccountFieldMappingConfigRequest.ts rename to src/api/resources/connection/client/requests/GetConnectStatusRequest.ts index e91ff1b..e9fe92d 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/DeleteAccountFieldMappingConfigRequest.ts +++ b/src/api/resources/connection/client/requests/GetConnectStatusRequest.ts @@ -2,19 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface DeleteAccountFieldMappingConfigRequest { +export interface GetConnectStatusRequest { + tenantId: string; /** * Your official API key for accessing revert apis. */ - xRevertApiToken?: string; - /** - * The unique customer id used when the customer linked their account. - */ - xRevertTId: string; - /** - * The temp used to identify tenant. - */ - xRevertTToken?: string; + xRevertApiToken: string; /** * Optional Revert API version you're using. If missing we default to the latest version of the API. */ diff --git a/src/api/resources/connection/client/requests/index.ts b/src/api/resources/connection/client/requests/index.ts index 7b86fae..7ae07c7 100644 --- a/src/api/resources/connection/client/requests/index.ts +++ b/src/api/resources/connection/client/requests/index.ts @@ -4,3 +4,4 @@ export { GetAllConnectionRequest } from "./GetAllConnectionRequest"; export { CreateWebhookRequest } from "./CreateWebhookRequest"; export { GetConnectionWebhookRequest } from "./GetConnectionWebhookRequest"; export { DeleteConnectionWebhookRequest } from "./DeleteConnectionWebhookRequest"; +export { GetConnectStatusRequest } from "./GetConnectStatusRequest"; diff --git a/src/api/resources/connection/types/ConnectionStatus.ts b/src/api/resources/connection/types/ConnectionStatus.ts new file mode 100644 index 0000000..7e7fd97 --- /dev/null +++ b/src/api/resources/connection/types/ConnectionStatus.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type ConnectionStatus = "SUCCESS" | "FAILED"; + +export const ConnectionStatus = { + Success: "SUCCESS", + Failed: "FAILED", +} as const; diff --git a/src/api/resources/connection/types/GetConnectStatusResponse.ts b/src/api/resources/connection/types/GetConnectStatusResponse.ts new file mode 100644 index 0000000..12a80d7 --- /dev/null +++ b/src/api/resources/connection/types/GetConnectStatusResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Revert from "../../.."; + +export interface GetConnectStatusResponse { + publicToken: string; + status: Revert.ConnectionStatus; + integrationName: string; + tenantId: string; + tenantSecretToken?: string; +} diff --git a/src/api/resources/connection/types/index.ts b/src/api/resources/connection/types/index.ts index 214b3fb..0eab250 100644 --- a/src/api/resources/connection/types/index.ts +++ b/src/api/resources/connection/types/index.ts @@ -5,3 +5,5 @@ export * from "./CreateConnectionWebhookResponse"; export * from "./GetConnectionWebhookResponse"; export * from "./CreateConnectionWebhookRequest"; export * from "./DeleteConnectionWebhookResponse"; +export * from "./GetConnectStatusResponse"; +export * from "./ConnectionStatus"; diff --git a/src/api/resources/crm/client/Client.ts b/src/api/resources/crm/client/Client.ts index 5db9491..2b950a3 100644 --- a/src/api/resources/crm/client/Client.ts +++ b/src/api/resources/crm/client/Client.ts @@ -8,7 +8,6 @@ import { Company } from "../resources/company/client/Client"; import { Contact } from "../resources/contact/client/Client"; import { Deal } from "../resources/deal/client/Client"; import { Event } from "../resources/event/client/Client"; -import { FieldMapping } from "../resources/fieldMapping/client/Client"; import { Lead } from "../resources/lead/client/Client"; import { Note } from "../resources/note/client/Client"; import { Properties } from "../resources/properties/client/Client"; @@ -54,12 +53,6 @@ export class Crm { return (this._event ??= new Event(this._options)); } - protected _fieldMapping: FieldMapping | undefined; - - public get fieldMapping(): FieldMapping { - return (this._fieldMapping ??= new FieldMapping(this._options)); - } - protected _lead: Lead | undefined; public get lead(): Lead { diff --git a/src/api/resources/crm/resources/company/client/Client.ts b/src/api/resources/crm/resources/company/client/Client.ts index 29d0f67..e0dc27d 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -434,7 +434,7 @@ export class Company { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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/Client.ts b/src/api/resources/crm/resources/contact/client/Client.ts index 6c3dde7..477a286 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -456,7 +456,7 @@ export class Contact { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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/Client.ts b/src/api/resources/crm/resources/deal/client/Client.ts index 04ca302..ae3ca5c 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -436,7 +436,7 @@ export class Deal { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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/Client.ts b/src/api/resources/crm/resources/event/client/Client.ts index f939baa..cbf63bf 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -436,7 +436,7 @@ export class Event { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -529,7 +529,7 @@ export class Event { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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/fieldMapping/client/requests/CreateAccountFieldMappingRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/CreateAccountFieldMappingRequest.ts deleted file mode 100644 index 6b3cc6c..0000000 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/CreateAccountFieldMappingRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Revert from "../../../../../.."; - -export interface CreateAccountFieldMappingRequest { - /** - * Your official API key for accessing revert apis. - */ - xRevertApiToken?: string; - /** - * The unique customer id used when the customer linked their account. - */ - xRevertTId: string; - /** - * The temp used to identify tenant. - */ - xRevertTToken?: string; - /** - * Optional Revert API version you're using. If missing we default to the latest version of the API. - */ - xApiVersion?: string; - body: Revert.crm.CreateAccountFieldMappingRequestBody; -} diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index 13ead9e..0000000 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Revert from "../../../../../.."; - -export interface CreateFieldMappingRequest { - /** - * Your official API key for accessing revert apis. - */ - xRevertApiToken?: string; - /** - * The unique customer id used when the customer linked their account. - */ - xRevertTId: string; - /** - * The temp used to identify tenant. - */ - xRevertTToken?: string; - /** - * Optional Revert API version you're using. If missing we default to the latest version of the API. - */ - xApiVersion?: string; - body: Revert.crm.CreateFieldMappingRequestBody; -} diff --git a/src/api/resources/crm/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts b/src/api/resources/crm/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts deleted file mode 100644 index 8a19274..0000000 --- a/src/api/resources/crm/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Revert from "../../../../.."; - -export interface CreateFieldMappingRequestBody { - standardMappings: Revert.crm.FieldMappingType[]; - customMappings: Revert.crm.FieldMappingType[]; -} diff --git a/src/api/resources/crm/resources/index.ts b/src/api/resources/crm/resources/index.ts index bbc57ee..0c554d5 100644 --- a/src/api/resources/crm/resources/index.ts +++ b/src/api/resources/crm/resources/index.ts @@ -6,8 +6,6 @@ export * as deal from "./deal"; export * from "./deal/types"; export * as event from "./event"; export * from "./event/types"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/types"; export * as lead from "./lead"; export * from "./lead/types"; export * as note from "./note"; @@ -24,7 +22,6 @@ export * from "./company/client/requests"; export * from "./contact/client/requests"; export * from "./deal/client/requests"; export * from "./event/client/requests"; -export * from "./fieldMapping/client/requests"; export * from "./lead/client/requests"; export * from "./note/client/requests"; export * from "./properties/client/requests"; diff --git a/src/api/resources/crm/resources/lead/client/Client.ts b/src/api/resources/crm/resources/lead/client/Client.ts index 45ac17f..55ffd67 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -436,7 +436,7 @@ export class Lead { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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/Client.ts b/src/api/resources/crm/resources/note/client/Client.ts index 427ea87..12553f2 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -436,7 +436,7 @@ export class Note { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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/properties/client/Client.ts b/src/api/resources/crm/resources/properties/client/Client.ts index d337c00..0395a68 100644 --- a/src/api/resources/crm/resources/properties/client/Client.ts +++ b/src/api/resources/crm/resources/properties/client/Client.ts @@ -33,7 +33,7 @@ export class Properties { objectName: Revert.common.StandardObject, request: Revert.crm.GetObjectPropertiesRequest, requestOptions?: Properties.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion } = request; const _response = await core.fetcher({ url: urlJoin( @@ -44,7 +44,7 @@ export class Properties { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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/properties/types/FieldDetailsTypeRead.ts b/src/api/resources/crm/resources/properties/types/FieldDetailsTypeRead.ts new file mode 100644 index 0000000..2328f0c --- /dev/null +++ b/src/api/resources/crm/resources/properties/types/FieldDetailsTypeRead.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Revert from "../../../../.."; + +export interface FieldDetailsTypeRead extends Revert.crm.FieldDetailsType { + isCustomField: boolean; +} diff --git a/src/api/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts b/src/api/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts index a80b09d..1cd5a0e 100644 --- a/src/api/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts +++ b/src/api/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts @@ -2,4 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -export type GetObjectPropertiesResponse = unknown; +import * as Revert from "../../../../.."; + +export type GetObjectPropertiesResponse = Revert.crm.FieldDetailsTypeRead[]; diff --git a/src/api/resources/crm/resources/properties/types/index.ts b/src/api/resources/crm/resources/properties/types/index.ts index 0af354e..2da9273 100644 --- a/src/api/resources/crm/resources/properties/types/index.ts +++ b/src/api/resources/crm/resources/properties/types/index.ts @@ -1,4 +1,5 @@ export * from "./FieldDetailsType"; +export * from "./FieldDetailsTypeRead"; export * from "./FieldDetailsTypeRequest"; export * from "./SetObjectPropertiesRequest"; export * from "./GetObjectPropertiesResponse"; diff --git a/src/api/resources/crm/resources/proxy/client/Client.ts b/src/api/resources/crm/resources/proxy/client/Client.ts index bbbb594..1754e4c 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.744", + "X-Fern-SDK-Version": "0.0.774", "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 9aa2821..ee38572 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -436,7 +436,7 @@ export class Task { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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/user/client/Client.ts b/src/api/resources/crm/resources/user/client/Client.ts index c520e6c..c211fde 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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/fieldMapping/client/Client.ts b/src/api/resources/fieldMapping/client/Client.ts similarity index 82% rename from src/api/resources/crm/resources/fieldMapping/client/Client.ts rename to src/api/resources/fieldMapping/client/Client.ts index c18b1e1..3488277 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/fieldMapping/client/Client.ts @@ -2,12 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as environments from "../../../../../../environments"; -import * as core from "../../../../../../core"; -import * as Revert from "../../../../.."; +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as Revert from "../../.."; import urlJoin from "url-join"; -import * as serializers from "../../../../../../serialization"; -import * as errors from "../../../../../../errors"; +import * as serializers from "../../../../serialization"; +import * as errors from "../../../../errors"; export declare namespace FieldMapping { interface Options { @@ -29,31 +29,30 @@ export class FieldMapping { * @throws {@link Revert.common.InternalServerError} */ public async getFieldMappingConfig( - request: Revert.crm.GetFieldMappingConfigRequest, + request: Revert.GetFieldMappingConfigRequest, requestOptions?: FieldMapping.RequestOptions - ): Promise { - const { xRevertApiToken, xRevertTId, xRevertTToken, xApiVersion } = request; + ): Promise { + const { xRevertPublicToken, xRevertTId, xRevertTToken } = request; const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, - "/crm/field-mapping" + "/field-mapping" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", - "x-revert-api-token": xRevertApiToken != null ? xRevertApiToken : undefined, + "X-Fern-SDK-Version": "0.0.774", + "x-revert-public-token": xRevertPublicToken, "x-revert-t-id": xRevertTId, - "x-revert-t-token": xRevertTToken != null ? xRevertTToken : undefined, - "x-api-version": xApiVersion != null ? xApiVersion : undefined, + "x-revert-t-token": xRevertTToken, }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : undefined, maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.crm.GetFieldMappingConfigResponse.parseOrThrow(_response.body, { + return await serializers.GetFieldMappingConfigResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -111,31 +110,29 @@ export class FieldMapping { * @throws {@link Revert.common.NotFoundError} */ public async getFieldMappings( - request: Revert.crm.GetFieldMappingsRequest, + request: Revert.GetFieldMappingsRequest, requestOptions?: FieldMapping.RequestOptions - ): Promise { - const { xRevertApiToken, xRevertTId, xRevertTToken, xApiVersion } = request; + ): Promise { + const { xRevertApiToken, xRevertTId } = request; const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, - "/crm/field-mapping/mappings" + "/field-mapping/mappings" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", - "x-revert-api-token": xRevertApiToken != null ? xRevertApiToken : undefined, + "X-Fern-SDK-Version": "0.0.774", + "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, - "x-revert-t-token": xRevertTToken != null ? xRevertTToken : undefined, - "x-api-version": xApiVersion != null ? xApiVersion : undefined, }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : undefined, maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.crm.GetFieldMappingsResponse.parseOrThrow(_response.body, { + return await serializers.GetFieldMappingsResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -202,34 +199,33 @@ export class FieldMapping { * @throws {@link Revert.common.NotFoundError} */ public async createFieldMapping( - request: Revert.crm.CreateFieldMappingRequest, + request: Revert.CreateFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions - ): Promise { - const { xRevertApiToken, xRevertTId, xRevertTToken, xApiVersion, body: _body } = request; + ): Promise { + const { xRevertPublicToken, xRevertTId, xRevertTToken, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, - "/crm/field-mapping" + "/field-mapping" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", - "x-revert-api-token": xRevertApiToken != null ? xRevertApiToken : undefined, + "X-Fern-SDK-Version": "0.0.774", + "x-revert-public-token": xRevertPublicToken, "x-revert-t-id": xRevertTId, - "x-revert-t-token": xRevertTToken != null ? xRevertTToken : undefined, - "x-api-version": xApiVersion != null ? xApiVersion : undefined, + "x-revert-t-token": xRevertTToken, }, contentType: "application/json", - body: await serializers.crm.CreateFieldMappingRequestBody.jsonOrThrow(_body, { + body: await serializers.CreateFieldMappingRequestBody.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : undefined, maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.crm.CreateFieldMappingResponse.parseOrThrow(_response.body, { + return await serializers.CreateFieldMappingResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -290,37 +286,35 @@ export class FieldMapping { } /** - * Delete field mappings for an account + * Delete field mappings for a connection * @throws {@link Revert.common.UnAuthorizedError} * @throws {@link Revert.common.InternalServerError} * @throws {@link Revert.common.NotFoundError} */ public async deleteFieldMapping( - request: Revert.crm.DeleteFieldMappingRequest, + request: Revert.DeleteFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions - ): Promise { - const { xRevertApiToken, xRevertTId, xRevertTToken, xApiVersion } = request; + ): Promise { + const { xRevertApiToken, xRevertTId } = request; const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, - "/crm/field-mapping" + "/field-mapping" ), method: "DELETE", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", - "x-revert-api-token": xRevertApiToken != null ? xRevertApiToken : undefined, + "X-Fern-SDK-Version": "0.0.774", + "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, - "x-revert-t-token": xRevertTToken != null ? xRevertTToken : undefined, - "x-api-version": xApiVersion != null ? xApiVersion : undefined, }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : undefined, maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.crm.DeleteFieldMappingResponse.parseOrThrow(_response.body, { + return await serializers.DeleteFieldMappingResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -387,34 +381,31 @@ export class FieldMapping { * @throws {@link Revert.common.NotFoundError} */ public async createAccountFieldMappingConfig( - request: Revert.crm.CreateAccountFieldMappingRequest, + request: Revert.CreateAccountFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions - ): Promise { - const { xRevertApiToken, xRevertTId, xRevertTToken, xApiVersion, body: _body } = request; + ): Promise { + const { xRevertApiToken, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, - "/crm/field-mapping/config" + "/field-mapping/config" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", - "x-revert-api-token": xRevertApiToken != null ? xRevertApiToken : undefined, - "x-revert-t-id": xRevertTId, - "x-revert-t-token": xRevertTToken != null ? xRevertTToken : undefined, - "x-api-version": xApiVersion != null ? xApiVersion : undefined, + "X-Fern-SDK-Version": "0.0.774", + "x-revert-api-token": xRevertApiToken, }, contentType: "application/json", - body: await serializers.crm.CreateAccountFieldMappingRequestBody.jsonOrThrow(_body, { + body: await serializers.CreateAccountFieldMappingRequestBody.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : undefined, maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.crm.CreateAccountFieldMappingResponse.parseOrThrow(_response.body, { + return await serializers.CreateAccountFieldMappingResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -481,31 +472,28 @@ export class FieldMapping { * @throws {@link Revert.common.NotFoundError} */ public async deleteAccountFieldMappingConfig( - request: Revert.crm.DeleteAccountFieldMappingConfigRequest, + request: Revert.DeleteAccountFieldMappingConfigRequest, requestOptions?: FieldMapping.RequestOptions - ): Promise { - const { xRevertApiToken, xRevertTId, xRevertTToken, xApiVersion } = request; + ): Promise { + const { xRevertApiToken } = request; const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, - "/crm/field-mapping/config" + "/field-mapping/config" ), method: "DELETE", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", - "x-revert-api-token": xRevertApiToken != null ? xRevertApiToken : undefined, - "x-revert-t-id": xRevertTId, - "x-revert-t-token": xRevertTToken != null ? xRevertTToken : undefined, - "x-api-version": xApiVersion != null ? xApiVersion : undefined, + "X-Fern-SDK-Version": "0.0.774", + "x-revert-api-token": xRevertApiToken, }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : undefined, maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.crm.DeleteAccountFieldMappingConfigResponse.parseOrThrow(_response.body, { + return await serializers.DeleteAccountFieldMappingConfigResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, diff --git a/src/api/resources/crm/resources/fieldMapping/client/index.ts b/src/api/resources/fieldMapping/client/index.ts similarity index 100% rename from src/api/resources/crm/resources/fieldMapping/client/index.ts rename to src/api/resources/fieldMapping/client/index.ts diff --git a/src/api/resources/fieldMapping/client/requests/CreateAccountFieldMappingRequest.ts b/src/api/resources/fieldMapping/client/requests/CreateAccountFieldMappingRequest.ts new file mode 100644 index 0000000..d3468ec --- /dev/null +++ b/src/api/resources/fieldMapping/client/requests/CreateAccountFieldMappingRequest.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Revert from "../../../.."; + +export interface CreateAccountFieldMappingRequest { + /** + * Your official API key for accessing revert apis. + */ + xRevertApiToken: string; + body: Revert.CreateAccountFieldMappingRequestBody; +} diff --git a/src/api/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts new file mode 100644 index 0000000..80d6f52 --- /dev/null +++ b/src/api/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Revert from "../../../.."; + +export interface CreateFieldMappingRequest { + /** + * Your public key, to be used on the frontend usually. + */ + xRevertPublicToken: string; + /** + * The unique customer id used when the customer linked their account. + */ + xRevertTId: string; + /** + * The temp used to identify tenant. + */ + xRevertTToken: string; + body: Revert.CreateFieldMappingRequestBody; +} diff --git a/src/api/resources/fieldMapping/client/requests/DeleteAccountFieldMappingConfigRequest.ts b/src/api/resources/fieldMapping/client/requests/DeleteAccountFieldMappingConfigRequest.ts new file mode 100644 index 0000000..85d8b80 --- /dev/null +++ b/src/api/resources/fieldMapping/client/requests/DeleteAccountFieldMappingConfigRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DeleteAccountFieldMappingConfigRequest { + /** + * Your official API key for accessing revert apis. + */ + xRevertApiToken: string; +} diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/DeleteFieldMappingRequest.ts b/src/api/resources/fieldMapping/client/requests/DeleteFieldMappingRequest.ts similarity index 54% rename from src/api/resources/crm/resources/fieldMapping/client/requests/DeleteFieldMappingRequest.ts rename to src/api/resources/fieldMapping/client/requests/DeleteFieldMappingRequest.ts index fa5dc2d..346c03b 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/DeleteFieldMappingRequest.ts +++ b/src/api/resources/fieldMapping/client/requests/DeleteFieldMappingRequest.ts @@ -6,17 +6,9 @@ export interface DeleteFieldMappingRequest { /** * Your official API key for accessing revert apis. */ - xRevertApiToken?: string; + xRevertApiToken: string; /** * The unique customer id used when the customer linked their account. */ xRevertTId: string; - /** - * The temp used to identify tenant. - */ - xRevertTToken?: string; - /** - * Optional Revert API version you're using. If missing we default to the latest version of the API. - */ - xApiVersion?: string; } diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/GetFieldMappingConfigRequest.ts b/src/api/resources/fieldMapping/client/requests/GetFieldMappingConfigRequest.ts similarity index 54% rename from src/api/resources/crm/resources/fieldMapping/client/requests/GetFieldMappingConfigRequest.ts rename to src/api/resources/fieldMapping/client/requests/GetFieldMappingConfigRequest.ts index 3210526..f2a8947 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/GetFieldMappingConfigRequest.ts +++ b/src/api/resources/fieldMapping/client/requests/GetFieldMappingConfigRequest.ts @@ -4,9 +4,9 @@ export interface GetFieldMappingConfigRequest { /** - * Your official API key for accessing revert apis. + * Your public key, to be used on the frontend usually. */ - xRevertApiToken?: string; + xRevertPublicToken: string; /** * The unique customer id used when the customer linked their account. */ @@ -14,9 +14,5 @@ export interface GetFieldMappingConfigRequest { /** * The temp used to identify tenant. */ - xRevertTToken?: string; - /** - * Optional Revert API version you're using. If missing we default to the latest version of the API. - */ - xApiVersion?: string; + xRevertTToken: string; } diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/GetFieldMappingsRequest.ts b/src/api/resources/fieldMapping/client/requests/GetFieldMappingsRequest.ts similarity index 53% rename from src/api/resources/crm/resources/fieldMapping/client/requests/GetFieldMappingsRequest.ts rename to src/api/resources/fieldMapping/client/requests/GetFieldMappingsRequest.ts index 2284103..545ecdb 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/GetFieldMappingsRequest.ts +++ b/src/api/resources/fieldMapping/client/requests/GetFieldMappingsRequest.ts @@ -6,17 +6,9 @@ export interface GetFieldMappingsRequest { /** * Your official API key for accessing revert apis. */ - xRevertApiToken?: string; + xRevertApiToken: string; /** * The unique customer id used when the customer linked their account. */ xRevertTId: string; - /** - * The temp used to identify tenant. - */ - xRevertTToken?: string; - /** - * Optional Revert API version you're using. If missing we default to the latest version of the API. - */ - xApiVersion?: string; } diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/index.ts b/src/api/resources/fieldMapping/client/requests/index.ts similarity index 100% rename from src/api/resources/crm/resources/fieldMapping/client/requests/index.ts rename to src/api/resources/fieldMapping/client/requests/index.ts diff --git a/src/api/resources/crm/resources/fieldMapping/index.ts b/src/api/resources/fieldMapping/index.ts similarity index 100% rename from src/api/resources/crm/resources/fieldMapping/index.ts rename to src/api/resources/fieldMapping/index.ts diff --git a/src/api/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts b/src/api/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts similarity index 55% rename from src/api/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts rename to src/api/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts index 1552ebc..a93b6c1 100644 --- a/src/api/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts +++ b/src/api/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts @@ -2,11 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Revert from "../../../../.."; +import * as Revert from "../../.."; export interface CreateAccountFieldMappingRequestBody { - id: string; - accountId: string; allowConnectionOverrideCustomFields: boolean; - mappableByConnectionFieldList: Revert.crm.MappableFieldType[]; + mappableByConnectionFieldList: Revert.MappableFieldType[]; } diff --git a/src/api/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts b/src/api/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts similarity index 80% rename from src/api/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts rename to src/api/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts index d1cb806..36a6a8d 100644 --- a/src/api/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts +++ b/src/api/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Revert from "../../../../.."; +import * as Revert from "../../.."; export interface CreateAccountFieldMappingResponse { status: Revert.common.ResponseStatus; diff --git a/src/api/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts b/src/api/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts new file mode 100644 index 0000000..55e19cd --- /dev/null +++ b/src/api/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Revert from "../../.."; + +export interface CreateFieldMappingRequestBody { + standardMappings: Revert.FieldMappingType[]; + customMappings: Revert.FieldMappingType[]; +} diff --git a/src/api/resources/crm/resources/fieldMapping/types/CreateFieldMappingResponse.ts b/src/api/resources/fieldMapping/types/CreateFieldMappingResponse.ts similarity index 79% rename from src/api/resources/crm/resources/fieldMapping/types/CreateFieldMappingResponse.ts rename to src/api/resources/fieldMapping/types/CreateFieldMappingResponse.ts index baa2f8a..9930672 100644 --- a/src/api/resources/crm/resources/fieldMapping/types/CreateFieldMappingResponse.ts +++ b/src/api/resources/fieldMapping/types/CreateFieldMappingResponse.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Revert from "../../../../.."; +import * as Revert from "../../.."; export interface CreateFieldMappingResponse { status: Revert.common.ResponseStatus; diff --git a/src/api/resources/crm/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts b/src/api/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts similarity index 80% rename from src/api/resources/crm/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts rename to src/api/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts index c053a81..cc2bdf0 100644 --- a/src/api/resources/crm/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts +++ b/src/api/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Revert from "../../../../.."; +import * as Revert from "../../.."; export interface DeleteAccountFieldMappingConfigResponse { status: Revert.common.ResponseStatus; diff --git a/src/api/resources/crm/resources/fieldMapping/types/DeleteFieldMappingResponse.ts b/src/api/resources/fieldMapping/types/DeleteFieldMappingResponse.ts similarity index 81% rename from src/api/resources/crm/resources/fieldMapping/types/DeleteFieldMappingResponse.ts rename to src/api/resources/fieldMapping/types/DeleteFieldMappingResponse.ts index e94c44c..cc9be6d 100644 --- a/src/api/resources/crm/resources/fieldMapping/types/DeleteFieldMappingResponse.ts +++ b/src/api/resources/fieldMapping/types/DeleteFieldMappingResponse.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Revert from "../../../../.."; +import * as Revert from "../../.."; export interface DeleteFieldMappingResponse { status: Revert.common.ResponseStatus; diff --git a/src/api/resources/crm/resources/fieldMapping/types/FieldMappingType.ts b/src/api/resources/fieldMapping/types/FieldMappingType.ts similarity index 100% rename from src/api/resources/crm/resources/fieldMapping/types/FieldMappingType.ts rename to src/api/resources/fieldMapping/types/FieldMappingType.ts diff --git a/src/api/resources/crm/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts b/src/api/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts similarity index 66% rename from src/api/resources/crm/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts rename to src/api/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts index 9e8b811..3aa17c0 100644 --- a/src/api/resources/crm/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts +++ b/src/api/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Revert from "../../../../.."; +import * as Revert from "../../.."; export interface GetFieldMappingConfigResponse { canAddCustomMapping: boolean; - mappableFields: Revert.crm.MappableFieldType[]; + mappableFields: Revert.MappableFieldType[]; fieldList?: unknown; } diff --git a/src/api/resources/crm/resources/fieldMapping/types/GetFieldMappingsResponse.ts b/src/api/resources/fieldMapping/types/GetFieldMappingsResponse.ts similarity index 61% rename from src/api/resources/crm/resources/fieldMapping/types/GetFieldMappingsResponse.ts rename to src/api/resources/fieldMapping/types/GetFieldMappingsResponse.ts index 0f4e89e..025e3e0 100644 --- a/src/api/resources/crm/resources/fieldMapping/types/GetFieldMappingsResponse.ts +++ b/src/api/resources/fieldMapping/types/GetFieldMappingsResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Revert from "../../../../.."; +import * as Revert from "../../.."; export interface GetFieldMappingsResponse { tpId: string; - mappings: Revert.crm.FieldMappingType[]; + mappings: Revert.FieldMappingType[]; } diff --git a/src/api/resources/crm/resources/fieldMapping/types/MappableFieldType.ts b/src/api/resources/fieldMapping/types/MappableFieldType.ts similarity index 81% rename from src/api/resources/crm/resources/fieldMapping/types/MappableFieldType.ts rename to src/api/resources/fieldMapping/types/MappableFieldType.ts index 3e6f825..b972b22 100644 --- a/src/api/resources/crm/resources/fieldMapping/types/MappableFieldType.ts +++ b/src/api/resources/fieldMapping/types/MappableFieldType.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Revert from "../../../../.."; +import * as Revert from "../../.."; export interface MappableFieldType { fieldName: string; diff --git a/src/api/resources/crm/resources/fieldMapping/types/index.ts b/src/api/resources/fieldMapping/types/index.ts similarity index 100% rename from src/api/resources/crm/resources/fieldMapping/types/index.ts rename to src/api/resources/fieldMapping/types/index.ts diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 1febb58..971efa0 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -3,8 +3,11 @@ export * as common from "./common"; export * as connection from "./connection"; export * from "./connection/types"; export * as crm from "./crm"; +export * as fieldMapping from "./fieldMapping"; +export * from "./fieldMapping/types"; export * as metadata from "./metadata"; export * from "./metadata/types"; export * as ticket from "./ticket"; export * from "./connection/client/requests"; +export * from "./fieldMapping/client/requests"; export * from "./metadata/client/requests"; diff --git a/src/api/resources/metadata/client/Client.ts b/src/api/resources/metadata/client/Client.ts index 52fa1c0..4e5c48a 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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-public-token": xRevertPublicToken, }, contentType: "application/json", diff --git a/src/api/resources/ticket/resources/collection/client/Client.ts b/src/api/resources/ticket/resources/collection/client/Client.ts index e1d7e37..7093099 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.744", + "X-Fern-SDK-Version": "0.0.774", "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 9a96483..d7068f7 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -244,7 +244,7 @@ export class Comment { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -338,7 +338,7 @@ export class Comment { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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 7b5b7e2..053fe5e 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.744", + "X-Fern-SDK-Version": "0.0.774", "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 bf3c58a..9bb4993 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -243,7 +243,7 @@ export class Task { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "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 280ae3f..0828d9b 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.744", + "X-Fern-SDK-Version": "0.0.774", "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.744", + "X-Fern-SDK-Version": "0.0.774", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, diff --git a/src/serialization/resources/connection/types/ConnectionStatus.ts b/src/serialization/resources/connection/types/ConnectionStatus.ts new file mode 100644 index 0000000..51f5ca0 --- /dev/null +++ b/src/serialization/resources/connection/types/ConnectionStatus.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; + +export const ConnectionStatus: core.serialization.Schema = + core.serialization.enum_(["SUCCESS", "FAILED"]); + +export declare namespace ConnectionStatus { + type Raw = "SUCCESS" | "FAILED"; +} diff --git a/src/serialization/resources/connection/types/GetConnectStatusResponse.ts b/src/serialization/resources/connection/types/GetConnectStatusResponse.ts new file mode 100644 index 0000000..693b6b3 --- /dev/null +++ b/src/serialization/resources/connection/types/GetConnectStatusResponse.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; + +export const GetConnectStatusResponse: core.serialization.ObjectSchema< + serializers.GetConnectStatusResponse.Raw, + Revert.GetConnectStatusResponse +> = core.serialization.object({ + publicToken: core.serialization.string(), + status: core.serialization.lazy(async () => (await import("../../..")).ConnectionStatus), + integrationName: core.serialization.string(), + tenantId: core.serialization.string(), + tenantSecretToken: core.serialization.string().optional(), +}); + +export declare namespace GetConnectStatusResponse { + interface Raw { + publicToken: string; + status: serializers.ConnectionStatus.Raw; + integrationName: string; + tenantId: string; + tenantSecretToken?: string | null; + } +} diff --git a/src/serialization/resources/connection/types/index.ts b/src/serialization/resources/connection/types/index.ts index 214b3fb..0eab250 100644 --- a/src/serialization/resources/connection/types/index.ts +++ b/src/serialization/resources/connection/types/index.ts @@ -5,3 +5,5 @@ export * from "./CreateConnectionWebhookResponse"; export * from "./GetConnectionWebhookResponse"; export * from "./CreateConnectionWebhookRequest"; export * from "./DeleteConnectionWebhookResponse"; +export * from "./GetConnectStatusResponse"; +export * from "./ConnectionStatus"; diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts b/src/serialization/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts deleted file mode 100644 index 33d7689..0000000 --- a/src/serialization/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const CreateAccountFieldMappingRequestBody: core.serialization.ObjectSchema< - serializers.crm.CreateAccountFieldMappingRequestBody.Raw, - Revert.crm.CreateAccountFieldMappingRequestBody -> = core.serialization.object({ - id: core.serialization.string(), - accountId: core.serialization.property("account_id", core.serialization.string()), - allowConnectionOverrideCustomFields: core.serialization.property( - "allow_connection_override_custom_fields", - core.serialization.boolean() - ), - mappableByConnectionFieldList: core.serialization.property( - "mappable_by_connection_field_list", - core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../../../..")).crm.MappableFieldType) - ) - ), -}); - -export declare namespace CreateAccountFieldMappingRequestBody { - interface Raw { - id: string; - account_id: string; - allow_connection_override_custom_fields: boolean; - mappable_by_connection_field_list: serializers.crm.MappableFieldType.Raw[]; - } -} diff --git a/src/serialization/resources/crm/resources/index.ts b/src/serialization/resources/crm/resources/index.ts index e030706..4c0006a 100644 --- a/src/serialization/resources/crm/resources/index.ts +++ b/src/serialization/resources/crm/resources/index.ts @@ -6,8 +6,6 @@ export * as deal from "./deal"; export * from "./deal/types"; export * as event from "./event"; export * from "./event/types"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/types"; export * as lead from "./lead"; export * from "./lead/types"; export * as note from "./note"; diff --git a/src/serialization/resources/crm/resources/properties/types/FieldDetailsTypeRead.ts b/src/serialization/resources/crm/resources/properties/types/FieldDetailsTypeRead.ts new file mode 100644 index 0000000..a5515e0 --- /dev/null +++ b/src/serialization/resources/crm/resources/properties/types/FieldDetailsTypeRead.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../.."; +import * as Revert from "../../../../../../api"; +import * as core from "../../../../../../core"; + +export const FieldDetailsTypeRead: core.serialization.ObjectSchema< + serializers.crm.FieldDetailsTypeRead.Raw, + Revert.crm.FieldDetailsTypeRead +> = core.serialization + .object({ + isCustomField: core.serialization.boolean(), + }) + .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).crm.FieldDetailsType)); + +export declare namespace FieldDetailsTypeRead { + interface Raw extends serializers.crm.FieldDetailsType.Raw { + isCustomField: boolean; + } +} diff --git a/src/serialization/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts b/src/serialization/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts index f5335b7..628af8b 100644 --- a/src/serialization/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts +++ b/src/serialization/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts @@ -9,8 +9,10 @@ import * as core from "../../../../../../core"; export const GetObjectPropertiesResponse: core.serialization.Schema< serializers.crm.GetObjectPropertiesResponse.Raw, Revert.crm.GetObjectPropertiesResponse -> = core.serialization.unknown(); +> = core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).crm.FieldDetailsTypeRead) +); export declare namespace GetObjectPropertiesResponse { - type Raw = unknown; + type Raw = serializers.crm.FieldDetailsTypeRead.Raw[]; } diff --git a/src/serialization/resources/crm/resources/properties/types/index.ts b/src/serialization/resources/crm/resources/properties/types/index.ts index 0af354e..2da9273 100644 --- a/src/serialization/resources/crm/resources/properties/types/index.ts +++ b/src/serialization/resources/crm/resources/properties/types/index.ts @@ -1,4 +1,5 @@ export * from "./FieldDetailsType"; +export * from "./FieldDetailsTypeRead"; export * from "./FieldDetailsTypeRequest"; export * from "./SetObjectPropertiesRequest"; export * from "./GetObjectPropertiesResponse"; diff --git a/src/serialization/resources/crm/resources/fieldMapping/index.ts b/src/serialization/resources/fieldMapping/index.ts similarity index 100% rename from src/serialization/resources/crm/resources/fieldMapping/index.ts rename to src/serialization/resources/fieldMapping/index.ts diff --git a/src/serialization/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts b/src/serialization/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts new file mode 100644 index 0000000..c2099f1 --- /dev/null +++ b/src/serialization/resources/fieldMapping/types/CreateAccountFieldMappingRequestBody.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; + +export const CreateAccountFieldMappingRequestBody: core.serialization.ObjectSchema< + serializers.CreateAccountFieldMappingRequestBody.Raw, + Revert.CreateAccountFieldMappingRequestBody +> = core.serialization.object({ + allowConnectionOverrideCustomFields: core.serialization.property( + "allow_connection_override_custom_fields", + core.serialization.boolean() + ), + mappableByConnectionFieldList: core.serialization.property( + "mappable_by_connection_field_list", + core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappableFieldType)) + ), +}); + +export declare namespace CreateAccountFieldMappingRequestBody { + interface Raw { + allow_connection_override_custom_fields: boolean; + mappable_by_connection_field_list: serializers.MappableFieldType.Raw[]; + } +} diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts b/src/serialization/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts similarity index 57% rename from src/serialization/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts rename to src/serialization/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts index d1f6829..9c467f6 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts +++ b/src/serialization/resources/fieldMapping/types/CreateAccountFieldMappingResponse.ts @@ -2,15 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; export const CreateAccountFieldMappingResponse: core.serialization.ObjectSchema< - serializers.crm.CreateAccountFieldMappingResponse.Raw, - Revert.crm.CreateAccountFieldMappingResponse + serializers.CreateAccountFieldMappingResponse.Raw, + Revert.CreateAccountFieldMappingResponse > = core.serialization.object({ - status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + status: core.serialization.lazy(async () => (await import("../../..")).common.ResponseStatus), }); export declare namespace CreateAccountFieldMappingResponse { diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts b/src/serialization/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts similarity index 52% rename from src/serialization/resources/crm/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts rename to src/serialization/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts index 3e0008b..3146e04 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts +++ b/src/serialization/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts @@ -2,25 +2,25 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; export const CreateFieldMappingRequestBody: core.serialization.ObjectSchema< - serializers.crm.CreateFieldMappingRequestBody.Raw, - Revert.crm.CreateFieldMappingRequestBody + serializers.CreateFieldMappingRequestBody.Raw, + Revert.CreateFieldMappingRequestBody > = core.serialization.object({ standardMappings: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../../../..")).crm.FieldMappingType) + core.serialization.lazyObject(async () => (await import("../../..")).FieldMappingType) ), customMappings: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../../../..")).crm.FieldMappingType) + core.serialization.lazyObject(async () => (await import("../../..")).FieldMappingType) ), }); export declare namespace CreateFieldMappingRequestBody { interface Raw { - standardMappings: serializers.crm.FieldMappingType.Raw[]; - customMappings: serializers.crm.FieldMappingType.Raw[]; + standardMappings: serializers.FieldMappingType.Raw[]; + customMappings: serializers.FieldMappingType.Raw[]; } } diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/CreateFieldMappingResponse.ts b/src/serialization/resources/fieldMapping/types/CreateFieldMappingResponse.ts similarity index 58% rename from src/serialization/resources/crm/resources/fieldMapping/types/CreateFieldMappingResponse.ts rename to src/serialization/resources/fieldMapping/types/CreateFieldMappingResponse.ts index 31bbe53..94a2240 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/types/CreateFieldMappingResponse.ts +++ b/src/serialization/resources/fieldMapping/types/CreateFieldMappingResponse.ts @@ -2,15 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; export const CreateFieldMappingResponse: core.serialization.ObjectSchema< - serializers.crm.CreateFieldMappingResponse.Raw, - Revert.crm.CreateFieldMappingResponse + serializers.CreateFieldMappingResponse.Raw, + Revert.CreateFieldMappingResponse > = core.serialization.object({ - status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + status: core.serialization.lazy(async () => (await import("../../..")).common.ResponseStatus), }); export declare namespace CreateFieldMappingResponse { diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts b/src/serialization/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts similarity index 57% rename from src/serialization/resources/crm/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts rename to src/serialization/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts index a7994e7..101e869 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts +++ b/src/serialization/resources/fieldMapping/types/DeleteAccountFieldMappingConfigResponse.ts @@ -2,15 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; export const DeleteAccountFieldMappingConfigResponse: core.serialization.ObjectSchema< - serializers.crm.DeleteAccountFieldMappingConfigResponse.Raw, - Revert.crm.DeleteAccountFieldMappingConfigResponse + serializers.DeleteAccountFieldMappingConfigResponse.Raw, + Revert.DeleteAccountFieldMappingConfigResponse > = core.serialization.object({ - status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + status: core.serialization.lazy(async () => (await import("../../..")).common.ResponseStatus), }); export declare namespace DeleteAccountFieldMappingConfigResponse { diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/DeleteFieldMappingResponse.ts b/src/serialization/resources/fieldMapping/types/DeleteFieldMappingResponse.ts similarity index 61% rename from src/serialization/resources/crm/resources/fieldMapping/types/DeleteFieldMappingResponse.ts rename to src/serialization/resources/fieldMapping/types/DeleteFieldMappingResponse.ts index fd8d80e..0354abf 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/types/DeleteFieldMappingResponse.ts +++ b/src/serialization/resources/fieldMapping/types/DeleteFieldMappingResponse.ts @@ -2,15 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; export const DeleteFieldMappingResponse: core.serialization.ObjectSchema< - serializers.crm.DeleteFieldMappingResponse.Raw, - Revert.crm.DeleteFieldMappingResponse + serializers.DeleteFieldMappingResponse.Raw, + Revert.DeleteFieldMappingResponse > = core.serialization.object({ - status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), + status: core.serialization.lazy(async () => (await import("../../..")).common.ResponseStatus), message: core.serialization.string(), }); diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/FieldMappingType.ts b/src/serialization/resources/fieldMapping/types/FieldMappingType.ts similarity index 68% rename from src/serialization/resources/crm/resources/fieldMapping/types/FieldMappingType.ts rename to src/serialization/resources/fieldMapping/types/FieldMappingType.ts index f16845f..b0a3eff 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/types/FieldMappingType.ts +++ b/src/serialization/resources/fieldMapping/types/FieldMappingType.ts @@ -2,13 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; export const FieldMappingType: core.serialization.ObjectSchema< - serializers.crm.FieldMappingType.Raw, - Revert.crm.FieldMappingType + serializers.FieldMappingType.Raw, + Revert.FieldMappingType > = core.serialization.object({ sourceFieldName: core.serialization.string(), targetFieldName: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts b/src/serialization/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts similarity index 61% rename from src/serialization/resources/crm/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts rename to src/serialization/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts index d4aeb51..86b0e64 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts +++ b/src/serialization/resources/fieldMapping/types/GetFieldMappingConfigResponse.ts @@ -2,17 +2,17 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; export const GetFieldMappingConfigResponse: core.serialization.ObjectSchema< - serializers.crm.GetFieldMappingConfigResponse.Raw, - Revert.crm.GetFieldMappingConfigResponse + serializers.GetFieldMappingConfigResponse.Raw, + Revert.GetFieldMappingConfigResponse > = core.serialization.object({ canAddCustomMapping: core.serialization.boolean(), mappableFields: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../../../..")).crm.MappableFieldType) + core.serialization.lazyObject(async () => (await import("../../..")).MappableFieldType) ), fieldList: core.serialization.unknown(), }); @@ -20,7 +20,7 @@ export const GetFieldMappingConfigResponse: core.serialization.ObjectSchema< export declare namespace GetFieldMappingConfigResponse { interface Raw { canAddCustomMapping: boolean; - mappableFields: serializers.crm.MappableFieldType.Raw[]; + mappableFields: serializers.MappableFieldType.Raw[]; fieldList?: unknown; } } diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/GetFieldMappingsResponse.ts b/src/serialization/resources/fieldMapping/types/GetFieldMappingsResponse.ts similarity index 56% rename from src/serialization/resources/crm/resources/fieldMapping/types/GetFieldMappingsResponse.ts rename to src/serialization/resources/fieldMapping/types/GetFieldMappingsResponse.ts index 2298553..bc01f92 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/types/GetFieldMappingsResponse.ts +++ b/src/serialization/resources/fieldMapping/types/GetFieldMappingsResponse.ts @@ -2,23 +2,23 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; export const GetFieldMappingsResponse: core.serialization.ObjectSchema< - serializers.crm.GetFieldMappingsResponse.Raw, - Revert.crm.GetFieldMappingsResponse + serializers.GetFieldMappingsResponse.Raw, + Revert.GetFieldMappingsResponse > = core.serialization.object({ tpId: core.serialization.string(), mappings: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../../../..")).crm.FieldMappingType) + core.serialization.lazyObject(async () => (await import("../../..")).FieldMappingType) ), }); export declare namespace GetFieldMappingsResponse { interface Raw { tpId: string; - mappings: serializers.crm.FieldMappingType.Raw[]; + mappings: serializers.FieldMappingType.Raw[]; } } diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/MappableFieldType.ts b/src/serialization/resources/fieldMapping/types/MappableFieldType.ts similarity index 62% rename from src/serialization/resources/crm/resources/fieldMapping/types/MappableFieldType.ts rename to src/serialization/resources/fieldMapping/types/MappableFieldType.ts index 5b5e5dd..3ca14de 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/types/MappableFieldType.ts +++ b/src/serialization/resources/fieldMapping/types/MappableFieldType.ts @@ -2,16 +2,16 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../.."; -import * as Revert from "../../../../../../api"; -import * as core from "../../../../../../core"; +import * as serializers from "../../.."; +import * as Revert from "../../../../api"; +import * as core from "../../../../core"; export const MappableFieldType: core.serialization.ObjectSchema< - serializers.crm.MappableFieldType.Raw, - Revert.crm.MappableFieldType + serializers.MappableFieldType.Raw, + Revert.MappableFieldType > = core.serialization.object({ fieldName: core.serialization.string(), - objectName: core.serialization.lazy(async () => (await import("../../../../..")).common.StandardObject), + objectName: core.serialization.lazy(async () => (await import("../../..")).common.StandardObject), }); export declare namespace MappableFieldType { diff --git a/src/serialization/resources/crm/resources/fieldMapping/types/index.ts b/src/serialization/resources/fieldMapping/types/index.ts similarity index 100% rename from src/serialization/resources/crm/resources/fieldMapping/types/index.ts rename to src/serialization/resources/fieldMapping/types/index.ts diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 0704b25..5e96025 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -3,6 +3,8 @@ export * as common from "./common"; export * as connection from "./connection"; export * from "./connection/types"; export * as crm from "./crm"; +export * as fieldMapping from "./fieldMapping"; +export * from "./fieldMapping/types"; export * as metadata from "./metadata"; export * from "./metadata/types"; export * as ticket from "./ticket"; diff --git a/yarn.lock b/yarn.lock index e4bcf64..ff7a16d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -75,9 +75,9 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== follow-redirects@^1.14.9: - version "1.15.5" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.5.tgz#54d4d6d062c0fa7d9d17feb008461550e3ba8020" - integrity sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw== + version "1.15.6" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" + integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== form-data@^4.0.0: version "4.0.0"