From bc5decd30d77cfc1e9986d40f2b282fa8d29984a Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 06:56:03 +0000 Subject: [PATCH] Release 0.0.592 --- package.json | 2 +- src/Client.ts | 8 +- src/api/resources/chat/client/Client.ts | 2 +- .../chat/resources/channels/client/Client.ts | 32 ++-- .../channels/types/GetChannelsResponse.ts | 6 +- .../chat/resources/messages/client/Client.ts | 36 ++-- .../client/requests/CreateMessageRequest.ts | 4 +- .../types/CreateorUpdateMessageRequest.ts | 4 +- .../types/CreateorUpdateMessageResponse.ts | 6 +- .../chat/resources/users/client/Client.ts | 32 ++-- .../resources/users/types/GetUsersResponse.ts | 6 +- .../errors/errors/BadRequestError.ts | 6 +- .../errors/errors/InternalServerError.ts | 6 +- .../resources/errors/errors/NotFoundError.ts | 6 +- .../errors/errors/UnAuthorizedError.ts | 6 +- .../common/resources/types/types/Account.ts | 6 +- .../common/resources/types/types/App.ts | 8 +- .../resources/types/types/Connection.ts | 6 +- .../resources/types/types/RevertUser.ts | 4 +- .../common/resources/unified/types/Company.ts | 6 +- .../common/resources/unified/types/Contact.ts | 4 +- .../resources/unified/types/ContactWrite.ts | 4 +- .../common/resources/unified/types/Deal.ts | 4 +- .../resources/unified/types/DealWrite.ts | 4 +- .../common/resources/unified/types/Event.ts | 4 +- .../resources/unified/types/EventWrite.ts | 4 +- .../common/resources/unified/types/Lead.ts | 4 +- .../resources/unified/types/LeadWrite.ts | 4 +- .../common/resources/unified/types/Note.ts | 4 +- .../resources/unified/types/NoteWrite.ts | 4 +- .../common/resources/unified/types/Task.ts | 4 +- .../resources/unified/types/TaskTicket.ts | 4 +- .../unified/types/TaskTicketWrite.ts | 6 +- .../resources/unified/types/TaskWrite.ts | 4 +- .../common/resources/unified/types/User.ts | 4 +- src/api/resources/connection/client/Client.ts | 172 +++++++++--------- .../client/requests/CreateWebhookRequest.ts | 4 +- .../types/CreateConnectionWebhookResponse.ts | 4 +- .../types/DeleteConnectionResponse.ts | 6 +- .../types/DeleteConnectionWebhookResponse.ts | 4 +- .../types/GetAllConnectionResponse.ts | 4 +- .../connection/types/GetConnectionResponse.ts | 4 +- .../types/GetConnectionWebhookResponse.ts | 4 +- src/api/resources/crm/client/Client.ts | 2 +- .../crm/resources/company/client/Client.ts | 144 +++++++-------- .../client/requests/CreateCompanyRequest.ts | 4 +- .../client/requests/UpdateCompanyRequest.ts | 4 +- .../types/CreateOrUpdateCompanyRequest.ts | 6 +- .../types/CreateOrUpdateCompanyResponse.ts | 4 +- .../company/types/GetCompaniesResponse.ts | 6 +- .../company/types/GetCompanyResponse.ts | 6 +- .../company/types/SearchCompaniesResponse.ts | 6 +- .../crm/resources/contact/client/Client.ts | 152 ++++++++-------- .../client/requests/CreateContactRequest.ts | 4 +- .../client/requests/UpdateContactRequest.ts | 4 +- .../types/CreateOrUpdateContactRequest.ts | 4 +- .../types/CreateOrUpdateContactResponse.ts | 4 +- .../contact/types/GetContactResponse.ts | 6 +- .../contact/types/GetContactsResponse.ts | 6 +- .../contact/types/SearchContactsResponse.ts | 6 +- .../crm/resources/deal/client/Client.ts | 144 +++++++-------- .../deal/client/requests/CreateDealRequest.ts | 4 +- .../deal/client/requests/UpdateDealRequest.ts | 4 +- .../deal/types/CreateOrUpdateDealRequest.ts | 4 +- .../deal/types/CreateOrUpdateDealResponse.ts | 4 +- .../resources/deal/types/GetDealResponse.ts | 6 +- .../resources/deal/types/GetDealsResponse.ts | 6 +- .../deal/types/SearchDealsResponse.ts | 6 +- .../crm/resources/event/client/Client.ts | 172 +++++++++--------- .../client/requests/CreateEventRequest.ts | 4 +- .../client/requests/UpdateEventRequest.ts | 4 +- .../event/types/CreateOrUpdateEventRequest.ts | 4 +- .../types/CreateOrUpdateEventResponse.ts | 4 +- .../event/types/DeleteEventResponse.ts | 4 +- .../resources/event/types/GetEventResponse.ts | 6 +- .../event/types/GetEventsResponse.ts | 6 +- .../event/types/SearchEventsResponse.ts | 6 +- .../resources/fieldMapping/client/Client.ts | 2 +- .../resources/fieldMapping/client/Client.ts | 56 +++--- .../requests/CreateFieldMappingRequest.ts | 4 +- .../types/CreateFieldMappingRequestBody.ts | 6 +- .../types/CreateFieldMappingResponse.ts | 4 +- .../types/GetFieldMappingResponse.ts | 4 +- .../fieldMapping/types/MappableFieldType.ts | 4 +- .../crm/resources/lead/client/Client.ts | 144 +++++++-------- .../lead/client/requests/CreateLeadRequest.ts | 4 +- .../lead/client/requests/UpdateLeadRequest.ts | 4 +- .../lead/types/CreateOrUpdateLeadRequest.ts | 4 +- .../lead/types/CreateOrUpdateLeadResponse.ts | 4 +- .../resources/lead/types/GetLeadResponse.ts | 6 +- .../resources/lead/types/GetLeadsResponse.ts | 6 +- .../lead/types/SearchLeadsResponse.ts | 6 +- .../crm/resources/note/client/Client.ts | 144 +++++++-------- .../note/client/requests/CreateNoteRequest.ts | 4 +- .../note/client/requests/UpdateNoteRequest.ts | 4 +- .../note/types/CreateOrUpdateNoteRequest.ts | 4 +- .../note/types/CreateOrUpdateNoteResponse.ts | 4 +- .../resources/note/types/GetNoteResponse.ts | 6 +- .../resources/note/types/GetNotesResponse.ts | 6 +- .../note/types/SearchNotesResponse.ts | 6 +- .../crm/resources/properties/client/Client.ts | 64 +++---- .../SetObjectCustomPropertiesRequest.ts | 4 +- .../types/FieldDetailsTypeRequest.ts | 4 +- .../types/SetObjectPropertiesRequest.ts | 4 +- .../crm/resources/proxy/client/Client.ts | 32 ++-- .../proxy/client/requests/PostProxyRequest.ts | 4 +- .../crm/resources/task/client/Client.ts | 144 +++++++-------- .../task/client/requests/CreateTaskRequest.ts | 4 +- .../task/client/requests/UpdateTaskRequest.ts | 4 +- .../task/types/CreateOrUpdateTaskRequest.ts | 4 +- .../task/types/CreateOrUpdateTaskResponse.ts | 4 +- .../resources/task/types/GetTaskResponse.ts | 6 +- .../resources/task/types/GetTasksResponse.ts | 6 +- .../task/types/SearchTasksResponse.ts | 6 +- .../crm/resources/user/client/Client.ts | 88 ++++----- .../user/client/requests/CreateUserRequest.ts | 4 +- .../user/types/CreateOrUpdateUserRequest.ts | 4 +- .../user/types/CreateOrUpdateUserResponse.ts | 4 +- .../resources/user/types/GetUserResponse.ts | 6 +- .../resources/user/types/GetUsersResponse.ts | 6 +- src/api/resources/metadata/client/Client.ts | 28 +-- .../resources/metadata/types/CrmMetadata.ts | 4 +- .../metadata/types/CrmMetadataResponse.ts | 4 +- src/api/resources/ticket/client/Client.ts | 2 +- .../resources/collection/client/Client.ts | 32 ++-- .../types/GetCollectionsResponse.ts | 4 +- .../ticket/resources/comment/client/Client.ts | 116 ++++++------ .../client/requests/CreateCommentRequest.ts | 4 +- .../client/requests/UpdateCommentRequest.ts | 4 +- .../types/CreateOrUpdateCommentRequest.ts | 4 +- .../types/CreateOrUpdateCommentResponse.ts | 4 +- .../comment/types/GetCommentResponse.ts | 4 +- .../comment/types/GetCommentsResponse.ts | 4 +- .../ticket/resources/proxy/client/Client.ts | 32 ++-- .../proxy/client/requests/PostProxyRequest.ts | 4 +- .../ticket/resources/task/client/Client.ts | 120 ++++++------ .../task/client/requests/CreateTaskRequest.ts | 4 +- .../task/client/requests/UpdateTaskRequest.ts | 4 +- .../task/types/CreateOrUpdateTaskRequest.ts | 4 +- .../task/types/CreateOrUpdateTaskResponse.ts | 4 +- .../resources/task/types/GetTaskResponse.ts | 6 +- .../resources/task/types/GetTasksResponse.ts | 6 +- .../ticket/resources/user/client/Client.ts | 60 +++--- .../resources/user/types/GetUserResponse.ts | 4 +- .../resources/user/types/GetUsersResponse.ts | 4 +- src/environments.ts | 10 +- src/errors/{VellumError.ts => RevertError.ts} | 4 +- ...mTimeoutError.ts => RevertTimeoutError.ts} | 4 +- src/errors/index.ts | 4 +- src/index.ts | 8 +- .../channels/types/GetChannelsResponse.ts | 4 +- .../types/CreateorUpdateMessageRequest.ts | 4 +- .../types/CreateorUpdateMessageResponse.ts | 4 +- .../resources/users/types/GetUsersResponse.ts | 4 +- .../associations/types/CompanyAssociation.ts | 4 +- .../associations/types/ContactAssociation.ts | 4 +- .../associations/types/DealAssociation.ts | 4 +- .../associations/types/EventAssociation.ts | 4 +- .../associations/types/LeadAssociation.ts | 4 +- .../associations/types/TaskAssociation.ts | 4 +- .../resources/errors/types/BaseError.ts | 4 +- .../common/resources/types/types/Account.ts | 4 +- .../common/resources/types/types/App.ts | 4 +- .../resources/types/types/Connection.ts | 4 +- .../resources/types/types/ResponseStatus.ts | 4 +- .../resources/types/types/RevertUser.ts | 4 +- .../resources/types/types/StandardObject.ts | 4 +- .../resources/types/types/TicketPriority.ts | 4 +- .../resources/types/types/TicketStatus.ts | 4 +- .../common/resources/types/types/Tpid.ts | 4 +- .../common/resources/unified/types/Channel.ts | 4 +- .../unified/types/CommentTicketWrite.ts | 4 +- .../unified/types/CommonUnifiedFields.ts | 4 +- .../common/resources/unified/types/Company.ts | 4 +- .../resources/unified/types/CompanyAddress.ts | 4 +- .../common/resources/unified/types/Contact.ts | 4 +- .../resources/unified/types/ContactWrite.ts | 4 +- .../common/resources/unified/types/Deal.ts | 4 +- .../resources/unified/types/DealWrite.ts | 4 +- .../common/resources/unified/types/Event.ts | 4 +- .../resources/unified/types/EventWrite.ts | 4 +- .../common/resources/unified/types/Lead.ts | 4 +- .../resources/unified/types/LeadWrite.ts | 4 +- .../common/resources/unified/types/Message.ts | 4 +- .../common/resources/unified/types/Note.ts | 4 +- .../resources/unified/types/NoteWrite.ts | 4 +- .../common/resources/unified/types/Task.ts | 4 +- .../resources/unified/types/TaskTicket.ts | 4 +- .../unified/types/TaskTicketWrite.ts | 4 +- .../resources/unified/types/TaskWrite.ts | 4 +- .../common/resources/unified/types/User.ts | 4 +- .../resources/unified/types/UserChat.ts | 4 +- .../resources/unified/types/UserWrite.ts | 4 +- .../types/CreateConnectionWebhookRequest.ts | 4 +- .../types/CreateConnectionWebhookResponse.ts | 4 +- .../types/DeleteConnectionResponse.ts | 4 +- .../types/DeleteConnectionWebhookResponse.ts | 4 +- .../types/GetAllConnectionResponse.ts | 4 +- .../connection/types/GetConnectionResponse.ts | 4 +- .../types/GetConnectionWebhookResponse.ts | 4 +- .../client/requests/SearchCompaniesRequest.ts | 4 +- .../types/CreateOrUpdateCompanyRequest.ts | 4 +- .../types/CreateOrUpdateCompanyResponse.ts | 4 +- .../company/types/GetCompaniesResponse.ts | 4 +- .../company/types/GetCompanyResponse.ts | 4 +- .../company/types/SearchCompaniesResponse.ts | 4 +- .../client/requests/SearchContactsRequest.ts | 4 +- .../types/CreateOrUpdateContactRequest.ts | 4 +- .../types/CreateOrUpdateContactResponse.ts | 4 +- .../contact/types/GetContactResponse.ts | 4 +- .../contact/types/GetContactsResponse.ts | 4 +- .../contact/types/SearchContactsResponse.ts | 4 +- .../client/requests/SearchDealsRequest.ts | 4 +- .../deal/types/CreateOrUpdateDealRequest.ts | 4 +- .../deal/types/CreateOrUpdateDealResponse.ts | 4 +- .../resources/deal/types/GetDealResponse.ts | 4 +- .../resources/deal/types/GetDealsResponse.ts | 4 +- .../deal/types/SearchDealsResponse.ts | 4 +- .../client/requests/SearchEventsRequest.ts | 4 +- .../event/types/CreateOrUpdateEventRequest.ts | 4 +- .../types/CreateOrUpdateEventResponse.ts | 4 +- .../event/types/DeleteEventResponse.ts | 4 +- .../resources/event/types/GetEventResponse.ts | 4 +- .../event/types/GetEventsResponse.ts | 4 +- .../event/types/SearchEventsResponse.ts | 4 +- .../types/CreateFieldMappingRequestBody.ts | 4 +- .../types/CreateFieldMappingResponse.ts | 4 +- .../fieldMapping/types/FieldMappingType.ts | 4 +- .../types/GetFieldMappingResponse.ts | 4 +- .../fieldMapping/types/MappableFieldType.ts | 4 +- .../client/requests/SearchLeadsRequest.ts | 4 +- .../lead/types/CreateOrUpdateLeadRequest.ts | 4 +- .../lead/types/CreateOrUpdateLeadResponse.ts | 4 +- .../resources/lead/types/GetLeadResponse.ts | 4 +- .../resources/lead/types/GetLeadsResponse.ts | 4 +- .../lead/types/SearchLeadsResponse.ts | 4 +- .../client/requests/SearchNotesRequest.ts | 4 +- .../note/types/CreateOrUpdateNoteRequest.ts | 4 +- .../note/types/CreateOrUpdateNoteResponse.ts | 4 +- .../resources/note/types/GetNoteResponse.ts | 4 +- .../resources/note/types/GetNotesResponse.ts | 4 +- .../note/types/SearchNotesResponse.ts | 4 +- .../properties/types/FieldDetailsType.ts | 4 +- .../types/FieldDetailsTypeRequest.ts | 4 +- .../types/GetObjectPropertiesResponse.ts | 4 +- .../types/SetObjectPropertiesRequest.ts | 4 +- .../types/SetObjectPropertiesResponse.ts | 4 +- .../proxy/types/PostProxyRequestBody.ts | 4 +- .../resources/proxy/types/ProxyResponse.ts | 4 +- .../client/requests/SearchTasksRequest.ts | 4 +- .../task/types/CreateOrUpdateTaskRequest.ts | 4 +- .../task/types/CreateOrUpdateTaskResponse.ts | 4 +- .../resources/task/types/GetTaskResponse.ts | 4 +- .../resources/task/types/GetTasksResponse.ts | 4 +- .../task/types/SearchTasksResponse.ts | 4 +- .../user/types/CreateOrUpdateUserRequest.ts | 4 +- .../user/types/CreateOrUpdateUserResponse.ts | 4 +- .../resources/user/types/GetUserResponse.ts | 4 +- .../resources/user/types/GetUsersResponse.ts | 4 +- .../resources/metadata/types/CrmMetadata.ts | 4 +- .../metadata/types/CrmMetadataResponse.ts | 4 +- .../resources/metadata/types/CrmStatus.ts | 4 +- .../types/GetCollectionsResponse.ts | 4 +- .../types/CreateOrUpdateCommentRequest.ts | 4 +- .../types/CreateOrUpdateCommentResponse.ts | 4 +- .../comment/types/GetCommentResponse.ts | 4 +- .../comment/types/GetCommentsResponse.ts | 4 +- .../proxy/types/PostProxyRequestBody.ts | 4 +- .../resources/proxy/types/ProxyResponse.ts | 4 +- .../task/types/CreateOrUpdateTaskRequest.ts | 4 +- .../task/types/CreateOrUpdateTaskResponse.ts | 4 +- .../resources/task/types/GetTaskResponse.ts | 4 +- .../resources/task/types/GetTasksResponse.ts | 4 +- .../resources/user/types/GetUserResponse.ts | 4 +- .../resources/user/types/GetUsersResponse.ts | 4 +- 275 files changed, 1523 insertions(+), 1523 deletions(-) rename src/errors/{VellumError.ts => RevertError.ts} (90%) rename src/errors/{VellumTimeoutError.ts => RevertTimeoutError.ts} (53%) diff --git a/package.json b/package.json index cd0c70c..3e08a1d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@revertdotdev/node", - "version": "0.0.589", + "version": "0.0.592", "private": false, "repository": "https://github.com/revertinc/revert-node-ts", "main": "./index.js", diff --git a/src/Client.ts b/src/Client.ts index 404d2ec..bcdc0e0 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -10,9 +10,9 @@ import { Crm } from "./api/resources/crm/client/Client"; import { Metadata } from "./api/resources/metadata/client/Client"; import { Ticket } from "./api/resources/ticket/client/Client"; -export declare namespace VellumClient { +export declare namespace RevertClient { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -21,8 +21,8 @@ export declare namespace VellumClient { } } -export class VellumClient { - constructor(protected readonly _options: VellumClient.Options = {}) {} +export class RevertClient { + constructor(protected readonly _options: RevertClient.Options = {}) {} protected _chat: Chat | undefined; diff --git a/src/api/resources/chat/client/Client.ts b/src/api/resources/chat/client/Client.ts index 3c9e0e2..fc75b92 100644 --- a/src/api/resources/chat/client/Client.ts +++ b/src/api/resources/chat/client/Client.ts @@ -10,7 +10,7 @@ import { Users } from "../resources/users/client/Client"; export declare namespace Chat { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { diff --git a/src/api/resources/chat/resources/channels/client/Client.ts b/src/api/resources/chat/resources/channels/client/Client.ts index 7eb0cdc..952af5c 100644 --- a/src/api/resources/chat/resources/channels/client/Client.ts +++ b/src/api/resources/chat/resources/channels/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Channels { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,14 +25,14 @@ export class Channels { /** * Get all the channels - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getChannels( - request: Vellum.chat.GetChannelsRequest, + request: Revert.chat.GetChannelsRequest, requestOptions?: Channels.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -49,14 +49,14 @@ export class Channels { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/chat/channels" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -78,7 +78,7 @@ export class Channels { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -87,7 +87,7 @@ export class Channels { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -96,7 +96,7 @@ export class Channels { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -105,7 +105,7 @@ export class Channels { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -114,14 +114,14 @@ export class Channels { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/chat/resources/channels/types/GetChannelsResponse.ts b/src/api/resources/chat/resources/channels/types/GetChannelsResponse.ts index 1c4f419..de9082c 100644 --- a/src/api/resources/chat/resources/channels/types/GetChannelsResponse.ts +++ b/src/api/resources/chat/resources/channels/types/GetChannelsResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetChannelsResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.Channel[]; + results: Revert.common.Channel[]; } diff --git a/src/api/resources/chat/resources/messages/client/Client.ts b/src/api/resources/chat/resources/messages/client/Client.ts index 7999676..a941099 100644 --- a/src/api/resources/chat/resources/messages/client/Client.ts +++ b/src/api/resources/chat/resources/messages/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import * as serializers from "../../../../../../serialization"; import urlJoin from "url-join"; import * as errors from "../../../../../../errors"; export declare namespace Messages { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,26 +25,26 @@ export class Messages { /** * Create a new message - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} - * @throws {@link Vellum.common.BadRequestError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} + * @throws {@link Revert.common.BadRequestError} */ public async createMessage( - request: Vellum.chat.CreateMessageRequest, + request: Revert.chat.CreateMessageRequest, requestOptions?: Messages.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/chat/message" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -68,7 +68,7 @@ export class Messages { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -77,7 +77,7 @@ export class Messages { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -86,7 +86,7 @@ export class Messages { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -95,7 +95,7 @@ export class Messages { }) ); case 400: - throw new Vellum.common.BadRequestError( + throw new Revert.common.BadRequestError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -104,7 +104,7 @@ export class Messages { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -113,14 +113,14 @@ export class Messages { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/chat/resources/messages/client/requests/CreateMessageRequest.ts b/src/api/resources/chat/resources/messages/client/requests/CreateMessageRequest.ts index b770e79..a6af4a9 100644 --- a/src/api/resources/chat/resources/messages/client/requests/CreateMessageRequest.ts +++ b/src/api/resources/chat/resources/messages/client/requests/CreateMessageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateMessageRequest { /** @@ -17,5 +17,5 @@ export interface CreateMessageRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.chat.CreateorUpdateMessageRequest; + body: Revert.chat.CreateorUpdateMessageRequest; } diff --git a/src/api/resources/chat/resources/messages/types/CreateorUpdateMessageRequest.ts b/src/api/resources/chat/resources/messages/types/CreateorUpdateMessageRequest.ts index 1a4a32d..bc7bb98 100644 --- a/src/api/resources/chat/resources/messages/types/CreateorUpdateMessageRequest.ts +++ b/src/api/resources/chat/resources/messages/types/CreateorUpdateMessageRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface CreateorUpdateMessageRequest extends Vellum.common.Message {} +export interface CreateorUpdateMessageRequest extends Revert.common.Message {} diff --git a/src/api/resources/chat/resources/messages/types/CreateorUpdateMessageResponse.ts b/src/api/resources/chat/resources/messages/types/CreateorUpdateMessageResponse.ts index 58d475b..1776aac 100644 --- a/src/api/resources/chat/resources/messages/types/CreateorUpdateMessageResponse.ts +++ b/src/api/resources/chat/resources/messages/types/CreateorUpdateMessageResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateorUpdateMessageResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.Message; + status: Revert.common.ResponseStatus; + result: Revert.common.Message; } diff --git a/src/api/resources/chat/resources/users/client/Client.ts b/src/api/resources/chat/resources/users/client/Client.ts index da0f083..7e0fe1a 100644 --- a/src/api/resources/chat/resources/users/client/Client.ts +++ b/src/api/resources/chat/resources/users/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Users { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,14 +25,14 @@ export class Users { /** * Get all the users - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getUsers( - request: Vellum.chat.GetUsersRequest, + request: Revert.chat.GetUsersRequest, requestOptions?: Users.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -49,14 +49,14 @@ export class Users { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/chat/users" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -78,7 +78,7 @@ export class Users { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -87,7 +87,7 @@ export class Users { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -96,7 +96,7 @@ export class Users { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -105,7 +105,7 @@ export class Users { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -114,14 +114,14 @@ export class Users { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/chat/resources/users/types/GetUsersResponse.ts b/src/api/resources/chat/resources/users/types/GetUsersResponse.ts index 8161445..705bf84 100644 --- a/src/api/resources/chat/resources/users/types/GetUsersResponse.ts +++ b/src/api/resources/chat/resources/users/types/GetUsersResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetUsersResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.UserChat[]; + results: Revert.common.UserChat[]; } diff --git a/src/api/resources/common/resources/errors/errors/BadRequestError.ts b/src/api/resources/common/resources/errors/errors/BadRequestError.ts index 02dd596..2968f84 100644 --- a/src/api/resources/common/resources/errors/errors/BadRequestError.ts +++ b/src/api/resources/common/resources/errors/errors/BadRequestError.ts @@ -3,10 +3,10 @@ */ import * as errors from "../../../../../../errors"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export class BadRequestError extends errors.VellumError { - constructor(body: Vellum.common.BaseError) { +export class BadRequestError extends errors.RevertError { + constructor(body: Revert.common.BaseError) { super({ message: "BadRequestError", statusCode: 400, diff --git a/src/api/resources/common/resources/errors/errors/InternalServerError.ts b/src/api/resources/common/resources/errors/errors/InternalServerError.ts index f1175c2..16079ca 100644 --- a/src/api/resources/common/resources/errors/errors/InternalServerError.ts +++ b/src/api/resources/common/resources/errors/errors/InternalServerError.ts @@ -3,10 +3,10 @@ */ import * as errors from "../../../../../../errors"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export class InternalServerError extends errors.VellumError { - constructor(body: Vellum.common.BaseError) { +export class InternalServerError extends errors.RevertError { + constructor(body: Revert.common.BaseError) { super({ message: "InternalServerError", statusCode: 500, diff --git a/src/api/resources/common/resources/errors/errors/NotFoundError.ts b/src/api/resources/common/resources/errors/errors/NotFoundError.ts index 6b55f90..30a7057 100644 --- a/src/api/resources/common/resources/errors/errors/NotFoundError.ts +++ b/src/api/resources/common/resources/errors/errors/NotFoundError.ts @@ -3,10 +3,10 @@ */ import * as errors from "../../../../../../errors"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export class NotFoundError extends errors.VellumError { - constructor(body: Vellum.common.BaseError) { +export class NotFoundError extends errors.RevertError { + constructor(body: Revert.common.BaseError) { super({ message: "NotFoundError", statusCode: 404, diff --git a/src/api/resources/common/resources/errors/errors/UnAuthorizedError.ts b/src/api/resources/common/resources/errors/errors/UnAuthorizedError.ts index c7ff4e4..9925db4 100644 --- a/src/api/resources/common/resources/errors/errors/UnAuthorizedError.ts +++ b/src/api/resources/common/resources/errors/errors/UnAuthorizedError.ts @@ -3,10 +3,10 @@ */ import * as errors from "../../../../../../errors"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export class UnAuthorizedError extends errors.VellumError { - constructor(body: Vellum.common.BaseError) { +export class UnAuthorizedError extends errors.RevertError { + constructor(body: Revert.common.BaseError) { super({ message: "UnAuthorizedError", statusCode: 401, diff --git a/src/api/resources/common/resources/types/types/Account.ts b/src/api/resources/common/resources/types/types/Account.ts index afea0e1..10ff438 100644 --- a/src/api/resources/common/resources/types/types/Account.ts +++ b/src/api/resources/common/resources/types/types/Account.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface Account { id: string; @@ -11,6 +11,6 @@ export interface Account { publicToken: string; domain: string; skipWaitlist: boolean; - users?: Vellum.common.RevertUser[]; - apps?: Vellum.common.App[]; + users?: Revert.common.RevertUser[]; + apps?: Revert.common.App[]; } diff --git a/src/api/resources/common/resources/types/types/App.ts b/src/api/resources/common/resources/types/types/App.ts index 2ca3dd5..4f42219 100644 --- a/src/api/resources/common/resources/types/types/App.ts +++ b/src/api/resources/common/resources/types/types/App.ts @@ -2,16 +2,16 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface App { id: string; - tpId: Vellum.common.Tpid; + tpId: Revert.common.Tpid; scope?: string[]; appClientId?: string; appClientSecret?: string; ownerAccountPublicToken: string; - account?: Vellum.common.Account; - connections?: Vellum.common.Connection[]; + account?: Revert.common.Account; + connections?: Revert.common.Connection[]; isRevertApp: boolean; } diff --git a/src/api/resources/common/resources/types/types/Connection.ts b/src/api/resources/common/resources/types/types/Connection.ts index 9aa9bac..b18327b 100644 --- a/src/api/resources/common/resources/types/types/Connection.ts +++ b/src/api/resources/common/resources/types/types/Connection.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface Connection { - tpId: Vellum.common.Tpid; + tpId: Revert.common.Tpid; tpAccessToken: string; tpRefreshToken?: string; tpCustomerId: string; @@ -14,5 +14,5 @@ export interface Connection { ownerAccountPublicToken: string; appClientId?: string; appClientSecret?: string; - app?: Vellum.common.App; + app?: Revert.common.App; } diff --git a/src/api/resources/common/resources/types/types/RevertUser.ts b/src/api/resources/common/resources/types/types/RevertUser.ts index 1c9d1ec..d0e13ff 100644 --- a/src/api/resources/common/resources/types/types/RevertUser.ts +++ b/src/api/resources/common/resources/types/types/RevertUser.ts @@ -2,12 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface RevertUser { id: string; domain: string; email: string; accountId: string; - account?: Vellum.common.Account; + account?: Revert.common.Account; } diff --git a/src/api/resources/common/resources/unified/types/Company.ts b/src/api/resources/common/resources/unified/types/Company.ts index 508176f..46a7ffe 100644 --- a/src/api/resources/common/resources/unified/types/Company.ts +++ b/src/api/resources/common/resources/unified/types/Company.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface Company extends Vellum.common.CommonUnifiedFields { +export interface Company extends Revert.common.CommonUnifiedFields { /** Name of the company in a CRM. */ name: string; /** Industry associated with this company. (not supported by pipedrive) */ @@ -18,5 +18,5 @@ export interface Company extends Vellum.common.CommonUnifiedFields { /** Phone number of the company. (not supported by pipedrive) */ phone: string; /** Company address. */ - address: Vellum.common.CompanyAddress; + address: Revert.common.CompanyAddress; } diff --git a/src/api/resources/common/resources/unified/types/Contact.ts b/src/api/resources/common/resources/unified/types/Contact.ts index 73a516f..e8d3798 100644 --- a/src/api/resources/common/resources/unified/types/Contact.ts +++ b/src/api/resources/common/resources/unified/types/Contact.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface Contact extends Vellum.common.CommonUnifiedFields, Vellum.common.ContactWrite {} +export interface Contact extends Revert.common.CommonUnifiedFields, Revert.common.ContactWrite {} diff --git a/src/api/resources/common/resources/unified/types/ContactWrite.ts b/src/api/resources/common/resources/unified/types/ContactWrite.ts index cbd5912..1b7672a 100644 --- a/src/api/resources/common/resources/unified/types/ContactWrite.ts +++ b/src/api/resources/common/resources/unified/types/ContactWrite.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface ContactWrite { /** The first name of the contact in a CRM. */ @@ -13,5 +13,5 @@ export interface ContactWrite { phone: string; /** The email of the contact in a CRM. */ email: string; - associations?: Vellum.common.ContactAssociation; + associations?: Revert.common.ContactAssociation; } diff --git a/src/api/resources/common/resources/unified/types/Deal.ts b/src/api/resources/common/resources/unified/types/Deal.ts index 8475d0e..421a693 100644 --- a/src/api/resources/common/resources/unified/types/Deal.ts +++ b/src/api/resources/common/resources/unified/types/Deal.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface Deal extends Vellum.common.CommonUnifiedFields, Vellum.common.DealWrite {} +export interface Deal extends Revert.common.CommonUnifiedFields, Revert.common.DealWrite {} diff --git a/src/api/resources/common/resources/unified/types/DealWrite.ts b/src/api/resources/common/resources/unified/types/DealWrite.ts index 0334232..58f355c 100644 --- a/src/api/resources/common/resources/unified/types/DealWrite.ts +++ b/src/api/resources/common/resources/unified/types/DealWrite.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface DealWrite { /** The deal amount mentioned in the CRM for this deal. */ @@ -19,5 +19,5 @@ export interface DealWrite { isWon: boolean; /** Probability of the deal getting closed, a decimal number between 0 to 1 (inclusive). */ probability: number; - associations?: Vellum.common.DealAssociation; + associations?: Revert.common.DealAssociation; } diff --git a/src/api/resources/common/resources/unified/types/Event.ts b/src/api/resources/common/resources/unified/types/Event.ts index 3efe2df..0aa84c6 100644 --- a/src/api/resources/common/resources/unified/types/Event.ts +++ b/src/api/resources/common/resources/unified/types/Event.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface Event extends Vellum.common.CommonUnifiedFields, Vellum.common.EventWrite {} +export interface Event extends Revert.common.CommonUnifiedFields, Revert.common.EventWrite {} diff --git a/src/api/resources/common/resources/unified/types/EventWrite.ts b/src/api/resources/common/resources/unified/types/EventWrite.ts index 9b56754..54a1329 100644 --- a/src/api/resources/common/resources/unified/types/EventWrite.ts +++ b/src/api/resources/common/resources/unified/types/EventWrite.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface EventWrite { /** The type of the event in the CRM. */ @@ -19,5 +19,5 @@ export interface EventWrite { description: string; /** The location of the event/meeting. */ location: string; - associations?: Vellum.common.EventAssociation; + associations?: Revert.common.EventAssociation; } diff --git a/src/api/resources/common/resources/unified/types/Lead.ts b/src/api/resources/common/resources/unified/types/Lead.ts index 4405d5d..e93756c 100644 --- a/src/api/resources/common/resources/unified/types/Lead.ts +++ b/src/api/resources/common/resources/unified/types/Lead.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface Lead extends Vellum.common.CommonUnifiedFields, Vellum.common.LeadWrite {} +export interface Lead extends Revert.common.CommonUnifiedFields, Revert.common.LeadWrite {} diff --git a/src/api/resources/common/resources/unified/types/LeadWrite.ts b/src/api/resources/common/resources/unified/types/LeadWrite.ts index ee29071..3380c60 100644 --- a/src/api/resources/common/resources/unified/types/LeadWrite.ts +++ b/src/api/resources/common/resources/unified/types/LeadWrite.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface LeadWrite { /** The first name of the lead in a CRM. */ @@ -13,5 +13,5 @@ export interface LeadWrite { phone: string; /** The email of the lead in a CRM. */ email: string; - associations?: Vellum.common.LeadAssociation; + associations?: Revert.common.LeadAssociation; } diff --git a/src/api/resources/common/resources/unified/types/Note.ts b/src/api/resources/common/resources/unified/types/Note.ts index 3720be1..a150fdc 100644 --- a/src/api/resources/common/resources/unified/types/Note.ts +++ b/src/api/resources/common/resources/unified/types/Note.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface Note extends Vellum.common.CommonUnifiedFields, Vellum.common.NoteWrite {} +export interface Note extends Revert.common.CommonUnifiedFields, Revert.common.NoteWrite {} diff --git a/src/api/resources/common/resources/unified/types/NoteWrite.ts b/src/api/resources/common/resources/unified/types/NoteWrite.ts index 591fd4e..754c6d8 100644 --- a/src/api/resources/common/resources/unified/types/NoteWrite.ts +++ b/src/api/resources/common/resources/unified/types/NoteWrite.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface NoteWrite { /** The contents of the note in plain text or HTML. */ content: string; - associations?: Vellum.common.DealAssociation; + associations?: Revert.common.DealAssociation; } diff --git a/src/api/resources/common/resources/unified/types/Task.ts b/src/api/resources/common/resources/unified/types/Task.ts index 2aec0d7..7d9a87f 100644 --- a/src/api/resources/common/resources/unified/types/Task.ts +++ b/src/api/resources/common/resources/unified/types/Task.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface Task extends Vellum.common.CommonUnifiedFields, Vellum.common.TaskWrite {} +export interface Task extends Revert.common.CommonUnifiedFields, Revert.common.TaskWrite {} diff --git a/src/api/resources/common/resources/unified/types/TaskTicket.ts b/src/api/resources/common/resources/unified/types/TaskTicket.ts index a17f2a3..c740e7f 100644 --- a/src/api/resources/common/resources/unified/types/TaskTicket.ts +++ b/src/api/resources/common/resources/unified/types/TaskTicket.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface TaskTicket extends Vellum.common.CommonUnifiedFields, Vellum.common.TaskTicketWrite {} +export interface TaskTicket extends Revert.common.CommonUnifiedFields, Revert.common.TaskTicketWrite {} diff --git a/src/api/resources/common/resources/unified/types/TaskTicketWrite.ts b/src/api/resources/common/resources/unified/types/TaskTicketWrite.ts index 21d96d0..9b3d7cf 100644 --- a/src/api/resources/common/resources/unified/types/TaskTicketWrite.ts +++ b/src/api/resources/common/resources/unified/types/TaskTicketWrite.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface TaskTicketWrite { /** Name of the task. */ @@ -12,9 +12,9 @@ export interface TaskTicketWrite { /** Description of the task. */ description: string; /** Current status of the task. */ - status: Vellum.common.TicketStatus; + status: Revert.common.TicketStatus; /** Priority of the task. */ - priority: Vellum.common.TicketPriority; + priority: Revert.common.TicketPriority; /** ID of the task creator. */ creatorId: string; /** Due date for the given task. */ diff --git a/src/api/resources/common/resources/unified/types/TaskWrite.ts b/src/api/resources/common/resources/unified/types/TaskWrite.ts index 9d58bc2..a3e7dda 100644 --- a/src/api/resources/common/resources/unified/types/TaskWrite.ts +++ b/src/api/resources/common/resources/unified/types/TaskWrite.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface TaskWrite { /** Subject of the task. */ @@ -15,5 +15,5 @@ export interface TaskWrite { status: string; /** The date when this task is due. */ dueDate?: unknown; - associations?: Vellum.common.TaskAssociation; + associations?: Revert.common.TaskAssociation; } diff --git a/src/api/resources/common/resources/unified/types/User.ts b/src/api/resources/common/resources/unified/types/User.ts index 95d3755..4abdc6d 100644 --- a/src/api/resources/common/resources/unified/types/User.ts +++ b/src/api/resources/common/resources/unified/types/User.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface User extends Vellum.common.CommonUnifiedFields, Vellum.common.UserWrite {} +export interface User extends Revert.common.CommonUnifiedFields, Revert.common.UserWrite {} diff --git a/src/api/resources/connection/client/Client.ts b/src/api/resources/connection/client/Client.ts index fd62f62..db9c4bc 100644 --- a/src/api/resources/connection/client/Client.ts +++ b/src/api/resources/connection/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; -import * as Vellum from "../../.."; +import * as Revert from "../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../serialization"; import * as errors from "../../../../errors"; export declare namespace Connection { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,25 +25,25 @@ export class Connection { /** * Get details of a connection for a specific tenant. - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getConnection( - request: Vellum.GetConnectionRequest, + request: Revert.GetConnectionRequest, requestOptions?: Connection.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xApiVersion, xRevertTId } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "connection" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-api-version": xApiVersion != null ? xApiVersion : undefined, "x-revert-t-id": xRevertTId, @@ -64,7 +64,7 @@ export class Connection { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -73,7 +73,7 @@ export class Connection { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -82,7 +82,7 @@ export class Connection { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -91,7 +91,7 @@ export class Connection { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -100,14 +100,14 @@ export class Connection { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -115,25 +115,25 @@ export class Connection { /** * Delete a connection for a specific tenant. - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async deleteConnection( - request: Vellum.DeleteConnectionRequest, + request: Revert.DeleteConnectionRequest, requestOptions?: Connection.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xApiVersion, xRevertTId } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "connection" ), method: "DELETE", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-api-version": xApiVersion != null ? xApiVersion : undefined, "x-revert-t-id": xRevertTId, @@ -154,7 +154,7 @@ export class Connection { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -163,7 +163,7 @@ export class Connection { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -172,7 +172,7 @@ export class Connection { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -181,7 +181,7 @@ export class Connection { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -190,14 +190,14 @@ export class Connection { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -205,25 +205,25 @@ export class Connection { /** * Get details of all the connection for a specific account at Revert. - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getAllConnections( - request: Vellum.GetAllConnectionRequest, + request: Revert.GetAllConnectionRequest, requestOptions?: Connection.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xApiVersion } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "connection/all" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-api-version": xApiVersion != null ? xApiVersion : undefined, }, @@ -243,7 +243,7 @@ export class Connection { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -252,7 +252,7 @@ export class Connection { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -261,7 +261,7 @@ export class Connection { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -270,7 +270,7 @@ export class Connection { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -279,14 +279,14 @@ export class Connection { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -294,25 +294,25 @@ export class Connection { /** * Create a webhook endpoint that listens to a connection events of a specific tenant. - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createWebhook( - request: Vellum.CreateWebhookRequest, + request: Revert.CreateWebhookRequest, requestOptions?: Connection.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xApiVersion, xRevertTId, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "connection/webhook" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-api-version": xApiVersion != null ? xApiVersion : undefined, "x-revert-t-id": xRevertTId, @@ -336,7 +336,7 @@ export class Connection { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -345,7 +345,7 @@ export class Connection { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -354,7 +354,7 @@ export class Connection { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -363,7 +363,7 @@ export class Connection { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -372,14 +372,14 @@ export class Connection { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -387,25 +387,25 @@ export class Connection { /** * Get details of a connection webhook for a specific tenant. - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getWebhook( - request: Vellum.GetConnectionWebhookRequest, + request: Revert.GetConnectionWebhookRequest, requestOptions?: Connection.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xApiVersion, xRevertTId } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "connection/webhook" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-api-version": xApiVersion != null ? xApiVersion : undefined, "x-revert-t-id": xRevertTId, @@ -426,7 +426,7 @@ export class Connection { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -435,7 +435,7 @@ export class Connection { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -444,7 +444,7 @@ export class Connection { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -453,7 +453,7 @@ export class Connection { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -462,14 +462,14 @@ export class Connection { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -477,25 +477,25 @@ export class Connection { /** * Delete the connection webhook for a specific tenant. - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async deleteWebhook( - request: Vellum.DeleteConnectionWebhookRequest, + request: Revert.DeleteConnectionWebhookRequest, requestOptions?: Connection.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xApiVersion, xRevertTId } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "connection/webhook" ), method: "DELETE", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-api-version": xApiVersion != null ? xApiVersion : undefined, "x-revert-t-id": xRevertTId, @@ -516,7 +516,7 @@ export class Connection { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -525,7 +525,7 @@ export class Connection { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -534,7 +534,7 @@ export class Connection { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -543,7 +543,7 @@ export class Connection { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -552,14 +552,14 @@ export class Connection { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/connection/client/requests/CreateWebhookRequest.ts b/src/api/resources/connection/client/requests/CreateWebhookRequest.ts index fcf218b..fada5a3 100644 --- a/src/api/resources/connection/client/requests/CreateWebhookRequest.ts +++ b/src/api/resources/connection/client/requests/CreateWebhookRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../.."; +import * as Revert from "../../../.."; export interface CreateWebhookRequest { /** @@ -17,5 +17,5 @@ export interface CreateWebhookRequest { * The unique customer id used when the customer linked their account. */ xRevertTId: string; - body: Vellum.CreateConnectionWebhookRequest; + body: Revert.CreateConnectionWebhookRequest; } diff --git a/src/api/resources/connection/types/CreateConnectionWebhookResponse.ts b/src/api/resources/connection/types/CreateConnectionWebhookResponse.ts index 3e067fa..8d17094 100644 --- a/src/api/resources/connection/types/CreateConnectionWebhookResponse.ts +++ b/src/api/resources/connection/types/CreateConnectionWebhookResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../.."; +import * as Revert from "../../.."; export interface CreateConnectionWebhookResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; webhookUrl: string; createdAt: string; secret: string; diff --git a/src/api/resources/connection/types/DeleteConnectionResponse.ts b/src/api/resources/connection/types/DeleteConnectionResponse.ts index b75563a..5016323 100644 --- a/src/api/resources/connection/types/DeleteConnectionResponse.ts +++ b/src/api/resources/connection/types/DeleteConnectionResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../.."; +import * as Revert from "../../.."; export interface DeleteConnectionResponse { - status: Vellum.common.ResponseStatus; - deleted: Vellum.common.Connection; + status: Revert.common.ResponseStatus; + deleted: Revert.common.Connection; } diff --git a/src/api/resources/connection/types/DeleteConnectionWebhookResponse.ts b/src/api/resources/connection/types/DeleteConnectionWebhookResponse.ts index 95dc0fb..951f992 100644 --- a/src/api/resources/connection/types/DeleteConnectionWebhookResponse.ts +++ b/src/api/resources/connection/types/DeleteConnectionWebhookResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../.."; +import * as Revert from "../../.."; export interface DeleteConnectionWebhookResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; error?: string; errorMessage?: unknown; } diff --git a/src/api/resources/connection/types/GetAllConnectionResponse.ts b/src/api/resources/connection/types/GetAllConnectionResponse.ts index 364ef9d..4e8f4a1 100644 --- a/src/api/resources/connection/types/GetAllConnectionResponse.ts +++ b/src/api/resources/connection/types/GetAllConnectionResponse.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../.."; +import * as Revert from "../../.."; -export type GetAllConnectionResponse = Vellum.common.Connection[]; +export type GetAllConnectionResponse = Revert.common.Connection[]; diff --git a/src/api/resources/connection/types/GetConnectionResponse.ts b/src/api/resources/connection/types/GetConnectionResponse.ts index 8bc65e2..f1f6a41 100644 --- a/src/api/resources/connection/types/GetConnectionResponse.ts +++ b/src/api/resources/connection/types/GetConnectionResponse.ts @@ -2,8 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../.."; +import * as Revert from "../../.."; -export interface GetConnectionResponse extends Vellum.common.Connection { +export interface GetConnectionResponse extends Revert.common.Connection { error?: string; } diff --git a/src/api/resources/connection/types/GetConnectionWebhookResponse.ts b/src/api/resources/connection/types/GetConnectionWebhookResponse.ts index 270685c..4dc6948 100644 --- a/src/api/resources/connection/types/GetConnectionWebhookResponse.ts +++ b/src/api/resources/connection/types/GetConnectionWebhookResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../.."; +import * as Revert from "../../.."; export interface GetConnectionWebhookResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; webhook?: unknown; error?: string; errorMessage?: unknown; diff --git a/src/api/resources/crm/client/Client.ts b/src/api/resources/crm/client/Client.ts index be89551..5db9491 100644 --- a/src/api/resources/crm/client/Client.ts +++ b/src/api/resources/crm/client/Client.ts @@ -18,7 +18,7 @@ import { User } from "../resources/user/client/Client"; export declare namespace Crm { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { diff --git a/src/api/resources/crm/resources/company/client/Client.ts b/src/api/resources/crm/resources/company/client/Client.ts index f618359..a54f512 100644 --- a/src/api/resources/crm/resources/company/client/Client.ts +++ b/src/api/resources/crm/resources/company/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Company { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class Company { /** * Get details of a company - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getCompany( id: string, - request: Vellum.crm.GetCompanyRequest, + request: Revert.crm.GetCompanyRequest, requestOptions?: Company.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class Company { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/companies/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class Company { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class Company { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class Company { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class Company { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class Company { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class Company { /** * Get all the companies - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getCompanies( - request: Vellum.crm.GetCompaniesRequest, + request: Revert.crm.GetCompaniesRequest, requestOptions?: Company.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class Company { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/companies" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class Company { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class Company { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class Company { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class Company { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class Company { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -226,25 +226,25 @@ export class Company { /** * Create a new company - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createCompany( - request: Vellum.crm.CreateCompanyRequest, + request: Revert.crm.CreateCompanyRequest, requestOptions?: Company.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/companies" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -268,7 +268,7 @@ export class Company { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -277,7 +277,7 @@ export class Company { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -286,7 +286,7 @@ export class Company { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -295,7 +295,7 @@ export class Company { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -304,14 +304,14 @@ export class Company { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -319,26 +319,26 @@ export class Company { /** * Update a company - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async updateCompany( id: string, - request: Vellum.crm.UpdateCompanyRequest, + request: Revert.crm.UpdateCompanyRequest, requestOptions?: Company.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/companies/${id}` ), method: "PATCH", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -360,7 +360,7 @@ export class Company { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -369,7 +369,7 @@ export class Company { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -378,7 +378,7 @@ export class Company { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -387,7 +387,7 @@ export class Company { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -396,14 +396,14 @@ export class Company { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -411,14 +411,14 @@ export class Company { /** * Search for companies - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async searchCompanies( - request: Vellum.crm.SearchCompaniesRequest, + request: Revert.crm.SearchCompaniesRequest, requestOptions?: Company.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; if (fields != null) { @@ -427,14 +427,14 @@ export class Company { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/companies/search" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -457,7 +457,7 @@ export class Company { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -466,7 +466,7 @@ export class Company { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -475,7 +475,7 @@ export class Company { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -484,7 +484,7 @@ export class Company { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -493,14 +493,14 @@ export class Company { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/company/client/requests/CreateCompanyRequest.ts b/src/api/resources/crm/resources/company/client/requests/CreateCompanyRequest.ts index 8823c1a..dce1b48 100644 --- a/src/api/resources/crm/resources/company/client/requests/CreateCompanyRequest.ts +++ b/src/api/resources/crm/resources/company/client/requests/CreateCompanyRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateCompanyRequest { /** @@ -17,5 +17,5 @@ export interface CreateCompanyRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateCompanyRequest; + body: Revert.crm.CreateOrUpdateCompanyRequest; } diff --git a/src/api/resources/crm/resources/company/client/requests/UpdateCompanyRequest.ts b/src/api/resources/crm/resources/company/client/requests/UpdateCompanyRequest.ts index 82ebaf4..0db80c0 100644 --- a/src/api/resources/crm/resources/company/client/requests/UpdateCompanyRequest.ts +++ b/src/api/resources/crm/resources/company/client/requests/UpdateCompanyRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface UpdateCompanyRequest { /** @@ -17,5 +17,5 @@ export interface UpdateCompanyRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.common.Company; + body: Revert.common.Company; } diff --git a/src/api/resources/crm/resources/company/types/CreateOrUpdateCompanyRequest.ts b/src/api/resources/crm/resources/company/types/CreateOrUpdateCompanyRequest.ts index c6c16c3..4da7ae0 100644 --- a/src/api/resources/crm/resources/company/types/CreateOrUpdateCompanyRequest.ts +++ b/src/api/resources/crm/resources/company/types/CreateOrUpdateCompanyRequest.ts @@ -2,8 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface CreateOrUpdateCompanyRequest extends Vellum.common.Company { - associations?: Vellum.common.CompanyAssociation; +export interface CreateOrUpdateCompanyRequest extends Revert.common.Company { + associations?: Revert.common.CompanyAssociation; } diff --git a/src/api/resources/crm/resources/company/types/CreateOrUpdateCompanyResponse.ts b/src/api/resources/crm/resources/company/types/CreateOrUpdateCompanyResponse.ts index 4586d4d..d7fa2aa 100644 --- a/src/api/resources/crm/resources/company/types/CreateOrUpdateCompanyResponse.ts +++ b/src/api/resources/crm/resources/company/types/CreateOrUpdateCompanyResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateCompanyResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/crm/resources/company/types/GetCompaniesResponse.ts b/src/api/resources/crm/resources/company/types/GetCompaniesResponse.ts index 4dbbdd5..622bb55 100644 --- a/src/api/resources/crm/resources/company/types/GetCompaniesResponse.ts +++ b/src/api/resources/crm/resources/company/types/GetCompaniesResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetCompaniesResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.Company[]; + results: Revert.common.Company[]; } diff --git a/src/api/resources/crm/resources/company/types/GetCompanyResponse.ts b/src/api/resources/crm/resources/company/types/GetCompanyResponse.ts index 9c221ef..74ace8f 100644 --- a/src/api/resources/crm/resources/company/types/GetCompanyResponse.ts +++ b/src/api/resources/crm/resources/company/types/GetCompanyResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetCompanyResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.Company; + status: Revert.common.ResponseStatus; + result: Revert.common.Company; } diff --git a/src/api/resources/crm/resources/company/types/SearchCompaniesResponse.ts b/src/api/resources/crm/resources/company/types/SearchCompaniesResponse.ts index c7ba686..99e32eb 100644 --- a/src/api/resources/crm/resources/company/types/SearchCompaniesResponse.ts +++ b/src/api/resources/crm/resources/company/types/SearchCompaniesResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface SearchCompaniesResponse { - status: Vellum.common.ResponseStatus; - results: Vellum.common.Company[]; + status: Revert.common.ResponseStatus; + results: Revert.common.Company[]; } diff --git a/src/api/resources/crm/resources/contact/client/Client.ts b/src/api/resources/crm/resources/contact/client/Client.ts index cb36d67..30a30f8 100644 --- a/src/api/resources/crm/resources/contact/client/Client.ts +++ b/src/api/resources/crm/resources/contact/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Contact { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class Contact { /** * Get details of a contact - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getContact( id: string, - request: Vellum.crm.GetContactRequest, + request: Revert.crm.GetContactRequest, requestOptions?: Contact.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class Contact { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/contacts/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class Contact { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class Contact { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class Contact { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class Contact { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class Contact { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class Contact { /** * Get all the contacts - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getContacts( - request: Vellum.crm.GetContactsRequest, + request: Revert.crm.GetContactsRequest, requestOptions?: Contact.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class Contact { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/contacts" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class Contact { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class Contact { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class Contact { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class Contact { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class Contact { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -226,26 +226,26 @@ export class Contact { /** * Create a new contact - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} - * @throws {@link Vellum.common.BadRequestError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} + * @throws {@link Revert.common.BadRequestError} */ public async createContact( - request: Vellum.crm.CreateContactRequest, + request: Revert.crm.CreateContactRequest, requestOptions?: Contact.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/contacts" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -269,7 +269,7 @@ export class Contact { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -278,7 +278,7 @@ export class Contact { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -287,7 +287,7 @@ export class Contact { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -296,7 +296,7 @@ export class Contact { }) ); case 400: - throw new Vellum.common.BadRequestError( + throw new Revert.common.BadRequestError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -305,7 +305,7 @@ export class Contact { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -314,14 +314,14 @@ export class Contact { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -329,27 +329,27 @@ export class Contact { /** * Update a contact - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} - * @throws {@link Vellum.common.BadRequestError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} + * @throws {@link Revert.common.BadRequestError} */ public async updateContact( id: string, - request: Vellum.crm.UpdateContactRequest, + request: Revert.crm.UpdateContactRequest, requestOptions?: Contact.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/contacts/${id}` ), method: "PATCH", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -373,7 +373,7 @@ export class Contact { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -382,7 +382,7 @@ export class Contact { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -391,7 +391,7 @@ export class Contact { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -400,7 +400,7 @@ export class Contact { }) ); case 400: - throw new Vellum.common.BadRequestError( + throw new Revert.common.BadRequestError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -409,7 +409,7 @@ export class Contact { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -418,14 +418,14 @@ export class Contact { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -433,14 +433,14 @@ export class Contact { /** * Search for contacts - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async searchContacts( - request: Vellum.crm.SearchContactsRequest, + request: Revert.crm.SearchContactsRequest, requestOptions?: Contact.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; if (fields != null) { @@ -449,14 +449,14 @@ export class Contact { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/contacts/search" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -479,7 +479,7 @@ export class Contact { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -488,7 +488,7 @@ export class Contact { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -497,7 +497,7 @@ export class Contact { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -506,7 +506,7 @@ export class Contact { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -515,14 +515,14 @@ export class Contact { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/contact/client/requests/CreateContactRequest.ts b/src/api/resources/crm/resources/contact/client/requests/CreateContactRequest.ts index b90e564..84231fe 100644 --- a/src/api/resources/crm/resources/contact/client/requests/CreateContactRequest.ts +++ b/src/api/resources/crm/resources/contact/client/requests/CreateContactRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateContactRequest { /** @@ -17,5 +17,5 @@ export interface CreateContactRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateContactRequest; + body: Revert.crm.CreateOrUpdateContactRequest; } diff --git a/src/api/resources/crm/resources/contact/client/requests/UpdateContactRequest.ts b/src/api/resources/crm/resources/contact/client/requests/UpdateContactRequest.ts index e2a2fb2..06b0629 100644 --- a/src/api/resources/crm/resources/contact/client/requests/UpdateContactRequest.ts +++ b/src/api/resources/crm/resources/contact/client/requests/UpdateContactRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface UpdateContactRequest { /** @@ -17,5 +17,5 @@ export interface UpdateContactRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateContactRequest; + body: Revert.crm.CreateOrUpdateContactRequest; } diff --git a/src/api/resources/crm/resources/contact/types/CreateOrUpdateContactRequest.ts b/src/api/resources/crm/resources/contact/types/CreateOrUpdateContactRequest.ts index a7b35df..57460cf 100644 --- a/src/api/resources/crm/resources/contact/types/CreateOrUpdateContactRequest.ts +++ b/src/api/resources/crm/resources/contact/types/CreateOrUpdateContactRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export type CreateOrUpdateContactRequest = Vellum.common.ContactWrite; +export type CreateOrUpdateContactRequest = Revert.common.ContactWrite; diff --git a/src/api/resources/crm/resources/contact/types/CreateOrUpdateContactResponse.ts b/src/api/resources/crm/resources/contact/types/CreateOrUpdateContactResponse.ts index ee955bb..3badbb4 100644 --- a/src/api/resources/crm/resources/contact/types/CreateOrUpdateContactResponse.ts +++ b/src/api/resources/crm/resources/contact/types/CreateOrUpdateContactResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateContactResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/crm/resources/contact/types/GetContactResponse.ts b/src/api/resources/crm/resources/contact/types/GetContactResponse.ts index 60e9c77..848f473 100644 --- a/src/api/resources/crm/resources/contact/types/GetContactResponse.ts +++ b/src/api/resources/crm/resources/contact/types/GetContactResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetContactResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.Contact; + status: Revert.common.ResponseStatus; + result: Revert.common.Contact; } diff --git a/src/api/resources/crm/resources/contact/types/GetContactsResponse.ts b/src/api/resources/crm/resources/contact/types/GetContactsResponse.ts index 2f7e34c..bb72f1e 100644 --- a/src/api/resources/crm/resources/contact/types/GetContactsResponse.ts +++ b/src/api/resources/crm/resources/contact/types/GetContactsResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetContactsResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.Contact[]; + results: Revert.common.Contact[]; } diff --git a/src/api/resources/crm/resources/contact/types/SearchContactsResponse.ts b/src/api/resources/crm/resources/contact/types/SearchContactsResponse.ts index a14a193..df6ee49 100644 --- a/src/api/resources/crm/resources/contact/types/SearchContactsResponse.ts +++ b/src/api/resources/crm/resources/contact/types/SearchContactsResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface SearchContactsResponse { - status: Vellum.common.ResponseStatus; - results: Vellum.common.Contact[]; + status: Revert.common.ResponseStatus; + results: Revert.common.Contact[]; } diff --git a/src/api/resources/crm/resources/deal/client/Client.ts b/src/api/resources/crm/resources/deal/client/Client.ts index 63f04f3..5b6dbb3 100644 --- a/src/api/resources/crm/resources/deal/client/Client.ts +++ b/src/api/resources/crm/resources/deal/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Deal { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class Deal { /** * Get details of a deal - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getDeal( id: string, - request: Vellum.crm.GetDealRequest, + request: Revert.crm.GetDealRequest, requestOptions?: Deal.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class Deal { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/deals/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class Deal { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class Deal { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class Deal { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class Deal { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class Deal { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class Deal { /** * Get all the deals - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getDeals( - request: Vellum.crm.GetDealsRequest, + request: Revert.crm.GetDealsRequest, requestOptions?: Deal.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class Deal { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/deals" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class Deal { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class Deal { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class Deal { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class Deal { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class Deal { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -226,25 +226,25 @@ export class Deal { /** * Create a new deal - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createDeal( - request: Vellum.crm.CreateDealRequest, + request: Revert.crm.CreateDealRequest, requestOptions?: Deal.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/deals" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -268,7 +268,7 @@ export class Deal { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -277,7 +277,7 @@ export class Deal { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -286,7 +286,7 @@ export class Deal { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -295,7 +295,7 @@ export class Deal { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -304,14 +304,14 @@ export class Deal { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -319,26 +319,26 @@ export class Deal { /** * Update a deal - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async updateDeal( id: string, - request: Vellum.crm.UpdateDealRequest, + request: Revert.crm.UpdateDealRequest, requestOptions?: Deal.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/deals/${id}` ), method: "PATCH", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -362,7 +362,7 @@ export class Deal { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -371,7 +371,7 @@ export class Deal { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -380,7 +380,7 @@ export class Deal { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -389,7 +389,7 @@ export class Deal { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -398,14 +398,14 @@ export class Deal { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -413,14 +413,14 @@ export class Deal { /** * Search for deals - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async searchDeals( - request: Vellum.crm.SearchDealsRequest, + request: Revert.crm.SearchDealsRequest, requestOptions?: Deal.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; if (fields != null) { @@ -429,14 +429,14 @@ export class Deal { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/deals/search" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -459,7 +459,7 @@ export class Deal { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -468,7 +468,7 @@ export class Deal { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -477,7 +477,7 @@ export class Deal { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -486,7 +486,7 @@ export class Deal { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -495,14 +495,14 @@ export class Deal { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/deal/client/requests/CreateDealRequest.ts b/src/api/resources/crm/resources/deal/client/requests/CreateDealRequest.ts index 7384fa2..c2e5ee9 100644 --- a/src/api/resources/crm/resources/deal/client/requests/CreateDealRequest.ts +++ b/src/api/resources/crm/resources/deal/client/requests/CreateDealRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateDealRequest { /** @@ -17,5 +17,5 @@ export interface CreateDealRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateDealRequest; + body: Revert.crm.CreateOrUpdateDealRequest; } diff --git a/src/api/resources/crm/resources/deal/client/requests/UpdateDealRequest.ts b/src/api/resources/crm/resources/deal/client/requests/UpdateDealRequest.ts index 41003ad..2cbcf63 100644 --- a/src/api/resources/crm/resources/deal/client/requests/UpdateDealRequest.ts +++ b/src/api/resources/crm/resources/deal/client/requests/UpdateDealRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface UpdateDealRequest { /** @@ -17,5 +17,5 @@ export interface UpdateDealRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateDealRequest; + body: Revert.crm.CreateOrUpdateDealRequest; } diff --git a/src/api/resources/crm/resources/deal/types/CreateOrUpdateDealRequest.ts b/src/api/resources/crm/resources/deal/types/CreateOrUpdateDealRequest.ts index 3501521..539ba3c 100644 --- a/src/api/resources/crm/resources/deal/types/CreateOrUpdateDealRequest.ts +++ b/src/api/resources/crm/resources/deal/types/CreateOrUpdateDealRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface CreateOrUpdateDealRequest extends Vellum.common.DealWrite {} +export interface CreateOrUpdateDealRequest extends Revert.common.DealWrite {} diff --git a/src/api/resources/crm/resources/deal/types/CreateOrUpdateDealResponse.ts b/src/api/resources/crm/resources/deal/types/CreateOrUpdateDealResponse.ts index d67df85..abcf2c8 100644 --- a/src/api/resources/crm/resources/deal/types/CreateOrUpdateDealResponse.ts +++ b/src/api/resources/crm/resources/deal/types/CreateOrUpdateDealResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateDealResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/crm/resources/deal/types/GetDealResponse.ts b/src/api/resources/crm/resources/deal/types/GetDealResponse.ts index fdc7563..b6f96ea 100644 --- a/src/api/resources/crm/resources/deal/types/GetDealResponse.ts +++ b/src/api/resources/crm/resources/deal/types/GetDealResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetDealResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.Deal; + status: Revert.common.ResponseStatus; + result: Revert.common.Deal; } diff --git a/src/api/resources/crm/resources/deal/types/GetDealsResponse.ts b/src/api/resources/crm/resources/deal/types/GetDealsResponse.ts index e277876..018419b 100644 --- a/src/api/resources/crm/resources/deal/types/GetDealsResponse.ts +++ b/src/api/resources/crm/resources/deal/types/GetDealsResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetDealsResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.Deal[]; + results: Revert.common.Deal[]; } diff --git a/src/api/resources/crm/resources/deal/types/SearchDealsResponse.ts b/src/api/resources/crm/resources/deal/types/SearchDealsResponse.ts index 7731d05..e60f67e 100644 --- a/src/api/resources/crm/resources/deal/types/SearchDealsResponse.ts +++ b/src/api/resources/crm/resources/deal/types/SearchDealsResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface SearchDealsResponse { - status: Vellum.common.ResponseStatus; - results: Vellum.common.Deal[]; + status: Revert.common.ResponseStatus; + results: Revert.common.Deal[]; } diff --git a/src/api/resources/crm/resources/event/client/Client.ts b/src/api/resources/crm/resources/event/client/Client.ts index 77b4667..a1d8076 100644 --- a/src/api/resources/crm/resources/event/client/Client.ts +++ b/src/api/resources/crm/resources/event/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Event { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class Event { /** * Get details of a event - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getEvent( id: string, - request: Vellum.crm.GetEventRequest, + request: Revert.crm.GetEventRequest, requestOptions?: Event.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class Event { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/events/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class Event { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class Event { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class Event { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class Event { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class Event { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class Event { /** * Get all the events - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getEvents( - request: Vellum.crm.GetEventsRequest, + request: Revert.crm.GetEventsRequest, requestOptions?: Event.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class Event { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/events" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class Event { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class Event { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class Event { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class Event { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class Event { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -226,25 +226,25 @@ export class Event { /** * Create a new event - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createEvent( - request: Vellum.crm.CreateEventRequest, + request: Revert.crm.CreateEventRequest, requestOptions?: Event.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/events" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -268,7 +268,7 @@ export class Event { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -277,7 +277,7 @@ export class Event { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -286,7 +286,7 @@ export class Event { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -295,7 +295,7 @@ export class Event { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -304,14 +304,14 @@ export class Event { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -319,26 +319,26 @@ export class Event { /** * Update a event - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async updateEvent( id: string, - request: Vellum.crm.UpdateEventRequest, + request: Revert.crm.UpdateEventRequest, requestOptions?: Event.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/events/${id}` ), method: "PATCH", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -362,7 +362,7 @@ export class Event { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -371,7 +371,7 @@ export class Event { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -380,7 +380,7 @@ export class Event { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -389,7 +389,7 @@ export class Event { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -398,14 +398,14 @@ export class Event { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -413,14 +413,14 @@ export class Event { /** * Search for events - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async searchEvents( - request: Vellum.crm.SearchEventsRequest, + request: Revert.crm.SearchEventsRequest, requestOptions?: Event.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; if (fields != null) { @@ -429,14 +429,14 @@ export class Event { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/events/search" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -459,7 +459,7 @@ export class Event { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -468,7 +468,7 @@ export class Event { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -477,7 +477,7 @@ export class Event { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -486,7 +486,7 @@ export class Event { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -495,14 +495,14 @@ export class Event { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -510,26 +510,26 @@ export class Event { /** * Delete details of an event in a CRM - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async deleteEvent( id: string, - request: Vellum.crm.DeleteEventRequest, + request: Revert.crm.DeleteEventRequest, requestOptions?: Event.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/events/${id}` ), method: "DELETE", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -550,7 +550,7 @@ export class Event { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -559,7 +559,7 @@ export class Event { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -568,7 +568,7 @@ export class Event { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -577,7 +577,7 @@ export class Event { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -586,14 +586,14 @@ export class Event { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/event/client/requests/CreateEventRequest.ts b/src/api/resources/crm/resources/event/client/requests/CreateEventRequest.ts index 77215f7..0cf366c 100644 --- a/src/api/resources/crm/resources/event/client/requests/CreateEventRequest.ts +++ b/src/api/resources/crm/resources/event/client/requests/CreateEventRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateEventRequest { /** @@ -17,5 +17,5 @@ export interface CreateEventRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateEventRequest; + body: Revert.crm.CreateOrUpdateEventRequest; } diff --git a/src/api/resources/crm/resources/event/client/requests/UpdateEventRequest.ts b/src/api/resources/crm/resources/event/client/requests/UpdateEventRequest.ts index da67402..83e86b1 100644 --- a/src/api/resources/crm/resources/event/client/requests/UpdateEventRequest.ts +++ b/src/api/resources/crm/resources/event/client/requests/UpdateEventRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface UpdateEventRequest { /** @@ -17,5 +17,5 @@ export interface UpdateEventRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateEventRequest; + body: Revert.crm.CreateOrUpdateEventRequest; } diff --git a/src/api/resources/crm/resources/event/types/CreateOrUpdateEventRequest.ts b/src/api/resources/crm/resources/event/types/CreateOrUpdateEventRequest.ts index 39f82da..8f6d57e 100644 --- a/src/api/resources/crm/resources/event/types/CreateOrUpdateEventRequest.ts +++ b/src/api/resources/crm/resources/event/types/CreateOrUpdateEventRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface CreateOrUpdateEventRequest extends Vellum.common.EventWrite {} +export interface CreateOrUpdateEventRequest extends Revert.common.EventWrite {} diff --git a/src/api/resources/crm/resources/event/types/CreateOrUpdateEventResponse.ts b/src/api/resources/crm/resources/event/types/CreateOrUpdateEventResponse.ts index bc43b4b..6e6dbc2 100644 --- a/src/api/resources/crm/resources/event/types/CreateOrUpdateEventResponse.ts +++ b/src/api/resources/crm/resources/event/types/CreateOrUpdateEventResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateEventResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/crm/resources/event/types/DeleteEventResponse.ts b/src/api/resources/crm/resources/event/types/DeleteEventResponse.ts index 93a0e58..170112b 100644 --- a/src/api/resources/crm/resources/event/types/DeleteEventResponse.ts +++ b/src/api/resources/crm/resources/event/types/DeleteEventResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface DeleteEventResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; } diff --git a/src/api/resources/crm/resources/event/types/GetEventResponse.ts b/src/api/resources/crm/resources/event/types/GetEventResponse.ts index 6c89435..08e0621 100644 --- a/src/api/resources/crm/resources/event/types/GetEventResponse.ts +++ b/src/api/resources/crm/resources/event/types/GetEventResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetEventResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.Event; + status: Revert.common.ResponseStatus; + result: Revert.common.Event; } diff --git a/src/api/resources/crm/resources/event/types/GetEventsResponse.ts b/src/api/resources/crm/resources/event/types/GetEventsResponse.ts index 2307504..34035e5 100644 --- a/src/api/resources/crm/resources/event/types/GetEventsResponse.ts +++ b/src/api/resources/crm/resources/event/types/GetEventsResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetEventsResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.Event[]; + results: Revert.common.Event[]; } diff --git a/src/api/resources/crm/resources/event/types/SearchEventsResponse.ts b/src/api/resources/crm/resources/event/types/SearchEventsResponse.ts index c45317b..a9368a9 100644 --- a/src/api/resources/crm/resources/event/types/SearchEventsResponse.ts +++ b/src/api/resources/crm/resources/event/types/SearchEventsResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface SearchEventsResponse { - status: Vellum.common.ResponseStatus; - results: Vellum.common.Event[]; + status: Revert.common.ResponseStatus; + results: Revert.common.Event[]; } diff --git a/src/api/resources/crm/resources/fieldMapping/client/Client.ts b/src/api/resources/crm/resources/fieldMapping/client/Client.ts index d150033..2619b11 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/crm/resources/fieldMapping/client/Client.ts @@ -8,7 +8,7 @@ import { FieldMapping as FieldMapping_ } from "../resources/fieldMapping/client/ export declare namespace FieldMapping { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { diff --git a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/client/Client.ts b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/client/Client.ts index 8a1630f..00b00f5 100644 --- a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../../../environments"; import * as core from "../../../../../../../../core"; -import * as Vellum from "../../../../../../.."; +import * as Revert from "../../../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../../../serialization"; import * as errors from "../../../../../../../../errors"; export declare namespace FieldMapping { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,24 +25,24 @@ export class FieldMapping { /** * Get field mappings for a connection - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} */ public async getFieldMapping( - request: Vellum.crm.fieldMapping.GetFieldMappingRequest, + request: Revert.crm.fieldMapping.GetFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xRevertTToken, xApiVersion } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/field-mapping" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken != null ? xRevertApiToken : undefined, "x-revert-t-id": xRevertTId, "x-revert-t-token": xRevertTToken != null ? xRevertTToken : undefined, @@ -64,7 +64,7 @@ export class FieldMapping { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -73,7 +73,7 @@ export class FieldMapping { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -82,7 +82,7 @@ export class FieldMapping { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -91,14 +91,14 @@ export class FieldMapping { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -106,25 +106,25 @@ export class FieldMapping { /** * Create field mappings for a connection - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createFieldMapping( - request: Vellum.crm.fieldMapping.CreateFieldMappingRequest, + request: Revert.crm.fieldMapping.CreateFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xRevertTToken, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/field-mapping" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken != null ? xRevertApiToken : undefined, "x-revert-t-id": xRevertTId, "x-revert-t-token": xRevertTToken != null ? xRevertTToken : undefined, @@ -149,7 +149,7 @@ export class FieldMapping { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -158,7 +158,7 @@ export class FieldMapping { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -167,7 +167,7 @@ export class FieldMapping { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -176,7 +176,7 @@ export class FieldMapping { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -185,14 +185,14 @@ export class FieldMapping { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 33e6c91..f5b821f 100644 --- a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../../../.."; +import * as Revert from "../../../../../../../.."; export interface CreateFieldMappingRequest { /** @@ -21,5 +21,5 @@ export interface CreateFieldMappingRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.fieldMapping.CreateFieldMappingRequestBody; + body: Revert.crm.fieldMapping.CreateFieldMappingRequestBody; } diff --git a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts index 7637c13..1bdade6 100644 --- a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts +++ b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../../.."; +import * as Revert from "../../../../../../.."; export interface CreateFieldMappingRequestBody { - standardMappings: Vellum.crm.fieldMapping.FieldMappingType[]; - customMappings: Vellum.crm.fieldMapping.FieldMappingType[]; + standardMappings: Revert.crm.fieldMapping.FieldMappingType[]; + customMappings: Revert.crm.fieldMapping.FieldMappingType[]; } diff --git a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingResponse.ts b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingResponse.ts index fbd7575..6dbed3e 100644 --- a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingResponse.ts +++ b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingResponse.ts @@ -2,8 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../../.."; +import * as Revert from "../../../../../../.."; export interface CreateFieldMappingResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; } diff --git a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/GetFieldMappingResponse.ts b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/GetFieldMappingResponse.ts index d04a29b..60c07b4 100644 --- a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/GetFieldMappingResponse.ts +++ b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/GetFieldMappingResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../../.."; +import * as Revert from "../../../../../../.."; export interface GetFieldMappingResponse { canAddCustomMapping: boolean; - mappableFields: Vellum.crm.fieldMapping.MappableFieldType[]; + mappableFields: Revert.crm.fieldMapping.MappableFieldType[]; fieldList?: unknown; } diff --git a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/MappableFieldType.ts b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/MappableFieldType.ts index 255f7b6..5769e56 100644 --- a/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/MappableFieldType.ts +++ b/src/api/resources/crm/resources/fieldMapping/resources/fieldMapping/types/MappableFieldType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../../.."; +import * as Revert from "../../../../../../.."; export interface MappableFieldType { fieldName: string; - objectName: Vellum.common.StandardObject; + objectName: Revert.common.StandardObject; } diff --git a/src/api/resources/crm/resources/lead/client/Client.ts b/src/api/resources/crm/resources/lead/client/Client.ts index f05b82c..85e1d84 100644 --- a/src/api/resources/crm/resources/lead/client/Client.ts +++ b/src/api/resources/crm/resources/lead/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Lead { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class Lead { /** * Get details of a lead - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getLead( id: string, - request: Vellum.crm.GetLeadRequest, + request: Revert.crm.GetLeadRequest, requestOptions?: Lead.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class Lead { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/leads/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class Lead { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class Lead { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class Lead { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class Lead { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class Lead { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class Lead { /** * Get all the leads - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getLeads( - request: Vellum.crm.GetLeadsRequest, + request: Revert.crm.GetLeadsRequest, requestOptions?: Lead.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class Lead { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/leads" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class Lead { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class Lead { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class Lead { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class Lead { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class Lead { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -226,25 +226,25 @@ export class Lead { /** * Create a new lead - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createLead( - request: Vellum.crm.CreateLeadRequest, + request: Revert.crm.CreateLeadRequest, requestOptions?: Lead.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/leads" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -268,7 +268,7 @@ export class Lead { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -277,7 +277,7 @@ export class Lead { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -286,7 +286,7 @@ export class Lead { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -295,7 +295,7 @@ export class Lead { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -304,14 +304,14 @@ export class Lead { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -319,26 +319,26 @@ export class Lead { /** * Update a lead - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async updateLead( id: string, - request: Vellum.crm.UpdateLeadRequest, + request: Revert.crm.UpdateLeadRequest, requestOptions?: Lead.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/leads/${id}` ), method: "PATCH", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -362,7 +362,7 @@ export class Lead { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -371,7 +371,7 @@ export class Lead { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -380,7 +380,7 @@ export class Lead { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -389,7 +389,7 @@ export class Lead { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -398,14 +398,14 @@ export class Lead { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -413,14 +413,14 @@ export class Lead { /** * Search for leads - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async searchLeads( - request: Vellum.crm.SearchLeadsRequest, + request: Revert.crm.SearchLeadsRequest, requestOptions?: Lead.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; if (fields != null) { @@ -429,14 +429,14 @@ export class Lead { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/leads/search" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -459,7 +459,7 @@ export class Lead { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -468,7 +468,7 @@ export class Lead { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -477,7 +477,7 @@ export class Lead { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -486,7 +486,7 @@ export class Lead { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -495,14 +495,14 @@ export class Lead { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/lead/client/requests/CreateLeadRequest.ts b/src/api/resources/crm/resources/lead/client/requests/CreateLeadRequest.ts index a09b51b..b5dc107 100644 --- a/src/api/resources/crm/resources/lead/client/requests/CreateLeadRequest.ts +++ b/src/api/resources/crm/resources/lead/client/requests/CreateLeadRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateLeadRequest { /** @@ -17,5 +17,5 @@ export interface CreateLeadRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateLeadRequest; + body: Revert.crm.CreateOrUpdateLeadRequest; } diff --git a/src/api/resources/crm/resources/lead/client/requests/UpdateLeadRequest.ts b/src/api/resources/crm/resources/lead/client/requests/UpdateLeadRequest.ts index 067b31d..0386e69 100644 --- a/src/api/resources/crm/resources/lead/client/requests/UpdateLeadRequest.ts +++ b/src/api/resources/crm/resources/lead/client/requests/UpdateLeadRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface UpdateLeadRequest { /** @@ -17,5 +17,5 @@ export interface UpdateLeadRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateLeadRequest; + body: Revert.crm.CreateOrUpdateLeadRequest; } diff --git a/src/api/resources/crm/resources/lead/types/CreateOrUpdateLeadRequest.ts b/src/api/resources/crm/resources/lead/types/CreateOrUpdateLeadRequest.ts index 1d9faea..62e27fd 100644 --- a/src/api/resources/crm/resources/lead/types/CreateOrUpdateLeadRequest.ts +++ b/src/api/resources/crm/resources/lead/types/CreateOrUpdateLeadRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface CreateOrUpdateLeadRequest extends Vellum.common.LeadWrite {} +export interface CreateOrUpdateLeadRequest extends Revert.common.LeadWrite {} diff --git a/src/api/resources/crm/resources/lead/types/CreateOrUpdateLeadResponse.ts b/src/api/resources/crm/resources/lead/types/CreateOrUpdateLeadResponse.ts index 3dee7c3..d7eb5e2 100644 --- a/src/api/resources/crm/resources/lead/types/CreateOrUpdateLeadResponse.ts +++ b/src/api/resources/crm/resources/lead/types/CreateOrUpdateLeadResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateLeadResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/crm/resources/lead/types/GetLeadResponse.ts b/src/api/resources/crm/resources/lead/types/GetLeadResponse.ts index 84d0d92..a351a94 100644 --- a/src/api/resources/crm/resources/lead/types/GetLeadResponse.ts +++ b/src/api/resources/crm/resources/lead/types/GetLeadResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetLeadResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.Lead; + status: Revert.common.ResponseStatus; + result: Revert.common.Lead; } diff --git a/src/api/resources/crm/resources/lead/types/GetLeadsResponse.ts b/src/api/resources/crm/resources/lead/types/GetLeadsResponse.ts index 04d28d7..e236707 100644 --- a/src/api/resources/crm/resources/lead/types/GetLeadsResponse.ts +++ b/src/api/resources/crm/resources/lead/types/GetLeadsResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetLeadsResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.Lead[]; + results: Revert.common.Lead[]; } diff --git a/src/api/resources/crm/resources/lead/types/SearchLeadsResponse.ts b/src/api/resources/crm/resources/lead/types/SearchLeadsResponse.ts index 6ef5332..a1d7e50 100644 --- a/src/api/resources/crm/resources/lead/types/SearchLeadsResponse.ts +++ b/src/api/resources/crm/resources/lead/types/SearchLeadsResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface SearchLeadsResponse { - status: Vellum.common.ResponseStatus; - results: Vellum.common.Lead[]; + status: Revert.common.ResponseStatus; + results: Revert.common.Lead[]; } diff --git a/src/api/resources/crm/resources/note/client/Client.ts b/src/api/resources/crm/resources/note/client/Client.ts index 445b857..778ad91 100644 --- a/src/api/resources/crm/resources/note/client/Client.ts +++ b/src/api/resources/crm/resources/note/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Note { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class Note { /** * Get details of a note - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getNote( id: string, - request: Vellum.crm.GetNoteRequest, + request: Revert.crm.GetNoteRequest, requestOptions?: Note.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class Note { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/notes/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class Note { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class Note { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class Note { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class Note { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class Note { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class Note { /** * Get all the notes - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getNotes( - request: Vellum.crm.GetNotesRequest, + request: Revert.crm.GetNotesRequest, requestOptions?: Note.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class Note { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/notes" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class Note { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class Note { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class Note { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class Note { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class Note { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -226,25 +226,25 @@ export class Note { /** * Create a new note - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createNote( - request: Vellum.crm.CreateNoteRequest, + request: Revert.crm.CreateNoteRequest, requestOptions?: Note.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/notes" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -268,7 +268,7 @@ export class Note { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -277,7 +277,7 @@ export class Note { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -286,7 +286,7 @@ export class Note { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -295,7 +295,7 @@ export class Note { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -304,14 +304,14 @@ export class Note { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -319,26 +319,26 @@ export class Note { /** * Update a note - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async updateNote( id: string, - request: Vellum.crm.UpdateNoteRequest, + request: Revert.crm.UpdateNoteRequest, requestOptions?: Note.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/notes/${id}` ), method: "PATCH", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -362,7 +362,7 @@ export class Note { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -371,7 +371,7 @@ export class Note { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -380,7 +380,7 @@ export class Note { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -389,7 +389,7 @@ export class Note { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -398,14 +398,14 @@ export class Note { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -413,14 +413,14 @@ export class Note { /** * Search for notes - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async searchNotes( - request: Vellum.crm.SearchNotesRequest, + request: Revert.crm.SearchNotesRequest, requestOptions?: Note.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; if (fields != null) { @@ -429,14 +429,14 @@ export class Note { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/notes/search" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -459,7 +459,7 @@ export class Note { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -468,7 +468,7 @@ export class Note { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -477,7 +477,7 @@ export class Note { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -486,7 +486,7 @@ export class Note { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -495,14 +495,14 @@ export class Note { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/note/client/requests/CreateNoteRequest.ts b/src/api/resources/crm/resources/note/client/requests/CreateNoteRequest.ts index be7b42b..1d1dfe1 100644 --- a/src/api/resources/crm/resources/note/client/requests/CreateNoteRequest.ts +++ b/src/api/resources/crm/resources/note/client/requests/CreateNoteRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateNoteRequest { /** @@ -17,5 +17,5 @@ export interface CreateNoteRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateNoteRequest; + body: Revert.crm.CreateOrUpdateNoteRequest; } diff --git a/src/api/resources/crm/resources/note/client/requests/UpdateNoteRequest.ts b/src/api/resources/crm/resources/note/client/requests/UpdateNoteRequest.ts index 713ca3b..d46f67e 100644 --- a/src/api/resources/crm/resources/note/client/requests/UpdateNoteRequest.ts +++ b/src/api/resources/crm/resources/note/client/requests/UpdateNoteRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface UpdateNoteRequest { /** @@ -17,5 +17,5 @@ export interface UpdateNoteRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateNoteRequest; + body: Revert.crm.CreateOrUpdateNoteRequest; } diff --git a/src/api/resources/crm/resources/note/types/CreateOrUpdateNoteRequest.ts b/src/api/resources/crm/resources/note/types/CreateOrUpdateNoteRequest.ts index 4cf03a1..98dac74 100644 --- a/src/api/resources/crm/resources/note/types/CreateOrUpdateNoteRequest.ts +++ b/src/api/resources/crm/resources/note/types/CreateOrUpdateNoteRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface CreateOrUpdateNoteRequest extends Vellum.common.NoteWrite {} +export interface CreateOrUpdateNoteRequest extends Revert.common.NoteWrite {} diff --git a/src/api/resources/crm/resources/note/types/CreateOrUpdateNoteResponse.ts b/src/api/resources/crm/resources/note/types/CreateOrUpdateNoteResponse.ts index b999919..adcbeb8 100644 --- a/src/api/resources/crm/resources/note/types/CreateOrUpdateNoteResponse.ts +++ b/src/api/resources/crm/resources/note/types/CreateOrUpdateNoteResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateNoteResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/crm/resources/note/types/GetNoteResponse.ts b/src/api/resources/crm/resources/note/types/GetNoteResponse.ts index 4a7eb4c..1fb670c 100644 --- a/src/api/resources/crm/resources/note/types/GetNoteResponse.ts +++ b/src/api/resources/crm/resources/note/types/GetNoteResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetNoteResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.Note; + status: Revert.common.ResponseStatus; + result: Revert.common.Note; } diff --git a/src/api/resources/crm/resources/note/types/GetNotesResponse.ts b/src/api/resources/crm/resources/note/types/GetNotesResponse.ts index 3c24521..d419d94 100644 --- a/src/api/resources/crm/resources/note/types/GetNotesResponse.ts +++ b/src/api/resources/crm/resources/note/types/GetNotesResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetNotesResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.Note[]; + results: Revert.common.Note[]; } diff --git a/src/api/resources/crm/resources/note/types/SearchNotesResponse.ts b/src/api/resources/crm/resources/note/types/SearchNotesResponse.ts index 53963a6..2e73923 100644 --- a/src/api/resources/crm/resources/note/types/SearchNotesResponse.ts +++ b/src/api/resources/crm/resources/note/types/SearchNotesResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface SearchNotesResponse { - status: Vellum.common.ResponseStatus; - results: Vellum.common.Note[]; + status: Revert.common.ResponseStatus; + results: Revert.common.Note[]; } diff --git a/src/api/resources/crm/resources/properties/client/Client.ts b/src/api/resources/crm/resources/properties/client/Client.ts index 23f646a..02fedd8 100644 --- a/src/api/resources/crm/resources/properties/client/Client.ts +++ b/src/api/resources/crm/resources/properties/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import * as serializers from "../../../../../../serialization"; import urlJoin from "url-join"; import * as errors from "../../../../../../errors"; export declare namespace Properties { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,26 +25,26 @@ export class Properties { /** * Get object properties for connection - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getObjectProperties( - objectName: Vellum.common.StandardObject, - request: Vellum.crm.GetObjectPropertiesRequest, + 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( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/properties/${await serializers.common.StandardObject.jsonOrThrow(objectName)}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -65,7 +65,7 @@ export class Properties { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -74,7 +74,7 @@ export class Properties { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -83,7 +83,7 @@ export class Properties { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -92,7 +92,7 @@ export class Properties { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -101,14 +101,14 @@ export class Properties { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -116,26 +116,26 @@ export class Properties { /** * Set custom properties on an object for a given connection - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async setCustomProperties( - objectName: Vellum.common.StandardObject, - request: Vellum.crm.SetObjectCustomPropertiesRequest, + objectName: Revert.common.StandardObject, + request: Revert.crm.SetObjectCustomPropertiesRequest, requestOptions?: Properties.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/properties/${await serializers.common.StandardObject.jsonOrThrow(objectName)}` ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -159,7 +159,7 @@ export class Properties { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -168,7 +168,7 @@ export class Properties { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -177,7 +177,7 @@ export class Properties { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -186,7 +186,7 @@ export class Properties { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -195,14 +195,14 @@ export class Properties { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/properties/client/requests/SetObjectCustomPropertiesRequest.ts b/src/api/resources/crm/resources/properties/client/requests/SetObjectCustomPropertiesRequest.ts index 5832fbc..4532689 100644 --- a/src/api/resources/crm/resources/properties/client/requests/SetObjectCustomPropertiesRequest.ts +++ b/src/api/resources/crm/resources/properties/client/requests/SetObjectCustomPropertiesRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface SetObjectCustomPropertiesRequest { /** @@ -17,5 +17,5 @@ export interface SetObjectCustomPropertiesRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.SetObjectPropertiesRequest; + body: Revert.crm.SetObjectPropertiesRequest; } diff --git a/src/api/resources/crm/resources/properties/types/FieldDetailsTypeRequest.ts b/src/api/resources/crm/resources/properties/types/FieldDetailsTypeRequest.ts index e720eef..a4fcf90 100644 --- a/src/api/resources/crm/resources/properties/types/FieldDetailsTypeRequest.ts +++ b/src/api/resources/crm/resources/properties/types/FieldDetailsTypeRequest.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface FieldDetailsTypeRequest extends Vellum.crm.FieldDetailsType { +export interface FieldDetailsTypeRequest extends Revert.crm.FieldDetailsType { /** Any fields that are not unified yet/non-unifiable come inside this `json` object. */ additional?: unknown; } diff --git a/src/api/resources/crm/resources/properties/types/SetObjectPropertiesRequest.ts b/src/api/resources/crm/resources/properties/types/SetObjectPropertiesRequest.ts index 023fb3b..45599f0 100644 --- a/src/api/resources/crm/resources/properties/types/SetObjectPropertiesRequest.ts +++ b/src/api/resources/crm/resources/properties/types/SetObjectPropertiesRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export type SetObjectPropertiesRequest = Vellum.crm.FieldDetailsTypeRequest; +export type SetObjectPropertiesRequest = Revert.crm.FieldDetailsTypeRequest; diff --git a/src/api/resources/crm/resources/proxy/client/Client.ts b/src/api/resources/crm/resources/proxy/client/Client.ts index 66a8d18..c57c331 100644 --- a/src/api/resources/crm/resources/proxy/client/Client.ts +++ b/src/api/resources/crm/resources/proxy/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import * as serializers from "../../../../../../serialization"; import urlJoin from "url-join"; import * as errors from "../../../../../../errors"; export declare namespace Proxy { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,25 +25,25 @@ export class Proxy { /** * Call the native CRM api for a specific connection - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async tunnel( - request: Vellum.crm.PostProxyRequest, + request: Revert.crm.PostProxyRequest, requestOptions?: Proxy.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/proxy" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -65,7 +65,7 @@ export class Proxy { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -74,7 +74,7 @@ export class Proxy { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -83,7 +83,7 @@ export class Proxy { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -92,7 +92,7 @@ export class Proxy { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -101,14 +101,14 @@ export class Proxy { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/proxy/client/requests/PostProxyRequest.ts b/src/api/resources/crm/resources/proxy/client/requests/PostProxyRequest.ts index a32f680..eb007cb 100644 --- a/src/api/resources/crm/resources/proxy/client/requests/PostProxyRequest.ts +++ b/src/api/resources/crm/resources/proxy/client/requests/PostProxyRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface PostProxyRequest { /** @@ -17,5 +17,5 @@ export interface PostProxyRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.PostProxyRequestBody; + body: Revert.crm.PostProxyRequestBody; } diff --git a/src/api/resources/crm/resources/task/client/Client.ts b/src/api/resources/crm/resources/task/client/Client.ts index 90a1ce1..9911e12 100644 --- a/src/api/resources/crm/resources/task/client/Client.ts +++ b/src/api/resources/crm/resources/task/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Task { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class Task { /** * Get details of a task - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getTask( id: string, - request: Vellum.crm.GetTaskRequest, + request: Revert.crm.GetTaskRequest, requestOptions?: Task.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class Task { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/tasks/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class Task { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class Task { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class Task { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class Task { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class Task { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class Task { /** * Get all the tasks - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getTasks( - request: Vellum.crm.GetTasksRequest, + request: Revert.crm.GetTasksRequest, requestOptions?: Task.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class Task { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/tasks" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class Task { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class Task { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class Task { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class Task { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class Task { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -226,25 +226,25 @@ export class Task { /** * Create a new task - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createTask( - request: Vellum.crm.CreateTaskRequest, + request: Revert.crm.CreateTaskRequest, requestOptions?: Task.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/tasks" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -268,7 +268,7 @@ export class Task { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -277,7 +277,7 @@ export class Task { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -286,7 +286,7 @@ export class Task { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -295,7 +295,7 @@ export class Task { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -304,14 +304,14 @@ export class Task { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -319,26 +319,26 @@ export class Task { /** * Update a task - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async updateTask( id: string, - request: Vellum.crm.UpdateTaskRequest, + request: Revert.crm.UpdateTaskRequest, requestOptions?: Task.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/tasks/${id}` ), method: "PATCH", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -362,7 +362,7 @@ export class Task { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -371,7 +371,7 @@ export class Task { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -380,7 +380,7 @@ export class Task { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -389,7 +389,7 @@ export class Task { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -398,14 +398,14 @@ export class Task { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -413,14 +413,14 @@ export class Task { /** * Search for tasks - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async searchTasks( - request: Vellum.crm.SearchTasksRequest, + request: Revert.crm.SearchTasksRequest, requestOptions?: Task.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion, ..._body } = request; const _queryParams: Record = {}; if (fields != null) { @@ -429,14 +429,14 @@ export class Task { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/tasks/search" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -459,7 +459,7 @@ export class Task { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -468,7 +468,7 @@ export class Task { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -477,7 +477,7 @@ export class Task { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -486,7 +486,7 @@ export class Task { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -495,14 +495,14 @@ export class Task { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/task/client/requests/CreateTaskRequest.ts b/src/api/resources/crm/resources/task/client/requests/CreateTaskRequest.ts index 6b10012..69d08e0 100644 --- a/src/api/resources/crm/resources/task/client/requests/CreateTaskRequest.ts +++ b/src/api/resources/crm/resources/task/client/requests/CreateTaskRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateTaskRequest { /** @@ -17,5 +17,5 @@ export interface CreateTaskRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateTaskRequest; + body: Revert.crm.CreateOrUpdateTaskRequest; } diff --git a/src/api/resources/crm/resources/task/client/requests/UpdateTaskRequest.ts b/src/api/resources/crm/resources/task/client/requests/UpdateTaskRequest.ts index f5e1631..184fb02 100644 --- a/src/api/resources/crm/resources/task/client/requests/UpdateTaskRequest.ts +++ b/src/api/resources/crm/resources/task/client/requests/UpdateTaskRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface UpdateTaskRequest { /** @@ -17,5 +17,5 @@ export interface UpdateTaskRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateTaskRequest; + body: Revert.crm.CreateOrUpdateTaskRequest; } diff --git a/src/api/resources/crm/resources/task/types/CreateOrUpdateTaskRequest.ts b/src/api/resources/crm/resources/task/types/CreateOrUpdateTaskRequest.ts index 693a311..27c97ee 100644 --- a/src/api/resources/crm/resources/task/types/CreateOrUpdateTaskRequest.ts +++ b/src/api/resources/crm/resources/task/types/CreateOrUpdateTaskRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface CreateOrUpdateTaskRequest extends Vellum.common.TaskWrite {} +export interface CreateOrUpdateTaskRequest extends Revert.common.TaskWrite {} diff --git a/src/api/resources/crm/resources/task/types/CreateOrUpdateTaskResponse.ts b/src/api/resources/crm/resources/task/types/CreateOrUpdateTaskResponse.ts index 6611d61..227a23a 100644 --- a/src/api/resources/crm/resources/task/types/CreateOrUpdateTaskResponse.ts +++ b/src/api/resources/crm/resources/task/types/CreateOrUpdateTaskResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateTaskResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/crm/resources/task/types/GetTaskResponse.ts b/src/api/resources/crm/resources/task/types/GetTaskResponse.ts index 30961fe..b8d1310 100644 --- a/src/api/resources/crm/resources/task/types/GetTaskResponse.ts +++ b/src/api/resources/crm/resources/task/types/GetTaskResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetTaskResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.Task; + status: Revert.common.ResponseStatus; + result: Revert.common.Task; } diff --git a/src/api/resources/crm/resources/task/types/GetTasksResponse.ts b/src/api/resources/crm/resources/task/types/GetTasksResponse.ts index 49d437c..947d922 100644 --- a/src/api/resources/crm/resources/task/types/GetTasksResponse.ts +++ b/src/api/resources/crm/resources/task/types/GetTasksResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetTasksResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.Task[]; + results: Revert.common.Task[]; } diff --git a/src/api/resources/crm/resources/task/types/SearchTasksResponse.ts b/src/api/resources/crm/resources/task/types/SearchTasksResponse.ts index 0c4556d..970c7f8 100644 --- a/src/api/resources/crm/resources/task/types/SearchTasksResponse.ts +++ b/src/api/resources/crm/resources/task/types/SearchTasksResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface SearchTasksResponse { - status: Vellum.common.ResponseStatus; - results: Vellum.common.Task[]; + status: Revert.common.ResponseStatus; + results: Revert.common.Task[]; } diff --git a/src/api/resources/crm/resources/user/client/Client.ts b/src/api/resources/crm/resources/user/client/Client.ts index dba6df6..4dfee00 100644 --- a/src/api/resources/crm/resources/user/client/Client.ts +++ b/src/api/resources/crm/resources/user/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace User { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class User { /** * Get details of a user - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getUser( id: string, - request: Vellum.crm.GetUserRequest, + request: Revert.crm.GetUserRequest, requestOptions?: User.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class User { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/crm/users/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class User { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class User { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class User { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class User { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class User { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class User { /** * Get all the users - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getUsers( - request: Vellum.crm.GetUsersRequest, + request: Revert.crm.GetUsersRequest, requestOptions?: User.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class User { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/users" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class User { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class User { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class User { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class User { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class User { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -226,25 +226,25 @@ export class User { /** * Create a new user - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createUser( - request: Vellum.crm.CreateUserRequest, + request: Revert.crm.CreateUserRequest, requestOptions?: User.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/crm/users" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -268,7 +268,7 @@ export class User { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -277,7 +277,7 @@ export class User { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -286,7 +286,7 @@ export class User { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -295,7 +295,7 @@ export class User { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -304,14 +304,14 @@ export class User { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/crm/resources/user/client/requests/CreateUserRequest.ts b/src/api/resources/crm/resources/user/client/requests/CreateUserRequest.ts index bdb2e82..492e8c5 100644 --- a/src/api/resources/crm/resources/user/client/requests/CreateUserRequest.ts +++ b/src/api/resources/crm/resources/user/client/requests/CreateUserRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateUserRequest { /** @@ -17,5 +17,5 @@ export interface CreateUserRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.crm.CreateOrUpdateUserRequest; + body: Revert.crm.CreateOrUpdateUserRequest; } diff --git a/src/api/resources/crm/resources/user/types/CreateOrUpdateUserRequest.ts b/src/api/resources/crm/resources/user/types/CreateOrUpdateUserRequest.ts index 57066d8..7740e92 100644 --- a/src/api/resources/crm/resources/user/types/CreateOrUpdateUserRequest.ts +++ b/src/api/resources/crm/resources/user/types/CreateOrUpdateUserRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export interface CreateOrUpdateUserRequest extends Vellum.common.UserWrite {} +export interface CreateOrUpdateUserRequest extends Revert.common.UserWrite {} diff --git a/src/api/resources/crm/resources/user/types/CreateOrUpdateUserResponse.ts b/src/api/resources/crm/resources/user/types/CreateOrUpdateUserResponse.ts index c1e141e..d712546 100644 --- a/src/api/resources/crm/resources/user/types/CreateOrUpdateUserResponse.ts +++ b/src/api/resources/crm/resources/user/types/CreateOrUpdateUserResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateUserResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/crm/resources/user/types/GetUserResponse.ts b/src/api/resources/crm/resources/user/types/GetUserResponse.ts index 7b52ee3..ca6a06b 100644 --- a/src/api/resources/crm/resources/user/types/GetUserResponse.ts +++ b/src/api/resources/crm/resources/user/types/GetUserResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetUserResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.User; + status: Revert.common.ResponseStatus; + result: Revert.common.User; } diff --git a/src/api/resources/crm/resources/user/types/GetUsersResponse.ts b/src/api/resources/crm/resources/user/types/GetUsersResponse.ts index 06009e7..3fb49fc 100644 --- a/src/api/resources/crm/resources/user/types/GetUsersResponse.ts +++ b/src/api/resources/crm/resources/user/types/GetUsersResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetUsersResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.User[]; + results: Revert.common.User[]; } diff --git a/src/api/resources/metadata/client/Client.ts b/src/api/resources/metadata/client/Client.ts index 0e1bdd1..f448242 100644 --- a/src/api/resources/metadata/client/Client.ts +++ b/src/api/resources/metadata/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; -import * as Vellum from "../../.."; +import * as Revert from "../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../serialization"; import * as errors from "../../../../errors"; export declare namespace Metadata { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,24 +25,24 @@ export class Metadata { /** * Retrieve a list of CRMs available for this account from the database based on the public token. - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} */ public async getCrms( - request: Vellum.CrmMetadataRequest, + request: Revert.CrmMetadataRequest, requestOptions?: Metadata.RequestOptions - ): Promise { + ): Promise { const { xRevertPublicToken } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "metadata/crms" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-public-token": xRevertPublicToken, }, contentType: "application/json", @@ -61,7 +61,7 @@ export class Metadata { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -70,7 +70,7 @@ export class Metadata { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -79,7 +79,7 @@ export class Metadata { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -88,14 +88,14 @@ export class Metadata { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/metadata/types/CrmMetadata.ts b/src/api/resources/metadata/types/CrmMetadata.ts index 0229bab..6d33fa2 100644 --- a/src/api/resources/metadata/types/CrmMetadata.ts +++ b/src/api/resources/metadata/types/CrmMetadata.ts @@ -2,13 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../.."; +import * as Revert from "../../.."; export interface CrmMetadata { integrationId: string; name: string; imageSrc: string; - status: Vellum.CrmStatus; + status: Revert.CrmStatus; clientId?: string; scopes: string[]; } diff --git a/src/api/resources/metadata/types/CrmMetadataResponse.ts b/src/api/resources/metadata/types/CrmMetadataResponse.ts index ee2ddb5..90cd134 100644 --- a/src/api/resources/metadata/types/CrmMetadataResponse.ts +++ b/src/api/resources/metadata/types/CrmMetadataResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../.."; +import * as Revert from "../../.."; export interface CrmMetadataResponse { status: string; - data: Vellum.CrmMetadata[]; + data: Revert.CrmMetadata[]; error?: string; } diff --git a/src/api/resources/ticket/client/Client.ts b/src/api/resources/ticket/client/Client.ts index 005f573..3778390 100644 --- a/src/api/resources/ticket/client/Client.ts +++ b/src/api/resources/ticket/client/Client.ts @@ -12,7 +12,7 @@ import { User } from "../resources/user/client/Client"; export declare namespace Ticket { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { diff --git a/src/api/resources/ticket/resources/collection/client/Client.ts b/src/api/resources/ticket/resources/collection/client/Client.ts index 8b28d68..6ef4792 100644 --- a/src/api/resources/ticket/resources/collection/client/Client.ts +++ b/src/api/resources/ticket/resources/collection/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Collection { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,14 +25,14 @@ export class Collection { /** * Get all the collections - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getCollections( - request: Vellum.ticket.GetCollectionsRequest, + request: Revert.ticket.GetCollectionsRequest, requestOptions?: Collection.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -49,14 +49,14 @@ export class Collection { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/ticket/collections" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -78,7 +78,7 @@ export class Collection { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -87,7 +87,7 @@ export class Collection { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -96,7 +96,7 @@ export class Collection { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -105,7 +105,7 @@ export class Collection { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -114,14 +114,14 @@ export class Collection { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/ticket/resources/collection/types/GetCollectionsResponse.ts b/src/api/resources/ticket/resources/collection/types/GetCollectionsResponse.ts index 79cd16e..2df9655 100644 --- a/src/api/resources/ticket/resources/collection/types/GetCollectionsResponse.ts +++ b/src/api/resources/ticket/resources/collection/types/GetCollectionsResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetCollectionsResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; results?: unknown; diff --git a/src/api/resources/ticket/resources/comment/client/Client.ts b/src/api/resources/ticket/resources/comment/client/Client.ts index 7ec1502..ced7007 100644 --- a/src/api/resources/ticket/resources/comment/client/Client.ts +++ b/src/api/resources/ticket/resources/comment/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Comment { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class Comment { /** * Get details of a comment - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getComment( id: string, - request: Vellum.ticket.GetCommentRequest, + request: Revert.ticket.GetCommentRequest, requestOptions?: Comment.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class Comment { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/ticket/comments/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class Comment { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class Comment { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class Comment { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class Comment { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class Comment { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class Comment { /** * Get all the comments - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getComments( - request: Vellum.ticket.GetCommentsRequest, + request: Revert.ticket.GetCommentsRequest, requestOptions?: Comment.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class Comment { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/ticket/comments" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class Comment { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class Comment { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class Comment { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class Comment { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class Comment { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -226,25 +226,25 @@ export class Comment { /** * Post comment - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createComment( - request: Vellum.ticket.CreateCommentRequest, + request: Revert.ticket.CreateCommentRequest, requestOptions?: Comment.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/ticket/comments" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -268,7 +268,7 @@ export class Comment { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -277,7 +277,7 @@ export class Comment { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -286,7 +286,7 @@ export class Comment { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -295,7 +295,7 @@ export class Comment { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -304,14 +304,14 @@ export class Comment { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -319,26 +319,26 @@ export class Comment { /** * Update comment - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async updateComment( id: string, - request: Vellum.ticket.UpdateCommentRequest, + request: Revert.ticket.UpdateCommentRequest, requestOptions?: Comment.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/ticket/comments/${id}` ), method: "PATCH", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -362,7 +362,7 @@ export class Comment { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -371,7 +371,7 @@ export class Comment { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -380,7 +380,7 @@ export class Comment { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -389,7 +389,7 @@ export class Comment { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -398,14 +398,14 @@ export class Comment { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/ticket/resources/comment/client/requests/CreateCommentRequest.ts b/src/api/resources/ticket/resources/comment/client/requests/CreateCommentRequest.ts index 93414ba..2547086 100644 --- a/src/api/resources/ticket/resources/comment/client/requests/CreateCommentRequest.ts +++ b/src/api/resources/ticket/resources/comment/client/requests/CreateCommentRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateCommentRequest { /** @@ -17,5 +17,5 @@ export interface CreateCommentRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.ticket.CreateOrUpdateCommentRequest; + body: Revert.ticket.CreateOrUpdateCommentRequest; } diff --git a/src/api/resources/ticket/resources/comment/client/requests/UpdateCommentRequest.ts b/src/api/resources/ticket/resources/comment/client/requests/UpdateCommentRequest.ts index 83b12a6..addc405 100644 --- a/src/api/resources/ticket/resources/comment/client/requests/UpdateCommentRequest.ts +++ b/src/api/resources/ticket/resources/comment/client/requests/UpdateCommentRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface UpdateCommentRequest { /** @@ -17,5 +17,5 @@ export interface UpdateCommentRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.ticket.CreateOrUpdateCommentRequest; + body: Revert.ticket.CreateOrUpdateCommentRequest; } diff --git a/src/api/resources/ticket/resources/comment/types/CreateOrUpdateCommentRequest.ts b/src/api/resources/ticket/resources/comment/types/CreateOrUpdateCommentRequest.ts index e25668e..4655bad 100644 --- a/src/api/resources/ticket/resources/comment/types/CreateOrUpdateCommentRequest.ts +++ b/src/api/resources/ticket/resources/comment/types/CreateOrUpdateCommentRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export type CreateOrUpdateCommentRequest = Vellum.common.CommentTicketWrite; +export type CreateOrUpdateCommentRequest = Revert.common.CommentTicketWrite; diff --git a/src/api/resources/ticket/resources/comment/types/CreateOrUpdateCommentResponse.ts b/src/api/resources/ticket/resources/comment/types/CreateOrUpdateCommentResponse.ts index 8ee7b6f..c1c875f 100644 --- a/src/api/resources/ticket/resources/comment/types/CreateOrUpdateCommentResponse.ts +++ b/src/api/resources/ticket/resources/comment/types/CreateOrUpdateCommentResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateCommentResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/ticket/resources/comment/types/GetCommentResponse.ts b/src/api/resources/ticket/resources/comment/types/GetCommentResponse.ts index d87a1b9..892cfb4 100644 --- a/src/api/resources/ticket/resources/comment/types/GetCommentResponse.ts +++ b/src/api/resources/ticket/resources/comment/types/GetCommentResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetCommentResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; result?: unknown; } diff --git a/src/api/resources/ticket/resources/comment/types/GetCommentsResponse.ts b/src/api/resources/ticket/resources/comment/types/GetCommentsResponse.ts index 9ea114b..300bcf2 100644 --- a/src/api/resources/ticket/resources/comment/types/GetCommentsResponse.ts +++ b/src/api/resources/ticket/resources/comment/types/GetCommentsResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetCommentsResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; results?: unknown; diff --git a/src/api/resources/ticket/resources/proxy/client/Client.ts b/src/api/resources/ticket/resources/proxy/client/Client.ts index c5b0138..005d6f5 100644 --- a/src/api/resources/ticket/resources/proxy/client/Client.ts +++ b/src/api/resources/ticket/resources/proxy/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import * as serializers from "../../../../../../serialization"; import urlJoin from "url-join"; import * as errors from "../../../../../../errors"; export declare namespace Proxy { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,25 +25,25 @@ export class Proxy { /** * Call the native Ticketing app's api for a specific connection - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async tunnel( - request: Vellum.ticket.PostProxyRequest, + request: Revert.ticket.PostProxyRequest, requestOptions?: Proxy.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/ticket/proxy" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -65,7 +65,7 @@ export class Proxy { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -74,7 +74,7 @@ export class Proxy { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -83,7 +83,7 @@ export class Proxy { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -92,7 +92,7 @@ export class Proxy { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -101,14 +101,14 @@ export class Proxy { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/ticket/resources/proxy/client/requests/PostProxyRequest.ts b/src/api/resources/ticket/resources/proxy/client/requests/PostProxyRequest.ts index 18f72ca..408bd7f 100644 --- a/src/api/resources/ticket/resources/proxy/client/requests/PostProxyRequest.ts +++ b/src/api/resources/ticket/resources/proxy/client/requests/PostProxyRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface PostProxyRequest { /** @@ -17,5 +17,5 @@ export interface PostProxyRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.ticket.PostProxyRequestBody; + body: Revert.ticket.PostProxyRequestBody; } diff --git a/src/api/resources/ticket/resources/task/client/Client.ts b/src/api/resources/ticket/resources/task/client/Client.ts index 72d1774..f7d9654 100644 --- a/src/api/resources/ticket/resources/task/client/Client.ts +++ b/src/api/resources/ticket/resources/task/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace Task { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class Task { /** * Get details of a task - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getTask( id: string, - request: Vellum.ticket.GetTaskRequest, + request: Revert.ticket.GetTaskRequest, requestOptions?: Task.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class Task { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/ticket/tasks/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class Task { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class Task { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class Task { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class Task { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class Task { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class Task { /** * Get all the tasks - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getTasks( - request: Vellum.ticket.GetTasksRequest, + request: Revert.ticket.GetTasksRequest, requestOptions?: Task.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class Task { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/ticket/tasks" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class Task { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class Task { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class Task { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class Task { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,39 +211,39 @@ export class Task { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } } /** - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async createTask( - request: Vellum.ticket.CreateTaskRequest, + request: Revert.ticket.CreateTaskRequest, requestOptions?: Task.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/ticket/tasks" ), method: "POST", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -267,7 +267,7 @@ export class Task { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -276,7 +276,7 @@ export class Task { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -285,7 +285,7 @@ export class Task { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -294,7 +294,7 @@ export class Task { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -303,14 +303,14 @@ export class Task { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -318,27 +318,27 @@ export class Task { /** * Update a task - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} - * @throws {@link Vellum.common.BadRequestError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} + * @throws {@link Revert.common.BadRequestError} */ public async updateTask( id: string, - request: Vellum.ticket.UpdateTaskRequest, + request: Revert.ticket.UpdateTaskRequest, requestOptions?: Task.RequestOptions - ): Promise { + ): Promise { const { xRevertApiToken, xRevertTId, xApiVersion, body: _body } = request; const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/ticket/tasks/${id}` ), method: "PATCH", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -362,7 +362,7 @@ export class Task { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -371,7 +371,7 @@ export class Task { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -380,7 +380,7 @@ export class Task { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -389,7 +389,7 @@ export class Task { }) ); case 400: - throw new Vellum.common.BadRequestError( + throw new Revert.common.BadRequestError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -398,7 +398,7 @@ export class Task { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -407,14 +407,14 @@ export class Task { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/ticket/resources/task/client/requests/CreateTaskRequest.ts b/src/api/resources/ticket/resources/task/client/requests/CreateTaskRequest.ts index 72d47e8..9efb5c3 100644 --- a/src/api/resources/ticket/resources/task/client/requests/CreateTaskRequest.ts +++ b/src/api/resources/ticket/resources/task/client/requests/CreateTaskRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface CreateTaskRequest { /** @@ -17,5 +17,5 @@ export interface CreateTaskRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.ticket.CreateOrUpdateTaskRequest; + body: Revert.ticket.CreateOrUpdateTaskRequest; } diff --git a/src/api/resources/ticket/resources/task/client/requests/UpdateTaskRequest.ts b/src/api/resources/ticket/resources/task/client/requests/UpdateTaskRequest.ts index b2a9548..a152506 100644 --- a/src/api/resources/ticket/resources/task/client/requests/UpdateTaskRequest.ts +++ b/src/api/resources/ticket/resources/task/client/requests/UpdateTaskRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../../.."; +import * as Revert from "../../../../../.."; export interface UpdateTaskRequest { /** @@ -17,5 +17,5 @@ export interface UpdateTaskRequest { * Optional Revert API version you're using. If missing we default to the latest version of the API. */ xApiVersion?: string; - body: Vellum.ticket.CreateOrUpdateTaskRequest; + body: Revert.ticket.CreateOrUpdateTaskRequest; } diff --git a/src/api/resources/ticket/resources/task/types/CreateOrUpdateTaskRequest.ts b/src/api/resources/ticket/resources/task/types/CreateOrUpdateTaskRequest.ts index 2fbd09e..40bc5cc 100644 --- a/src/api/resources/ticket/resources/task/types/CreateOrUpdateTaskRequest.ts +++ b/src/api/resources/ticket/resources/task/types/CreateOrUpdateTaskRequest.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; -export type CreateOrUpdateTaskRequest = Vellum.common.TaskTicketWrite; +export type CreateOrUpdateTaskRequest = Revert.common.TaskTicketWrite; diff --git a/src/api/resources/ticket/resources/task/types/CreateOrUpdateTaskResponse.ts b/src/api/resources/ticket/resources/task/types/CreateOrUpdateTaskResponse.ts index 6611d61..227a23a 100644 --- a/src/api/resources/ticket/resources/task/types/CreateOrUpdateTaskResponse.ts +++ b/src/api/resources/ticket/resources/task/types/CreateOrUpdateTaskResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface CreateOrUpdateTaskResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; message: string; result?: unknown; } diff --git a/src/api/resources/ticket/resources/task/types/GetTaskResponse.ts b/src/api/resources/ticket/resources/task/types/GetTaskResponse.ts index 302b627..c48fd6b 100644 --- a/src/api/resources/ticket/resources/task/types/GetTaskResponse.ts +++ b/src/api/resources/ticket/resources/task/types/GetTaskResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetTaskResponse { - status: Vellum.common.ResponseStatus; - result: Vellum.common.TaskTicket; + status: Revert.common.ResponseStatus; + result: Revert.common.TaskTicket; } diff --git a/src/api/resources/ticket/resources/task/types/GetTasksResponse.ts b/src/api/resources/ticket/resources/task/types/GetTasksResponse.ts index 6740c92..f6e994b 100644 --- a/src/api/resources/ticket/resources/task/types/GetTasksResponse.ts +++ b/src/api/resources/ticket/resources/task/types/GetTasksResponse.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetTasksResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; - results: Vellum.common.TaskTicket[]; + results: Revert.common.TaskTicket[]; } diff --git a/src/api/resources/ticket/resources/user/client/Client.ts b/src/api/resources/ticket/resources/user/client/Client.ts index 958634f..3b9b55e 100644 --- a/src/api/resources/ticket/resources/user/client/Client.ts +++ b/src/api/resources/ticket/resources/user/client/Client.ts @@ -4,14 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; import urlJoin from "url-join"; import * as serializers from "../../../../../../serialization"; import * as errors from "../../../../../../errors"; export declare namespace User { interface Options { - environment?: core.Supplier; + environment?: core.Supplier; } interface RequestOptions { @@ -25,15 +25,15 @@ export class User { /** * Get details of a user - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getUser( id: string, - request: Vellum.ticket.GetUserRequest, + request: Revert.ticket.GetUserRequest, requestOptions?: User.RequestOptions - ): Promise { + ): Promise { const { fields, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -42,14 +42,14 @@ export class User { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, `/ticket/users/${id}` ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -71,7 +71,7 @@ export class User { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -80,7 +80,7 @@ export class User { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -89,7 +89,7 @@ export class User { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -98,7 +98,7 @@ export class User { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -107,14 +107,14 @@ export class User { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } @@ -122,14 +122,14 @@ export class User { /** * Get all the users - * @throws {@link Vellum.common.UnAuthorizedError} - * @throws {@link Vellum.common.InternalServerError} - * @throws {@link Vellum.common.NotFoundError} + * @throws {@link Revert.common.UnAuthorizedError} + * @throws {@link Revert.common.InternalServerError} + * @throws {@link Revert.common.NotFoundError} */ public async getUsers( - request: Vellum.ticket.GetUsersRequest, + request: Revert.ticket.GetUsersRequest, requestOptions?: User.RequestOptions - ): Promise { + ): Promise { const { fields, pageSize, cursor, xRevertApiToken, xRevertTId, xApiVersion } = request; const _queryParams: Record = {}; if (fields != null) { @@ -146,14 +146,14 @@ export class User { const _response = await core.fetcher({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.VellumEnvironment.Production, + (await core.Supplier.get(this._options.environment)) ?? environments.RevertEnvironment.Production, "/ticket/users" ), method: "GET", headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@revertdotdev/node", - "X-Fern-SDK-Version": "0.0.589", + "X-Fern-SDK-Version": "0.0.592", "x-revert-api-token": xRevertApiToken, "x-revert-t-id": xRevertTId, "x-api-version": xApiVersion != null ? xApiVersion : undefined, @@ -175,7 +175,7 @@ export class User { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 401: - throw new Vellum.common.UnAuthorizedError( + throw new Revert.common.UnAuthorizedError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -184,7 +184,7 @@ export class User { }) ); case 500: - throw new Vellum.common.InternalServerError( + throw new Revert.common.InternalServerError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -193,7 +193,7 @@ export class User { }) ); case 404: - throw new Vellum.common.NotFoundError( + throw new Revert.common.NotFoundError( await serializers.common.BaseError.parseOrThrow(_response.error.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, @@ -202,7 +202,7 @@ export class User { }) ); default: - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.body, }); @@ -211,14 +211,14 @@ export class User { switch (_response.error.reason) { case "non-json": - throw new errors.VellumError({ + throw new errors.RevertError({ statusCode: _response.error.statusCode, body: _response.error.rawBody, }); case "timeout": - throw new errors.VellumTimeoutError(); + throw new errors.RevertTimeoutError(); case "unknown": - throw new errors.VellumError({ + throw new errors.RevertError({ message: _response.error.errorMessage, }); } diff --git a/src/api/resources/ticket/resources/user/types/GetUserResponse.ts b/src/api/resources/ticket/resources/user/types/GetUserResponse.ts index 82c538e..82423c1 100644 --- a/src/api/resources/ticket/resources/user/types/GetUserResponse.ts +++ b/src/api/resources/ticket/resources/user/types/GetUserResponse.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetUserResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; result?: unknown; } diff --git a/src/api/resources/ticket/resources/user/types/GetUsersResponse.ts b/src/api/resources/ticket/resources/user/types/GetUsersResponse.ts index ae89ee5..904b2ea 100644 --- a/src/api/resources/ticket/resources/user/types/GetUsersResponse.ts +++ b/src/api/resources/ticket/resources/user/types/GetUsersResponse.ts @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vellum from "../../../../.."; +import * as Revert from "../../../../.."; export interface GetUsersResponse { - status: Vellum.common.ResponseStatus; + status: Revert.common.ResponseStatus; next?: string; previous?: string; results?: unknown; diff --git a/src/environments.ts b/src/environments.ts index 3c85d28..72134a4 100644 --- a/src/environments.ts +++ b/src/environments.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export const VellumEnvironment = { +export const RevertEnvironment = { Production: "https://api.revert.dev", /** * This staging environment is helpful for testing! @@ -11,7 +11,7 @@ export const VellumEnvironment = { Local: "http://localhost:4001", } as const; -export type VellumEnvironment = - | typeof VellumEnvironment.Production - | typeof VellumEnvironment.Staging - | typeof VellumEnvironment.Local; +export type RevertEnvironment = + | typeof RevertEnvironment.Production + | typeof RevertEnvironment.Staging + | typeof RevertEnvironment.Local; diff --git a/src/errors/VellumError.ts b/src/errors/RevertError.ts similarity index 90% rename from src/errors/VellumError.ts rename to src/errors/RevertError.ts index 1715ece..68fa4fb 100644 --- a/src/errors/VellumError.ts +++ b/src/errors/RevertError.ts @@ -2,13 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ -export class VellumError extends Error { +export class RevertError extends Error { readonly statusCode?: number; readonly body?: unknown; constructor({ message, statusCode, body }: { message?: string; statusCode?: number; body?: unknown }) { super(buildMessage({ message, statusCode, body })); - Object.setPrototypeOf(this, VellumError.prototype); + Object.setPrototypeOf(this, RevertError.prototype); if (statusCode != null) { this.statusCode = statusCode; } diff --git a/src/errors/VellumTimeoutError.ts b/src/errors/RevertTimeoutError.ts similarity index 53% rename from src/errors/VellumTimeoutError.ts rename to src/errors/RevertTimeoutError.ts index e12e0e1..15773b7 100644 --- a/src/errors/VellumTimeoutError.ts +++ b/src/errors/RevertTimeoutError.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export class VellumTimeoutError extends Error { +export class RevertTimeoutError extends Error { constructor() { super("Timeout"); - Object.setPrototypeOf(this, VellumTimeoutError.prototype); + Object.setPrototypeOf(this, RevertTimeoutError.prototype); } } diff --git a/src/errors/index.ts b/src/errors/index.ts index 623c347..61073b0 100644 --- a/src/errors/index.ts +++ b/src/errors/index.ts @@ -1,2 +1,2 @@ -export { VellumError } from "./VellumError"; -export { VellumTimeoutError } from "./VellumTimeoutError"; +export { RevertError } from "./RevertError"; +export { RevertTimeoutError } from "./RevertTimeoutError"; diff --git a/src/index.ts b/src/index.ts index b3f3e03..f4c5660 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export * as Vellum from "./api"; -export { VellumClient } from "./Client"; -export { VellumEnvironment } from "./environments"; -export { VellumError, VellumTimeoutError } from "./errors"; +export * as Revert from "./api"; +export { RevertClient } from "./Client"; +export { RevertEnvironment } from "./environments"; +export { RevertError, RevertTimeoutError } from "./errors"; diff --git a/src/serialization/resources/chat/resources/channels/types/GetChannelsResponse.ts b/src/serialization/resources/chat/resources/channels/types/GetChannelsResponse.ts index f614218..b516de8 100644 --- a/src/serialization/resources/chat/resources/channels/types/GetChannelsResponse.ts +++ b/src/serialization/resources/chat/resources/channels/types/GetChannelsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetChannelsResponse: core.serialization.ObjectSchema< serializers.chat.GetChannelsResponse.Raw, - Vellum.chat.GetChannelsResponse + Revert.chat.GetChannelsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/chat/resources/messages/types/CreateorUpdateMessageRequest.ts b/src/serialization/resources/chat/resources/messages/types/CreateorUpdateMessageRequest.ts index de40235..49a4bff 100644 --- a/src/serialization/resources/chat/resources/messages/types/CreateorUpdateMessageRequest.ts +++ b/src/serialization/resources/chat/resources/messages/types/CreateorUpdateMessageRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateorUpdateMessageRequest: core.serialization.ObjectSchema< serializers.chat.CreateorUpdateMessageRequest.Raw, - Vellum.chat.CreateorUpdateMessageRequest + Revert.chat.CreateorUpdateMessageRequest > = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.Message)); diff --git a/src/serialization/resources/chat/resources/messages/types/CreateorUpdateMessageResponse.ts b/src/serialization/resources/chat/resources/messages/types/CreateorUpdateMessageResponse.ts index f944d6d..e60790d 100644 --- a/src/serialization/resources/chat/resources/messages/types/CreateorUpdateMessageResponse.ts +++ b/src/serialization/resources/chat/resources/messages/types/CreateorUpdateMessageResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateorUpdateMessageResponse: core.serialization.ObjectSchema< serializers.chat.CreateorUpdateMessageResponse.Raw, - Vellum.chat.CreateorUpdateMessageResponse + Revert.chat.CreateorUpdateMessageResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.Message), diff --git a/src/serialization/resources/chat/resources/users/types/GetUsersResponse.ts b/src/serialization/resources/chat/resources/users/types/GetUsersResponse.ts index 77688fd..e603902 100644 --- a/src/serialization/resources/chat/resources/users/types/GetUsersResponse.ts +++ b/src/serialization/resources/chat/resources/users/types/GetUsersResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetUsersResponse: core.serialization.ObjectSchema< serializers.chat.GetUsersResponse.Raw, - Vellum.chat.GetUsersResponse + Revert.chat.GetUsersResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/common/resources/associations/types/CompanyAssociation.ts b/src/serialization/resources/common/resources/associations/types/CompanyAssociation.ts index 72e41a1..9e134c9 100644 --- a/src/serialization/resources/common/resources/associations/types/CompanyAssociation.ts +++ b/src/serialization/resources/common/resources/associations/types/CompanyAssociation.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CompanyAssociation: core.serialization.ObjectSchema< serializers.common.CompanyAssociation.Raw, - Vellum.common.CompanyAssociation + Revert.common.CompanyAssociation > = core.serialization.object({ dealId: core.serialization.string().optional(), }); diff --git a/src/serialization/resources/common/resources/associations/types/ContactAssociation.ts b/src/serialization/resources/common/resources/associations/types/ContactAssociation.ts index 49ca1fb..79bfd6a 100644 --- a/src/serialization/resources/common/resources/associations/types/ContactAssociation.ts +++ b/src/serialization/resources/common/resources/associations/types/ContactAssociation.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const ContactAssociation: core.serialization.ObjectSchema< serializers.common.ContactAssociation.Raw, - Vellum.common.ContactAssociation + Revert.common.ContactAssociation > = core.serialization.object({ dealId: core.serialization.string().optional(), leadId: core.serialization.string().optional(), diff --git a/src/serialization/resources/common/resources/associations/types/DealAssociation.ts b/src/serialization/resources/common/resources/associations/types/DealAssociation.ts index 84d5ae2..20a4b64 100644 --- a/src/serialization/resources/common/resources/associations/types/DealAssociation.ts +++ b/src/serialization/resources/common/resources/associations/types/DealAssociation.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const DealAssociation: core.serialization.ObjectSchema< serializers.common.DealAssociation.Raw, - Vellum.common.DealAssociation + Revert.common.DealAssociation > = core.serialization.object({ contactId: core.serialization.string().optional(), companyId: core.serialization.string().optional(), diff --git a/src/serialization/resources/common/resources/associations/types/EventAssociation.ts b/src/serialization/resources/common/resources/associations/types/EventAssociation.ts index 6354890..3b0f051 100644 --- a/src/serialization/resources/common/resources/associations/types/EventAssociation.ts +++ b/src/serialization/resources/common/resources/associations/types/EventAssociation.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const EventAssociation: core.serialization.ObjectSchema< serializers.common.EventAssociation.Raw, - Vellum.common.EventAssociation + Revert.common.EventAssociation > = core.serialization.object({ dealId: core.serialization.string().optional(), contactId: core.serialization.string().optional(), diff --git a/src/serialization/resources/common/resources/associations/types/LeadAssociation.ts b/src/serialization/resources/common/resources/associations/types/LeadAssociation.ts index c73bc75..1593bbb 100644 --- a/src/serialization/resources/common/resources/associations/types/LeadAssociation.ts +++ b/src/serialization/resources/common/resources/associations/types/LeadAssociation.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const LeadAssociation: core.serialization.ObjectSchema< serializers.common.LeadAssociation.Raw, - Vellum.common.LeadAssociation + Revert.common.LeadAssociation > = core.serialization.object({ contactId: core.serialization.string().optional(), companyId: core.serialization.string().optional(), diff --git a/src/serialization/resources/common/resources/associations/types/TaskAssociation.ts b/src/serialization/resources/common/resources/associations/types/TaskAssociation.ts index 3f1d9a7..7c8120a 100644 --- a/src/serialization/resources/common/resources/associations/types/TaskAssociation.ts +++ b/src/serialization/resources/common/resources/associations/types/TaskAssociation.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const TaskAssociation: core.serialization.ObjectSchema< serializers.common.TaskAssociation.Raw, - Vellum.common.TaskAssociation + Revert.common.TaskAssociation > = core.serialization.object({ dealId: core.serialization.string().optional(), }); diff --git a/src/serialization/resources/common/resources/errors/types/BaseError.ts b/src/serialization/resources/common/resources/errors/types/BaseError.ts index 6162c87..6581263 100644 --- a/src/serialization/resources/common/resources/errors/types/BaseError.ts +++ b/src/serialization/resources/common/resources/errors/types/BaseError.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const BaseError: core.serialization.ObjectSchema = +export const BaseError: core.serialization.ObjectSchema = core.serialization.object({ error: core.serialization.string(), }); diff --git a/src/serialization/resources/common/resources/types/types/Account.ts b/src/serialization/resources/common/resources/types/types/Account.ts index bf8ab5f..61b0db2 100644 --- a/src/serialization/resources/common/resources/types/types/Account.ts +++ b/src/serialization/resources/common/resources/types/types/Account.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Account: core.serialization.ObjectSchema = +export const Account: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), tenantCount: core.serialization.property("tenant_count", core.serialization.number()), diff --git a/src/serialization/resources/common/resources/types/types/App.ts b/src/serialization/resources/common/resources/types/types/App.ts index e0799d5..ebd63ef 100644 --- a/src/serialization/resources/common/resources/types/types/App.ts +++ b/src/serialization/resources/common/resources/types/types/App.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const App: core.serialization.ObjectSchema = +export const App: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), tpId: core.serialization.property( diff --git a/src/serialization/resources/common/resources/types/types/Connection.ts b/src/serialization/resources/common/resources/types/types/Connection.ts index 5b99eea..a728246 100644 --- a/src/serialization/resources/common/resources/types/types/Connection.ts +++ b/src/serialization/resources/common/resources/types/types/Connection.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Connection: core.serialization.ObjectSchema = +export const Connection: core.serialization.ObjectSchema = core.serialization.object({ tpId: core.serialization.property( "tp_id", diff --git a/src/serialization/resources/common/resources/types/types/ResponseStatus.ts b/src/serialization/resources/common/resources/types/types/ResponseStatus.ts index ebb0a7d..c42caf1 100644 --- a/src/serialization/resources/common/resources/types/types/ResponseStatus.ts +++ b/src/serialization/resources/common/resources/types/types/ResponseStatus.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const ResponseStatus: core.serialization.Schema< serializers.common.ResponseStatus.Raw, - Vellum.common.ResponseStatus + Revert.common.ResponseStatus > = core.serialization.enum_(["ok", "error"]); export declare namespace ResponseStatus { diff --git a/src/serialization/resources/common/resources/types/types/RevertUser.ts b/src/serialization/resources/common/resources/types/types/RevertUser.ts index a6b663f..f9310af 100644 --- a/src/serialization/resources/common/resources/types/types/RevertUser.ts +++ b/src/serialization/resources/common/resources/types/types/RevertUser.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const RevertUser: core.serialization.ObjectSchema = +export const RevertUser: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), domain: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/types/types/StandardObject.ts b/src/serialization/resources/common/resources/types/types/StandardObject.ts index 02ac2ae..d07506c 100644 --- a/src/serialization/resources/common/resources/types/types/StandardObject.ts +++ b/src/serialization/resources/common/resources/types/types/StandardObject.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const StandardObject: core.serialization.Schema< serializers.common.StandardObject.Raw, - Vellum.common.StandardObject + Revert.common.StandardObject > = core.serialization.enum_(["company", "contact", "deal", "event", "lead", "note", "task", "user"]); export declare namespace StandardObject { diff --git a/src/serialization/resources/common/resources/types/types/TicketPriority.ts b/src/serialization/resources/common/resources/types/types/TicketPriority.ts index 4434f6d..0268627 100644 --- a/src/serialization/resources/common/resources/types/types/TicketPriority.ts +++ b/src/serialization/resources/common/resources/types/types/TicketPriority.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const TicketPriority: core.serialization.Schema< serializers.common.TicketPriority.Raw, - Vellum.common.TicketPriority + Revert.common.TicketPriority > = core.serialization.enum_(["urgent", "high", "medium", "low", "lowest"]); export declare namespace TicketPriority { diff --git a/src/serialization/resources/common/resources/types/types/TicketStatus.ts b/src/serialization/resources/common/resources/types/types/TicketStatus.ts index 677023e..9ddcea1 100644 --- a/src/serialization/resources/common/resources/types/types/TicketStatus.ts +++ b/src/serialization/resources/common/resources/types/types/TicketStatus.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const TicketStatus: core.serialization.Schema = +export const TicketStatus: core.serialization.Schema = core.serialization.enum_(["open", "close", "in_progress"]); export declare namespace TicketStatus { diff --git a/src/serialization/resources/common/resources/types/types/Tpid.ts b/src/serialization/resources/common/resources/types/types/Tpid.ts index efc27e1..a174a39 100644 --- a/src/serialization/resources/common/resources/types/types/Tpid.ts +++ b/src/serialization/resources/common/resources/types/types/Tpid.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Tpid: core.serialization.Schema = +export const Tpid: core.serialization.Schema = core.serialization.enum_(["hubspot", "zohocrm", "sfdc", "pipedrive", "slack"]); export declare namespace Tpid { diff --git a/src/serialization/resources/common/resources/unified/types/Channel.ts b/src/serialization/resources/common/resources/unified/types/Channel.ts index 792f632..9aceba1 100644 --- a/src/serialization/resources/common/resources/unified/types/Channel.ts +++ b/src/serialization/resources/common/resources/unified/types/Channel.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Channel: core.serialization.ObjectSchema = +export const Channel: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), name: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/CommentTicketWrite.ts b/src/serialization/resources/common/resources/unified/types/CommentTicketWrite.ts index 5f30938..aed8f21 100644 --- a/src/serialization/resources/common/resources/unified/types/CommentTicketWrite.ts +++ b/src/serialization/resources/common/resources/unified/types/CommentTicketWrite.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CommentTicketWrite: core.serialization.ObjectSchema< serializers.common.CommentTicketWrite.Raw, - Vellum.common.CommentTicketWrite + Revert.common.CommentTicketWrite > = core.serialization.object({ body: core.serialization.string(), taskId: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/CommonUnifiedFields.ts b/src/serialization/resources/common/resources/unified/types/CommonUnifiedFields.ts index 05ee809..664ca7f 100644 --- a/src/serialization/resources/common/resources/unified/types/CommonUnifiedFields.ts +++ b/src/serialization/resources/common/resources/unified/types/CommonUnifiedFields.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CommonUnifiedFields: core.serialization.ObjectSchema< serializers.common.CommonUnifiedFields.Raw, - Vellum.common.CommonUnifiedFields + Revert.common.CommonUnifiedFields > = core.serialization.object({ id: core.serialization.string(), remoteId: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/Company.ts b/src/serialization/resources/common/resources/unified/types/Company.ts index 007f4fa..793504b 100644 --- a/src/serialization/resources/common/resources/unified/types/Company.ts +++ b/src/serialization/resources/common/resources/unified/types/Company.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Company: core.serialization.ObjectSchema = +export const Company: core.serialization.ObjectSchema = core.serialization .object({ name: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/CompanyAddress.ts b/src/serialization/resources/common/resources/unified/types/CompanyAddress.ts index 46c4af3..7943482 100644 --- a/src/serialization/resources/common/resources/unified/types/CompanyAddress.ts +++ b/src/serialization/resources/common/resources/unified/types/CompanyAddress.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CompanyAddress: core.serialization.ObjectSchema< serializers.common.CompanyAddress.Raw, - Vellum.common.CompanyAddress + Revert.common.CompanyAddress > = core.serialization.object({ street: core.serialization.string().optional(), city: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/Contact.ts b/src/serialization/resources/common/resources/unified/types/Contact.ts index 1ddb51f..958691e 100644 --- a/src/serialization/resources/common/resources/unified/types/Contact.ts +++ b/src/serialization/resources/common/resources/unified/types/Contact.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Contact: core.serialization.ObjectSchema = +export const Contact: core.serialization.ObjectSchema = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.CommonUnifiedFields)) diff --git a/src/serialization/resources/common/resources/unified/types/ContactWrite.ts b/src/serialization/resources/common/resources/unified/types/ContactWrite.ts index b92a651..1cdfb1e 100644 --- a/src/serialization/resources/common/resources/unified/types/ContactWrite.ts +++ b/src/serialization/resources/common/resources/unified/types/ContactWrite.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const ContactWrite: core.serialization.ObjectSchema< serializers.common.ContactWrite.Raw, - Vellum.common.ContactWrite + Revert.common.ContactWrite > = core.serialization.object({ firstName: core.serialization.string(), lastName: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/Deal.ts b/src/serialization/resources/common/resources/unified/types/Deal.ts index 25af4cc..6cd20bb 100644 --- a/src/serialization/resources/common/resources/unified/types/Deal.ts +++ b/src/serialization/resources/common/resources/unified/types/Deal.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Deal: core.serialization.ObjectSchema = core.serialization +export const Deal: core.serialization.ObjectSchema = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.CommonUnifiedFields)) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.DealWrite)); diff --git a/src/serialization/resources/common/resources/unified/types/DealWrite.ts b/src/serialization/resources/common/resources/unified/types/DealWrite.ts index 63db29f..8f4b292 100644 --- a/src/serialization/resources/common/resources/unified/types/DealWrite.ts +++ b/src/serialization/resources/common/resources/unified/types/DealWrite.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const DealWrite: core.serialization.ObjectSchema = +export const DealWrite: core.serialization.ObjectSchema = core.serialization.object({ amount: core.serialization.number(), priority: core.serialization.string().optional(), diff --git a/src/serialization/resources/common/resources/unified/types/Event.ts b/src/serialization/resources/common/resources/unified/types/Event.ts index fbde262..65969e6 100644 --- a/src/serialization/resources/common/resources/unified/types/Event.ts +++ b/src/serialization/resources/common/resources/unified/types/Event.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Event: core.serialization.ObjectSchema = +export const Event: core.serialization.ObjectSchema = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.CommonUnifiedFields)) diff --git a/src/serialization/resources/common/resources/unified/types/EventWrite.ts b/src/serialization/resources/common/resources/unified/types/EventWrite.ts index 9754894..d219ee9 100644 --- a/src/serialization/resources/common/resources/unified/types/EventWrite.ts +++ b/src/serialization/resources/common/resources/unified/types/EventWrite.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const EventWrite: core.serialization.ObjectSchema = +export const EventWrite: core.serialization.ObjectSchema = core.serialization.object({ type: core.serialization.string(), subject: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/Lead.ts b/src/serialization/resources/common/resources/unified/types/Lead.ts index a0209eb..b5eeb10 100644 --- a/src/serialization/resources/common/resources/unified/types/Lead.ts +++ b/src/serialization/resources/common/resources/unified/types/Lead.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Lead: core.serialization.ObjectSchema = core.serialization +export const Lead: core.serialization.ObjectSchema = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.CommonUnifiedFields)) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.LeadWrite)); diff --git a/src/serialization/resources/common/resources/unified/types/LeadWrite.ts b/src/serialization/resources/common/resources/unified/types/LeadWrite.ts index 5c25356..14c8fd6 100644 --- a/src/serialization/resources/common/resources/unified/types/LeadWrite.ts +++ b/src/serialization/resources/common/resources/unified/types/LeadWrite.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const LeadWrite: core.serialization.ObjectSchema = +export const LeadWrite: core.serialization.ObjectSchema = core.serialization.object({ firstName: core.serialization.string(), lastName: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/Message.ts b/src/serialization/resources/common/resources/unified/types/Message.ts index df91c70..3acc601 100644 --- a/src/serialization/resources/common/resources/unified/types/Message.ts +++ b/src/serialization/resources/common/resources/unified/types/Message.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Message: core.serialization.ObjectSchema = +export const Message: core.serialization.ObjectSchema = core.serialization.object({ text: core.serialization.string(), channelId: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/Note.ts b/src/serialization/resources/common/resources/unified/types/Note.ts index 40a57bc..389780f 100644 --- a/src/serialization/resources/common/resources/unified/types/Note.ts +++ b/src/serialization/resources/common/resources/unified/types/Note.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Note: core.serialization.ObjectSchema = core.serialization +export const Note: core.serialization.ObjectSchema = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.CommonUnifiedFields)) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.NoteWrite)); diff --git a/src/serialization/resources/common/resources/unified/types/NoteWrite.ts b/src/serialization/resources/common/resources/unified/types/NoteWrite.ts index 7891fef..e4c95a5 100644 --- a/src/serialization/resources/common/resources/unified/types/NoteWrite.ts +++ b/src/serialization/resources/common/resources/unified/types/NoteWrite.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const NoteWrite: core.serialization.ObjectSchema = +export const NoteWrite: core.serialization.ObjectSchema = core.serialization.object({ content: core.serialization.string(), associations: core.serialization diff --git a/src/serialization/resources/common/resources/unified/types/Task.ts b/src/serialization/resources/common/resources/unified/types/Task.ts index a294648..3a95618 100644 --- a/src/serialization/resources/common/resources/unified/types/Task.ts +++ b/src/serialization/resources/common/resources/unified/types/Task.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const Task: core.serialization.ObjectSchema = core.serialization +export const Task: core.serialization.ObjectSchema = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.CommonUnifiedFields)) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.TaskWrite)); diff --git a/src/serialization/resources/common/resources/unified/types/TaskTicket.ts b/src/serialization/resources/common/resources/unified/types/TaskTicket.ts index b047e01..b902216 100644 --- a/src/serialization/resources/common/resources/unified/types/TaskTicket.ts +++ b/src/serialization/resources/common/resources/unified/types/TaskTicket.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const TaskTicket: core.serialization.ObjectSchema = +export const TaskTicket: core.serialization.ObjectSchema = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.CommonUnifiedFields)) diff --git a/src/serialization/resources/common/resources/unified/types/TaskTicketWrite.ts b/src/serialization/resources/common/resources/unified/types/TaskTicketWrite.ts index 97074d5..4e23fcd 100644 --- a/src/serialization/resources/common/resources/unified/types/TaskTicketWrite.ts +++ b/src/serialization/resources/common/resources/unified/types/TaskTicketWrite.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const TaskTicketWrite: core.serialization.ObjectSchema< serializers.common.TaskTicketWrite.Raw, - Vellum.common.TaskTicketWrite + Revert.common.TaskTicketWrite > = core.serialization.object({ name: core.serialization.string(), assignees: core.serialization.list(core.serialization.string()), diff --git a/src/serialization/resources/common/resources/unified/types/TaskWrite.ts b/src/serialization/resources/common/resources/unified/types/TaskWrite.ts index 65410db..88fa85c 100644 --- a/src/serialization/resources/common/resources/unified/types/TaskWrite.ts +++ b/src/serialization/resources/common/resources/unified/types/TaskWrite.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const TaskWrite: core.serialization.ObjectSchema = +export const TaskWrite: core.serialization.ObjectSchema = core.serialization.object({ subject: core.serialization.string(), body: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/User.ts b/src/serialization/resources/common/resources/unified/types/User.ts index 135259f..70bb972 100644 --- a/src/serialization/resources/common/resources/unified/types/User.ts +++ b/src/serialization/resources/common/resources/unified/types/User.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const User: core.serialization.ObjectSchema = core.serialization +export const User: core.serialization.ObjectSchema = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.CommonUnifiedFields)) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.UserWrite)); diff --git a/src/serialization/resources/common/resources/unified/types/UserChat.ts b/src/serialization/resources/common/resources/unified/types/UserChat.ts index 9138ea0..8dbe54b 100644 --- a/src/serialization/resources/common/resources/unified/types/UserChat.ts +++ b/src/serialization/resources/common/resources/unified/types/UserChat.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const UserChat: core.serialization.ObjectSchema = +export const UserChat: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), name: core.serialization.string(), diff --git a/src/serialization/resources/common/resources/unified/types/UserWrite.ts b/src/serialization/resources/common/resources/unified/types/UserWrite.ts index 7f3e7ac..2508fd3 100644 --- a/src/serialization/resources/common/resources/unified/types/UserWrite.ts +++ b/src/serialization/resources/common/resources/unified/types/UserWrite.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; -export const UserWrite: core.serialization.ObjectSchema = +export const UserWrite: core.serialization.ObjectSchema = core.serialization.object({ firstName: core.serialization.string(), lastName: core.serialization.string(), diff --git a/src/serialization/resources/connection/types/CreateConnectionWebhookRequest.ts b/src/serialization/resources/connection/types/CreateConnectionWebhookRequest.ts index 783b58a..529ab24 100644 --- a/src/serialization/resources/connection/types/CreateConnectionWebhookRequest.ts +++ b/src/serialization/resources/connection/types/CreateConnectionWebhookRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; export const CreateConnectionWebhookRequest: core.serialization.ObjectSchema< serializers.CreateConnectionWebhookRequest.Raw, - Vellum.CreateConnectionWebhookRequest + Revert.CreateConnectionWebhookRequest > = core.serialization.object({ webhookUrl: core.serialization.string(), }); diff --git a/src/serialization/resources/connection/types/CreateConnectionWebhookResponse.ts b/src/serialization/resources/connection/types/CreateConnectionWebhookResponse.ts index cc0baa4..b6bbf73 100644 --- a/src/serialization/resources/connection/types/CreateConnectionWebhookResponse.ts +++ b/src/serialization/resources/connection/types/CreateConnectionWebhookResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; export const CreateConnectionWebhookResponse: core.serialization.ObjectSchema< serializers.CreateConnectionWebhookResponse.Raw, - Vellum.CreateConnectionWebhookResponse + Revert.CreateConnectionWebhookResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../..")).common.ResponseStatus), webhookUrl: core.serialization.string(), diff --git a/src/serialization/resources/connection/types/DeleteConnectionResponse.ts b/src/serialization/resources/connection/types/DeleteConnectionResponse.ts index c3f12e6..4ab1b43 100644 --- a/src/serialization/resources/connection/types/DeleteConnectionResponse.ts +++ b/src/serialization/resources/connection/types/DeleteConnectionResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; export const DeleteConnectionResponse: core.serialization.ObjectSchema< serializers.DeleteConnectionResponse.Raw, - Vellum.DeleteConnectionResponse + Revert.DeleteConnectionResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../..")).common.ResponseStatus), deleted: core.serialization.lazyObject(async () => (await import("../../..")).common.Connection), diff --git a/src/serialization/resources/connection/types/DeleteConnectionWebhookResponse.ts b/src/serialization/resources/connection/types/DeleteConnectionWebhookResponse.ts index 36b13af..f01e15c 100644 --- a/src/serialization/resources/connection/types/DeleteConnectionWebhookResponse.ts +++ b/src/serialization/resources/connection/types/DeleteConnectionWebhookResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; export const DeleteConnectionWebhookResponse: core.serialization.ObjectSchema< serializers.DeleteConnectionWebhookResponse.Raw, - Vellum.DeleteConnectionWebhookResponse + Revert.DeleteConnectionWebhookResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../..")).common.ResponseStatus), error: core.serialization.string().optional(), diff --git a/src/serialization/resources/connection/types/GetAllConnectionResponse.ts b/src/serialization/resources/connection/types/GetAllConnectionResponse.ts index dca3c4c..a32343c 100644 --- a/src/serialization/resources/connection/types/GetAllConnectionResponse.ts +++ b/src/serialization/resources/connection/types/GetAllConnectionResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; export const GetAllConnectionResponse: core.serialization.Schema< serializers.GetAllConnectionResponse.Raw, - Vellum.GetAllConnectionResponse + Revert.GetAllConnectionResponse > = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).common.Connection)); export declare namespace GetAllConnectionResponse { diff --git a/src/serialization/resources/connection/types/GetConnectionResponse.ts b/src/serialization/resources/connection/types/GetConnectionResponse.ts index 293bf3e..9a28f4c 100644 --- a/src/serialization/resources/connection/types/GetConnectionResponse.ts +++ b/src/serialization/resources/connection/types/GetConnectionResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; export const GetConnectionResponse: core.serialization.ObjectSchema< serializers.GetConnectionResponse.Raw, - Vellum.GetConnectionResponse + Revert.GetConnectionResponse > = core.serialization .object({ error: core.serialization.string().optional(), diff --git a/src/serialization/resources/connection/types/GetConnectionWebhookResponse.ts b/src/serialization/resources/connection/types/GetConnectionWebhookResponse.ts index 58b2224..94e69c8 100644 --- a/src/serialization/resources/connection/types/GetConnectionWebhookResponse.ts +++ b/src/serialization/resources/connection/types/GetConnectionWebhookResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; export const GetConnectionWebhookResponse: core.serialization.ObjectSchema< serializers.GetConnectionWebhookResponse.Raw, - Vellum.GetConnectionWebhookResponse + Revert.GetConnectionWebhookResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../..")).common.ResponseStatus), webhook: core.serialization.unknown(), diff --git a/src/serialization/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts b/src/serialization/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts index d535bfb..4db78d3 100644 --- a/src/serialization/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts +++ b/src/serialization/resources/crm/resources/company/client/requests/SearchCompaniesRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../.."; -import * as Vellum from "../../../../../../../api"; +import * as Revert from "../../../../../../../api"; import * as core from "../../../../../../../core"; export const SearchCompaniesRequest: core.serialization.Schema< serializers.crm.SearchCompaniesRequest.Raw, - Omit + Omit > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/company/types/CreateOrUpdateCompanyRequest.ts b/src/serialization/resources/crm/resources/company/types/CreateOrUpdateCompanyRequest.ts index 1a1c75a..0b9e478 100644 --- a/src/serialization/resources/crm/resources/company/types/CreateOrUpdateCompanyRequest.ts +++ b/src/serialization/resources/crm/resources/company/types/CreateOrUpdateCompanyRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateCompanyRequest: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateCompanyRequest.Raw, - Vellum.crm.CreateOrUpdateCompanyRequest + Revert.crm.CreateOrUpdateCompanyRequest > = core.serialization .object({ associations: core.serialization diff --git a/src/serialization/resources/crm/resources/company/types/CreateOrUpdateCompanyResponse.ts b/src/serialization/resources/crm/resources/company/types/CreateOrUpdateCompanyResponse.ts index 5c9929f..f68ba78 100644 --- a/src/serialization/resources/crm/resources/company/types/CreateOrUpdateCompanyResponse.ts +++ b/src/serialization/resources/crm/resources/company/types/CreateOrUpdateCompanyResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateCompanyResponse: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateCompanyResponse.Raw, - Vellum.crm.CreateOrUpdateCompanyResponse + Revert.crm.CreateOrUpdateCompanyResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/company/types/GetCompaniesResponse.ts b/src/serialization/resources/crm/resources/company/types/GetCompaniesResponse.ts index 9512518..c3c545f 100644 --- a/src/serialization/resources/crm/resources/company/types/GetCompaniesResponse.ts +++ b/src/serialization/resources/crm/resources/company/types/GetCompaniesResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetCompaniesResponse: core.serialization.ObjectSchema< serializers.crm.GetCompaniesResponse.Raw, - Vellum.crm.GetCompaniesResponse + Revert.crm.GetCompaniesResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/crm/resources/company/types/GetCompanyResponse.ts b/src/serialization/resources/crm/resources/company/types/GetCompanyResponse.ts index e803b49..57022bd 100644 --- a/src/serialization/resources/crm/resources/company/types/GetCompanyResponse.ts +++ b/src/serialization/resources/crm/resources/company/types/GetCompanyResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetCompanyResponse: core.serialization.ObjectSchema< serializers.crm.GetCompanyResponse.Raw, - Vellum.crm.GetCompanyResponse + Revert.crm.GetCompanyResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.Company), diff --git a/src/serialization/resources/crm/resources/company/types/SearchCompaniesResponse.ts b/src/serialization/resources/crm/resources/company/types/SearchCompaniesResponse.ts index 2ed407b..66719ed 100644 --- a/src/serialization/resources/crm/resources/company/types/SearchCompaniesResponse.ts +++ b/src/serialization/resources/crm/resources/company/types/SearchCompaniesResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const SearchCompaniesResponse: core.serialization.ObjectSchema< serializers.crm.SearchCompaniesResponse.Raw, - Vellum.crm.SearchCompaniesResponse + Revert.crm.SearchCompaniesResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), results: core.serialization.list( diff --git a/src/serialization/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts b/src/serialization/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts index 7373541..1f8beae 100644 --- a/src/serialization/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts +++ b/src/serialization/resources/crm/resources/contact/client/requests/SearchContactsRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../.."; -import * as Vellum from "../../../../../../../api"; +import * as Revert from "../../../../../../../api"; import * as core from "../../../../../../../core"; export const SearchContactsRequest: core.serialization.Schema< serializers.crm.SearchContactsRequest.Raw, - Omit + Omit > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/contact/types/CreateOrUpdateContactRequest.ts b/src/serialization/resources/crm/resources/contact/types/CreateOrUpdateContactRequest.ts index 2a0f697..55b642c 100644 --- a/src/serialization/resources/crm/resources/contact/types/CreateOrUpdateContactRequest.ts +++ b/src/serialization/resources/crm/resources/contact/types/CreateOrUpdateContactRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateContactRequest: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateContactRequest.Raw, - Vellum.crm.CreateOrUpdateContactRequest + Revert.crm.CreateOrUpdateContactRequest > = core.serialization.lazyObject(async () => (await import("../../../../..")).common.ContactWrite); export declare namespace CreateOrUpdateContactRequest { diff --git a/src/serialization/resources/crm/resources/contact/types/CreateOrUpdateContactResponse.ts b/src/serialization/resources/crm/resources/contact/types/CreateOrUpdateContactResponse.ts index e4c1050..523178b 100644 --- a/src/serialization/resources/crm/resources/contact/types/CreateOrUpdateContactResponse.ts +++ b/src/serialization/resources/crm/resources/contact/types/CreateOrUpdateContactResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateContactResponse: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateContactResponse.Raw, - Vellum.crm.CreateOrUpdateContactResponse + Revert.crm.CreateOrUpdateContactResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/contact/types/GetContactResponse.ts b/src/serialization/resources/crm/resources/contact/types/GetContactResponse.ts index d0793b0..249b8db 100644 --- a/src/serialization/resources/crm/resources/contact/types/GetContactResponse.ts +++ b/src/serialization/resources/crm/resources/contact/types/GetContactResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetContactResponse: core.serialization.ObjectSchema< serializers.crm.GetContactResponse.Raw, - Vellum.crm.GetContactResponse + Revert.crm.GetContactResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.Contact), diff --git a/src/serialization/resources/crm/resources/contact/types/GetContactsResponse.ts b/src/serialization/resources/crm/resources/contact/types/GetContactsResponse.ts index 6ef1477..78476cc 100644 --- a/src/serialization/resources/crm/resources/contact/types/GetContactsResponse.ts +++ b/src/serialization/resources/crm/resources/contact/types/GetContactsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetContactsResponse: core.serialization.ObjectSchema< serializers.crm.GetContactsResponse.Raw, - Vellum.crm.GetContactsResponse + Revert.crm.GetContactsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/crm/resources/contact/types/SearchContactsResponse.ts b/src/serialization/resources/crm/resources/contact/types/SearchContactsResponse.ts index 16b588b..d162e55 100644 --- a/src/serialization/resources/crm/resources/contact/types/SearchContactsResponse.ts +++ b/src/serialization/resources/crm/resources/contact/types/SearchContactsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const SearchContactsResponse: core.serialization.ObjectSchema< serializers.crm.SearchContactsResponse.Raw, - Vellum.crm.SearchContactsResponse + Revert.crm.SearchContactsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), results: core.serialization.list( diff --git a/src/serialization/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts b/src/serialization/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts index 0083b1d..fd758d0 100644 --- a/src/serialization/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts +++ b/src/serialization/resources/crm/resources/deal/client/requests/SearchDealsRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../.."; -import * as Vellum from "../../../../../../../api"; +import * as Revert from "../../../../../../../api"; import * as core from "../../../../../../../core"; export const SearchDealsRequest: core.serialization.Schema< serializers.crm.SearchDealsRequest.Raw, - Omit + Omit > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/deal/types/CreateOrUpdateDealRequest.ts b/src/serialization/resources/crm/resources/deal/types/CreateOrUpdateDealRequest.ts index f743397..14fa032 100644 --- a/src/serialization/resources/crm/resources/deal/types/CreateOrUpdateDealRequest.ts +++ b/src/serialization/resources/crm/resources/deal/types/CreateOrUpdateDealRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateDealRequest: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateDealRequest.Raw, - Vellum.crm.CreateOrUpdateDealRequest + Revert.crm.CreateOrUpdateDealRequest > = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.DealWrite)); diff --git a/src/serialization/resources/crm/resources/deal/types/CreateOrUpdateDealResponse.ts b/src/serialization/resources/crm/resources/deal/types/CreateOrUpdateDealResponse.ts index 1518ead..27547bb 100644 --- a/src/serialization/resources/crm/resources/deal/types/CreateOrUpdateDealResponse.ts +++ b/src/serialization/resources/crm/resources/deal/types/CreateOrUpdateDealResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateDealResponse: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateDealResponse.Raw, - Vellum.crm.CreateOrUpdateDealResponse + Revert.crm.CreateOrUpdateDealResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/deal/types/GetDealResponse.ts b/src/serialization/resources/crm/resources/deal/types/GetDealResponse.ts index c0e879b..af25ea5 100644 --- a/src/serialization/resources/crm/resources/deal/types/GetDealResponse.ts +++ b/src/serialization/resources/crm/resources/deal/types/GetDealResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetDealResponse: core.serialization.ObjectSchema< serializers.crm.GetDealResponse.Raw, - Vellum.crm.GetDealResponse + Revert.crm.GetDealResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.Deal), diff --git a/src/serialization/resources/crm/resources/deal/types/GetDealsResponse.ts b/src/serialization/resources/crm/resources/deal/types/GetDealsResponse.ts index b1029ad..5f56e2d 100644 --- a/src/serialization/resources/crm/resources/deal/types/GetDealsResponse.ts +++ b/src/serialization/resources/crm/resources/deal/types/GetDealsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetDealsResponse: core.serialization.ObjectSchema< serializers.crm.GetDealsResponse.Raw, - Vellum.crm.GetDealsResponse + Revert.crm.GetDealsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/crm/resources/deal/types/SearchDealsResponse.ts b/src/serialization/resources/crm/resources/deal/types/SearchDealsResponse.ts index 08fcb56..7e57aeb 100644 --- a/src/serialization/resources/crm/resources/deal/types/SearchDealsResponse.ts +++ b/src/serialization/resources/crm/resources/deal/types/SearchDealsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const SearchDealsResponse: core.serialization.ObjectSchema< serializers.crm.SearchDealsResponse.Raw, - Vellum.crm.SearchDealsResponse + Revert.crm.SearchDealsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), results: core.serialization.list( diff --git a/src/serialization/resources/crm/resources/event/client/requests/SearchEventsRequest.ts b/src/serialization/resources/crm/resources/event/client/requests/SearchEventsRequest.ts index 9b0c11f..4f5531f 100644 --- a/src/serialization/resources/crm/resources/event/client/requests/SearchEventsRequest.ts +++ b/src/serialization/resources/crm/resources/event/client/requests/SearchEventsRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../.."; -import * as Vellum from "../../../../../../../api"; +import * as Revert from "../../../../../../../api"; import * as core from "../../../../../../../core"; export const SearchEventsRequest: core.serialization.Schema< serializers.crm.SearchEventsRequest.Raw, - Omit + Omit > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/event/types/CreateOrUpdateEventRequest.ts b/src/serialization/resources/crm/resources/event/types/CreateOrUpdateEventRequest.ts index 294467b..936b27b 100644 --- a/src/serialization/resources/crm/resources/event/types/CreateOrUpdateEventRequest.ts +++ b/src/serialization/resources/crm/resources/event/types/CreateOrUpdateEventRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateEventRequest: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateEventRequest.Raw, - Vellum.crm.CreateOrUpdateEventRequest + Revert.crm.CreateOrUpdateEventRequest > = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.EventWrite)); diff --git a/src/serialization/resources/crm/resources/event/types/CreateOrUpdateEventResponse.ts b/src/serialization/resources/crm/resources/event/types/CreateOrUpdateEventResponse.ts index 15a65dc..e88a6c6 100644 --- a/src/serialization/resources/crm/resources/event/types/CreateOrUpdateEventResponse.ts +++ b/src/serialization/resources/crm/resources/event/types/CreateOrUpdateEventResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateEventResponse: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateEventResponse.Raw, - Vellum.crm.CreateOrUpdateEventResponse + Revert.crm.CreateOrUpdateEventResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/event/types/DeleteEventResponse.ts b/src/serialization/resources/crm/resources/event/types/DeleteEventResponse.ts index 829d3bf..c189fba 100644 --- a/src/serialization/resources/crm/resources/event/types/DeleteEventResponse.ts +++ b/src/serialization/resources/crm/resources/event/types/DeleteEventResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const DeleteEventResponse: core.serialization.ObjectSchema< serializers.crm.DeleteEventResponse.Raw, - Vellum.crm.DeleteEventResponse + Revert.crm.DeleteEventResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/event/types/GetEventResponse.ts b/src/serialization/resources/crm/resources/event/types/GetEventResponse.ts index f4ed477..71e7622 100644 --- a/src/serialization/resources/crm/resources/event/types/GetEventResponse.ts +++ b/src/serialization/resources/crm/resources/event/types/GetEventResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetEventResponse: core.serialization.ObjectSchema< serializers.crm.GetEventResponse.Raw, - Vellum.crm.GetEventResponse + Revert.crm.GetEventResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.Event), diff --git a/src/serialization/resources/crm/resources/event/types/GetEventsResponse.ts b/src/serialization/resources/crm/resources/event/types/GetEventsResponse.ts index 08edfbf..bf83cb3 100644 --- a/src/serialization/resources/crm/resources/event/types/GetEventsResponse.ts +++ b/src/serialization/resources/crm/resources/event/types/GetEventsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetEventsResponse: core.serialization.ObjectSchema< serializers.crm.GetEventsResponse.Raw, - Vellum.crm.GetEventsResponse + Revert.crm.GetEventsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/crm/resources/event/types/SearchEventsResponse.ts b/src/serialization/resources/crm/resources/event/types/SearchEventsResponse.ts index ac6c05d..e014bb0 100644 --- a/src/serialization/resources/crm/resources/event/types/SearchEventsResponse.ts +++ b/src/serialization/resources/crm/resources/event/types/SearchEventsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const SearchEventsResponse: core.serialization.ObjectSchema< serializers.crm.SearchEventsResponse.Raw, - Vellum.crm.SearchEventsResponse + Revert.crm.SearchEventsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), results: core.serialization.list( diff --git a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts index 4b38930..ac8de76 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts +++ b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingRequestBody.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../../.."; -import * as Vellum from "../../../../../../../../api"; +import * as Revert from "../../../../../../../../api"; import * as core from "../../../../../../../../core"; export const CreateFieldMappingRequestBody: core.serialization.ObjectSchema< serializers.crm.fieldMapping.CreateFieldMappingRequestBody.Raw, - Vellum.crm.fieldMapping.CreateFieldMappingRequestBody + Revert.crm.fieldMapping.CreateFieldMappingRequestBody > = core.serialization.object({ standardMappings: core.serialization.list( core.serialization.lazyObject( diff --git a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingResponse.ts b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingResponse.ts index da3469f..17852d3 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingResponse.ts +++ b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/CreateFieldMappingResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../../.."; -import * as Vellum from "../../../../../../../../api"; +import * as Revert from "../../../../../../../../api"; import * as core from "../../../../../../../../core"; export const CreateFieldMappingResponse: core.serialization.ObjectSchema< serializers.crm.fieldMapping.CreateFieldMappingResponse.Raw, - Vellum.crm.fieldMapping.CreateFieldMappingResponse + Revert.crm.fieldMapping.CreateFieldMappingResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../../../..")).common.ResponseStatus), }); diff --git a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/FieldMappingType.ts b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/FieldMappingType.ts index d2166ec..103d97f 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/FieldMappingType.ts +++ b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/FieldMappingType.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../../.."; -import * as Vellum from "../../../../../../../../api"; +import * as Revert from "../../../../../../../../api"; import * as core from "../../../../../../../../core"; export const FieldMappingType: core.serialization.ObjectSchema< serializers.crm.fieldMapping.FieldMappingType.Raw, - Vellum.crm.fieldMapping.FieldMappingType + Revert.crm.fieldMapping.FieldMappingType > = core.serialization.object({ sourceFieldName: core.serialization.string(), targetFieldName: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/GetFieldMappingResponse.ts b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/GetFieldMappingResponse.ts index c346bd5..652775a 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/GetFieldMappingResponse.ts +++ b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/GetFieldMappingResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../../.."; -import * as Vellum from "../../../../../../../../api"; +import * as Revert from "../../../../../../../../api"; import * as core from "../../../../../../../../core"; export const GetFieldMappingResponse: core.serialization.ObjectSchema< serializers.crm.fieldMapping.GetFieldMappingResponse.Raw, - Vellum.crm.fieldMapping.GetFieldMappingResponse + Revert.crm.fieldMapping.GetFieldMappingResponse > = core.serialization.object({ canAddCustomMapping: core.serialization.boolean(), mappableFields: core.serialization.list( diff --git a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/MappableFieldType.ts b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/MappableFieldType.ts index 636825d..043a596 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/MappableFieldType.ts +++ b/src/serialization/resources/crm/resources/fieldMapping/resources/fieldMapping/types/MappableFieldType.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../../.."; -import * as Vellum from "../../../../../../../../api"; +import * as Revert from "../../../../../../../../api"; import * as core from "../../../../../../../../core"; export const MappableFieldType: core.serialization.ObjectSchema< serializers.crm.fieldMapping.MappableFieldType.Raw, - Vellum.crm.fieldMapping.MappableFieldType + Revert.crm.fieldMapping.MappableFieldType > = core.serialization.object({ fieldName: core.serialization.string(), objectName: core.serialization.lazy(async () => (await import("../../../../../../..")).common.StandardObject), diff --git a/src/serialization/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts b/src/serialization/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts index b017bcf..075b7f4 100644 --- a/src/serialization/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts +++ b/src/serialization/resources/crm/resources/lead/client/requests/SearchLeadsRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../.."; -import * as Vellum from "../../../../../../../api"; +import * as Revert from "../../../../../../../api"; import * as core from "../../../../../../../core"; export const SearchLeadsRequest: core.serialization.Schema< serializers.crm.SearchLeadsRequest.Raw, - Omit + Omit > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/lead/types/CreateOrUpdateLeadRequest.ts b/src/serialization/resources/crm/resources/lead/types/CreateOrUpdateLeadRequest.ts index 2fc1335..069b883 100644 --- a/src/serialization/resources/crm/resources/lead/types/CreateOrUpdateLeadRequest.ts +++ b/src/serialization/resources/crm/resources/lead/types/CreateOrUpdateLeadRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateLeadRequest: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateLeadRequest.Raw, - Vellum.crm.CreateOrUpdateLeadRequest + Revert.crm.CreateOrUpdateLeadRequest > = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.LeadWrite)); diff --git a/src/serialization/resources/crm/resources/lead/types/CreateOrUpdateLeadResponse.ts b/src/serialization/resources/crm/resources/lead/types/CreateOrUpdateLeadResponse.ts index 749f0a2..d3e1e1e 100644 --- a/src/serialization/resources/crm/resources/lead/types/CreateOrUpdateLeadResponse.ts +++ b/src/serialization/resources/crm/resources/lead/types/CreateOrUpdateLeadResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateLeadResponse: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateLeadResponse.Raw, - Vellum.crm.CreateOrUpdateLeadResponse + Revert.crm.CreateOrUpdateLeadResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/lead/types/GetLeadResponse.ts b/src/serialization/resources/crm/resources/lead/types/GetLeadResponse.ts index 116b057..18387c6 100644 --- a/src/serialization/resources/crm/resources/lead/types/GetLeadResponse.ts +++ b/src/serialization/resources/crm/resources/lead/types/GetLeadResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetLeadResponse: core.serialization.ObjectSchema< serializers.crm.GetLeadResponse.Raw, - Vellum.crm.GetLeadResponse + Revert.crm.GetLeadResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.Lead), diff --git a/src/serialization/resources/crm/resources/lead/types/GetLeadsResponse.ts b/src/serialization/resources/crm/resources/lead/types/GetLeadsResponse.ts index 321a582..ce8dd6d 100644 --- a/src/serialization/resources/crm/resources/lead/types/GetLeadsResponse.ts +++ b/src/serialization/resources/crm/resources/lead/types/GetLeadsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetLeadsResponse: core.serialization.ObjectSchema< serializers.crm.GetLeadsResponse.Raw, - Vellum.crm.GetLeadsResponse + Revert.crm.GetLeadsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/crm/resources/lead/types/SearchLeadsResponse.ts b/src/serialization/resources/crm/resources/lead/types/SearchLeadsResponse.ts index dc7373b..91e38e7 100644 --- a/src/serialization/resources/crm/resources/lead/types/SearchLeadsResponse.ts +++ b/src/serialization/resources/crm/resources/lead/types/SearchLeadsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const SearchLeadsResponse: core.serialization.ObjectSchema< serializers.crm.SearchLeadsResponse.Raw, - Vellum.crm.SearchLeadsResponse + Revert.crm.SearchLeadsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), results: core.serialization.list( diff --git a/src/serialization/resources/crm/resources/note/client/requests/SearchNotesRequest.ts b/src/serialization/resources/crm/resources/note/client/requests/SearchNotesRequest.ts index 4cefa91..9bb8885 100644 --- a/src/serialization/resources/crm/resources/note/client/requests/SearchNotesRequest.ts +++ b/src/serialization/resources/crm/resources/note/client/requests/SearchNotesRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../.."; -import * as Vellum from "../../../../../../../api"; +import * as Revert from "../../../../../../../api"; import * as core from "../../../../../../../core"; export const SearchNotesRequest: core.serialization.Schema< serializers.crm.SearchNotesRequest.Raw, - Omit + Omit > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/note/types/CreateOrUpdateNoteRequest.ts b/src/serialization/resources/crm/resources/note/types/CreateOrUpdateNoteRequest.ts index 0aa969b..b889591 100644 --- a/src/serialization/resources/crm/resources/note/types/CreateOrUpdateNoteRequest.ts +++ b/src/serialization/resources/crm/resources/note/types/CreateOrUpdateNoteRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateNoteRequest: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateNoteRequest.Raw, - Vellum.crm.CreateOrUpdateNoteRequest + Revert.crm.CreateOrUpdateNoteRequest > = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.NoteWrite)); diff --git a/src/serialization/resources/crm/resources/note/types/CreateOrUpdateNoteResponse.ts b/src/serialization/resources/crm/resources/note/types/CreateOrUpdateNoteResponse.ts index 5e886d6..572789d 100644 --- a/src/serialization/resources/crm/resources/note/types/CreateOrUpdateNoteResponse.ts +++ b/src/serialization/resources/crm/resources/note/types/CreateOrUpdateNoteResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateNoteResponse: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateNoteResponse.Raw, - Vellum.crm.CreateOrUpdateNoteResponse + Revert.crm.CreateOrUpdateNoteResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/note/types/GetNoteResponse.ts b/src/serialization/resources/crm/resources/note/types/GetNoteResponse.ts index 5d92940..37ccebd 100644 --- a/src/serialization/resources/crm/resources/note/types/GetNoteResponse.ts +++ b/src/serialization/resources/crm/resources/note/types/GetNoteResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetNoteResponse: core.serialization.ObjectSchema< serializers.crm.GetNoteResponse.Raw, - Vellum.crm.GetNoteResponse + Revert.crm.GetNoteResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.Note), diff --git a/src/serialization/resources/crm/resources/note/types/GetNotesResponse.ts b/src/serialization/resources/crm/resources/note/types/GetNotesResponse.ts index 8f9828b..2cecea2 100644 --- a/src/serialization/resources/crm/resources/note/types/GetNotesResponse.ts +++ b/src/serialization/resources/crm/resources/note/types/GetNotesResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetNotesResponse: core.serialization.ObjectSchema< serializers.crm.GetNotesResponse.Raw, - Vellum.crm.GetNotesResponse + Revert.crm.GetNotesResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/crm/resources/note/types/SearchNotesResponse.ts b/src/serialization/resources/crm/resources/note/types/SearchNotesResponse.ts index a16911d..4b90c43 100644 --- a/src/serialization/resources/crm/resources/note/types/SearchNotesResponse.ts +++ b/src/serialization/resources/crm/resources/note/types/SearchNotesResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const SearchNotesResponse: core.serialization.ObjectSchema< serializers.crm.SearchNotesResponse.Raw, - Vellum.crm.SearchNotesResponse + Revert.crm.SearchNotesResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), results: core.serialization.list( diff --git a/src/serialization/resources/crm/resources/properties/types/FieldDetailsType.ts b/src/serialization/resources/crm/resources/properties/types/FieldDetailsType.ts index 1eb285d..1ada057 100644 --- a/src/serialization/resources/crm/resources/properties/types/FieldDetailsType.ts +++ b/src/serialization/resources/crm/resources/properties/types/FieldDetailsType.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const FieldDetailsType: core.serialization.ObjectSchema< serializers.crm.FieldDetailsType.Raw, - Vellum.crm.FieldDetailsType + Revert.crm.FieldDetailsType > = core.serialization.object({ name: core.serialization.string(), type: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/properties/types/FieldDetailsTypeRequest.ts b/src/serialization/resources/crm/resources/properties/types/FieldDetailsTypeRequest.ts index da695b1..c1e631a 100644 --- a/src/serialization/resources/crm/resources/properties/types/FieldDetailsTypeRequest.ts +++ b/src/serialization/resources/crm/resources/properties/types/FieldDetailsTypeRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const FieldDetailsTypeRequest: core.serialization.ObjectSchema< serializers.crm.FieldDetailsTypeRequest.Raw, - Vellum.crm.FieldDetailsTypeRequest + Revert.crm.FieldDetailsTypeRequest > = core.serialization .object({ additional: core.serialization.unknown(), diff --git a/src/serialization/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts b/src/serialization/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts index c493470..f5335b7 100644 --- a/src/serialization/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts +++ b/src/serialization/resources/crm/resources/properties/types/GetObjectPropertiesResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetObjectPropertiesResponse: core.serialization.Schema< serializers.crm.GetObjectPropertiesResponse.Raw, - Vellum.crm.GetObjectPropertiesResponse + Revert.crm.GetObjectPropertiesResponse > = core.serialization.unknown(); export declare namespace GetObjectPropertiesResponse { diff --git a/src/serialization/resources/crm/resources/properties/types/SetObjectPropertiesRequest.ts b/src/serialization/resources/crm/resources/properties/types/SetObjectPropertiesRequest.ts index 0af72e7..e903342 100644 --- a/src/serialization/resources/crm/resources/properties/types/SetObjectPropertiesRequest.ts +++ b/src/serialization/resources/crm/resources/properties/types/SetObjectPropertiesRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const SetObjectPropertiesRequest: core.serialization.ObjectSchema< serializers.crm.SetObjectPropertiesRequest.Raw, - Vellum.crm.SetObjectPropertiesRequest + Revert.crm.SetObjectPropertiesRequest > = core.serialization.lazyObject(async () => (await import("../../../../..")).crm.FieldDetailsTypeRequest); export declare namespace SetObjectPropertiesRequest { diff --git a/src/serialization/resources/crm/resources/properties/types/SetObjectPropertiesResponse.ts b/src/serialization/resources/crm/resources/properties/types/SetObjectPropertiesResponse.ts index 022fa37..ab69c21 100644 --- a/src/serialization/resources/crm/resources/properties/types/SetObjectPropertiesResponse.ts +++ b/src/serialization/resources/crm/resources/properties/types/SetObjectPropertiesResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const SetObjectPropertiesResponse: core.serialization.Schema< serializers.crm.SetObjectPropertiesResponse.Raw, - Vellum.crm.SetObjectPropertiesResponse + Revert.crm.SetObjectPropertiesResponse > = core.serialization.unknown(); export declare namespace SetObjectPropertiesResponse { diff --git a/src/serialization/resources/crm/resources/proxy/types/PostProxyRequestBody.ts b/src/serialization/resources/crm/resources/proxy/types/PostProxyRequestBody.ts index e54ef9b..b0be5aa 100644 --- a/src/serialization/resources/crm/resources/proxy/types/PostProxyRequestBody.ts +++ b/src/serialization/resources/crm/resources/proxy/types/PostProxyRequestBody.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const PostProxyRequestBody: core.serialization.ObjectSchema< serializers.crm.PostProxyRequestBody.Raw, - Vellum.crm.PostProxyRequestBody + Revert.crm.PostProxyRequestBody > = core.serialization.object({ path: core.serialization.string(), body: core.serialization.unknown().optional(), diff --git a/src/serialization/resources/crm/resources/proxy/types/ProxyResponse.ts b/src/serialization/resources/crm/resources/proxy/types/ProxyResponse.ts index 796f49d..7f3efa7 100644 --- a/src/serialization/resources/crm/resources/proxy/types/ProxyResponse.ts +++ b/src/serialization/resources/crm/resources/proxy/types/ProxyResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const ProxyResponse: core.serialization.ObjectSchema< serializers.crm.ProxyResponse.Raw, - Vellum.crm.ProxyResponse + Revert.crm.ProxyResponse > = core.serialization.object({ result: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/task/client/requests/SearchTasksRequest.ts b/src/serialization/resources/crm/resources/task/client/requests/SearchTasksRequest.ts index c9207e6..7bfee6f 100644 --- a/src/serialization/resources/crm/resources/task/client/requests/SearchTasksRequest.ts +++ b/src/serialization/resources/crm/resources/task/client/requests/SearchTasksRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../../.."; -import * as Vellum from "../../../../../../../api"; +import * as Revert from "../../../../../../../api"; import * as core from "../../../../../../../core"; export const SearchTasksRequest: core.serialization.Schema< serializers.crm.SearchTasksRequest.Raw, - Omit + Omit > = core.serialization.object({ searchCriteria: core.serialization.unknown(), }); diff --git a/src/serialization/resources/crm/resources/task/types/CreateOrUpdateTaskRequest.ts b/src/serialization/resources/crm/resources/task/types/CreateOrUpdateTaskRequest.ts index 8e48a92..c564062 100644 --- a/src/serialization/resources/crm/resources/task/types/CreateOrUpdateTaskRequest.ts +++ b/src/serialization/resources/crm/resources/task/types/CreateOrUpdateTaskRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateTaskRequest: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateTaskRequest.Raw, - Vellum.crm.CreateOrUpdateTaskRequest + Revert.crm.CreateOrUpdateTaskRequest > = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.TaskWrite)); diff --git a/src/serialization/resources/crm/resources/task/types/CreateOrUpdateTaskResponse.ts b/src/serialization/resources/crm/resources/task/types/CreateOrUpdateTaskResponse.ts index ddc424d..7467453 100644 --- a/src/serialization/resources/crm/resources/task/types/CreateOrUpdateTaskResponse.ts +++ b/src/serialization/resources/crm/resources/task/types/CreateOrUpdateTaskResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateTaskResponse: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateTaskResponse.Raw, - Vellum.crm.CreateOrUpdateTaskResponse + Revert.crm.CreateOrUpdateTaskResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/task/types/GetTaskResponse.ts b/src/serialization/resources/crm/resources/task/types/GetTaskResponse.ts index 2fb5edf..71c0493 100644 --- a/src/serialization/resources/crm/resources/task/types/GetTaskResponse.ts +++ b/src/serialization/resources/crm/resources/task/types/GetTaskResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetTaskResponse: core.serialization.ObjectSchema< serializers.crm.GetTaskResponse.Raw, - Vellum.crm.GetTaskResponse + Revert.crm.GetTaskResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.Task), diff --git a/src/serialization/resources/crm/resources/task/types/GetTasksResponse.ts b/src/serialization/resources/crm/resources/task/types/GetTasksResponse.ts index f1cca08..41a4340 100644 --- a/src/serialization/resources/crm/resources/task/types/GetTasksResponse.ts +++ b/src/serialization/resources/crm/resources/task/types/GetTasksResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetTasksResponse: core.serialization.ObjectSchema< serializers.crm.GetTasksResponse.Raw, - Vellum.crm.GetTasksResponse + Revert.crm.GetTasksResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/crm/resources/task/types/SearchTasksResponse.ts b/src/serialization/resources/crm/resources/task/types/SearchTasksResponse.ts index 9177cc0..256c448 100644 --- a/src/serialization/resources/crm/resources/task/types/SearchTasksResponse.ts +++ b/src/serialization/resources/crm/resources/task/types/SearchTasksResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const SearchTasksResponse: core.serialization.ObjectSchema< serializers.crm.SearchTasksResponse.Raw, - Vellum.crm.SearchTasksResponse + Revert.crm.SearchTasksResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), results: core.serialization.list( diff --git a/src/serialization/resources/crm/resources/user/types/CreateOrUpdateUserRequest.ts b/src/serialization/resources/crm/resources/user/types/CreateOrUpdateUserRequest.ts index b0b3794..7d2fe86 100644 --- a/src/serialization/resources/crm/resources/user/types/CreateOrUpdateUserRequest.ts +++ b/src/serialization/resources/crm/resources/user/types/CreateOrUpdateUserRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateUserRequest: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateUserRequest.Raw, - Vellum.crm.CreateOrUpdateUserRequest + Revert.crm.CreateOrUpdateUserRequest > = core.serialization .object({}) .extend(core.serialization.lazyObject(async () => (await import("../../../../..")).common.UserWrite)); diff --git a/src/serialization/resources/crm/resources/user/types/CreateOrUpdateUserResponse.ts b/src/serialization/resources/crm/resources/user/types/CreateOrUpdateUserResponse.ts index 5ea5d30..f3b91f9 100644 --- a/src/serialization/resources/crm/resources/user/types/CreateOrUpdateUserResponse.ts +++ b/src/serialization/resources/crm/resources/user/types/CreateOrUpdateUserResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateUserResponse: core.serialization.ObjectSchema< serializers.crm.CreateOrUpdateUserResponse.Raw, - Vellum.crm.CreateOrUpdateUserResponse + Revert.crm.CreateOrUpdateUserResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/crm/resources/user/types/GetUserResponse.ts b/src/serialization/resources/crm/resources/user/types/GetUserResponse.ts index c57275c..be6f18d 100644 --- a/src/serialization/resources/crm/resources/user/types/GetUserResponse.ts +++ b/src/serialization/resources/crm/resources/user/types/GetUserResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetUserResponse: core.serialization.ObjectSchema< serializers.crm.GetUserResponse.Raw, - Vellum.crm.GetUserResponse + Revert.crm.GetUserResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.User), diff --git a/src/serialization/resources/crm/resources/user/types/GetUsersResponse.ts b/src/serialization/resources/crm/resources/user/types/GetUsersResponse.ts index 2487ae8..a8c7c1e 100644 --- a/src/serialization/resources/crm/resources/user/types/GetUsersResponse.ts +++ b/src/serialization/resources/crm/resources/user/types/GetUsersResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetUsersResponse: core.serialization.ObjectSchema< serializers.crm.GetUsersResponse.Raw, - Vellum.crm.GetUsersResponse + Revert.crm.GetUsersResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/metadata/types/CrmMetadata.ts b/src/serialization/resources/metadata/types/CrmMetadata.ts index ab1740c..4571379 100644 --- a/src/serialization/resources/metadata/types/CrmMetadata.ts +++ b/src/serialization/resources/metadata/types/CrmMetadata.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; -export const CrmMetadata: core.serialization.ObjectSchema = +export const CrmMetadata: core.serialization.ObjectSchema = core.serialization.object({ integrationId: core.serialization.string(), name: core.serialization.string(), diff --git a/src/serialization/resources/metadata/types/CrmMetadataResponse.ts b/src/serialization/resources/metadata/types/CrmMetadataResponse.ts index 996bcf6..65fbed2 100644 --- a/src/serialization/resources/metadata/types/CrmMetadataResponse.ts +++ b/src/serialization/resources/metadata/types/CrmMetadataResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; export const CrmMetadataResponse: core.serialization.ObjectSchema< serializers.CrmMetadataResponse.Raw, - Vellum.CrmMetadataResponse + Revert.CrmMetadataResponse > = core.serialization.object({ status: core.serialization.string(), data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).CrmMetadata)), diff --git a/src/serialization/resources/metadata/types/CrmStatus.ts b/src/serialization/resources/metadata/types/CrmStatus.ts index 13b3181..8381b06 100644 --- a/src/serialization/resources/metadata/types/CrmStatus.ts +++ b/src/serialization/resources/metadata/types/CrmStatus.ts @@ -3,10 +3,10 @@ */ import * as serializers from "../../.."; -import * as Vellum from "../../../../api"; +import * as Revert from "../../../../api"; import * as core from "../../../../core"; -export const CrmStatus: core.serialization.Schema = +export const CrmStatus: core.serialization.Schema = core.serialization.enum_(["active", "inactive"]); export declare namespace CrmStatus { diff --git a/src/serialization/resources/ticket/resources/collection/types/GetCollectionsResponse.ts b/src/serialization/resources/ticket/resources/collection/types/GetCollectionsResponse.ts index d199a79..1477605 100644 --- a/src/serialization/resources/ticket/resources/collection/types/GetCollectionsResponse.ts +++ b/src/serialization/resources/ticket/resources/collection/types/GetCollectionsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetCollectionsResponse: core.serialization.ObjectSchema< serializers.ticket.GetCollectionsResponse.Raw, - Vellum.ticket.GetCollectionsResponse + Revert.ticket.GetCollectionsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/ticket/resources/comment/types/CreateOrUpdateCommentRequest.ts b/src/serialization/resources/ticket/resources/comment/types/CreateOrUpdateCommentRequest.ts index 234c943..df9fbef 100644 --- a/src/serialization/resources/ticket/resources/comment/types/CreateOrUpdateCommentRequest.ts +++ b/src/serialization/resources/ticket/resources/comment/types/CreateOrUpdateCommentRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateCommentRequest: core.serialization.ObjectSchema< serializers.ticket.CreateOrUpdateCommentRequest.Raw, - Vellum.ticket.CreateOrUpdateCommentRequest + Revert.ticket.CreateOrUpdateCommentRequest > = core.serialization.lazyObject(async () => (await import("../../../../..")).common.CommentTicketWrite); export declare namespace CreateOrUpdateCommentRequest { diff --git a/src/serialization/resources/ticket/resources/comment/types/CreateOrUpdateCommentResponse.ts b/src/serialization/resources/ticket/resources/comment/types/CreateOrUpdateCommentResponse.ts index 28afe2b..718376c 100644 --- a/src/serialization/resources/ticket/resources/comment/types/CreateOrUpdateCommentResponse.ts +++ b/src/serialization/resources/ticket/resources/comment/types/CreateOrUpdateCommentResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateCommentResponse: core.serialization.ObjectSchema< serializers.ticket.CreateOrUpdateCommentResponse.Raw, - Vellum.ticket.CreateOrUpdateCommentResponse + Revert.ticket.CreateOrUpdateCommentResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/ticket/resources/comment/types/GetCommentResponse.ts b/src/serialization/resources/ticket/resources/comment/types/GetCommentResponse.ts index acdcdd3..690f8d2 100644 --- a/src/serialization/resources/ticket/resources/comment/types/GetCommentResponse.ts +++ b/src/serialization/resources/ticket/resources/comment/types/GetCommentResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetCommentResponse: core.serialization.ObjectSchema< serializers.ticket.GetCommentResponse.Raw, - Vellum.ticket.GetCommentResponse + Revert.ticket.GetCommentResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.unknown(), diff --git a/src/serialization/resources/ticket/resources/comment/types/GetCommentsResponse.ts b/src/serialization/resources/ticket/resources/comment/types/GetCommentsResponse.ts index 69fd23e..f4c37a2 100644 --- a/src/serialization/resources/ticket/resources/comment/types/GetCommentsResponse.ts +++ b/src/serialization/resources/ticket/resources/comment/types/GetCommentsResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetCommentsResponse: core.serialization.ObjectSchema< serializers.ticket.GetCommentsResponse.Raw, - Vellum.ticket.GetCommentsResponse + Revert.ticket.GetCommentsResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/ticket/resources/proxy/types/PostProxyRequestBody.ts b/src/serialization/resources/ticket/resources/proxy/types/PostProxyRequestBody.ts index 4c4e7ca..942fdc6 100644 --- a/src/serialization/resources/ticket/resources/proxy/types/PostProxyRequestBody.ts +++ b/src/serialization/resources/ticket/resources/proxy/types/PostProxyRequestBody.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const PostProxyRequestBody: core.serialization.ObjectSchema< serializers.ticket.PostProxyRequestBody.Raw, - Vellum.ticket.PostProxyRequestBody + Revert.ticket.PostProxyRequestBody > = core.serialization.object({ path: core.serialization.string(), body: core.serialization.unknown().optional(), diff --git a/src/serialization/resources/ticket/resources/proxy/types/ProxyResponse.ts b/src/serialization/resources/ticket/resources/proxy/types/ProxyResponse.ts index 1eff9fd..19d3740 100644 --- a/src/serialization/resources/ticket/resources/proxy/types/ProxyResponse.ts +++ b/src/serialization/resources/ticket/resources/proxy/types/ProxyResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const ProxyResponse: core.serialization.ObjectSchema< serializers.ticket.ProxyResponse.Raw, - Vellum.ticket.ProxyResponse + Revert.ticket.ProxyResponse > = core.serialization.object({ result: core.serialization.unknown(), }); diff --git a/src/serialization/resources/ticket/resources/task/types/CreateOrUpdateTaskRequest.ts b/src/serialization/resources/ticket/resources/task/types/CreateOrUpdateTaskRequest.ts index 0a2da46..a4c0706 100644 --- a/src/serialization/resources/ticket/resources/task/types/CreateOrUpdateTaskRequest.ts +++ b/src/serialization/resources/ticket/resources/task/types/CreateOrUpdateTaskRequest.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateTaskRequest: core.serialization.ObjectSchema< serializers.ticket.CreateOrUpdateTaskRequest.Raw, - Vellum.ticket.CreateOrUpdateTaskRequest + Revert.ticket.CreateOrUpdateTaskRequest > = core.serialization.lazyObject(async () => (await import("../../../../..")).common.TaskTicketWrite); export declare namespace CreateOrUpdateTaskRequest { diff --git a/src/serialization/resources/ticket/resources/task/types/CreateOrUpdateTaskResponse.ts b/src/serialization/resources/ticket/resources/task/types/CreateOrUpdateTaskResponse.ts index e5f7b31..41b9e3b 100644 --- a/src/serialization/resources/ticket/resources/task/types/CreateOrUpdateTaskResponse.ts +++ b/src/serialization/resources/ticket/resources/task/types/CreateOrUpdateTaskResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const CreateOrUpdateTaskResponse: core.serialization.ObjectSchema< serializers.ticket.CreateOrUpdateTaskResponse.Raw, - Vellum.ticket.CreateOrUpdateTaskResponse + Revert.ticket.CreateOrUpdateTaskResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), message: core.serialization.string(), diff --git a/src/serialization/resources/ticket/resources/task/types/GetTaskResponse.ts b/src/serialization/resources/ticket/resources/task/types/GetTaskResponse.ts index 344ffe8..2372aa4 100644 --- a/src/serialization/resources/ticket/resources/task/types/GetTaskResponse.ts +++ b/src/serialization/resources/ticket/resources/task/types/GetTaskResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetTaskResponse: core.serialization.ObjectSchema< serializers.ticket.GetTaskResponse.Raw, - Vellum.ticket.GetTaskResponse + Revert.ticket.GetTaskResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.lazyObject(async () => (await import("../../../../..")).common.TaskTicket), diff --git a/src/serialization/resources/ticket/resources/task/types/GetTasksResponse.ts b/src/serialization/resources/ticket/resources/task/types/GetTasksResponse.ts index e1891a8..001c4c6 100644 --- a/src/serialization/resources/ticket/resources/task/types/GetTasksResponse.ts +++ b/src/serialization/resources/ticket/resources/task/types/GetTasksResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetTasksResponse: core.serialization.ObjectSchema< serializers.ticket.GetTasksResponse.Raw, - Vellum.ticket.GetTasksResponse + Revert.ticket.GetTasksResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(), diff --git a/src/serialization/resources/ticket/resources/user/types/GetUserResponse.ts b/src/serialization/resources/ticket/resources/user/types/GetUserResponse.ts index d0af1b8..a617881 100644 --- a/src/serialization/resources/ticket/resources/user/types/GetUserResponse.ts +++ b/src/serialization/resources/ticket/resources/user/types/GetUserResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetUserResponse: core.serialization.ObjectSchema< serializers.ticket.GetUserResponse.Raw, - Vellum.ticket.GetUserResponse + Revert.ticket.GetUserResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), result: core.serialization.unknown(), diff --git a/src/serialization/resources/ticket/resources/user/types/GetUsersResponse.ts b/src/serialization/resources/ticket/resources/user/types/GetUsersResponse.ts index 9ae0a62..e6e6de2 100644 --- a/src/serialization/resources/ticket/resources/user/types/GetUsersResponse.ts +++ b/src/serialization/resources/ticket/resources/user/types/GetUsersResponse.ts @@ -3,12 +3,12 @@ */ import * as serializers from "../../../../.."; -import * as Vellum from "../../../../../../api"; +import * as Revert from "../../../../../../api"; import * as core from "../../../../../../core"; export const GetUsersResponse: core.serialization.ObjectSchema< serializers.ticket.GetUsersResponse.Raw, - Vellum.ticket.GetUsersResponse + Revert.ticket.GetUsersResponse > = core.serialization.object({ status: core.serialization.lazy(async () => (await import("../../../../..")).common.ResponseStatus), next: core.serialization.string().optional(),