ultracart_rest_api_v2_typescript 4.1.210 → 4.1.211

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.211
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.211 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -84,6 +84,7 @@ Not every change is committed to every SDK.
84
84
 
85
85
  | Version | Date | Comments |
86
86
  | --: | :-: | --- |
87
+ | 4.1.211 | 10/27/2026 | sfvb internal testing |
87
88
  | 4.1.210 | 10/27/2026 | sfvb internal testing |
88
89
  | 4.1.209 | 10/27/2026 | sfvb internal testing |
89
90
  | 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
@@ -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;
@@ -0,0 +1,128 @@
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 { SfvbSequenceBranch } from './SfvbSequenceBranch';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SfvbSequenceStep
17
+ */
18
+ export interface SfvbSequenceStep {
19
+ /**
20
+ * Its two sides, for a condition, split or InboxGeek step. Absent for every other type.
21
+ * @type {Array<SfvbSequenceBranch>}
22
+ * @memberof SfvbSequenceStep
23
+ */
24
+ branches?: Array<SfvbSequenceBranch>;
25
+ /**
26
+ * True when the step's settings could not be read.
27
+ * @type {boolean}
28
+ * @memberof SfvbSequenceStep
29
+ */
30
+ config_error?: boolean;
31
+ /**
32
+ * The step's settings as the admin stores them. A webhook's header and parameter values are masked.
33
+ * @type {string}
34
+ * @memberof SfvbSequenceStep
35
+ */
36
+ config_json?: string;
37
+ /**
38
+ * A note stored inside the step's settings, when there is one.
39
+ * @type {string}
40
+ * @memberof SfvbSequenceStep
41
+ */
42
+ config_merchant_notes?: string;
43
+ /**
44
+ * True when the step is switched off in its settings.
45
+ * @type {boolean}
46
+ * @memberof SfvbSequenceStep
47
+ */
48
+ disabled?: boolean;
49
+ /**
50
+ * The emails it sends. One for an email step, one per variant for an experiment.
51
+ * @type {Array<string>}
52
+ * @memberof SfvbSequenceStep
53
+ */
54
+ email_uuids?: Array<string>;
55
+ /**
56
+ * The step's audience filter as stored, when it has one.
57
+ * @type {string}
58
+ * @memberof SfvbSequenceStep
59
+ */
60
+ filter_profile_equation_json?: string;
61
+ /**
62
+ * The items it names, for a cart or rate limiter step.
63
+ * @type {Array<string>}
64
+ * @memberof SfvbSequenceStep
65
+ */
66
+ item_ids?: Array<string>;
67
+ /**
68
+ * The type as the admin names it, such as Time Delay. The type itself for one it doesn't know.
69
+ * @type {string}
70
+ * @memberof SfvbSequenceStep
71
+ */
72
+ label?: string;
73
+ /**
74
+ * The lists it subscribes or unsubscribes, for a list step.
75
+ * @type {Array<string>}
76
+ * @memberof SfvbSequenceStep
77
+ */
78
+ list_uuids?: Array<string>;
79
+ /**
80
+ * The note stored on the step.
81
+ * @type {string}
82
+ * @memberof SfvbSequenceStep
83
+ */
84
+ merchant_notes?: string;
85
+ /**
86
+ * The step's own display name from its settings, when it has one.
87
+ * @type {string}
88
+ * @memberof SfvbSequenceStep
89
+ */
90
+ name?: string;
91
+ /**
92
+ * How many customers are waiting on this step now. Only when waiting counts were asked for.
93
+ * @type {number}
94
+ * @memberof SfvbSequenceStep
95
+ */
96
+ number_waiting?: number;
97
+ /**
98
+ * The postcard it sends, for a postcard step.
99
+ * @type {string}
100
+ * @memberof SfvbSequenceStep
101
+ */
102
+ postcard_uuid?: string;
103
+ /**
104
+ * The step uuid.
105
+ * @type {string}
106
+ * @memberof SfvbSequenceStep
107
+ */
108
+ step_uuid?: string;
109
+ /**
110
+ * The step type, such as email, wait, condition or webhook.
111
+ * @type {string}
112
+ * @memberof SfvbSequenceStep
113
+ */
114
+ type?: string;
115
+ /**
116
+ * True for a step no branch leads to. Listed at the end so nothing is hidden.
117
+ * @type {boolean}
118
+ * @memberof SfvbSequenceStep
119
+ */
120
+ unreachable?: boolean;
121
+ }
122
+ /**
123
+ * Check if a given object implements the SfvbSequenceStep interface.
124
+ */
125
+ export declare function instanceOfSfvbSequenceStep(value: object): boolean;
126
+ export declare function SfvbSequenceStepFromJSON(json: any): SfvbSequenceStep;
127
+ export declare function SfvbSequenceStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequenceStep;
128
+ export declare function SfvbSequenceStepToJSON(value?: SfvbSequenceStep | null): any;
@@ -0,0 +1,83 @@
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.SfvbSequenceStepToJSON = exports.SfvbSequenceStepFromJSONTyped = exports.SfvbSequenceStepFromJSON = exports.instanceOfSfvbSequenceStep = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var SfvbSequenceBranch_1 = require("./SfvbSequenceBranch");
19
+ /**
20
+ * Check if a given object implements the SfvbSequenceStep interface.
21
+ */
22
+ function instanceOfSfvbSequenceStep(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfSfvbSequenceStep = instanceOfSfvbSequenceStep;
27
+ function SfvbSequenceStepFromJSON(json) {
28
+ return SfvbSequenceStepFromJSONTyped(json, false);
29
+ }
30
+ exports.SfvbSequenceStepFromJSON = SfvbSequenceStepFromJSON;
31
+ function SfvbSequenceStepFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'branches': !(0, runtime_1.exists)(json, 'branches') ? undefined : (json['branches'].map(SfvbSequenceBranch_1.SfvbSequenceBranchFromJSON)),
37
+ 'config_error': !(0, runtime_1.exists)(json, 'config_error') ? undefined : json['config_error'],
38
+ 'config_json': !(0, runtime_1.exists)(json, 'config_json') ? undefined : json['config_json'],
39
+ 'config_merchant_notes': !(0, runtime_1.exists)(json, 'config_merchant_notes') ? undefined : json['config_merchant_notes'],
40
+ 'disabled': !(0, runtime_1.exists)(json, 'disabled') ? undefined : json['disabled'],
41
+ 'email_uuids': !(0, runtime_1.exists)(json, 'email_uuids') ? undefined : json['email_uuids'],
42
+ 'filter_profile_equation_json': !(0, runtime_1.exists)(json, 'filter_profile_equation_json') ? undefined : json['filter_profile_equation_json'],
43
+ 'item_ids': !(0, runtime_1.exists)(json, 'item_ids') ? undefined : json['item_ids'],
44
+ 'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
45
+ 'list_uuids': !(0, runtime_1.exists)(json, 'list_uuids') ? undefined : json['list_uuids'],
46
+ 'merchant_notes': !(0, runtime_1.exists)(json, 'merchant_notes') ? undefined : json['merchant_notes'],
47
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
48
+ 'number_waiting': !(0, runtime_1.exists)(json, 'number_waiting') ? undefined : json['number_waiting'],
49
+ 'postcard_uuid': !(0, runtime_1.exists)(json, 'postcard_uuid') ? undefined : json['postcard_uuid'],
50
+ 'step_uuid': !(0, runtime_1.exists)(json, 'step_uuid') ? undefined : json['step_uuid'],
51
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
52
+ 'unreachable': !(0, runtime_1.exists)(json, 'unreachable') ? undefined : json['unreachable'],
53
+ };
54
+ }
55
+ exports.SfvbSequenceStepFromJSONTyped = SfvbSequenceStepFromJSONTyped;
56
+ function SfvbSequenceStepToJSON(value) {
57
+ if (value === undefined) {
58
+ return undefined;
59
+ }
60
+ if (value === null) {
61
+ return null;
62
+ }
63
+ return {
64
+ 'branches': value.branches === undefined ? undefined : (value.branches.map(SfvbSequenceBranch_1.SfvbSequenceBranchToJSON)),
65
+ 'config_error': value.config_error,
66
+ 'config_json': value.config_json,
67
+ 'config_merchant_notes': value.config_merchant_notes,
68
+ 'disabled': value.disabled,
69
+ 'email_uuids': value.email_uuids,
70
+ 'filter_profile_equation_json': value.filter_profile_equation_json,
71
+ 'item_ids': value.item_ids,
72
+ 'label': value.label,
73
+ 'list_uuids': value.list_uuids,
74
+ 'merchant_notes': value.merchant_notes,
75
+ 'name': value.name,
76
+ 'number_waiting': value.number_waiting,
77
+ 'postcard_uuid': value.postcard_uuid,
78
+ 'step_uuid': value.step_uuid,
79
+ 'type': value.type,
80
+ 'unreachable': value.unreachable,
81
+ };
82
+ }
83
+ exports.SfvbSequenceStepToJSON = SfvbSequenceStepToJSON;
@@ -1166,6 +1166,9 @@ export * from './SfvbSecretRequest';
1166
1166
  export * from './SfvbSecretRequestCreate';
1167
1167
  export * from './SfvbSecretRequestsResponse';
1168
1168
  export * from './SfvbSecretSink';
1169
+ export * from './SfvbSequence';
1170
+ export * from './SfvbSequenceBranch';
1171
+ export * from './SfvbSequenceStep';
1169
1172
  export * from './SfvbServerLog';
1170
1173
  export * from './SfvbServerLogDetail';
1171
1174
  export * from './SfvbServerLogEntry';
@@ -1184,6 +1184,9 @@ __exportStar(require("./SfvbSecretRequest"), exports);
1184
1184
  __exportStar(require("./SfvbSecretRequestCreate"), exports);
1185
1185
  __exportStar(require("./SfvbSecretRequestsResponse"), exports);
1186
1186
  __exportStar(require("./SfvbSecretSink"), exports);
1187
+ __exportStar(require("./SfvbSequence"), exports);
1188
+ __exportStar(require("./SfvbSequenceBranch"), exports);
1189
+ __exportStar(require("./SfvbSequenceStep"), exports);
1187
1190
  __exportStar(require("./SfvbServerLog"), exports);
1188
1191
  __exportStar(require("./SfvbServerLogDetail"), exports);
1189
1192
  __exportStar(require("./SfvbServerLogEntry"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.210",
3
+ "version": "4.1.211",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -429,6 +429,9 @@ import {
429
429
  SfvbSecretRequestsResponse,
430
430
  SfvbSecretRequestsResponseFromJSON,
431
431
  SfvbSecretRequestsResponseToJSON,
432
+ SfvbSequence,
433
+ SfvbSequenceFromJSON,
434
+ SfvbSequenceToJSON,
432
435
  SfvbServerLogDetail,
433
436
  SfvbServerLogDetailFromJSON,
434
437
  SfvbServerLogDetailToJSON,
@@ -1007,6 +1010,12 @@ export interface GetSfvbSecretRequestRequest {
1007
1010
  requestId: string;
1008
1011
  }
1009
1012
 
1013
+ export interface GetSfvbSequenceRequest {
1014
+ storefrontOid: number;
1015
+ sequenceUuid: string;
1016
+ waiting?: boolean;
1017
+ }
1018
+
1010
1019
  export interface GetSfvbServerLogRequest {
1011
1020
  storefrontOid: number;
1012
1021
  logId: string;
@@ -3308,6 +3317,24 @@ export interface SfvbApiInterface {
3308
3317
  */
3309
3318
  getSfvbSecretRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSecretRequestsResponse>;
3310
3319
 
3320
+ /**
3321
+ * 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.
3322
+ * @summary Get a campaign\'s or flow\'s steps as a tree
3323
+ * @param {number} storefrontOid
3324
+ * @param {string} sequenceUuid
3325
+ * @param {boolean} [waiting] Include how many customers are waiting on each step
3326
+ * @param {*} [options] Override http request option.
3327
+ * @throws {RequiredError}
3328
+ * @memberof SfvbApiInterface
3329
+ */
3330
+ getSfvbSequenceRaw(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequence>>;
3331
+
3332
+ /**
3333
+ * 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.
3334
+ * Get a campaign\'s or flow\'s steps as a tree
3335
+ */
3336
+ getSfvbSequence(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequence>;
3337
+
3311
3338
  /**
3312
3339
  * 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.
3313
3340
  * @summary Get one storefront render log
@@ -9776,6 +9803,55 @@ export class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface {
9776
9803
  return await response.value();
9777
9804
  }
9778
9805
 
9806
+ /**
9807
+ * 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.
9808
+ * Get a campaign\'s or flow\'s steps as a tree
9809
+ */
9810
+ async getSfvbSequenceRaw(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequence>> {
9811
+ if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
9812
+ throw new runtime.RequiredError('storefrontOid','Required parameter requestParameters.storefrontOid was null or undefined when calling getSfvbSequence.');
9813
+ }
9814
+
9815
+ if (requestParameters.sequenceUuid === null || requestParameters.sequenceUuid === undefined) {
9816
+ throw new runtime.RequiredError('sequenceUuid','Required parameter requestParameters.sequenceUuid was null or undefined when calling getSfvbSequence.');
9817
+ }
9818
+
9819
+ const queryParameters: any = {};
9820
+
9821
+ if (requestParameters.waiting !== undefined) {
9822
+ queryParameters['waiting'] = requestParameters.waiting;
9823
+ }
9824
+
9825
+ const headerParameters: runtime.HTTPHeaders = {};
9826
+
9827
+ if (this.configuration && this.configuration.accessToken) {
9828
+ // oauth required
9829
+ headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", []);
9830
+ }
9831
+
9832
+ if (this.configuration && this.configuration.apiKey) {
9833
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
9834
+ }
9835
+
9836
+ const response = await this.request({
9837
+ path: `/sfvb/storefronts/{storefront_oid}/sequences/{sequence_uuid}`.replace(`{${"storefront_oid"}}`, encodeURIComponent(String(requestParameters.storefrontOid))).replace(`{${"sequence_uuid"}}`, encodeURIComponent(String(requestParameters.sequenceUuid))),
9838
+ method: 'GET',
9839
+ headers: headerParameters,
9840
+ query: queryParameters,
9841
+ }, initOverrides);
9842
+
9843
+ return new runtime.JSONApiResponse(response, (jsonValue) => SfvbSequenceFromJSON(jsonValue));
9844
+ }
9845
+
9846
+ /**
9847
+ * 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.
9848
+ * Get a campaign\'s or flow\'s steps as a tree
9849
+ */
9850
+ async getSfvbSequence(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequence> {
9851
+ const response = await this.getSfvbSequenceRaw(requestParameters, initOverrides);
9852
+ return await response.value();
9853
+ }
9854
+
9779
9855
  /**
9780
9856
  * 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.
9781
9857
  * Get one storefront render log
@@ -0,0 +1,138 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import {
17
+ SfvbSequenceStep,
18
+ SfvbSequenceStepFromJSON,
19
+ SfvbSequenceStepFromJSONTyped,
20
+ SfvbSequenceStepToJSON,
21
+ } from './SfvbSequenceStep';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SfvbSequence
27
+ */
28
+ export interface SfvbSequence {
29
+ /**
30
+ * The sequence uuid.
31
+ * @type {string}
32
+ * @memberof SfvbSequence
33
+ */
34
+ communication_sequence_uuid?: string;
35
+ /**
36
+ * True when its emails and postcards reach customers now.
37
+ * @type {boolean}
38
+ * @memberof SfvbSequence
39
+ */
40
+ live?: boolean;
41
+ /**
42
+ * Anything the read could not do, such as waiting counts that were unavailable.
43
+ * @type {Array<string>}
44
+ * @memberof SfvbSequence
45
+ */
46
+ notes?: Array<string>;
47
+ /**
48
+ * The campaign or flow name.
49
+ * @type {string}
50
+ * @memberof SfvbSequence
51
+ */
52
+ owner_name?: string;
53
+ /**
54
+ * The campaign or flow status.
55
+ * @type {string}
56
+ * @memberof SfvbSequence
57
+ */
58
+ owner_status?: string;
59
+ /**
60
+ * campaign or flow.
61
+ * @type {string}
62
+ * @memberof SfvbSequence
63
+ */
64
+ owner_type?: string;
65
+ /**
66
+ * The campaign or flow uuid.
67
+ * @type {string}
68
+ * @memberof SfvbSequence
69
+ */
70
+ owner_uuid?: string;
71
+ /**
72
+ * The steps from the start, in order. A branching step holds its sides in branches.
73
+ * @type {Array<SfvbSequenceStep>}
74
+ * @memberof SfvbSequence
75
+ */
76
+ steps?: Array<SfvbSequenceStep>;
77
+ /**
78
+ * True when number_waiting was filled in.
79
+ * @type {boolean}
80
+ * @memberof SfvbSequence
81
+ */
82
+ waiting_included?: boolean;
83
+ }
84
+
85
+
86
+
87
+ /**
88
+ * Check if a given object implements the SfvbSequence interface.
89
+ */
90
+ export function instanceOfSfvbSequence(value: object): boolean {
91
+ let isInstance = true;
92
+
93
+ return isInstance;
94
+ }
95
+
96
+ export function SfvbSequenceFromJSON(json: any): SfvbSequence {
97
+ return SfvbSequenceFromJSONTyped(json, false);
98
+ }
99
+
100
+ export function SfvbSequenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequence {
101
+ if ((json === undefined) || (json === null)) {
102
+ return json;
103
+ }
104
+ return {
105
+
106
+ 'communication_sequence_uuid': !exists(json, 'communication_sequence_uuid') ? undefined : json['communication_sequence_uuid'],
107
+ 'live': !exists(json, 'live') ? undefined : json['live'],
108
+ 'notes': !exists(json, 'notes') ? undefined : json['notes'],
109
+ 'owner_name': !exists(json, 'owner_name') ? undefined : json['owner_name'],
110
+ 'owner_status': !exists(json, 'owner_status') ? undefined : json['owner_status'],
111
+ 'owner_type': !exists(json, 'owner_type') ? undefined : json['owner_type'],
112
+ 'owner_uuid': !exists(json, 'owner_uuid') ? undefined : json['owner_uuid'],
113
+ 'steps': !exists(json, 'steps') ? undefined : ((json['steps'] as Array<any>).map(SfvbSequenceStepFromJSON)),
114
+ 'waiting_included': !exists(json, 'waiting_included') ? undefined : json['waiting_included'],
115
+ };
116
+ }
117
+
118
+ export function SfvbSequenceToJSON(value?: SfvbSequence | null): any {
119
+ if (value === undefined) {
120
+ return undefined;
121
+ }
122
+ if (value === null) {
123
+ return null;
124
+ }
125
+ return {
126
+
127
+ 'communication_sequence_uuid': value.communication_sequence_uuid,
128
+ 'live': value.live,
129
+ 'notes': value.notes,
130
+ 'owner_name': value.owner_name,
131
+ 'owner_status': value.owner_status,
132
+ 'owner_type': value.owner_type,
133
+ 'owner_uuid': value.owner_uuid,
134
+ 'steps': value.steps === undefined ? undefined : ((value.steps as Array<any>).map(SfvbSequenceStepToJSON)),
135
+ 'waiting_included': value.waiting_included,
136
+ };
137
+ }
138
+
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import {
17
+ SfvbSequenceStep,
18
+ SfvbSequenceStepFromJSON,
19
+ SfvbSequenceStepFromJSONTyped,
20
+ SfvbSequenceStepToJSON,
21
+ } from './SfvbSequenceStep';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SfvbSequenceBranch
27
+ */
28
+ export interface SfvbSequenceBranch {
29
+ /**
30
+ * yes or no for a condition, left or right for a split or an InboxGeek step.
31
+ * @type {string}
32
+ * @memberof SfvbSequenceBranch
33
+ */
34
+ label?: string;
35
+ /**
36
+ * The steps on this side, in order.
37
+ * @type {Array<SfvbSequenceStep>}
38
+ * @memberof SfvbSequenceBranch
39
+ */
40
+ steps?: Array<SfvbSequenceStep>;
41
+ }
42
+
43
+
44
+
45
+ /**
46
+ * Check if a given object implements the SfvbSequenceBranch interface.
47
+ */
48
+ export function instanceOfSfvbSequenceBranch(value: object): boolean {
49
+ let isInstance = true;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function SfvbSequenceBranchFromJSON(json: any): SfvbSequenceBranch {
55
+ return SfvbSequenceBranchFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function SfvbSequenceBranchFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequenceBranch {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'label': !exists(json, 'label') ? undefined : json['label'],
65
+ 'steps': !exists(json, 'steps') ? undefined : ((json['steps'] as Array<any>).map(SfvbSequenceStepFromJSON)),
66
+ };
67
+ }
68
+
69
+ export function SfvbSequenceBranchToJSON(value?: SfvbSequenceBranch | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'label': value.label,
79
+ 'steps': value.steps === undefined ? undefined : ((value.steps as Array<any>).map(SfvbSequenceStepToJSON)),
80
+ };
81
+ }
82
+
@@ -0,0 +1,202 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import {
17
+ SfvbSequenceBranch,
18
+ SfvbSequenceBranchFromJSON,
19
+ SfvbSequenceBranchFromJSONTyped,
20
+ SfvbSequenceBranchToJSON,
21
+ } from './SfvbSequenceBranch';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SfvbSequenceStep
27
+ */
28
+ export interface SfvbSequenceStep {
29
+ /**
30
+ * Its two sides, for a condition, split or InboxGeek step. Absent for every other type.
31
+ * @type {Array<SfvbSequenceBranch>}
32
+ * @memberof SfvbSequenceStep
33
+ */
34
+ branches?: Array<SfvbSequenceBranch>;
35
+ /**
36
+ * True when the step's settings could not be read.
37
+ * @type {boolean}
38
+ * @memberof SfvbSequenceStep
39
+ */
40
+ config_error?: boolean;
41
+ /**
42
+ * The step's settings as the admin stores them. A webhook's header and parameter values are masked.
43
+ * @type {string}
44
+ * @memberof SfvbSequenceStep
45
+ */
46
+ config_json?: string;
47
+ /**
48
+ * A note stored inside the step's settings, when there is one.
49
+ * @type {string}
50
+ * @memberof SfvbSequenceStep
51
+ */
52
+ config_merchant_notes?: string;
53
+ /**
54
+ * True when the step is switched off in its settings.
55
+ * @type {boolean}
56
+ * @memberof SfvbSequenceStep
57
+ */
58
+ disabled?: boolean;
59
+ /**
60
+ * The emails it sends. One for an email step, one per variant for an experiment.
61
+ * @type {Array<string>}
62
+ * @memberof SfvbSequenceStep
63
+ */
64
+ email_uuids?: Array<string>;
65
+ /**
66
+ * The step's audience filter as stored, when it has one.
67
+ * @type {string}
68
+ * @memberof SfvbSequenceStep
69
+ */
70
+ filter_profile_equation_json?: string;
71
+ /**
72
+ * The items it names, for a cart or rate limiter step.
73
+ * @type {Array<string>}
74
+ * @memberof SfvbSequenceStep
75
+ */
76
+ item_ids?: Array<string>;
77
+ /**
78
+ * The type as the admin names it, such as Time Delay. The type itself for one it doesn't know.
79
+ * @type {string}
80
+ * @memberof SfvbSequenceStep
81
+ */
82
+ label?: string;
83
+ /**
84
+ * The lists it subscribes or unsubscribes, for a list step.
85
+ * @type {Array<string>}
86
+ * @memberof SfvbSequenceStep
87
+ */
88
+ list_uuids?: Array<string>;
89
+ /**
90
+ * The note stored on the step.
91
+ * @type {string}
92
+ * @memberof SfvbSequenceStep
93
+ */
94
+ merchant_notes?: string;
95
+ /**
96
+ * The step's own display name from its settings, when it has one.
97
+ * @type {string}
98
+ * @memberof SfvbSequenceStep
99
+ */
100
+ name?: string;
101
+ /**
102
+ * How many customers are waiting on this step now. Only when waiting counts were asked for.
103
+ * @type {number}
104
+ * @memberof SfvbSequenceStep
105
+ */
106
+ number_waiting?: number;
107
+ /**
108
+ * The postcard it sends, for a postcard step.
109
+ * @type {string}
110
+ * @memberof SfvbSequenceStep
111
+ */
112
+ postcard_uuid?: string;
113
+ /**
114
+ * The step uuid.
115
+ * @type {string}
116
+ * @memberof SfvbSequenceStep
117
+ */
118
+ step_uuid?: string;
119
+ /**
120
+ * The step type, such as email, wait, condition or webhook.
121
+ * @type {string}
122
+ * @memberof SfvbSequenceStep
123
+ */
124
+ type?: string;
125
+ /**
126
+ * True for a step no branch leads to. Listed at the end so nothing is hidden.
127
+ * @type {boolean}
128
+ * @memberof SfvbSequenceStep
129
+ */
130
+ unreachable?: boolean;
131
+ }
132
+
133
+
134
+
135
+ /**
136
+ * Check if a given object implements the SfvbSequenceStep interface.
137
+ */
138
+ export function instanceOfSfvbSequenceStep(value: object): boolean {
139
+ let isInstance = true;
140
+
141
+ return isInstance;
142
+ }
143
+
144
+ export function SfvbSequenceStepFromJSON(json: any): SfvbSequenceStep {
145
+ return SfvbSequenceStepFromJSONTyped(json, false);
146
+ }
147
+
148
+ export function SfvbSequenceStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequenceStep {
149
+ if ((json === undefined) || (json === null)) {
150
+ return json;
151
+ }
152
+ return {
153
+
154
+ 'branches': !exists(json, 'branches') ? undefined : ((json['branches'] as Array<any>).map(SfvbSequenceBranchFromJSON)),
155
+ 'config_error': !exists(json, 'config_error') ? undefined : json['config_error'],
156
+ 'config_json': !exists(json, 'config_json') ? undefined : json['config_json'],
157
+ 'config_merchant_notes': !exists(json, 'config_merchant_notes') ? undefined : json['config_merchant_notes'],
158
+ 'disabled': !exists(json, 'disabled') ? undefined : json['disabled'],
159
+ 'email_uuids': !exists(json, 'email_uuids') ? undefined : json['email_uuids'],
160
+ 'filter_profile_equation_json': !exists(json, 'filter_profile_equation_json') ? undefined : json['filter_profile_equation_json'],
161
+ 'item_ids': !exists(json, 'item_ids') ? undefined : json['item_ids'],
162
+ 'label': !exists(json, 'label') ? undefined : json['label'],
163
+ 'list_uuids': !exists(json, 'list_uuids') ? undefined : json['list_uuids'],
164
+ 'merchant_notes': !exists(json, 'merchant_notes') ? undefined : json['merchant_notes'],
165
+ 'name': !exists(json, 'name') ? undefined : json['name'],
166
+ 'number_waiting': !exists(json, 'number_waiting') ? undefined : json['number_waiting'],
167
+ 'postcard_uuid': !exists(json, 'postcard_uuid') ? undefined : json['postcard_uuid'],
168
+ 'step_uuid': !exists(json, 'step_uuid') ? undefined : json['step_uuid'],
169
+ 'type': !exists(json, 'type') ? undefined : json['type'],
170
+ 'unreachable': !exists(json, 'unreachable') ? undefined : json['unreachable'],
171
+ };
172
+ }
173
+
174
+ export function SfvbSequenceStepToJSON(value?: SfvbSequenceStep | null): any {
175
+ if (value === undefined) {
176
+ return undefined;
177
+ }
178
+ if (value === null) {
179
+ return null;
180
+ }
181
+ return {
182
+
183
+ 'branches': value.branches === undefined ? undefined : ((value.branches as Array<any>).map(SfvbSequenceBranchToJSON)),
184
+ 'config_error': value.config_error,
185
+ 'config_json': value.config_json,
186
+ 'config_merchant_notes': value.config_merchant_notes,
187
+ 'disabled': value.disabled,
188
+ 'email_uuids': value.email_uuids,
189
+ 'filter_profile_equation_json': value.filter_profile_equation_json,
190
+ 'item_ids': value.item_ids,
191
+ 'label': value.label,
192
+ 'list_uuids': value.list_uuids,
193
+ 'merchant_notes': value.merchant_notes,
194
+ 'name': value.name,
195
+ 'number_waiting': value.number_waiting,
196
+ 'postcard_uuid': value.postcard_uuid,
197
+ 'step_uuid': value.step_uuid,
198
+ 'type': value.type,
199
+ 'unreachable': value.unreachable,
200
+ };
201
+ }
202
+
@@ -1168,6 +1168,9 @@ export * from './SfvbSecretRequest';
1168
1168
  export * from './SfvbSecretRequestCreate';
1169
1169
  export * from './SfvbSecretRequestsResponse';
1170
1170
  export * from './SfvbSecretSink';
1171
+ export * from './SfvbSequence';
1172
+ export * from './SfvbSequenceBranch';
1173
+ export * from './SfvbSequenceStep';
1171
1174
  export * from './SfvbServerLog';
1172
1175
  export * from './SfvbServerLogDetail';
1173
1176
  export * from './SfvbServerLogEntry';