ultracart_rest_api_v2_typescript 4.1.209 → 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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +4 -2
- package/dist/apis/SfvbApi.d.ts +63 -1
- package/dist/apis/SfvbApi.js +132 -0
- package/dist/models/SfvbEmail.d.ts +6 -0
- package/dist/models/SfvbEmail.js +2 -0
- package/dist/models/SfvbEmailReviewRequest.d.ts +31 -0
- package/dist/models/SfvbEmailReviewRequest.js +50 -0
- package/dist/models/SfvbSequence.d.ts +80 -0
- package/dist/models/SfvbSequence.js +67 -0
- package/dist/models/SfvbSequenceBranch.d.ts +38 -0
- package/dist/models/SfvbSequenceBranch.js +53 -0
- package/dist/models/SfvbSequenceStep.d.ts +128 -0
- package/dist/models/SfvbSequenceStep.js +83 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/SfvbApi.ts +155 -0
- package/src/models/SfvbEmail.ts +8 -0
- package/src/models/SfvbEmailReviewRequest.ts +67 -0
- package/src/models/SfvbSequence.ts +138 -0
- package/src/models/SfvbSequenceBranch.ts +82 -0
- package/src/models/SfvbSequenceStep.ts +202 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -1036,6 +1036,7 @@ src/models/SfvbElementsResponse.ts
|
|
|
1036
1036
|
src/models/SfvbEmail.ts
|
|
1037
1037
|
src/models/SfvbEmailRenderRequest.ts
|
|
1038
1038
|
src/models/SfvbEmailRenderResponse.ts
|
|
1039
|
+
src/models/SfvbEmailReviewRequest.ts
|
|
1039
1040
|
src/models/SfvbEmailUpdateRequest.ts
|
|
1040
1041
|
src/models/SfvbErrorDetail.ts
|
|
1041
1042
|
src/models/SfvbEvent.ts
|
|
@@ -1195,6 +1196,9 @@ src/models/SfvbSecretRequest.ts
|
|
|
1195
1196
|
src/models/SfvbSecretRequestCreate.ts
|
|
1196
1197
|
src/models/SfvbSecretRequestsResponse.ts
|
|
1197
1198
|
src/models/SfvbSecretSink.ts
|
|
1199
|
+
src/models/SfvbSequence.ts
|
|
1200
|
+
src/models/SfvbSequenceBranch.ts
|
|
1201
|
+
src/models/SfvbSequenceStep.ts
|
|
1198
1202
|
src/models/SfvbServerLog.ts
|
|
1199
1203
|
src/models/SfvbServerLogDetail.ts
|
|
1200
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.
|
|
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.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.211 --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.211 | 10/27/2026 | sfvb internal testing |
|
|
88
|
+
| 4.1.210 | 10/27/2026 | sfvb internal testing |
|
|
87
89
|
| 4.1.209 | 10/27/2026 | sfvb internal testing |
|
|
88
90
|
| 4.1.208 | 10/26/2026 | sfvb internal testing |
|
|
89
91
|
| 4.1.207 | 10/16/2026 | sfvb internal testing |
|
package/dist/apis/SfvbApi.d.ts
CHANGED
|
@@ -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, 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;
|
|
@@ -811,6 +816,11 @@ export interface RevertSfvbFileRequest {
|
|
|
811
816
|
fileRevertRequest: SfvbFileRevertRequest;
|
|
812
817
|
approvalId?: string;
|
|
813
818
|
}
|
|
819
|
+
export interface ReviewSfvbEmailRequest {
|
|
820
|
+
storefrontOid: number;
|
|
821
|
+
emailUuid: string;
|
|
822
|
+
emailReviewRequest: SfvbEmailReviewRequest;
|
|
823
|
+
}
|
|
814
824
|
export interface RevokeSfvbSecretRequestRequest {
|
|
815
825
|
requestId: string;
|
|
816
826
|
}
|
|
@@ -2417,6 +2427,22 @@ export interface SfvbApiInterface {
|
|
|
2417
2427
|
* List this sign-in\'s secret requests
|
|
2418
2428
|
*/
|
|
2419
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>;
|
|
2420
2446
|
/**
|
|
2421
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.
|
|
2422
2448
|
* @summary Get one storefront render log
|
|
@@ -3688,6 +3714,22 @@ export interface SfvbApiInterface {
|
|
|
3688
3714
|
* Revert a storefront file to an earlier version
|
|
3689
3715
|
*/
|
|
3690
3716
|
revertSfvbFile(requestParameters: RevertSfvbFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbFileWriteResponse>;
|
|
3717
|
+
/**
|
|
3718
|
+
* Starts a review the way the admin\'s Request Review does. One test copy of the email goes to the signed-in user, and to no one else, and the review runs in the background, so read the email again for pending_review and then the ruling. Refused with sfvb.review_not_needed when it doesn\'t need review, is already waiting for one, or was rejected and not changed since. An email in a flow triggered by an order or an auto order needs order_id, a test order. Needs a signed-in user, not an API key alone.
|
|
3719
|
+
* @summary Request a content review of a flow or campaign email
|
|
3720
|
+
* @param {number} storefrontOid
|
|
3721
|
+
* @param {string} emailUuid
|
|
3722
|
+
* @param {SfvbEmailReviewRequest} emailReviewRequest The test order, for an email in an order-triggered flow
|
|
3723
|
+
* @param {*} [options] Override http request option.
|
|
3724
|
+
* @throws {RequiredError}
|
|
3725
|
+
* @memberof SfvbApiInterface
|
|
3726
|
+
*/
|
|
3727
|
+
reviewSfvbEmailRaw(requestParameters: ReviewSfvbEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbEmail>>;
|
|
3728
|
+
/**
|
|
3729
|
+
* Starts a review the way the admin\'s Request Review does. One test copy of the email goes to the signed-in user, and to no one else, and the review runs in the background, so read the email again for pending_review and then the ruling. Refused with sfvb.review_not_needed when it doesn\'t need review, is already waiting for one, or was rejected and not changed since. An email in a flow triggered by an order or an auto order needs order_id, a test order. Needs a signed-in user, not an API key alone.
|
|
3730
|
+
* Request a content review of a flow or campaign email
|
|
3731
|
+
*/
|
|
3732
|
+
reviewSfvbEmail(requestParameters: ReviewSfvbEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbEmail>;
|
|
3691
3733
|
/**
|
|
3692
3734
|
* Every handle of the request that no write has used up stops working at once, and its value is deleted. A handle a write is using right now is left to that write. Use it when the plan changed, or a handle may have leaked.
|
|
3693
3735
|
* @summary Revoke a fulfilled request\'s unused handles
|
|
@@ -5067,6 +5109,16 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
|
|
|
5067
5109
|
* List this sign-in\'s secret requests
|
|
5068
5110
|
*/
|
|
5069
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>;
|
|
5070
5122
|
/**
|
|
5071
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.
|
|
5072
5124
|
* Get one storefront render log
|
|
@@ -5853,6 +5905,16 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
|
|
|
5853
5905
|
* Revert a storefront file to an earlier version
|
|
5854
5906
|
*/
|
|
5855
5907
|
revertSfvbFile(requestParameters: RevertSfvbFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbFileWriteResponse>;
|
|
5908
|
+
/**
|
|
5909
|
+
* Starts a review the way the admin\'s Request Review does. One test copy of the email goes to the signed-in user, and to no one else, and the review runs in the background, so read the email again for pending_review and then the ruling. Refused with sfvb.review_not_needed when it doesn\'t need review, is already waiting for one, or was rejected and not changed since. An email in a flow triggered by an order or an auto order needs order_id, a test order. Needs a signed-in user, not an API key alone.
|
|
5910
|
+
* Request a content review of a flow or campaign email
|
|
5911
|
+
*/
|
|
5912
|
+
reviewSfvbEmailRaw(requestParameters: ReviewSfvbEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbEmail>>;
|
|
5913
|
+
/**
|
|
5914
|
+
* Starts a review the way the admin\'s Request Review does. One test copy of the email goes to the signed-in user, and to no one else, and the review runs in the background, so read the email again for pending_review and then the ruling. Refused with sfvb.review_not_needed when it doesn\'t need review, is already waiting for one, or was rejected and not changed since. An email in a flow triggered by an order or an auto order needs order_id, a test order. Needs a signed-in user, not an API key alone.
|
|
5915
|
+
* Request a content review of a flow or campaign email
|
|
5916
|
+
*/
|
|
5917
|
+
reviewSfvbEmail(requestParameters: ReviewSfvbEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbEmail>;
|
|
5856
5918
|
/**
|
|
5857
5919
|
* Every handle of the request that no write has used up stops working at once, and its value is deleted. A handle a write is using right now is left to that write. Use it when the plan changed, or a handle may have leaked.
|
|
5858
5920
|
* Revoke a fulfilled request\'s unused handles
|
package/dist/apis/SfvbApi.js
CHANGED
|
@@ -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
|
|
@@ -11469,6 +11534,73 @@ var SfvbApi = /** @class */ (function (_super) {
|
|
|
11469
11534
|
});
|
|
11470
11535
|
});
|
|
11471
11536
|
};
|
|
11537
|
+
/**
|
|
11538
|
+
* Starts a review the way the admin\'s Request Review does. One test copy of the email goes to the signed-in user, and to no one else, and the review runs in the background, so read the email again for pending_review and then the ruling. Refused with sfvb.review_not_needed when it doesn\'t need review, is already waiting for one, or was rejected and not changed since. An email in a flow triggered by an order or an auto order needs order_id, a test order. Needs a signed-in user, not an API key alone.
|
|
11539
|
+
* Request a content review of a flow or campaign email
|
|
11540
|
+
*/
|
|
11541
|
+
SfvbApi.prototype.reviewSfvbEmailRaw = function (requestParameters, initOverrides) {
|
|
11542
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11543
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
11544
|
+
return __generator(this, function (_c) {
|
|
11545
|
+
switch (_c.label) {
|
|
11546
|
+
case 0:
|
|
11547
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
11548
|
+
throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling reviewSfvbEmail.');
|
|
11549
|
+
}
|
|
11550
|
+
if (requestParameters.emailUuid === null || requestParameters.emailUuid === undefined) {
|
|
11551
|
+
throw new runtime.RequiredError('emailUuid', 'Required parameter requestParameters.emailUuid was null or undefined when calling reviewSfvbEmail.');
|
|
11552
|
+
}
|
|
11553
|
+
if (requestParameters.emailReviewRequest === null || requestParameters.emailReviewRequest === undefined) {
|
|
11554
|
+
throw new runtime.RequiredError('emailReviewRequest', 'Required parameter requestParameters.emailReviewRequest was null or undefined when calling reviewSfvbEmail.');
|
|
11555
|
+
}
|
|
11556
|
+
queryParameters = {};
|
|
11557
|
+
headerParameters = {};
|
|
11558
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
11559
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
11560
|
+
// oauth required
|
|
11561
|
+
_a = headerParameters;
|
|
11562
|
+
_b = "Authorization";
|
|
11563
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", [])];
|
|
11564
|
+
case 1:
|
|
11565
|
+
// oauth required
|
|
11566
|
+
_a[_b] = _c.sent();
|
|
11567
|
+
_c.label = 2;
|
|
11568
|
+
case 2:
|
|
11569
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
11570
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
11571
|
+
}
|
|
11572
|
+
return [4 /*yield*/, this.request({
|
|
11573
|
+
path: "/sfvb/storefronts/{storefront_oid}/emails/{email_uuid}/review".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))).replace("{".concat("email_uuid", "}"), encodeURIComponent(String(requestParameters.emailUuid))),
|
|
11574
|
+
method: 'POST',
|
|
11575
|
+
headers: headerParameters,
|
|
11576
|
+
query: queryParameters,
|
|
11577
|
+
body: (0, models_1.SfvbEmailReviewRequestToJSON)(requestParameters.emailReviewRequest),
|
|
11578
|
+
}, initOverrides)];
|
|
11579
|
+
case 3:
|
|
11580
|
+
response = _c.sent();
|
|
11581
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SfvbEmailFromJSON)(jsonValue); })];
|
|
11582
|
+
}
|
|
11583
|
+
});
|
|
11584
|
+
});
|
|
11585
|
+
};
|
|
11586
|
+
/**
|
|
11587
|
+
* Starts a review the way the admin\'s Request Review does. One test copy of the email goes to the signed-in user, and to no one else, and the review runs in the background, so read the email again for pending_review and then the ruling. Refused with sfvb.review_not_needed when it doesn\'t need review, is already waiting for one, or was rejected and not changed since. An email in a flow triggered by an order or an auto order needs order_id, a test order. Needs a signed-in user, not an API key alone.
|
|
11588
|
+
* Request a content review of a flow or campaign email
|
|
11589
|
+
*/
|
|
11590
|
+
SfvbApi.prototype.reviewSfvbEmail = function (requestParameters, initOverrides) {
|
|
11591
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11592
|
+
var response;
|
|
11593
|
+
return __generator(this, function (_a) {
|
|
11594
|
+
switch (_a.label) {
|
|
11595
|
+
case 0: return [4 /*yield*/, this.reviewSfvbEmailRaw(requestParameters, initOverrides)];
|
|
11596
|
+
case 1:
|
|
11597
|
+
response = _a.sent();
|
|
11598
|
+
return [4 /*yield*/, response.value()];
|
|
11599
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
11600
|
+
}
|
|
11601
|
+
});
|
|
11602
|
+
});
|
|
11603
|
+
};
|
|
11472
11604
|
/**
|
|
11473
11605
|
* Every handle of the request that no write has used up stops working at once, and its value is deleted. A handle a write is using right now is left to that write. Use it when the plan changed, or a handle may have leaked.
|
|
11474
11606
|
* Revoke a fulfilled request\'s unused handles
|
|
@@ -39,6 +39,12 @@ export interface SfvbEmail {
|
|
|
39
39
|
* @memberof SfvbEmail
|
|
40
40
|
*/
|
|
41
41
|
live?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* What a write did beyond the fields asked for, such as a step label it could not refresh. Only on a write.
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof SfvbEmail
|
|
46
|
+
*/
|
|
47
|
+
notes?: Array<string>;
|
|
42
48
|
/**
|
|
43
49
|
* True while a change waits for review. An edit puts it back to needing review.
|
|
44
50
|
* @type {boolean}
|
package/dist/models/SfvbEmail.js
CHANGED
|
@@ -36,6 +36,7 @@ function SfvbEmailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'email_uuid': !(0, runtime_1.exists)(json, 'email_uuid') ? undefined : json['email_uuid'],
|
|
37
37
|
'hash_sha256': !(0, runtime_1.exists)(json, 'hash_sha256') ? undefined : json['hash_sha256'],
|
|
38
38
|
'live': !(0, runtime_1.exists)(json, 'live') ? undefined : json['live'],
|
|
39
|
+
'notes': !(0, runtime_1.exists)(json, 'notes') ? undefined : json['notes'],
|
|
39
40
|
'pending_review': !(0, runtime_1.exists)(json, 'pending_review') ? undefined : json['pending_review'],
|
|
40
41
|
'preview_text': !(0, runtime_1.exists)(json, 'preview_text') ? undefined : json['preview_text'],
|
|
41
42
|
'rejected': !(0, runtime_1.exists)(json, 'rejected') ? undefined : json['rejected'],
|
|
@@ -59,6 +60,7 @@ function SfvbEmailToJSON(value) {
|
|
|
59
60
|
'email_uuid': value.email_uuid,
|
|
60
61
|
'hash_sha256': value.hash_sha256,
|
|
61
62
|
'live': value.live,
|
|
63
|
+
'notes': value.notes,
|
|
62
64
|
'pending_review': value.pending_review,
|
|
63
65
|
'preview_text': value.preview_text,
|
|
64
66
|
'rejected': value.rejected,
|
|
@@ -0,0 +1,31 @@
|
|
|
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 SfvbEmailReviewRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SfvbEmailReviewRequest {
|
|
18
|
+
/**
|
|
19
|
+
* A test order id. Required for an email in a flow triggered by an order or an auto order, and refused otherwise.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SfvbEmailReviewRequest
|
|
22
|
+
*/
|
|
23
|
+
order_id?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SfvbEmailReviewRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSfvbEmailReviewRequest(value: object): boolean;
|
|
29
|
+
export declare function SfvbEmailReviewRequestFromJSON(json: any): SfvbEmailReviewRequest;
|
|
30
|
+
export declare function SfvbEmailReviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbEmailReviewRequest;
|
|
31
|
+
export declare function SfvbEmailReviewRequestToJSON(value?: SfvbEmailReviewRequest | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.SfvbEmailReviewRequestToJSON = exports.SfvbEmailReviewRequestFromJSONTyped = exports.SfvbEmailReviewRequestFromJSON = exports.instanceOfSfvbEmailReviewRequest = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SfvbEmailReviewRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSfvbEmailReviewRequest(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSfvbEmailReviewRequest = instanceOfSfvbEmailReviewRequest;
|
|
26
|
+
function SfvbEmailReviewRequestFromJSON(json) {
|
|
27
|
+
return SfvbEmailReviewRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SfvbEmailReviewRequestFromJSON = SfvbEmailReviewRequestFromJSON;
|
|
30
|
+
function SfvbEmailReviewRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'order_id': !(0, runtime_1.exists)(json, 'order_id') ? undefined : json['order_id'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.SfvbEmailReviewRequestFromJSONTyped = SfvbEmailReviewRequestFromJSONTyped;
|
|
39
|
+
function SfvbEmailReviewRequestToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'order_id': value.order_id,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.SfvbEmailReviewRequestToJSON = SfvbEmailReviewRequestToJSON;
|
|
@@ -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;
|