ultracart_rest_api_v2_typescript 4.1.213 → 4.1.215

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.
@@ -1100,6 +1100,7 @@ src/models/SfvbItemRelatedRequest.ts
1100
1100
  src/models/SfvbItemResponse.ts
1101
1101
  src/models/SfvbItemSeo.ts
1102
1102
  src/models/SfvbItemSeoRequest.ts
1103
+ src/models/SfvbItemTags.ts
1103
1104
  src/models/SfvbItemVolumeDiscount.ts
1104
1105
  src/models/SfvbLibraryAiReview.ts
1105
1106
  src/models/SfvbLibraryContentManifest.ts
@@ -1199,6 +1200,8 @@ src/models/SfvbSecretSink.ts
1199
1200
  src/models/SfvbSequence.ts
1200
1201
  src/models/SfvbSequenceBranch.ts
1201
1202
  src/models/SfvbSequenceStep.ts
1203
+ src/models/SfvbSequenceStepUpdateRequest.ts
1204
+ src/models/SfvbSequenceStepUpdateResponse.ts
1202
1205
  src/models/SfvbServerLog.ts
1203
1206
  src/models/SfvbServerLogDetail.ts
1204
1207
  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.213
2
+ ## ultracart_rest_api_v2_typescript@4.1.215
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.213 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.215 --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.215 | 10/28/2026 | sfvb internal testing |
88
+ | 4.1.214 | 10/28/2026 | sfvb internal testing |
87
89
  | 4.1.213 | 10/28/2026 | auto order - improve item field descriptions |
88
90
  | 4.1.212 | 10/27/2026 | conversation - pbx agent startup activity |
89
91
  | 4.1.211 | 10/27/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, 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';
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, SfvbSequenceStepUpdateRequest, SfvbSequenceStepUpdateResponse, 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;
@@ -926,6 +926,13 @@ export interface UpdateSfvbRedirectRequest {
926
926
  ifMatch: string;
927
927
  redirectRequest: SfvbRedirectRequest;
928
928
  }
929
+ export interface UpdateSfvbSequenceStepRequest {
930
+ storefrontOid: number;
931
+ sequenceUuid: string;
932
+ stepUuid: string;
933
+ ifMatch: string;
934
+ sequenceStepUpdateRequest: SfvbSequenceStepUpdateRequest;
935
+ }
929
936
  export interface UpdateSfvbUpsellOfferRequest {
930
937
  storefrontOid: number;
931
938
  upsellOfferOid: number;
@@ -2428,7 +2435,7 @@ export interface SfvbApiInterface {
2428
2435
  */
2429
2436
  getSfvbSecretRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSecretRequestsResponse>;
2430
2437
  /**
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.
2438
+ * 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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
2432
2439
  * @summary Get a campaign\'s or flow\'s steps as a tree
2433
2440
  * @param {number} storefrontOid
2434
2441
  * @param {string} sequenceUuid
@@ -2439,7 +2446,7 @@ export interface SfvbApiInterface {
2439
2446
  */
2440
2447
  getSfvbSequenceRaw(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequence>>;
2441
2448
  /**
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.
2449
+ * 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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
2443
2450
  * Get a campaign\'s or flow\'s steps as a tree
2444
2451
  */
2445
2452
  getSfvbSequence(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequence>;
@@ -4066,6 +4073,24 @@ export interface SfvbApiInterface {
4066
4073
  * Change a redirect rule
4067
4074
  */
4068
4075
  updateSfvbRedirect(requestParameters: UpdateSfvbRedirectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbRedirectResponse>;
4076
+ /**
4077
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
4078
+ * @summary Change one step\'s settings or audience filter
4079
+ * @param {number} storefrontOid
4080
+ * @param {string} sequenceUuid
4081
+ * @param {string} stepUuid
4082
+ * @param {string} ifMatch The step\&#39;s hash_sha256 from the last read. Required; 428 when absent, 412 when stale.
4083
+ * @param {SfvbSequenceStepUpdateRequest} sequenceStepUpdateRequest The settings, the filter, or both
4084
+ * @param {*} [options] Override http request option.
4085
+ * @throws {RequiredError}
4086
+ * @memberof SfvbApiInterface
4087
+ */
4088
+ updateSfvbSequenceStepRaw(requestParameters: UpdateSfvbSequenceStepRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequenceStepUpdateResponse>>;
4089
+ /**
4090
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
4091
+ * Change one step\'s settings or audience filter
4092
+ */
4093
+ updateSfvbSequenceStep(requestParameters: UpdateSfvbSequenceStepRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequenceStepUpdateResponse>;
4069
4094
  /**
4070
4095
  * A full replace. Send back the whole offer you read, changed, with its hash_sha256 in If-Match. Read only fields are ignored and a writable field left out is cleared. Changing an offer that is switched on, or changing upsell_item_id_javascript or offsite_content_url, needs sfvb_publish. An update cannot switch an offer on; that is the enable call, which needs approval. Settings the API does not show, such as the offer\'s screenshots, are kept.
4071
4096
  * @summary Update an upsell offer
@@ -5110,12 +5135,12 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
5110
5135
  */
5111
5136
  getSfvbSecretRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSecretRequestsResponse>;
5112
5137
  /**
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.
5138
+ * 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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
5114
5139
  * Get a campaign\'s or flow\'s steps as a tree
5115
5140
  */
5116
5141
  getSfvbSequenceRaw(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequence>>;
5117
5142
  /**
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.
5143
+ * 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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
5119
5144
  * Get a campaign\'s or flow\'s steps as a tree
5120
5145
  */
5121
5146
  getSfvbSequence(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequence>;
@@ -6125,6 +6150,16 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
6125
6150
  * Change a redirect rule
6126
6151
  */
6127
6152
  updateSfvbRedirect(requestParameters: UpdateSfvbRedirectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbRedirectResponse>;
6153
+ /**
6154
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
6155
+ * Change one step\'s settings or audience filter
6156
+ */
6157
+ updateSfvbSequenceStepRaw(requestParameters: UpdateSfvbSequenceStepRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequenceStepUpdateResponse>>;
6158
+ /**
6159
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
6160
+ * Change one step\'s settings or audience filter
6161
+ */
6162
+ updateSfvbSequenceStep(requestParameters: UpdateSfvbSequenceStepRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequenceStepUpdateResponse>;
6128
6163
  /**
6129
6164
  * A full replace. Send back the whole offer you read, changed, with its hash_sha256 in If-Match. Read only fields are ignored and a writable field left out is cleared. Changing an offer that is switched on, or changing upsell_item_id_javascript or offsite_content_url, needs sfvb_publish. An update cannot switch an offer on; that is the enable call, which needs approval. Settings the API does not show, such as the offer\'s screenshots, are kept.
6130
6165
  * Update an upsell offer
@@ -6183,7 +6183,7 @@ var SfvbApi = /** @class */ (function (_super) {
6183
6183
  });
6184
6184
  };
6185
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.
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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
6187
6187
  * Get a campaign\'s or flow\'s steps as a tree
6188
6188
  */
6189
6189
  SfvbApi.prototype.getSfvbSequenceRaw = function (requestParameters, initOverrides) {
@@ -6230,7 +6230,7 @@ var SfvbApi = /** @class */ (function (_super) {
6230
6230
  });
6231
6231
  };
6232
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.
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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
6234
6234
  * Get a campaign\'s or flow\'s steps as a tree
6235
6235
  */
6236
6236
  SfvbApi.prototype.getSfvbSequence = function (requestParameters, initOverrides) {
@@ -13015,6 +13015,82 @@ var SfvbApi = /** @class */ (function (_super) {
13015
13015
  });
13016
13016
  });
13017
13017
  };
13018
+ /**
13019
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
13020
+ * Change one step\'s settings or audience filter
13021
+ */
13022
+ SfvbApi.prototype.updateSfvbSequenceStepRaw = function (requestParameters, initOverrides) {
13023
+ return __awaiter(this, void 0, void 0, function () {
13024
+ var queryParameters, headerParameters, _a, _b, response;
13025
+ return __generator(this, function (_c) {
13026
+ switch (_c.label) {
13027
+ case 0:
13028
+ if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
13029
+ throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling updateSfvbSequenceStep.');
13030
+ }
13031
+ if (requestParameters.sequenceUuid === null || requestParameters.sequenceUuid === undefined) {
13032
+ throw new runtime.RequiredError('sequenceUuid', 'Required parameter requestParameters.sequenceUuid was null or undefined when calling updateSfvbSequenceStep.');
13033
+ }
13034
+ if (requestParameters.stepUuid === null || requestParameters.stepUuid === undefined) {
13035
+ throw new runtime.RequiredError('stepUuid', 'Required parameter requestParameters.stepUuid was null or undefined when calling updateSfvbSequenceStep.');
13036
+ }
13037
+ if (requestParameters.ifMatch === null || requestParameters.ifMatch === undefined) {
13038
+ throw new runtime.RequiredError('ifMatch', 'Required parameter requestParameters.ifMatch was null or undefined when calling updateSfvbSequenceStep.');
13039
+ }
13040
+ if (requestParameters.sequenceStepUpdateRequest === null || requestParameters.sequenceStepUpdateRequest === undefined) {
13041
+ throw new runtime.RequiredError('sequenceStepUpdateRequest', 'Required parameter requestParameters.sequenceStepUpdateRequest was null or undefined when calling updateSfvbSequenceStep.');
13042
+ }
13043
+ queryParameters = {};
13044
+ headerParameters = {};
13045
+ headerParameters['Content-Type'] = 'application/json';
13046
+ if (requestParameters.ifMatch !== undefined && requestParameters.ifMatch !== null) {
13047
+ headerParameters['If-Match'] = String(requestParameters.ifMatch);
13048
+ }
13049
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
13050
+ // oauth required
13051
+ _a = headerParameters;
13052
+ _b = "Authorization";
13053
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", [])];
13054
+ case 1:
13055
+ // oauth required
13056
+ _a[_b] = _c.sent();
13057
+ _c.label = 2;
13058
+ case 2:
13059
+ if (this.configuration && this.configuration.apiKey) {
13060
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
13061
+ }
13062
+ return [4 /*yield*/, this.request({
13063
+ path: "/sfvb/storefronts/{storefront_oid}/sequences/{sequence_uuid}/steps/{step_uuid}".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))).replace("{".concat("sequence_uuid", "}"), encodeURIComponent(String(requestParameters.sequenceUuid))).replace("{".concat("step_uuid", "}"), encodeURIComponent(String(requestParameters.stepUuid))),
13064
+ method: 'PUT',
13065
+ headers: headerParameters,
13066
+ query: queryParameters,
13067
+ body: (0, models_1.SfvbSequenceStepUpdateRequestToJSON)(requestParameters.sequenceStepUpdateRequest),
13068
+ }, initOverrides)];
13069
+ case 3:
13070
+ response = _c.sent();
13071
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SfvbSequenceStepUpdateResponseFromJSON)(jsonValue); })];
13072
+ }
13073
+ });
13074
+ });
13075
+ };
13076
+ /**
13077
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
13078
+ * Change one step\'s settings or audience filter
13079
+ */
13080
+ SfvbApi.prototype.updateSfvbSequenceStep = function (requestParameters, initOverrides) {
13081
+ return __awaiter(this, void 0, void 0, function () {
13082
+ var response;
13083
+ return __generator(this, function (_a) {
13084
+ switch (_a.label) {
13085
+ case 0: return [4 /*yield*/, this.updateSfvbSequenceStepRaw(requestParameters, initOverrides)];
13086
+ case 1:
13087
+ response = _a.sent();
13088
+ return [4 /*yield*/, response.value()];
13089
+ case 2: return [2 /*return*/, _a.sent()];
13090
+ }
13091
+ });
13092
+ });
13093
+ };
13018
13094
  /**
13019
13095
  * A full replace. Send back the whole offer you read, changed, with its hash_sha256 in If-Match. Read only fields are ignored and a writable field left out is cleared. Changing an offer that is switched on, or changing upsell_item_id_javascript or offsite_content_url, needs sfvb_publish. An update cannot switch an offer on; that is the enable call, which needs approval. Settings the API does not show, such as the offer\'s screenshots, are kept.
13020
13096
  * Update an upsell offer
@@ -12,6 +12,7 @@
12
12
  import { SfvbItemAttribute } from './SfvbItemAttribute';
13
13
  import { SfvbItemMultimedia } from './SfvbItemMultimedia';
14
14
  import { SfvbItemSeo } from './SfvbItemSeo';
15
+ import { SfvbItemTags } from './SfvbItemTags';
15
16
  /**
16
17
  *
17
18
  * @export
@@ -60,6 +61,12 @@ export interface SfvbItemResponse {
60
61
  * @memberof SfvbItemResponse
61
62
  */
62
63
  seo?: SfvbItemSeo;
64
+ /**
65
+ *
66
+ * @type {SfvbItemTags}
67
+ * @memberof SfvbItemResponse
68
+ */
69
+ tags?: SfvbItemTags;
63
70
  /**
64
71
  * What an itemtitle element renders. This is the item's short description in the catalog, not a storefront only field, so changing it changes the item everywhere.
65
72
  * @type {string}
@@ -18,6 +18,7 @@ var runtime_1 = require("../runtime");
18
18
  var SfvbItemAttribute_1 = require("./SfvbItemAttribute");
19
19
  var SfvbItemMultimedia_1 = require("./SfvbItemMultimedia");
20
20
  var SfvbItemSeo_1 = require("./SfvbItemSeo");
21
+ var SfvbItemTags_1 = require("./SfvbItemTags");
21
22
  /**
22
23
  * Check if a given object implements the SfvbItemResponse interface.
23
24
  */
@@ -42,6 +43,7 @@ function SfvbItemResponseFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'merchant_item_oid': !(0, runtime_1.exists)(json, 'merchant_item_oid') ? undefined : json['merchant_item_oid'],
43
44
  'multimedia': !(0, runtime_1.exists)(json, 'multimedia') ? undefined : (json['multimedia'].map(SfvbItemMultimedia_1.SfvbItemMultimediaFromJSON)),
44
45
  'seo': !(0, runtime_1.exists)(json, 'seo') ? undefined : (0, SfvbItemSeo_1.SfvbItemSeoFromJSON)(json['seo']),
46
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : (0, SfvbItemTags_1.SfvbItemTagsFromJSON)(json['tags']),
45
47
  'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
46
48
  };
47
49
  }
@@ -61,6 +63,7 @@ function SfvbItemResponseToJSON(value) {
61
63
  'merchant_item_oid': value.merchant_item_oid,
62
64
  'multimedia': value.multimedia === undefined ? undefined : (value.multimedia.map(SfvbItemMultimedia_1.SfvbItemMultimediaToJSON)),
63
65
  'seo': (0, SfvbItemSeo_1.SfvbItemSeoToJSON)(value.seo),
66
+ 'tags': (0, SfvbItemTags_1.SfvbItemTagsToJSON)(value.tags),
64
67
  'title': value.title,
65
68
  };
66
69
  }
@@ -0,0 +1,43 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SfvbItemTags
16
+ */
17
+ export interface SfvbItemTags {
18
+ /**
19
+ * Tags put on the customer when this item is bought, in stored order.
20
+ * @type {Array<string>}
21
+ * @memberof SfvbItemTags
22
+ */
23
+ customer?: Array<string>;
24
+ /**
25
+ * The item's own tags, in stored order. These are what the item in cart with tag conditions and itemcondition check.
26
+ * @type {Array<string>}
27
+ * @memberof SfvbItemTags
28
+ */
29
+ item?: Array<string>;
30
+ /**
31
+ * Tags put on the order when this item is bought, in stored order.
32
+ * @type {Array<string>}
33
+ * @memberof SfvbItemTags
34
+ */
35
+ order?: Array<string>;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SfvbItemTags interface.
39
+ */
40
+ export declare function instanceOfSfvbItemTags(value: object): boolean;
41
+ export declare function SfvbItemTagsFromJSON(json: any): SfvbItemTags;
42
+ export declare function SfvbItemTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbItemTags;
43
+ export declare function SfvbItemTagsToJSON(value?: SfvbItemTags | null): any;
@@ -0,0 +1,54 @@
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.SfvbItemTagsToJSON = exports.SfvbItemTagsFromJSONTyped = exports.SfvbItemTagsFromJSON = exports.instanceOfSfvbItemTags = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SfvbItemTags interface.
20
+ */
21
+ function instanceOfSfvbItemTags(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfSfvbItemTags = instanceOfSfvbItemTags;
26
+ function SfvbItemTagsFromJSON(json) {
27
+ return SfvbItemTagsFromJSONTyped(json, false);
28
+ }
29
+ exports.SfvbItemTagsFromJSON = SfvbItemTagsFromJSON;
30
+ function SfvbItemTagsFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'customer': !(0, runtime_1.exists)(json, 'customer') ? undefined : json['customer'],
36
+ 'item': !(0, runtime_1.exists)(json, 'item') ? undefined : json['item'],
37
+ 'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
38
+ };
39
+ }
40
+ exports.SfvbItemTagsFromJSONTyped = SfvbItemTagsFromJSONTyped;
41
+ function SfvbItemTagsToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'customer': value.customer,
50
+ 'item': value.item,
51
+ 'order': value.order,
52
+ };
53
+ }
54
+ exports.SfvbItemTagsToJSON = SfvbItemTagsToJSON;
@@ -58,6 +58,12 @@ export interface SfvbSequenceStep {
58
58
  * @memberof SfvbSequenceStep
59
59
  */
60
60
  filter_profile_equation_json?: string;
61
+ /**
62
+ * The hash of the step's type, stored settings and audience filter. Send it back as If-Match when changing the step.
63
+ * @type {string}
64
+ * @memberof SfvbSequenceStep
65
+ */
66
+ hash_sha256?: string;
61
67
  /**
62
68
  * The items it names, for a cart or rate limiter step.
63
69
  * @type {Array<string>}
@@ -40,6 +40,7 @@ function SfvbSequenceStepFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'disabled': !(0, runtime_1.exists)(json, 'disabled') ? undefined : json['disabled'],
41
41
  'email_uuids': !(0, runtime_1.exists)(json, 'email_uuids') ? undefined : json['email_uuids'],
42
42
  'filter_profile_equation_json': !(0, runtime_1.exists)(json, 'filter_profile_equation_json') ? undefined : json['filter_profile_equation_json'],
43
+ 'hash_sha256': !(0, runtime_1.exists)(json, 'hash_sha256') ? undefined : json['hash_sha256'],
43
44
  'item_ids': !(0, runtime_1.exists)(json, 'item_ids') ? undefined : json['item_ids'],
44
45
  'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
45
46
  'list_uuids': !(0, runtime_1.exists)(json, 'list_uuids') ? undefined : json['list_uuids'],
@@ -68,6 +69,7 @@ function SfvbSequenceStepToJSON(value) {
68
69
  'disabled': value.disabled,
69
70
  'email_uuids': value.email_uuids,
70
71
  'filter_profile_equation_json': value.filter_profile_equation_json,
72
+ 'hash_sha256': value.hash_sha256,
71
73
  'item_ids': value.item_ids,
72
74
  'label': value.label,
73
75
  'list_uuids': value.list_uuids,
@@ -0,0 +1,37 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SfvbSequenceStepUpdateRequest
16
+ */
17
+ export interface SfvbSequenceStepUpdateRequest {
18
+ /**
19
+ * The step's new settings, as a JSON object in the admin's own shape. Replaces the stored settings.
20
+ * @type {string}
21
+ * @memberof SfvbSequenceStepUpdateRequest
22
+ */
23
+ config_json?: string;
24
+ /**
25
+ * The step's new audience filter, as a JSON object. Replaces the stored filter.
26
+ * @type {string}
27
+ * @memberof SfvbSequenceStepUpdateRequest
28
+ */
29
+ filter_profile_equation_json?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SfvbSequenceStepUpdateRequest interface.
33
+ */
34
+ export declare function instanceOfSfvbSequenceStepUpdateRequest(value: object): boolean;
35
+ export declare function SfvbSequenceStepUpdateRequestFromJSON(json: any): SfvbSequenceStepUpdateRequest;
36
+ export declare function SfvbSequenceStepUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequenceStepUpdateRequest;
37
+ export declare function SfvbSequenceStepUpdateRequestToJSON(value?: SfvbSequenceStepUpdateRequest | null): any;
@@ -0,0 +1,52 @@
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.SfvbSequenceStepUpdateRequestToJSON = exports.SfvbSequenceStepUpdateRequestFromJSONTyped = exports.SfvbSequenceStepUpdateRequestFromJSON = exports.instanceOfSfvbSequenceStepUpdateRequest = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SfvbSequenceStepUpdateRequest interface.
20
+ */
21
+ function instanceOfSfvbSequenceStepUpdateRequest(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfSfvbSequenceStepUpdateRequest = instanceOfSfvbSequenceStepUpdateRequest;
26
+ function SfvbSequenceStepUpdateRequestFromJSON(json) {
27
+ return SfvbSequenceStepUpdateRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.SfvbSequenceStepUpdateRequestFromJSON = SfvbSequenceStepUpdateRequestFromJSON;
30
+ function SfvbSequenceStepUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'config_json': !(0, runtime_1.exists)(json, 'config_json') ? undefined : json['config_json'],
36
+ 'filter_profile_equation_json': !(0, runtime_1.exists)(json, 'filter_profile_equation_json') ? undefined : json['filter_profile_equation_json'],
37
+ };
38
+ }
39
+ exports.SfvbSequenceStepUpdateRequestFromJSONTyped = SfvbSequenceStepUpdateRequestFromJSONTyped;
40
+ function SfvbSequenceStepUpdateRequestToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'config_json': value.config_json,
49
+ 'filter_profile_equation_json': value.filter_profile_equation_json,
50
+ };
51
+ }
52
+ exports.SfvbSequenceStepUpdateRequestToJSON = SfvbSequenceStepUpdateRequestToJSON;
@@ -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 SfvbSequenceStepUpdateResponse
17
+ */
18
+ export interface SfvbSequenceStepUpdateResponse {
19
+ /**
20
+ * Anything worth knowing about the change, such as customers already waiting on the step.
21
+ * @type {Array<string>}
22
+ * @memberof SfvbSequenceStepUpdateResponse
23
+ */
24
+ notes?: Array<string>;
25
+ /**
26
+ *
27
+ * @type {SfvbSequenceStep}
28
+ * @memberof SfvbSequenceStepUpdateResponse
29
+ */
30
+ step?: SfvbSequenceStep;
31
+ }
32
+ /**
33
+ * Check if a given object implements the SfvbSequenceStepUpdateResponse interface.
34
+ */
35
+ export declare function instanceOfSfvbSequenceStepUpdateResponse(value: object): boolean;
36
+ export declare function SfvbSequenceStepUpdateResponseFromJSON(json: any): SfvbSequenceStepUpdateResponse;
37
+ export declare function SfvbSequenceStepUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequenceStepUpdateResponse;
38
+ export declare function SfvbSequenceStepUpdateResponseToJSON(value?: SfvbSequenceStepUpdateResponse | 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.SfvbSequenceStepUpdateResponseToJSON = exports.SfvbSequenceStepUpdateResponseFromJSONTyped = exports.SfvbSequenceStepUpdateResponseFromJSON = exports.instanceOfSfvbSequenceStepUpdateResponse = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var SfvbSequenceStep_1 = require("./SfvbSequenceStep");
19
+ /**
20
+ * Check if a given object implements the SfvbSequenceStepUpdateResponse interface.
21
+ */
22
+ function instanceOfSfvbSequenceStepUpdateResponse(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfSfvbSequenceStepUpdateResponse = instanceOfSfvbSequenceStepUpdateResponse;
27
+ function SfvbSequenceStepUpdateResponseFromJSON(json) {
28
+ return SfvbSequenceStepUpdateResponseFromJSONTyped(json, false);
29
+ }
30
+ exports.SfvbSequenceStepUpdateResponseFromJSON = SfvbSequenceStepUpdateResponseFromJSON;
31
+ function SfvbSequenceStepUpdateResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'notes': !(0, runtime_1.exists)(json, 'notes') ? undefined : json['notes'],
37
+ 'step': !(0, runtime_1.exists)(json, 'step') ? undefined : (0, SfvbSequenceStep_1.SfvbSequenceStepFromJSON)(json['step']),
38
+ };
39
+ }
40
+ exports.SfvbSequenceStepUpdateResponseFromJSONTyped = SfvbSequenceStepUpdateResponseFromJSONTyped;
41
+ function SfvbSequenceStepUpdateResponseToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'notes': value.notes,
50
+ 'step': (0, SfvbSequenceStep_1.SfvbSequenceStepToJSON)(value.step),
51
+ };
52
+ }
53
+ exports.SfvbSequenceStepUpdateResponseToJSON = SfvbSequenceStepUpdateResponseToJSON;
@@ -1070,6 +1070,7 @@ export * from './SfvbItemRelatedRequest';
1070
1070
  export * from './SfvbItemResponse';
1071
1071
  export * from './SfvbItemSeo';
1072
1072
  export * from './SfvbItemSeoRequest';
1073
+ export * from './SfvbItemTags';
1073
1074
  export * from './SfvbItemVolumeDiscount';
1074
1075
  export * from './SfvbLibraryAiReview';
1075
1076
  export * from './SfvbLibraryContentManifest';
@@ -1169,6 +1170,8 @@ export * from './SfvbSecretSink';
1169
1170
  export * from './SfvbSequence';
1170
1171
  export * from './SfvbSequenceBranch';
1171
1172
  export * from './SfvbSequenceStep';
1173
+ export * from './SfvbSequenceStepUpdateRequest';
1174
+ export * from './SfvbSequenceStepUpdateResponse';
1172
1175
  export * from './SfvbServerLog';
1173
1176
  export * from './SfvbServerLogDetail';
1174
1177
  export * from './SfvbServerLogEntry';
@@ -1088,6 +1088,7 @@ __exportStar(require("./SfvbItemRelatedRequest"), exports);
1088
1088
  __exportStar(require("./SfvbItemResponse"), exports);
1089
1089
  __exportStar(require("./SfvbItemSeo"), exports);
1090
1090
  __exportStar(require("./SfvbItemSeoRequest"), exports);
1091
+ __exportStar(require("./SfvbItemTags"), exports);
1091
1092
  __exportStar(require("./SfvbItemVolumeDiscount"), exports);
1092
1093
  __exportStar(require("./SfvbLibraryAiReview"), exports);
1093
1094
  __exportStar(require("./SfvbLibraryContentManifest"), exports);
@@ -1187,6 +1188,8 @@ __exportStar(require("./SfvbSecretSink"), exports);
1187
1188
  __exportStar(require("./SfvbSequence"), exports);
1188
1189
  __exportStar(require("./SfvbSequenceBranch"), exports);
1189
1190
  __exportStar(require("./SfvbSequenceStep"), exports);
1191
+ __exportStar(require("./SfvbSequenceStepUpdateRequest"), exports);
1192
+ __exportStar(require("./SfvbSequenceStepUpdateResponse"), exports);
1190
1193
  __exportStar(require("./SfvbServerLog"), exports);
1191
1194
  __exportStar(require("./SfvbServerLogDetail"), exports);
1192
1195
  __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.213",
3
+ "version": "4.1.215",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -432,6 +432,12 @@ import {
432
432
  SfvbSequence,
433
433
  SfvbSequenceFromJSON,
434
434
  SfvbSequenceToJSON,
435
+ SfvbSequenceStepUpdateRequest,
436
+ SfvbSequenceStepUpdateRequestFromJSON,
437
+ SfvbSequenceStepUpdateRequestToJSON,
438
+ SfvbSequenceStepUpdateResponse,
439
+ SfvbSequenceStepUpdateResponseFromJSON,
440
+ SfvbSequenceStepUpdateResponseToJSON,
435
441
  SfvbServerLogDetail,
436
442
  SfvbServerLogDetailFromJSON,
437
443
  SfvbServerLogDetailToJSON,
@@ -1619,6 +1625,14 @@ export interface UpdateSfvbRedirectRequest {
1619
1625
  redirectRequest: SfvbRedirectRequest;
1620
1626
  }
1621
1627
 
1628
+ export interface UpdateSfvbSequenceStepRequest {
1629
+ storefrontOid: number;
1630
+ sequenceUuid: string;
1631
+ stepUuid: string;
1632
+ ifMatch: string;
1633
+ sequenceStepUpdateRequest: SfvbSequenceStepUpdateRequest;
1634
+ }
1635
+
1622
1636
  export interface UpdateSfvbUpsellOfferRequest {
1623
1637
  storefrontOid: number;
1624
1638
  upsellOfferOid: number;
@@ -3318,7 +3332,7 @@ export interface SfvbApiInterface {
3318
3332
  getSfvbSecretRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSecretRequestsResponse>;
3319
3333
 
3320
3334
  /**
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.
3335
+ * 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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
3322
3336
  * @summary Get a campaign\'s or flow\'s steps as a tree
3323
3337
  * @param {number} storefrontOid
3324
3338
  * @param {string} sequenceUuid
@@ -3330,7 +3344,7 @@ export interface SfvbApiInterface {
3330
3344
  getSfvbSequenceRaw(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequence>>;
3331
3345
 
3332
3346
  /**
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.
3347
+ * 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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
3334
3348
  * Get a campaign\'s or flow\'s steps as a tree
3335
3349
  */
3336
3350
  getSfvbSequence(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequence>;
@@ -5160,6 +5174,26 @@ export interface SfvbApiInterface {
5160
5174
  */
5161
5175
  updateSfvbRedirect(requestParameters: UpdateSfvbRedirectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbRedirectResponse>;
5162
5176
 
5177
+ /**
5178
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
5179
+ * @summary Change one step\'s settings or audience filter
5180
+ * @param {number} storefrontOid
5181
+ * @param {string} sequenceUuid
5182
+ * @param {string} stepUuid
5183
+ * @param {string} ifMatch The step\&#39;s hash_sha256 from the last read. Required; 428 when absent, 412 when stale.
5184
+ * @param {SfvbSequenceStepUpdateRequest} sequenceStepUpdateRequest The settings, the filter, or both
5185
+ * @param {*} [options] Override http request option.
5186
+ * @throws {RequiredError}
5187
+ * @memberof SfvbApiInterface
5188
+ */
5189
+ updateSfvbSequenceStepRaw(requestParameters: UpdateSfvbSequenceStepRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequenceStepUpdateResponse>>;
5190
+
5191
+ /**
5192
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
5193
+ * Change one step\'s settings or audience filter
5194
+ */
5195
+ updateSfvbSequenceStep(requestParameters: UpdateSfvbSequenceStepRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequenceStepUpdateResponse>;
5196
+
5163
5197
  /**
5164
5198
  * A full replace. Send back the whole offer you read, changed, with its hash_sha256 in If-Match. Read only fields are ignored and a writable field left out is cleared. Changing an offer that is switched on, or changing upsell_item_id_javascript or offsite_content_url, needs sfvb_publish. An update cannot switch an offer on; that is the enable call, which needs approval. Settings the API does not show, such as the offer\'s screenshots, are kept.
5165
5199
  * @summary Update an upsell offer
@@ -9804,7 +9838,7 @@ export class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface {
9804
9838
  }
9805
9839
 
9806
9840
  /**
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.
9841
+ * 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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
9808
9842
  * Get a campaign\'s or flow\'s steps as a tree
9809
9843
  */
9810
9844
  async getSfvbSequenceRaw(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequence>> {
@@ -9844,7 +9878,7 @@ export class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface {
9844
9878
  }
9845
9879
 
9846
9880
  /**
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.
9881
+ * 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, the emails, postcard, lists or items it names, and the hash_sha256 to send as If-Match when changing it. waiting adds how many customers are waiting on each step now. Read only.
9848
9882
  * Get a campaign\'s or flow\'s steps as a tree
9849
9883
  */
9850
9884
  async getSfvbSequence(requestParameters: GetSfvbSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequence> {
@@ -15094,6 +15128,70 @@ export class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface {
15094
15128
  return await response.value();
15095
15129
  }
15096
15130
 
15131
+ /**
15132
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
15133
+ * Change one step\'s settings or audience filter
15134
+ */
15135
+ async updateSfvbSequenceStepRaw(requestParameters: UpdateSfvbSequenceStepRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbSequenceStepUpdateResponse>> {
15136
+ if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
15137
+ throw new runtime.RequiredError('storefrontOid','Required parameter requestParameters.storefrontOid was null or undefined when calling updateSfvbSequenceStep.');
15138
+ }
15139
+
15140
+ if (requestParameters.sequenceUuid === null || requestParameters.sequenceUuid === undefined) {
15141
+ throw new runtime.RequiredError('sequenceUuid','Required parameter requestParameters.sequenceUuid was null or undefined when calling updateSfvbSequenceStep.');
15142
+ }
15143
+
15144
+ if (requestParameters.stepUuid === null || requestParameters.stepUuid === undefined) {
15145
+ throw new runtime.RequiredError('stepUuid','Required parameter requestParameters.stepUuid was null or undefined when calling updateSfvbSequenceStep.');
15146
+ }
15147
+
15148
+ if (requestParameters.ifMatch === null || requestParameters.ifMatch === undefined) {
15149
+ throw new runtime.RequiredError('ifMatch','Required parameter requestParameters.ifMatch was null or undefined when calling updateSfvbSequenceStep.');
15150
+ }
15151
+
15152
+ if (requestParameters.sequenceStepUpdateRequest === null || requestParameters.sequenceStepUpdateRequest === undefined) {
15153
+ throw new runtime.RequiredError('sequenceStepUpdateRequest','Required parameter requestParameters.sequenceStepUpdateRequest was null or undefined when calling updateSfvbSequenceStep.');
15154
+ }
15155
+
15156
+ const queryParameters: any = {};
15157
+
15158
+ const headerParameters: runtime.HTTPHeaders = {};
15159
+
15160
+ headerParameters['Content-Type'] = 'application/json';
15161
+
15162
+ if (requestParameters.ifMatch !== undefined && requestParameters.ifMatch !== null) {
15163
+ headerParameters['If-Match'] = String(requestParameters.ifMatch);
15164
+ }
15165
+
15166
+ if (this.configuration && this.configuration.accessToken) {
15167
+ // oauth required
15168
+ headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", []);
15169
+ }
15170
+
15171
+ if (this.configuration && this.configuration.apiKey) {
15172
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
15173
+ }
15174
+
15175
+ const response = await this.request({
15176
+ path: `/sfvb/storefronts/{storefront_oid}/sequences/{sequence_uuid}/steps/{step_uuid}`.replace(`{${"storefront_oid"}}`, encodeURIComponent(String(requestParameters.storefrontOid))).replace(`{${"sequence_uuid"}}`, encodeURIComponent(String(requestParameters.sequenceUuid))).replace(`{${"step_uuid"}}`, encodeURIComponent(String(requestParameters.stepUuid))),
15177
+ method: 'PUT',
15178
+ headers: headerParameters,
15179
+ query: queryParameters,
15180
+ body: SfvbSequenceStepUpdateRequestToJSON(requestParameters.sequenceStepUpdateRequest),
15181
+ }, initOverrides);
15182
+
15183
+ return new runtime.JSONApiResponse(response, (jsonValue) => SfvbSequenceStepUpdateResponseFromJSON(jsonValue));
15184
+ }
15185
+
15186
+ /**
15187
+ * Replaces the step\'s settings (config_json), its audience filter (filter_profile_equation_json), or both. Nothing else about the step or the sequence changes. Send the step\'s hash_sha256 as If-Match; the write only lands if the step is still what you read. Email, postcard, experiment, resend, webhook, begin, end, continue and merge steps are refused. A sequence whose campaign or flow is live needs sfvb_publish.
15188
+ * Change one step\'s settings or audience filter
15189
+ */
15190
+ async updateSfvbSequenceStep(requestParameters: UpdateSfvbSequenceStepRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbSequenceStepUpdateResponse> {
15191
+ const response = await this.updateSfvbSequenceStepRaw(requestParameters, initOverrides);
15192
+ return await response.value();
15193
+ }
15194
+
15097
15195
  /**
15098
15196
  * A full replace. Send back the whole offer you read, changed, with its hash_sha256 in If-Match. Read only fields are ignored and a writable field left out is cleared. Changing an offer that is switched on, or changing upsell_item_id_javascript or offsite_content_url, needs sfvb_publish. An update cannot switch an offer on; that is the enable call, which needs approval. Settings the API does not show, such as the offer\'s screenshots, are kept.
15099
15197
  * Update an upsell offer
@@ -31,6 +31,12 @@ import {
31
31
  SfvbItemSeoFromJSONTyped,
32
32
  SfvbItemSeoToJSON,
33
33
  } from './SfvbItemSeo';
34
+ import {
35
+ SfvbItemTags,
36
+ SfvbItemTagsFromJSON,
37
+ SfvbItemTagsFromJSONTyped,
38
+ SfvbItemTagsToJSON,
39
+ } from './SfvbItemTags';
34
40
 
35
41
  /**
36
42
  *
@@ -80,6 +86,12 @@ export interface SfvbItemResponse {
80
86
  * @memberof SfvbItemResponse
81
87
  */
82
88
  seo?: SfvbItemSeo;
89
+ /**
90
+ *
91
+ * @type {SfvbItemTags}
92
+ * @memberof SfvbItemResponse
93
+ */
94
+ tags?: SfvbItemTags;
83
95
  /**
84
96
  * What an itemtitle element renders. This is the item's short description in the catalog, not a storefront only field, so changing it changes the item everywhere.
85
97
  * @type {string}
@@ -116,6 +128,7 @@ export function SfvbItemResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
116
128
  'merchant_item_oid': !exists(json, 'merchant_item_oid') ? undefined : json['merchant_item_oid'],
117
129
  'multimedia': !exists(json, 'multimedia') ? undefined : ((json['multimedia'] as Array<any>).map(SfvbItemMultimediaFromJSON)),
118
130
  'seo': !exists(json, 'seo') ? undefined : SfvbItemSeoFromJSON(json['seo']),
131
+ 'tags': !exists(json, 'tags') ? undefined : SfvbItemTagsFromJSON(json['tags']),
119
132
  'title': !exists(json, 'title') ? undefined : json['title'],
120
133
  };
121
134
  }
@@ -136,6 +149,7 @@ export function SfvbItemResponseToJSON(value?: SfvbItemResponse | null): any {
136
149
  'merchant_item_oid': value.merchant_item_oid,
137
150
  'multimedia': value.multimedia === undefined ? undefined : ((value.multimedia as Array<any>).map(SfvbItemMultimediaToJSON)),
138
151
  'seo': SfvbItemSeoToJSON(value.seo),
152
+ 'tags': SfvbItemTagsToJSON(value.tags),
139
153
  'title': value.title,
140
154
  };
141
155
  }
@@ -0,0 +1,83 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface SfvbItemTags
20
+ */
21
+ export interface SfvbItemTags {
22
+ /**
23
+ * Tags put on the customer when this item is bought, in stored order.
24
+ * @type {Array<string>}
25
+ * @memberof SfvbItemTags
26
+ */
27
+ customer?: Array<string>;
28
+ /**
29
+ * The item's own tags, in stored order. These are what the item in cart with tag conditions and itemcondition check.
30
+ * @type {Array<string>}
31
+ * @memberof SfvbItemTags
32
+ */
33
+ item?: Array<string>;
34
+ /**
35
+ * Tags put on the order when this item is bought, in stored order.
36
+ * @type {Array<string>}
37
+ * @memberof SfvbItemTags
38
+ */
39
+ order?: Array<string>;
40
+ }
41
+
42
+
43
+
44
+ /**
45
+ * Check if a given object implements the SfvbItemTags interface.
46
+ */
47
+ export function instanceOfSfvbItemTags(value: object): boolean {
48
+ let isInstance = true;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function SfvbItemTagsFromJSON(json: any): SfvbItemTags {
54
+ return SfvbItemTagsFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function SfvbItemTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbItemTags {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'customer': !exists(json, 'customer') ? undefined : json['customer'],
64
+ 'item': !exists(json, 'item') ? undefined : json['item'],
65
+ 'order': !exists(json, 'order') ? undefined : json['order'],
66
+ };
67
+ }
68
+
69
+ export function SfvbItemTagsToJSON(value?: SfvbItemTags | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'customer': value.customer,
79
+ 'item': value.item,
80
+ 'order': value.order,
81
+ };
82
+ }
83
+
@@ -68,6 +68,12 @@ export interface SfvbSequenceStep {
68
68
  * @memberof SfvbSequenceStep
69
69
  */
70
70
  filter_profile_equation_json?: string;
71
+ /**
72
+ * The hash of the step's type, stored settings and audience filter. Send it back as If-Match when changing the step.
73
+ * @type {string}
74
+ * @memberof SfvbSequenceStep
75
+ */
76
+ hash_sha256?: string;
71
77
  /**
72
78
  * The items it names, for a cart or rate limiter step.
73
79
  * @type {Array<string>}
@@ -158,6 +164,7 @@ export function SfvbSequenceStepFromJSONTyped(json: any, ignoreDiscriminator: bo
158
164
  'disabled': !exists(json, 'disabled') ? undefined : json['disabled'],
159
165
  'email_uuids': !exists(json, 'email_uuids') ? undefined : json['email_uuids'],
160
166
  'filter_profile_equation_json': !exists(json, 'filter_profile_equation_json') ? undefined : json['filter_profile_equation_json'],
167
+ 'hash_sha256': !exists(json, 'hash_sha256') ? undefined : json['hash_sha256'],
161
168
  'item_ids': !exists(json, 'item_ids') ? undefined : json['item_ids'],
162
169
  'label': !exists(json, 'label') ? undefined : json['label'],
163
170
  'list_uuids': !exists(json, 'list_uuids') ? undefined : json['list_uuids'],
@@ -187,6 +194,7 @@ export function SfvbSequenceStepToJSON(value?: SfvbSequenceStep | null): any {
187
194
  'disabled': value.disabled,
188
195
  'email_uuids': value.email_uuids,
189
196
  'filter_profile_equation_json': value.filter_profile_equation_json,
197
+ 'hash_sha256': value.hash_sha256,
190
198
  'item_ids': value.item_ids,
191
199
  'label': value.label,
192
200
  'list_uuids': value.list_uuids,
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface SfvbSequenceStepUpdateRequest
20
+ */
21
+ export interface SfvbSequenceStepUpdateRequest {
22
+ /**
23
+ * The step's new settings, as a JSON object in the admin's own shape. Replaces the stored settings.
24
+ * @type {string}
25
+ * @memberof SfvbSequenceStepUpdateRequest
26
+ */
27
+ config_json?: string;
28
+ /**
29
+ * The step's new audience filter, as a JSON object. Replaces the stored filter.
30
+ * @type {string}
31
+ * @memberof SfvbSequenceStepUpdateRequest
32
+ */
33
+ filter_profile_equation_json?: string;
34
+ }
35
+
36
+
37
+
38
+ /**
39
+ * Check if a given object implements the SfvbSequenceStepUpdateRequest interface.
40
+ */
41
+ export function instanceOfSfvbSequenceStepUpdateRequest(value: object): boolean {
42
+ let isInstance = true;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function SfvbSequenceStepUpdateRequestFromJSON(json: any): SfvbSequenceStepUpdateRequest {
48
+ return SfvbSequenceStepUpdateRequestFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function SfvbSequenceStepUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequenceStepUpdateRequest {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'config_json': !exists(json, 'config_json') ? undefined : json['config_json'],
58
+ 'filter_profile_equation_json': !exists(json, 'filter_profile_equation_json') ? undefined : json['filter_profile_equation_json'],
59
+ };
60
+ }
61
+
62
+ export function SfvbSequenceStepUpdateRequestToJSON(value?: SfvbSequenceStepUpdateRequest | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'config_json': value.config_json,
72
+ 'filter_profile_equation_json': value.filter_profile_equation_json,
73
+ };
74
+ }
75
+
@@ -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 SfvbSequenceStepUpdateResponse
27
+ */
28
+ export interface SfvbSequenceStepUpdateResponse {
29
+ /**
30
+ * Anything worth knowing about the change, such as customers already waiting on the step.
31
+ * @type {Array<string>}
32
+ * @memberof SfvbSequenceStepUpdateResponse
33
+ */
34
+ notes?: Array<string>;
35
+ /**
36
+ *
37
+ * @type {SfvbSequenceStep}
38
+ * @memberof SfvbSequenceStepUpdateResponse
39
+ */
40
+ step?: SfvbSequenceStep;
41
+ }
42
+
43
+
44
+
45
+ /**
46
+ * Check if a given object implements the SfvbSequenceStepUpdateResponse interface.
47
+ */
48
+ export function instanceOfSfvbSequenceStepUpdateResponse(value: object): boolean {
49
+ let isInstance = true;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function SfvbSequenceStepUpdateResponseFromJSON(json: any): SfvbSequenceStepUpdateResponse {
55
+ return SfvbSequenceStepUpdateResponseFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function SfvbSequenceStepUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbSequenceStepUpdateResponse {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'notes': !exists(json, 'notes') ? undefined : json['notes'],
65
+ 'step': !exists(json, 'step') ? undefined : SfvbSequenceStepFromJSON(json['step']),
66
+ };
67
+ }
68
+
69
+ export function SfvbSequenceStepUpdateResponseToJSON(value?: SfvbSequenceStepUpdateResponse | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'notes': value.notes,
79
+ 'step': SfvbSequenceStepToJSON(value.step),
80
+ };
81
+ }
82
+
@@ -1072,6 +1072,7 @@ export * from './SfvbItemRelatedRequest';
1072
1072
  export * from './SfvbItemResponse';
1073
1073
  export * from './SfvbItemSeo';
1074
1074
  export * from './SfvbItemSeoRequest';
1075
+ export * from './SfvbItemTags';
1075
1076
  export * from './SfvbItemVolumeDiscount';
1076
1077
  export * from './SfvbLibraryAiReview';
1077
1078
  export * from './SfvbLibraryContentManifest';
@@ -1171,6 +1172,8 @@ export * from './SfvbSecretSink';
1171
1172
  export * from './SfvbSequence';
1172
1173
  export * from './SfvbSequenceBranch';
1173
1174
  export * from './SfvbSequenceStep';
1175
+ export * from './SfvbSequenceStepUpdateRequest';
1176
+ export * from './SfvbSequenceStepUpdateResponse';
1174
1177
  export * from './SfvbServerLog';
1175
1178
  export * from './SfvbServerLogDetail';
1176
1179
  export * from './SfvbServerLogEntry';