ultracart_rest_api_v2_typescript 4.1.210 → 4.1.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1196,6 +1196,9 @@ src/models/SfvbSecretRequest.ts
1196
1196
  src/models/SfvbSecretRequestCreate.ts
1197
1197
  src/models/SfvbSecretRequestsResponse.ts
1198
1198
  src/models/SfvbSecretSink.ts
1199
+ src/models/SfvbSequence.ts
1200
+ src/models/SfvbSequenceBranch.ts
1201
+ src/models/SfvbSequenceStep.ts
1199
1202
  src/models/SfvbServerLog.ts
1200
1203
  src/models/SfvbServerLogDetail.ts
1201
1204
  src/models/SfvbServerLogEntry.ts
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.210
2
+ ## ultracart_rest_api_v2_typescript@4.1.212
3
3
 
4
4
  Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
5
5
 
6
6
  Installation
7
7
 
8
8
  ```
9
- npm install ultracart_rest_api_v2_typescript@4.1.210 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.212 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -84,6 +84,8 @@ Not every change is committed to every SDK.
84
84
 
85
85
  | Version | Date | Comments |
86
86
  | --: | :-: | --- |
87
+ | 4.1.212 | 10/27/2026 | conversation - pbx agent startup activity |
88
+ | 4.1.211 | 10/27/2026 | sfvb internal testing |
87
89
  | 4.1.210 | 10/27/2026 | sfvb internal testing |
88
90
  | 4.1.209 | 10/27/2026 | sfvb internal testing |
89
91
  | 4.1.208 | 10/26/2026 | sfvb internal testing |
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { SfvbApproval, SfvbApprovalCreateRequest, SfvbApprovalsResponse, SfvbArchiveRequest, SfvbBlogPostDetail, SfvbBlogPostImageRequest, SfvbBlogPostRequest, SfvbBlogPostsResponse, SfvbCampaign, SfvbCampaignWriteRequest, SfvbCampaignsResponse, SfvbCommsListsResponse, SfvbCommsSegmentsResponse, SfvbCommsSendingDomain, SfvbCommsSendingDomainsResponse, SfvbCommsTwilioAccount, SfvbCommsTwilioAccountResponse, SfvbCompileRequest, SfvbCompileResponse, SfvbContainerResponse, SfvbContainerRevertRequest, SfvbContainerVersion, SfvbContainerVersionsResponse, SfvbContainerWriteRequest, SfvbElementSchemaResponse, SfvbElementsResponse, SfvbEmail, SfvbEmailRenderRequest, SfvbEmailRenderResponse, SfvbEmailReviewRequest, SfvbEmailUpdateRequest, SfvbEventsAuthRequest, SfvbEventsAuthResponse, SfvbEventsResponse, SfvbExperiment, SfvbExperimentEndRequest, SfvbExperimentObjectivesResponse, SfvbExperimentStartRequest, SfvbExperimentVariationUpdateRequest, SfvbExperimentsResponse, SfvbFileContentResponse, SfvbFileRevertRequest, SfvbFileSearchRequest, SfvbFileSearchResponse, SfvbFileUploadRequest, SfvbFileUploadUrlResponse, SfvbFileVersionsResponse, SfvbFileWriteRequest, SfvbFileWriteResponse, SfvbFilesResponse, SfvbFlow, SfvbFlowStatusRequest, SfvbFlowWriteRequest, SfvbFlowsResponse, SfvbI18nGlossary, SfvbI18nGlossaryRequest, SfvbI18nLanguageEnableRequest, SfvbI18nLanguagesResponse, SfvbI18nMachineTranslationsResponse, SfvbI18nMessage, SfvbI18nMessageWriteRequest, SfvbI18nMessagesResponse, SfvbI18nResetResponse, SfvbItemAttributeBatchRequest, SfvbItemAttributeBatchResponse, SfvbItemAttributeUpdateRequest, SfvbItemContainersResponse, SfvbItemContentRequest, SfvbItemMultimediaDescriptionRequest, SfvbItemMultimediaRequest, SfvbItemPricing, SfvbItemPricingRequest, SfvbItemRelated, SfvbItemRelatedRequest, SfvbItemResponse, SfvbItemSeoRequest, SfvbLibraryDeleteResult, SfvbLibraryEntry, SfvbLibraryEntryRequest, SfvbLibraryHistoryResponse, SfvbLibraryInstallReceipt, SfvbLibraryInstallRequest, SfvbLibraryInstallsResponse, SfvbLibraryPublishRequest, SfvbLibraryResponse, SfvbLibraryScreenshotRequest, SfvbLibraryShareRequest, SfvbLibraryShareTargetsResponse, SfvbLibraryTaxonomyCatalog, SfvbLibraryUnshareResult, SfvbMenu, SfvbMenuWriteRequest, SfvbMenusResponse, SfvbNotFoundEntry, SfvbNotFoundEntryResponse, SfvbNotFoundPage, SfvbNotFoundResponse, SfvbPageAttributeUpdateRequest, SfvbPageBlogPostsRequest, SfvbPageBlogPostsResponse, SfvbPageCreateRequest, SfvbPageDuplicateRequest, SfvbPageItemsAddRequest, SfvbPageItemsRemoveRequest, SfvbPageItemsResponse, SfvbPageListResponse, SfvbPageMultimediaRequest, SfvbPageRefreshRequest, SfvbPageRefreshResponse, SfvbPageResponse, SfvbPageSelectors, SfvbPageSettingsRequest, SfvbPreviewAccessRequest, SfvbPreviewAccessResponse, SfvbPreviewSessionRequest, SfvbPreviewSessionResponse, SfvbPreviewUrlResponse, SfvbRecordingEventsResponse, SfvbRecordingResponse, SfvbRecordingSettingsRequest, SfvbRecordingSettingsResponse, SfvbRedirect, SfvbRedirectCheckResponse, SfvbRedirectDeleteRequest, SfvbRedirectDeleteResponse, SfvbRedirectImportRequest, SfvbRedirectImportResponse, SfvbRedirectRequest, SfvbRedirectResolveResponse, SfvbRedirectResponse, SfvbRedirectsResponse, SfvbRenderRequest, SfvbRenderResponse, SfvbSecretKindsResponse, SfvbSecretRequest, SfvbSecretRequestCreate, SfvbSecretRequestsResponse, SfvbServerLogDetail, SfvbServerLogsResponse, SfvbSiteAttributeUpdateRequest, SfvbSiteAttributesResponse, SfvbStorefrontsResponse, SfvbTemplateResolveResponse, SfvbTemplatesResponse, SfvbTestOrdersResponse, SfvbTheme, SfvbThemeAttributeUpdateRequest, SfvbThemeAttributesResponse, SfvbThemeDuplicateRequest, SfvbThemeJobResponse, SfvbThemesResponse, SfvbTransactionalEmailsResponse, SfvbUpsellOffer, SfvbUpsellOffersResponse, SfvbUpsellPath, SfvbUpsellPathDuplicateRequest, SfvbUpsellPathMoveRequest, SfvbUpsellPathsResponse, SfvbValidateRequest, SfvbValidationResponse, SfvbVelocityValidateRequest, SfvbVersionResponse, SfvbWhoamiResponse, SfvbWidgetIdsResponse } from '../models';
13
+ import { SfvbApproval, SfvbApprovalCreateRequest, SfvbApprovalsResponse, SfvbArchiveRequest, SfvbBlogPostDetail, SfvbBlogPostImageRequest, SfvbBlogPostRequest, SfvbBlogPostsResponse, SfvbCampaign, SfvbCampaignWriteRequest, SfvbCampaignsResponse, SfvbCommsListsResponse, SfvbCommsSegmentsResponse, SfvbCommsSendingDomain, SfvbCommsSendingDomainsResponse, SfvbCommsTwilioAccount, SfvbCommsTwilioAccountResponse, SfvbCompileRequest, SfvbCompileResponse, SfvbContainerResponse, SfvbContainerRevertRequest, SfvbContainerVersion, SfvbContainerVersionsResponse, SfvbContainerWriteRequest, SfvbElementSchemaResponse, SfvbElementsResponse, SfvbEmail, SfvbEmailRenderRequest, SfvbEmailRenderResponse, SfvbEmailReviewRequest, SfvbEmailUpdateRequest, SfvbEventsAuthRequest, SfvbEventsAuthResponse, SfvbEventsResponse, SfvbExperiment, SfvbExperimentEndRequest, SfvbExperimentObjectivesResponse, SfvbExperimentStartRequest, SfvbExperimentVariationUpdateRequest, SfvbExperimentsResponse, SfvbFileContentResponse, SfvbFileRevertRequest, SfvbFileSearchRequest, SfvbFileSearchResponse, SfvbFileUploadRequest, SfvbFileUploadUrlResponse, SfvbFileVersionsResponse, SfvbFileWriteRequest, SfvbFileWriteResponse, SfvbFilesResponse, SfvbFlow, SfvbFlowStatusRequest, SfvbFlowWriteRequest, SfvbFlowsResponse, SfvbI18nGlossary, SfvbI18nGlossaryRequest, SfvbI18nLanguageEnableRequest, SfvbI18nLanguagesResponse, SfvbI18nMachineTranslationsResponse, SfvbI18nMessage, SfvbI18nMessageWriteRequest, SfvbI18nMessagesResponse, SfvbI18nResetResponse, SfvbItemAttributeBatchRequest, SfvbItemAttributeBatchResponse, SfvbItemAttributeUpdateRequest, SfvbItemContainersResponse, SfvbItemContentRequest, SfvbItemMultimediaDescriptionRequest, SfvbItemMultimediaRequest, SfvbItemPricing, SfvbItemPricingRequest, SfvbItemRelated, SfvbItemRelatedRequest, SfvbItemResponse, SfvbItemSeoRequest, SfvbLibraryDeleteResult, SfvbLibraryEntry, SfvbLibraryEntryRequest, SfvbLibraryHistoryResponse, SfvbLibraryInstallReceipt, SfvbLibraryInstallRequest, SfvbLibraryInstallsResponse, SfvbLibraryPublishRequest, SfvbLibraryResponse, SfvbLibraryScreenshotRequest, SfvbLibraryShareRequest, SfvbLibraryShareTargetsResponse, SfvbLibraryTaxonomyCatalog, SfvbLibraryUnshareResult, SfvbMenu, SfvbMenuWriteRequest, SfvbMenusResponse, SfvbNotFoundEntry, SfvbNotFoundEntryResponse, SfvbNotFoundPage, SfvbNotFoundResponse, SfvbPageAttributeUpdateRequest, SfvbPageBlogPostsRequest, SfvbPageBlogPostsResponse, SfvbPageCreateRequest, SfvbPageDuplicateRequest, SfvbPageItemsAddRequest, SfvbPageItemsRemoveRequest, SfvbPageItemsResponse, SfvbPageListResponse, SfvbPageMultimediaRequest, SfvbPageRefreshRequest, SfvbPageRefreshResponse, SfvbPageResponse, SfvbPageSelectors, SfvbPageSettingsRequest, SfvbPreviewAccessRequest, SfvbPreviewAccessResponse, SfvbPreviewSessionRequest, SfvbPreviewSessionResponse, SfvbPreviewUrlResponse, SfvbRecordingEventsResponse, SfvbRecordingResponse, SfvbRecordingSettingsRequest, SfvbRecordingSettingsResponse, SfvbRedirect, SfvbRedirectCheckResponse, SfvbRedirectDeleteRequest, SfvbRedirectDeleteResponse, SfvbRedirectImportRequest, SfvbRedirectImportResponse, SfvbRedirectRequest, SfvbRedirectResolveResponse, SfvbRedirectResponse, SfvbRedirectsResponse, SfvbRenderRequest, SfvbRenderResponse, SfvbSecretKindsResponse, SfvbSecretRequest, SfvbSecretRequestCreate, SfvbSecretRequestsResponse, SfvbSequence, SfvbServerLogDetail, SfvbServerLogsResponse, SfvbSiteAttributeUpdateRequest, SfvbSiteAttributesResponse, SfvbStorefrontsResponse, SfvbTemplateResolveResponse, SfvbTemplatesResponse, SfvbTestOrdersResponse, SfvbTheme, SfvbThemeAttributeUpdateRequest, SfvbThemeAttributesResponse, SfvbThemeDuplicateRequest, SfvbThemeJobResponse, SfvbThemesResponse, SfvbTransactionalEmailsResponse, SfvbUpsellOffer, SfvbUpsellOffersResponse, SfvbUpsellPath, SfvbUpsellPathDuplicateRequest, SfvbUpsellPathMoveRequest, SfvbUpsellPathsResponse, SfvbValidateRequest, SfvbValidationResponse, SfvbVelocityValidateRequest, SfvbVersionResponse, SfvbWhoamiResponse, SfvbWidgetIdsResponse } from '../models';
14
14
  export interface AddSfvbPageBlogPostsRequest {
15
15
  storefrontOid: number;
16
16
  path: string;
@@ -415,6 +415,11 @@ export interface GetSfvbRedirectsRequest {
415
415
  export interface GetSfvbSecretRequestRequest {
416
416
  requestId: string;
417
417
  }
418
+ export interface GetSfvbSequenceRequest {
419
+ storefrontOid: number;
420
+ sequenceUuid: string;
421
+ waiting?: boolean;
422
+ }
418
423
  export interface GetSfvbServerLogRequest {
419
424
  storefrontOid: number;
420
425
  logId: string;
@@ -2422,6 +2427,22 @@ export interface SfvbApiInterface {
2422
2427
  * List this sign-in\'s secret requests
2423
2428
  */
2424
2429
  getSfvbSecretRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSecretRequestsResponse>;
2430
+ /**
2431
+ * The communication sequence named by a campaign\'s or flow\'s communication_sequence_uuid, with its steps from the start in order. Only condition, split and InboxGeek steps branch, and each holds its two sides in branches. Each step has its type, the admin\'s label, its settings (a webhook\'s header and parameter values masked), its audience filter, and the emails, postcard, lists or items it names. waiting adds how many customers are waiting on each step now. Read only.
2432
+ * @summary Get a campaign\'s or flow\'s steps as a tree
2433
+ * @param {number} storefrontOid
2434
+ * @param {string} sequenceUuid
2435
+ * @param {boolean} [waiting] Include how many customers are waiting on each step
2436
+ * @param {*} [options] Override http request option.
2437
+ * @throws {RequiredError}
2438
+ * @memberof SfvbApiInterface
2439
+ */
2440
+ getSfvbSequenceRaw(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequence>>;
2441
+ /**
2442
+ * The communication sequence named by a campaign\'s or flow\'s communication_sequence_uuid, with its steps from the start in order. Only condition, split and InboxGeek steps branch, and each holds its two sides in branches. Each step has its type, the admin\'s label, its settings (a webhook\'s header and parameter values masked), its audience filter, and the emails, postcard, lists or items it names. waiting adds how many customers are waiting on each step now. Read only.
2443
+ * Get a campaign\'s or flow\'s steps as a tree
2444
+ */
2445
+ getSfvbSequence(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequence>;
2425
2446
  /**
2426
2447
  * One render\'s server log with its lines, each with a level, a category such as VELOCITY or FLOW, and the message. log_id comes from the list, or from the X-UltraCart-Storefront-Log-Id header a page sends inside an SFVB preview session. min_level is debug, info, warn or error, default debug.
2427
2448
  * @summary Get one storefront render log
@@ -5088,6 +5109,16 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
5088
5109
  * List this sign-in\'s secret requests
5089
5110
  */
5090
5111
  getSfvbSecretRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSecretRequestsResponse>;
5112
+ /**
5113
+ * The communication sequence named by a campaign\'s or flow\'s communication_sequence_uuid, with its steps from the start in order. Only condition, split and InboxGeek steps branch, and each holds its two sides in branches. Each step has its type, the admin\'s label, its settings (a webhook\'s header and parameter values masked), its audience filter, and the emails, postcard, lists or items it names. waiting adds how many customers are waiting on each step now. Read only.
5114
+ * Get a campaign\'s or flow\'s steps as a tree
5115
+ */
5116
+ getSfvbSequenceRaw(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequence>>;
5117
+ /**
5118
+ * The communication sequence named by a campaign\'s or flow\'s communication_sequence_uuid, with its steps from the start in order. Only condition, split and InboxGeek steps branch, and each holds its two sides in branches. Each step has its type, the admin\'s label, its settings (a webhook\'s header and parameter values masked), its audience filter, and the emails, postcard, lists or items it names. waiting adds how many customers are waiting on each step now. Read only.
5119
+ * Get a campaign\'s or flow\'s steps as a tree
5120
+ */
5121
+ getSfvbSequence(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequence>;
5091
5122
  /**
5092
5123
  * One render\'s server log with its lines, each with a level, a category such as VELOCITY or FLOW, and the message. log_id comes from the list, or from the X-UltraCart-Storefront-Log-Id header a page sends inside an SFVB preview session. min_level is debug, info, warn or error, default debug.
5093
5124
  * Get one storefront render log
@@ -6182,6 +6182,71 @@ var SfvbApi = /** @class */ (function (_super) {
6182
6182
  });
6183
6183
  });
6184
6184
  };
6185
+ /**
6186
+ * The communication sequence named by a campaign\'s or flow\'s communication_sequence_uuid, with its steps from the start in order. Only condition, split and InboxGeek steps branch, and each holds its two sides in branches. Each step has its type, the admin\'s label, its settings (a webhook\'s header and parameter values masked), its audience filter, and the emails, postcard, lists or items it names. waiting adds how many customers are waiting on each step now. Read only.
6187
+ * Get a campaign\'s or flow\'s steps as a tree
6188
+ */
6189
+ SfvbApi.prototype.getSfvbSequenceRaw = function (requestParameters, initOverrides) {
6190
+ return __awaiter(this, void 0, void 0, function () {
6191
+ var queryParameters, headerParameters, _a, _b, response;
6192
+ return __generator(this, function (_c) {
6193
+ switch (_c.label) {
6194
+ case 0:
6195
+ if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
6196
+ throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling getSfvbSequence.');
6197
+ }
6198
+ if (requestParameters.sequenceUuid === null || requestParameters.sequenceUuid === undefined) {
6199
+ throw new runtime.RequiredError('sequenceUuid', 'Required parameter requestParameters.sequenceUuid was null or undefined when calling getSfvbSequence.');
6200
+ }
6201
+ queryParameters = {};
6202
+ if (requestParameters.waiting !== undefined) {
6203
+ queryParameters['waiting'] = requestParameters.waiting;
6204
+ }
6205
+ headerParameters = {};
6206
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
6207
+ // oauth required
6208
+ _a = headerParameters;
6209
+ _b = "Authorization";
6210
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", [])];
6211
+ case 1:
6212
+ // oauth required
6213
+ _a[_b] = _c.sent();
6214
+ _c.label = 2;
6215
+ case 2:
6216
+ if (this.configuration && this.configuration.apiKey) {
6217
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
6218
+ }
6219
+ return [4 /*yield*/, this.request({
6220
+ path: "/sfvb/storefronts/{storefront_oid}/sequences/{sequence_uuid}".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))).replace("{".concat("sequence_uuid", "}"), encodeURIComponent(String(requestParameters.sequenceUuid))),
6221
+ method: 'GET',
6222
+ headers: headerParameters,
6223
+ query: queryParameters,
6224
+ }, initOverrides)];
6225
+ case 3:
6226
+ response = _c.sent();
6227
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SfvbSequenceFromJSON)(jsonValue); })];
6228
+ }
6229
+ });
6230
+ });
6231
+ };
6232
+ /**
6233
+ * The communication sequence named by a campaign\'s or flow\'s communication_sequence_uuid, with its steps from the start in order. Only condition, split and InboxGeek steps branch, and each holds its two sides in branches. Each step has its type, the admin\'s label, its settings (a webhook\'s header and parameter values masked), its audience filter, and the emails, postcard, lists or items it names. waiting adds how many customers are waiting on each step now. Read only.
6234
+ * Get a campaign\'s or flow\'s steps as a tree
6235
+ */
6236
+ SfvbApi.prototype.getSfvbSequence = function (requestParameters, initOverrides) {
6237
+ return __awaiter(this, void 0, void 0, function () {
6238
+ var response;
6239
+ return __generator(this, function (_a) {
6240
+ switch (_a.label) {
6241
+ case 0: return [4 /*yield*/, this.getSfvbSequenceRaw(requestParameters, initOverrides)];
6242
+ case 1:
6243
+ response = _a.sent();
6244
+ return [4 /*yield*/, response.value()];
6245
+ case 2: return [2 /*return*/, _a.sent()];
6246
+ }
6247
+ });
6248
+ });
6249
+ };
6185
6250
  /**
6186
6251
  * One render\'s server log with its lines, each with a level, a category such as VELOCITY or FLOW, and the message. log_id comes from the list, or from the X-UltraCart-Storefront-Log-Id header a page sends inside an SFVB preview session. min_level is debug, info, warn or error, default debug.
6187
6252
  * Get one storefront render log
@@ -95,6 +95,12 @@ export interface ConversationAgentAuth {
95
95
  * @memberof ConversationAgentAuth
96
96
  */
97
97
  pbx_jwt?: string;
98
+ /**
99
+ * Status the agent starts in when the CRM loads
100
+ * @type {string}
101
+ * @memberof ConversationAgentAuth
102
+ */
103
+ pbx_startup_activity?: ConversationAgentAuthPbxStartupActivityEnum;
98
104
  /**
99
105
  *
100
106
  * @type {boolean}
@@ -150,6 +156,14 @@ export interface ConversationAgentAuth {
150
156
  */
151
157
  websocket_url?: string;
152
158
  }
159
+ /**
160
+ * @export
161
+ */
162
+ export declare const ConversationAgentAuthPbxStartupActivityEnum: {
163
+ readonly Available: "available";
164
+ readonly Unavailable: "unavailable";
165
+ };
166
+ export type ConversationAgentAuthPbxStartupActivityEnum = typeof ConversationAgentAuthPbxStartupActivityEnum[keyof typeof ConversationAgentAuthPbxStartupActivityEnum];
153
167
  /**
154
168
  * Check if a given object implements the ConversationAgentAuth interface.
155
169
  */
@@ -13,10 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationAgentAuthToJSON = exports.ConversationAgentAuthFromJSONTyped = exports.ConversationAgentAuthFromJSON = exports.instanceOfConversationAgentAuth = void 0;
16
+ exports.ConversationAgentAuthToJSON = exports.ConversationAgentAuthFromJSONTyped = exports.ConversationAgentAuthFromJSON = exports.instanceOfConversationAgentAuth = exports.ConversationAgentAuthPbxStartupActivityEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var ConversationAgentAuthMerchant_1 = require("./ConversationAgentAuthMerchant");
19
19
  var ConversationTwilioAccount_1 = require("./ConversationTwilioAccount");
20
+ /**
21
+ * @export
22
+ */
23
+ exports.ConversationAgentAuthPbxStartupActivityEnum = {
24
+ Available: 'available',
25
+ Unavailable: 'unavailable'
26
+ };
20
27
  /**
21
28
  * Check if a given object implements the ConversationAgentAuth interface.
22
29
  */
@@ -47,6 +54,7 @@ function ConversationAgentAuthFromJSONTyped(json, ignoreDiscriminator) {
47
54
  'parent_merchant_id': !(0, runtime_1.exists)(json, 'parent_merchant_id') ? undefined : json['parent_merchant_id'],
48
55
  'pbx_admin': !(0, runtime_1.exists)(json, 'pbx_admin') ? undefined : json['pbx_admin'],
49
56
  'pbx_jwt': !(0, runtime_1.exists)(json, 'pbx_jwt') ? undefined : json['pbx_jwt'],
57
+ 'pbx_startup_activity': !(0, runtime_1.exists)(json, 'pbx_startup_activity') ? undefined : json['pbx_startup_activity'],
50
58
  'pbx_supervisor': !(0, runtime_1.exists)(json, 'pbx_supervisor') ? undefined : json['pbx_supervisor'],
51
59
  'pbx_user': !(0, runtime_1.exists)(json, 'pbx_user') ? undefined : json['pbx_user'],
52
60
  'pbx_voice_identity': !(0, runtime_1.exists)(json, 'pbx_voice_identity') ? undefined : json['pbx_voice_identity'],
@@ -80,6 +88,7 @@ function ConversationAgentAuthToJSON(value) {
80
88
  'parent_merchant_id': value.parent_merchant_id,
81
89
  'pbx_admin': value.pbx_admin,
82
90
  'pbx_jwt': value.pbx_jwt,
91
+ 'pbx_startup_activity': value.pbx_startup_activity,
83
92
  'pbx_supervisor': value.pbx_supervisor,
84
93
  'pbx_user': value.pbx_user,
85
94
  'pbx_voice_identity': value.pbx_voice_identity,
@@ -105,6 +105,12 @@ export interface ConversationPbxAgent {
105
105
  * @memberof ConversationPbxAgent
106
106
  */
107
107
  shared_conversation_pbx_voicemail_mailbox_uuid?: string;
108
+ /**
109
+ * Status the agent starts in when the CRM loads. Missing means available.
110
+ * @type {string}
111
+ * @memberof ConversationPbxAgent
112
+ */
113
+ startup_activity?: ConversationPbxAgentStartupActivityEnum;
108
114
  /**
109
115
  * Twilio taskrouter worker Id
110
116
  * @type {string}
@@ -163,6 +169,14 @@ export declare const ConversationPbxAgentCallRoutingPreferenceEnum: {
163
169
  readonly Cellphone: "cellphone";
164
170
  };
165
171
  export type ConversationPbxAgentCallRoutingPreferenceEnum = typeof ConversationPbxAgentCallRoutingPreferenceEnum[keyof typeof ConversationPbxAgentCallRoutingPreferenceEnum];
172
+ /**
173
+ * @export
174
+ */
175
+ export declare const ConversationPbxAgentStartupActivityEnum: {
176
+ readonly Available: "available";
177
+ readonly Unavailable: "unavailable";
178
+ };
179
+ export type ConversationPbxAgentStartupActivityEnum = typeof ConversationPbxAgentStartupActivityEnum[keyof typeof ConversationPbxAgentStartupActivityEnum];
166
180
  /**
167
181
  * @export
168
182
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationPbxAgentToJSON = exports.ConversationPbxAgentFromJSONTyped = exports.ConversationPbxAgentFromJSON = exports.instanceOfConversationPbxAgent = exports.ConversationPbxAgentUnavailableSayVoiceEnum = exports.ConversationPbxAgentCallRoutingPreferenceEnum = void 0;
16
+ exports.ConversationPbxAgentToJSON = exports.ConversationPbxAgentFromJSONTyped = exports.ConversationPbxAgentFromJSON = exports.instanceOfConversationPbxAgent = exports.ConversationPbxAgentUnavailableSayVoiceEnum = exports.ConversationPbxAgentStartupActivityEnum = exports.ConversationPbxAgentCallRoutingPreferenceEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  /**
19
19
  * @export
@@ -23,6 +23,13 @@ exports.ConversationPbxAgentCallRoutingPreferenceEnum = {
23
23
  HardwarePhone: 'hardware_phone',
24
24
  Cellphone: 'cellphone'
25
25
  };
26
+ /**
27
+ * @export
28
+ */
29
+ exports.ConversationPbxAgentStartupActivityEnum = {
30
+ Available: 'available',
31
+ Unavailable: 'unavailable'
32
+ };
26
33
  /**
27
34
  * @export
28
35
  */
@@ -62,6 +69,7 @@ function ConversationPbxAgentFromJSONTyped(json, ignoreDiscriminator) {
62
69
  'preferred_hardware_phone_uuid': !(0, runtime_1.exists)(json, 'preferred_hardware_phone_uuid') ? undefined : json['preferred_hardware_phone_uuid'],
63
70
  'record_outgoing_automatically': !(0, runtime_1.exists)(json, 'record_outgoing_automatically') ? undefined : json['record_outgoing_automatically'],
64
71
  'shared_conversation_pbx_voicemail_mailbox_uuid': !(0, runtime_1.exists)(json, 'shared_conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['shared_conversation_pbx_voicemail_mailbox_uuid'],
72
+ 'startup_activity': !(0, runtime_1.exists)(json, 'startup_activity') ? undefined : json['startup_activity'],
65
73
  'twilio_taskrouter_worker_id': !(0, runtime_1.exists)(json, 'twilio_taskrouter_worker_id') ? undefined : json['twilio_taskrouter_worker_id'],
66
74
  'unavailable_play_audio_uuid': !(0, runtime_1.exists)(json, 'unavailable_play_audio_uuid') ? undefined : json['unavailable_play_audio_uuid'],
67
75
  'unavailable_say': !(0, runtime_1.exists)(json, 'unavailable_say') ? undefined : json['unavailable_say'],
@@ -96,6 +104,7 @@ function ConversationPbxAgentToJSON(value) {
96
104
  'preferred_hardware_phone_uuid': value.preferred_hardware_phone_uuid,
97
105
  'record_outgoing_automatically': value.record_outgoing_automatically,
98
106
  'shared_conversation_pbx_voicemail_mailbox_uuid': value.shared_conversation_pbx_voicemail_mailbox_uuid,
107
+ 'startup_activity': value.startup_activity,
99
108
  'twilio_taskrouter_worker_id': value.twilio_taskrouter_worker_id,
100
109
  'unavailable_play_audio_uuid': value.unavailable_play_audio_uuid,
101
110
  'unavailable_say': value.unavailable_say,
@@ -0,0 +1,80 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { SfvbSequenceStep } from './SfvbSequenceStep';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SfvbSequence
17
+ */
18
+ export interface SfvbSequence {
19
+ /**
20
+ * The sequence uuid.
21
+ * @type {string}
22
+ * @memberof SfvbSequence
23
+ */
24
+ communication_sequence_uuid?: string;
25
+ /**
26
+ * True when its emails and postcards reach customers now.
27
+ * @type {boolean}
28
+ * @memberof SfvbSequence
29
+ */
30
+ live?: boolean;
31
+ /**
32
+ * Anything the read could not do, such as waiting counts that were unavailable.
33
+ * @type {Array<string>}
34
+ * @memberof SfvbSequence
35
+ */
36
+ notes?: Array<string>;
37
+ /**
38
+ * The campaign or flow name.
39
+ * @type {string}
40
+ * @memberof SfvbSequence
41
+ */
42
+ owner_name?: string;
43
+ /**
44
+ * The campaign or flow status.
45
+ * @type {string}
46
+ * @memberof SfvbSequence
47
+ */
48
+ owner_status?: string;
49
+ /**
50
+ * campaign or flow.
51
+ * @type {string}
52
+ * @memberof SfvbSequence
53
+ */
54
+ owner_type?: string;
55
+ /**
56
+ * The campaign or flow uuid.
57
+ * @type {string}
58
+ * @memberof SfvbSequence
59
+ */
60
+ owner_uuid?: string;
61
+ /**
62
+ * The steps from the start, in order. A branching step holds its sides in branches.
63
+ * @type {Array<SfvbSequenceStep>}
64
+ * @memberof SfvbSequence
65
+ */
66
+ steps?: Array<SfvbSequenceStep>;
67
+ /**
68
+ * True when number_waiting was filled in.
69
+ * @type {boolean}
70
+ * @memberof SfvbSequence
71
+ */
72
+ waiting_included?: boolean;
73
+ }
74
+ /**
75
+ * Check if a given object implements the SfvbSequence interface.
76
+ */
77
+ export declare function instanceOfSfvbSequence(value: object): boolean;
78
+ export declare function SfvbSequenceFromJSON(json: any): SfvbSequence;
79
+ export declare function SfvbSequenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequence;
80
+ export declare function SfvbSequenceToJSON(value?: SfvbSequence | null): any;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SfvbSequenceToJSON = exports.SfvbSequenceFromJSONTyped = exports.SfvbSequenceFromJSON = exports.instanceOfSfvbSequence = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var SfvbSequenceStep_1 = require("./SfvbSequenceStep");
19
+ /**
20
+ * Check if a given object implements the SfvbSequence interface.
21
+ */
22
+ function instanceOfSfvbSequence(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfSfvbSequence = instanceOfSfvbSequence;
27
+ function SfvbSequenceFromJSON(json) {
28
+ return SfvbSequenceFromJSONTyped(json, false);
29
+ }
30
+ exports.SfvbSequenceFromJSON = SfvbSequenceFromJSON;
31
+ function SfvbSequenceFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'communication_sequence_uuid': !(0, runtime_1.exists)(json, 'communication_sequence_uuid') ? undefined : json['communication_sequence_uuid'],
37
+ 'live': !(0, runtime_1.exists)(json, 'live') ? undefined : json['live'],
38
+ 'notes': !(0, runtime_1.exists)(json, 'notes') ? undefined : json['notes'],
39
+ 'owner_name': !(0, runtime_1.exists)(json, 'owner_name') ? undefined : json['owner_name'],
40
+ 'owner_status': !(0, runtime_1.exists)(json, 'owner_status') ? undefined : json['owner_status'],
41
+ 'owner_type': !(0, runtime_1.exists)(json, 'owner_type') ? undefined : json['owner_type'],
42
+ 'owner_uuid': !(0, runtime_1.exists)(json, 'owner_uuid') ? undefined : json['owner_uuid'],
43
+ 'steps': !(0, runtime_1.exists)(json, 'steps') ? undefined : (json['steps'].map(SfvbSequenceStep_1.SfvbSequenceStepFromJSON)),
44
+ 'waiting_included': !(0, runtime_1.exists)(json, 'waiting_included') ? undefined : json['waiting_included'],
45
+ };
46
+ }
47
+ exports.SfvbSequenceFromJSONTyped = SfvbSequenceFromJSONTyped;
48
+ function SfvbSequenceToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {
56
+ 'communication_sequence_uuid': value.communication_sequence_uuid,
57
+ 'live': value.live,
58
+ 'notes': value.notes,
59
+ 'owner_name': value.owner_name,
60
+ 'owner_status': value.owner_status,
61
+ 'owner_type': value.owner_type,
62
+ 'owner_uuid': value.owner_uuid,
63
+ 'steps': value.steps === undefined ? undefined : (value.steps.map(SfvbSequenceStep_1.SfvbSequenceStepToJSON)),
64
+ 'waiting_included': value.waiting_included,
65
+ };
66
+ }
67
+ exports.SfvbSequenceToJSON = SfvbSequenceToJSON;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { SfvbSequenceStep } from './SfvbSequenceStep';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SfvbSequenceBranch
17
+ */
18
+ export interface SfvbSequenceBranch {
19
+ /**
20
+ * yes or no for a condition, left or right for a split or an InboxGeek step.
21
+ * @type {string}
22
+ * @memberof SfvbSequenceBranch
23
+ */
24
+ label?: string;
25
+ /**
26
+ * The steps on this side, in order.
27
+ * @type {Array<SfvbSequenceStep>}
28
+ * @memberof SfvbSequenceBranch
29
+ */
30
+ steps?: Array<SfvbSequenceStep>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the SfvbSequenceBranch interface.
34
+ */
35
+ export declare function instanceOfSfvbSequenceBranch(value: object): boolean;
36
+ export declare function SfvbSequenceBranchFromJSON(json: any): SfvbSequenceBranch;
37
+ export declare function SfvbSequenceBranchFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequenceBranch;
38
+ export declare function SfvbSequenceBranchToJSON(value?: SfvbSequenceBranch | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SfvbSequenceBranchToJSON = exports.SfvbSequenceBranchFromJSONTyped = exports.SfvbSequenceBranchFromJSON = exports.instanceOfSfvbSequenceBranch = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var SfvbSequenceStep_1 = require("./SfvbSequenceStep");
19
+ /**
20
+ * Check if a given object implements the SfvbSequenceBranch interface.
21
+ */
22
+ function instanceOfSfvbSequenceBranch(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfSfvbSequenceBranch = instanceOfSfvbSequenceBranch;
27
+ function SfvbSequenceBranchFromJSON(json) {
28
+ return SfvbSequenceBranchFromJSONTyped(json, false);
29
+ }
30
+ exports.SfvbSequenceBranchFromJSON = SfvbSequenceBranchFromJSON;
31
+ function SfvbSequenceBranchFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
37
+ 'steps': !(0, runtime_1.exists)(json, 'steps') ? undefined : (json['steps'].map(SfvbSequenceStep_1.SfvbSequenceStepFromJSON)),
38
+ };
39
+ }
40
+ exports.SfvbSequenceBranchFromJSONTyped = SfvbSequenceBranchFromJSONTyped;
41
+ function SfvbSequenceBranchToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'label': value.label,
50
+ 'steps': value.steps === undefined ? undefined : (value.steps.map(SfvbSequenceStep_1.SfvbSequenceStepToJSON)),
51
+ };
52
+ }
53
+ exports.SfvbSequenceBranchToJSON = SfvbSequenceBranchToJSON;