ultracart_rest_api_v2_typescript 4.1.217 → 4.1.218
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 +3 -2
- package/dist/apis/SfvbApi.d.ts +94 -1
- package/dist/apis/SfvbApi.js +202 -0
- package/dist/models/SfvbApprovalCreateRequest.d.ts +8 -0
- package/dist/models/SfvbApprovalCreateRequest.js +5 -1
- package/dist/models/SfvbApprovalParams.d.ts +6 -0
- package/dist/models/SfvbApprovalParams.js +2 -0
- package/dist/models/SfvbCommsSegmentDetail.d.ts +92 -0
- package/dist/models/SfvbCommsSegmentDetail.js +71 -0
- package/dist/models/SfvbCommsSegmentResponse.d.ts +38 -0
- package/dist/models/SfvbCommsSegmentResponse.js +53 -0
- package/dist/models/SfvbCommsSegmentUsedBy.d.ts +57 -0
- package/dist/models/SfvbCommsSegmentUsedBy.js +63 -0
- package/dist/models/SfvbCommsSegmentWriteRequest.d.ts +43 -0
- package/dist/models/SfvbCommsSegmentWriteRequest.js +54 -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 +235 -0
- package/src/models/SfvbApprovalCreateRequest.ts +16 -1
- package/src/models/SfvbApprovalParams.ts +8 -0
- package/src/models/SfvbCommsSegmentDetail.ts +154 -0
- package/src/models/SfvbCommsSegmentResponse.ts +82 -0
- package/src/models/SfvbCommsSegmentUsedBy.ts +101 -0
- package/src/models/SfvbCommsSegmentWriteRequest.ts +83 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -1018,6 +1018,10 @@ src/models/SfvbCommsList.ts
|
|
|
1018
1018
|
src/models/SfvbCommsListsResponse.ts
|
|
1019
1019
|
src/models/SfvbCommsPostcard.ts
|
|
1020
1020
|
src/models/SfvbCommsSegment.ts
|
|
1021
|
+
src/models/SfvbCommsSegmentDetail.ts
|
|
1022
|
+
src/models/SfvbCommsSegmentResponse.ts
|
|
1023
|
+
src/models/SfvbCommsSegmentUsedBy.ts
|
|
1024
|
+
src/models/SfvbCommsSegmentWriteRequest.ts
|
|
1021
1025
|
src/models/SfvbCommsSegmentsResponse.ts
|
|
1022
1026
|
src/models/SfvbCommsSendingDomain.ts
|
|
1023
1027
|
src/models/SfvbCommsSendingDomainsResponse.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.218
|
|
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.218 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -84,6 +84,7 @@ Not every change is committed to every SDK.
|
|
|
84
84
|
|
|
85
85
|
| Version | Date | Comments |
|
|
86
86
|
| --: | :-: | --- |
|
|
87
|
+
| 4.1.218 | 10/30/2026 | svfb internal testing |
|
|
87
88
|
| 4.1.217 | 10/29/2026 | sfvb internal testing |
|
|
88
89
|
| 4.1.216 | 10/29/2026 | sfvb internal testing |
|
|
89
90
|
| 4.1.215 | 10/28/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, 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, SfvbSequenceStepCreateRequest, SfvbSequenceStepCreateResponse, SfvbSequenceStepDeleteResponse, 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';
|
|
13
|
+
import { SfvbApproval, SfvbApprovalCreateRequest, SfvbApprovalsResponse, SfvbArchiveRequest, SfvbBlogPostDetail, SfvbBlogPostImageRequest, SfvbBlogPostRequest, SfvbBlogPostsResponse, SfvbCampaign, SfvbCampaignWriteRequest, SfvbCampaignsResponse, SfvbCommsListsResponse, SfvbCommsSegmentResponse, SfvbCommsSegmentWriteRequest, 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, SfvbSequenceStepCreateRequest, SfvbSequenceStepCreateResponse, SfvbSequenceStepDeleteResponse, 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;
|
|
@@ -247,6 +247,10 @@ export interface GetSfvbCampaignRequest {
|
|
|
247
247
|
export interface GetSfvbCjsonUsedElementsRequest {
|
|
248
248
|
compileRequest: SfvbCompileRequest;
|
|
249
249
|
}
|
|
250
|
+
export interface GetSfvbCommsSegmentRequest {
|
|
251
|
+
storefrontOid: number;
|
|
252
|
+
segmentUuid: string;
|
|
253
|
+
}
|
|
250
254
|
export interface GetSfvbCommsSendingDomainRequest {
|
|
251
255
|
domain: string;
|
|
252
256
|
}
|
|
@@ -488,6 +492,10 @@ export interface InsertSfvbBlogPostRequest {
|
|
|
488
492
|
storefrontOid: number;
|
|
489
493
|
blogPostRequest: SfvbBlogPostRequest;
|
|
490
494
|
}
|
|
495
|
+
export interface InsertSfvbCommsSegmentRequest {
|
|
496
|
+
storefrontOid: number;
|
|
497
|
+
segmentWriteRequest: SfvbCommsSegmentWriteRequest;
|
|
498
|
+
}
|
|
491
499
|
export interface InsertSfvbCommsSendingDomainRequest {
|
|
492
500
|
sendingDomain: SfvbCommsSendingDomain;
|
|
493
501
|
}
|
|
@@ -897,6 +905,13 @@ export interface UpdateSfvbCampaignRequest {
|
|
|
897
905
|
ifMatch: string;
|
|
898
906
|
campaignWriteRequest: SfvbCampaignWriteRequest;
|
|
899
907
|
}
|
|
908
|
+
export interface UpdateSfvbCommsSegmentRequest {
|
|
909
|
+
storefrontOid: number;
|
|
910
|
+
segmentUuid: string;
|
|
911
|
+
ifMatch: string;
|
|
912
|
+
segmentWriteRequest: SfvbCommsSegmentWriteRequest;
|
|
913
|
+
approvalId?: string;
|
|
914
|
+
}
|
|
900
915
|
export interface UpdateSfvbCommsSendingDomainRequest {
|
|
901
916
|
domain: string;
|
|
902
917
|
sendingDomain: SfvbCommsSendingDomain;
|
|
@@ -1798,6 +1813,21 @@ export interface SfvbApiInterface {
|
|
|
1798
1813
|
* Element types used by a container
|
|
1799
1814
|
*/
|
|
1800
1815
|
getSfvbCjsonUsedElements(requestParameters: GetSfvbCjsonUsedElementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbElementsResponse>;
|
|
1816
|
+
/**
|
|
1817
|
+
* The segment\'s name, folder, rule, member count at its last rebuild, whether a rebuild is still due, and the campaigns and flows that use it, each with whether it is live. hash_sha256 is the If-Match for an update. Never its members, its Facebook audience, its ranking or its third party sync settings.
|
|
1818
|
+
* @summary Read one segment, with its rule
|
|
1819
|
+
* @param {number} storefrontOid
|
|
1820
|
+
* @param {string} segmentUuid
|
|
1821
|
+
* @param {*} [options] Override http request option.
|
|
1822
|
+
* @throws {RequiredError}
|
|
1823
|
+
* @memberof SfvbApiInterface
|
|
1824
|
+
*/
|
|
1825
|
+
getSfvbCommsSegmentRaw(requestParameters: GetSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbCommsSegmentResponse>>;
|
|
1826
|
+
/**
|
|
1827
|
+
* The segment\'s name, folder, rule, member count at its last rebuild, whether a rebuild is still due, and the campaigns and flows that use it, each with whether it is live. hash_sha256 is the If-Match for an update. Never its members, its Facebook audience, its ranking or its third party sync settings.
|
|
1828
|
+
* Read one segment, with its rule
|
|
1829
|
+
*/
|
|
1830
|
+
getSfvbCommsSegment(requestParameters: GetSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbCommsSegmentResponse>;
|
|
1801
1831
|
/**
|
|
1802
1832
|
* One sending domain as stored. To check an amazon domain\'s DNS again, use the status call.
|
|
1803
1833
|
* @summary Read a sending domain
|
|
@@ -2710,6 +2740,21 @@ export interface SfvbApiInterface {
|
|
|
2710
2740
|
* Create a blog post
|
|
2711
2741
|
*/
|
|
2712
2742
|
insertSfvbBlogPost(requestParameters: InsertSfvbBlogPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbBlogPostDetail>;
|
|
2743
|
+
/**
|
|
2744
|
+
* A new segment with the name, rule and folder given. The rule needs at least one group, each with at least one function of a rule type the segment rebuild knows, and any list or segment it names must be on this storefront. The segment starts empty and rebuilds in the background; member_count is out of date until rebuild_required is false.
|
|
2745
|
+
* @summary Create a segment
|
|
2746
|
+
* @param {number} storefrontOid
|
|
2747
|
+
* @param {SfvbCommsSegmentWriteRequest} segmentWriteRequest The new segment\'s name, rule and folder
|
|
2748
|
+
* @param {*} [options] Override http request option.
|
|
2749
|
+
* @throws {RequiredError}
|
|
2750
|
+
* @memberof SfvbApiInterface
|
|
2751
|
+
*/
|
|
2752
|
+
insertSfvbCommsSegmentRaw(requestParameters: InsertSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbCommsSegmentResponse>>;
|
|
2753
|
+
/**
|
|
2754
|
+
* A new segment with the name, rule and folder given. The rule needs at least one group, each with at least one function of a rule type the segment rebuild knows, and any list or segment it names must be on this storefront. The segment starts empty and rebuilds in the background; member_count is out of date until rebuild_required is false.
|
|
2755
|
+
* Create a segment
|
|
2756
|
+
*/
|
|
2757
|
+
insertSfvbCommsSegment(requestParameters: InsertSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbCommsSegmentResponse>;
|
|
2713
2758
|
/**
|
|
2714
2759
|
* Adds a domain to send email from. An amazon domain starts verification with Amazon SES and returns the DNS records to publish; the person signed in also gets them by email. A mailgun domain needs mailgun_api_key as a secret handle made for the domain (POST secrets, sink mailgun.domain.api_key), never the key itself. UltraCart sets up its webhooks on the Mailgun domain with the key; if Mailgun refuses, nothing is saved and the handle is given back unused.
|
|
2715
2760
|
* @summary Add a sending domain
|
|
@@ -3991,6 +4036,24 @@ export interface SfvbApiInterface {
|
|
|
3991
4036
|
* Change a campaign
|
|
3992
4037
|
*/
|
|
3993
4038
|
updateSfvbCampaign(requestParameters: UpdateSfvbCampaignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbCampaign>;
|
|
4039
|
+
/**
|
|
4040
|
+
* A field left out stays as it is. Send the segment\'s hash_sha256 as If-Match; the change applies only while the name, rule and folder are still what was read. A changed rule is checked as on a create and starts a rebuild. Changing the rule of a segment a live campaign or flow uses needs sfvb_publish and an approved segment.update approval (Approval-Id); a name or folder change, or a segment nothing live uses, needs neither.
|
|
4041
|
+
* @summary Change a segment\'s name, rule or folder
|
|
4042
|
+
* @param {number} storefrontOid
|
|
4043
|
+
* @param {string} segmentUuid
|
|
4044
|
+
* @param {string} ifMatch The segment\'s hash_sha256 from the last read. Required; 428 when absent, 412 when stale.
|
|
4045
|
+
* @param {SfvbCommsSegmentWriteRequest} segmentWriteRequest The fields to change
|
|
4046
|
+
* @param {string} [approvalId] When the rule changes and a live campaign or flow uses the segment, the approval_id of an approved segment.update request for this change. See POST /sfvb/approvals.
|
|
4047
|
+
* @param {*} [options] Override http request option.
|
|
4048
|
+
* @throws {RequiredError}
|
|
4049
|
+
* @memberof SfvbApiInterface
|
|
4050
|
+
*/
|
|
4051
|
+
updateSfvbCommsSegmentRaw(requestParameters: UpdateSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbCommsSegmentResponse>>;
|
|
4052
|
+
/**
|
|
4053
|
+
* A field left out stays as it is. Send the segment\'s hash_sha256 as If-Match; the change applies only while the name, rule and folder are still what was read. A changed rule is checked as on a create and starts a rebuild. Changing the rule of a segment a live campaign or flow uses needs sfvb_publish and an approved segment.update approval (Approval-Id); a name or folder change, or a segment nothing live uses, needs neither.
|
|
4054
|
+
* Change a segment\'s name, rule or folder
|
|
4055
|
+
*/
|
|
4056
|
+
updateSfvbCommsSegment(requestParameters: UpdateSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbCommsSegmentResponse>;
|
|
3994
4057
|
/**
|
|
3995
4058
|
* Only a mailgun domain\'s mailgun_api_key can change. Send it as a secret handle made for the domain to replace it, or as the mask it was read with to keep it. A new key sets up UltraCart\'s webhooks again with it; if Mailgun refuses, nothing is saved and the handle is given back unused.
|
|
3996
4059
|
* @summary Update a sending domain
|
|
@@ -4752,6 +4815,16 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
|
|
|
4752
4815
|
* Element types used by a container
|
|
4753
4816
|
*/
|
|
4754
4817
|
getSfvbCjsonUsedElements(requestParameters: GetSfvbCjsonUsedElementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbElementsResponse>;
|
|
4818
|
+
/**
|
|
4819
|
+
* The segment\'s name, folder, rule, member count at its last rebuild, whether a rebuild is still due, and the campaigns and flows that use it, each with whether it is live. hash_sha256 is the If-Match for an update. Never its members, its Facebook audience, its ranking or its third party sync settings.
|
|
4820
|
+
* Read one segment, with its rule
|
|
4821
|
+
*/
|
|
4822
|
+
getSfvbCommsSegmentRaw(requestParameters: GetSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbCommsSegmentResponse>>;
|
|
4823
|
+
/**
|
|
4824
|
+
* The segment\'s name, folder, rule, member count at its last rebuild, whether a rebuild is still due, and the campaigns and flows that use it, each with whether it is live. hash_sha256 is the If-Match for an update. Never its members, its Facebook audience, its ranking or its third party sync settings.
|
|
4825
|
+
* Read one segment, with its rule
|
|
4826
|
+
*/
|
|
4827
|
+
getSfvbCommsSegment(requestParameters: GetSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbCommsSegmentResponse>;
|
|
4755
4828
|
/**
|
|
4756
4829
|
* One sending domain as stored. To check an amazon domain\'s DNS again, use the status call.
|
|
4757
4830
|
* Read a sending domain
|
|
@@ -5350,6 +5423,16 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
|
|
|
5350
5423
|
* Create a blog post
|
|
5351
5424
|
*/
|
|
5352
5425
|
insertSfvbBlogPost(requestParameters: InsertSfvbBlogPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbBlogPostDetail>;
|
|
5426
|
+
/**
|
|
5427
|
+
* A new segment with the name, rule and folder given. The rule needs at least one group, each with at least one function of a rule type the segment rebuild knows, and any list or segment it names must be on this storefront. The segment starts empty and rebuilds in the background; member_count is out of date until rebuild_required is false.
|
|
5428
|
+
* Create a segment
|
|
5429
|
+
*/
|
|
5430
|
+
insertSfvbCommsSegmentRaw(requestParameters: InsertSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbCommsSegmentResponse>>;
|
|
5431
|
+
/**
|
|
5432
|
+
* A new segment with the name, rule and folder given. The rule needs at least one group, each with at least one function of a rule type the segment rebuild knows, and any list or segment it names must be on this storefront. The segment starts empty and rebuilds in the background; member_count is out of date until rebuild_required is false.
|
|
5433
|
+
* Create a segment
|
|
5434
|
+
*/
|
|
5435
|
+
insertSfvbCommsSegment(requestParameters: InsertSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbCommsSegmentResponse>;
|
|
5353
5436
|
/**
|
|
5354
5437
|
* Adds a domain to send email from. An amazon domain starts verification with Amazon SES and returns the DNS records to publish; the person signed in also gets them by email. A mailgun domain needs mailgun_api_key as a secret handle made for the domain (POST secrets, sink mailgun.domain.api_key), never the key itself. UltraCart sets up its webhooks on the Mailgun domain with the key; if Mailgun refuses, nothing is saved and the handle is given back unused.
|
|
5355
5438
|
* Add a sending domain
|
|
@@ -6138,6 +6221,16 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
|
|
|
6138
6221
|
* Change a campaign
|
|
6139
6222
|
*/
|
|
6140
6223
|
updateSfvbCampaign(requestParameters: UpdateSfvbCampaignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbCampaign>;
|
|
6224
|
+
/**
|
|
6225
|
+
* A field left out stays as it is. Send the segment\'s hash_sha256 as If-Match; the change applies only while the name, rule and folder are still what was read. A changed rule is checked as on a create and starts a rebuild. Changing the rule of a segment a live campaign or flow uses needs sfvb_publish and an approved segment.update approval (Approval-Id); a name or folder change, or a segment nothing live uses, needs neither.
|
|
6226
|
+
* Change a segment\'s name, rule or folder
|
|
6227
|
+
*/
|
|
6228
|
+
updateSfvbCommsSegmentRaw(requestParameters: UpdateSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbCommsSegmentResponse>>;
|
|
6229
|
+
/**
|
|
6230
|
+
* A field left out stays as it is. Send the segment\'s hash_sha256 as If-Match; the change applies only while the name, rule and folder are still what was read. A changed rule is checked as on a create and starts a rebuild. Changing the rule of a segment a live campaign or flow uses needs sfvb_publish and an approved segment.update approval (Approval-Id); a name or folder change, or a segment nothing live uses, needs neither.
|
|
6231
|
+
* Change a segment\'s name, rule or folder
|
|
6232
|
+
*/
|
|
6233
|
+
updateSfvbCommsSegment(requestParameters: UpdateSfvbCommsSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbCommsSegmentResponse>;
|
|
6141
6234
|
/**
|
|
6142
6235
|
* Only a mailgun domain\'s mailgun_api_key can change. Send it as a secret handle made for the domain to replace it, or as the mask it was read with to keep it. A new key sets up UltraCart\'s webhooks again with it; if Mailgun refuses, nothing is saved and the handle is given back unused.
|
|
6143
6236
|
* Update a sending domain
|
package/dist/apis/SfvbApi.js
CHANGED
|
@@ -3494,6 +3494,68 @@ var SfvbApi = /** @class */ (function (_super) {
|
|
|
3494
3494
|
});
|
|
3495
3495
|
});
|
|
3496
3496
|
};
|
|
3497
|
+
/**
|
|
3498
|
+
* The segment\'s name, folder, rule, member count at its last rebuild, whether a rebuild is still due, and the campaigns and flows that use it, each with whether it is live. hash_sha256 is the If-Match for an update. Never its members, its Facebook audience, its ranking or its third party sync settings.
|
|
3499
|
+
* Read one segment, with its rule
|
|
3500
|
+
*/
|
|
3501
|
+
SfvbApi.prototype.getSfvbCommsSegmentRaw = function (requestParameters, initOverrides) {
|
|
3502
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3503
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
3504
|
+
return __generator(this, function (_c) {
|
|
3505
|
+
switch (_c.label) {
|
|
3506
|
+
case 0:
|
|
3507
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
3508
|
+
throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling getSfvbCommsSegment.');
|
|
3509
|
+
}
|
|
3510
|
+
if (requestParameters.segmentUuid === null || requestParameters.segmentUuid === undefined) {
|
|
3511
|
+
throw new runtime.RequiredError('segmentUuid', 'Required parameter requestParameters.segmentUuid was null or undefined when calling getSfvbCommsSegment.');
|
|
3512
|
+
}
|
|
3513
|
+
queryParameters = {};
|
|
3514
|
+
headerParameters = {};
|
|
3515
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3516
|
+
// oauth required
|
|
3517
|
+
_a = headerParameters;
|
|
3518
|
+
_b = "Authorization";
|
|
3519
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", [])];
|
|
3520
|
+
case 1:
|
|
3521
|
+
// oauth required
|
|
3522
|
+
_a[_b] = _c.sent();
|
|
3523
|
+
_c.label = 2;
|
|
3524
|
+
case 2:
|
|
3525
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3526
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
3527
|
+
}
|
|
3528
|
+
return [4 /*yield*/, this.request({
|
|
3529
|
+
path: "/sfvb/storefronts/{storefront_oid}/segments/{segment_uuid}".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))).replace("{".concat("segment_uuid", "}"), encodeURIComponent(String(requestParameters.segmentUuid))),
|
|
3530
|
+
method: 'GET',
|
|
3531
|
+
headers: headerParameters,
|
|
3532
|
+
query: queryParameters,
|
|
3533
|
+
}, initOverrides)];
|
|
3534
|
+
case 3:
|
|
3535
|
+
response = _c.sent();
|
|
3536
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SfvbCommsSegmentResponseFromJSON)(jsonValue); })];
|
|
3537
|
+
}
|
|
3538
|
+
});
|
|
3539
|
+
});
|
|
3540
|
+
};
|
|
3541
|
+
/**
|
|
3542
|
+
* The segment\'s name, folder, rule, member count at its last rebuild, whether a rebuild is still due, and the campaigns and flows that use it, each with whether it is live. hash_sha256 is the If-Match for an update. Never its members, its Facebook audience, its ranking or its third party sync settings.
|
|
3543
|
+
* Read one segment, with its rule
|
|
3544
|
+
*/
|
|
3545
|
+
SfvbApi.prototype.getSfvbCommsSegment = function (requestParameters, initOverrides) {
|
|
3546
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3547
|
+
var response;
|
|
3548
|
+
return __generator(this, function (_a) {
|
|
3549
|
+
switch (_a.label) {
|
|
3550
|
+
case 0: return [4 /*yield*/, this.getSfvbCommsSegmentRaw(requestParameters, initOverrides)];
|
|
3551
|
+
case 1:
|
|
3552
|
+
response = _a.sent();
|
|
3553
|
+
return [4 /*yield*/, response.value()];
|
|
3554
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3555
|
+
}
|
|
3556
|
+
});
|
|
3557
|
+
});
|
|
3558
|
+
};
|
|
3497
3559
|
/**
|
|
3498
3560
|
* One sending domain as stored. To check an amazon domain\'s DNS again, use the status call.
|
|
3499
3561
|
* Read a sending domain
|
|
@@ -7270,6 +7332,70 @@ var SfvbApi = /** @class */ (function (_super) {
|
|
|
7270
7332
|
});
|
|
7271
7333
|
});
|
|
7272
7334
|
};
|
|
7335
|
+
/**
|
|
7336
|
+
* A new segment with the name, rule and folder given. The rule needs at least one group, each with at least one function of a rule type the segment rebuild knows, and any list or segment it names must be on this storefront. The segment starts empty and rebuilds in the background; member_count is out of date until rebuild_required is false.
|
|
7337
|
+
* Create a segment
|
|
7338
|
+
*/
|
|
7339
|
+
SfvbApi.prototype.insertSfvbCommsSegmentRaw = function (requestParameters, initOverrides) {
|
|
7340
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7341
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
7342
|
+
return __generator(this, function (_c) {
|
|
7343
|
+
switch (_c.label) {
|
|
7344
|
+
case 0:
|
|
7345
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
7346
|
+
throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling insertSfvbCommsSegment.');
|
|
7347
|
+
}
|
|
7348
|
+
if (requestParameters.segmentWriteRequest === null || requestParameters.segmentWriteRequest === undefined) {
|
|
7349
|
+
throw new runtime.RequiredError('segmentWriteRequest', 'Required parameter requestParameters.segmentWriteRequest was null or undefined when calling insertSfvbCommsSegment.');
|
|
7350
|
+
}
|
|
7351
|
+
queryParameters = {};
|
|
7352
|
+
headerParameters = {};
|
|
7353
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
7354
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
7355
|
+
// oauth required
|
|
7356
|
+
_a = headerParameters;
|
|
7357
|
+
_b = "Authorization";
|
|
7358
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", [])];
|
|
7359
|
+
case 1:
|
|
7360
|
+
// oauth required
|
|
7361
|
+
_a[_b] = _c.sent();
|
|
7362
|
+
_c.label = 2;
|
|
7363
|
+
case 2:
|
|
7364
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
7365
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
7366
|
+
}
|
|
7367
|
+
return [4 /*yield*/, this.request({
|
|
7368
|
+
path: "/sfvb/storefronts/{storefront_oid}/segments".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))),
|
|
7369
|
+
method: 'POST',
|
|
7370
|
+
headers: headerParameters,
|
|
7371
|
+
query: queryParameters,
|
|
7372
|
+
body: (0, models_1.SfvbCommsSegmentWriteRequestToJSON)(requestParameters.segmentWriteRequest),
|
|
7373
|
+
}, initOverrides)];
|
|
7374
|
+
case 3:
|
|
7375
|
+
response = _c.sent();
|
|
7376
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SfvbCommsSegmentResponseFromJSON)(jsonValue); })];
|
|
7377
|
+
}
|
|
7378
|
+
});
|
|
7379
|
+
});
|
|
7380
|
+
};
|
|
7381
|
+
/**
|
|
7382
|
+
* A new segment with the name, rule and folder given. The rule needs at least one group, each with at least one function of a rule type the segment rebuild knows, and any list or segment it names must be on this storefront. The segment starts empty and rebuilds in the background; member_count is out of date until rebuild_required is false.
|
|
7383
|
+
* Create a segment
|
|
7384
|
+
*/
|
|
7385
|
+
SfvbApi.prototype.insertSfvbCommsSegment = function (requestParameters, initOverrides) {
|
|
7386
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7387
|
+
var response;
|
|
7388
|
+
return __generator(this, function (_a) {
|
|
7389
|
+
switch (_a.label) {
|
|
7390
|
+
case 0: return [4 /*yield*/, this.insertSfvbCommsSegmentRaw(requestParameters, initOverrides)];
|
|
7391
|
+
case 1:
|
|
7392
|
+
response = _a.sent();
|
|
7393
|
+
return [4 /*yield*/, response.value()];
|
|
7394
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
7395
|
+
}
|
|
7396
|
+
});
|
|
7397
|
+
});
|
|
7398
|
+
};
|
|
7273
7399
|
/**
|
|
7274
7400
|
* Adds a domain to send email from. An amazon domain starts verification with Amazon SES and returns the DNS records to publish; the person signed in also gets them by email. A mailgun domain needs mailgun_api_key as a secret handle made for the domain (POST secrets, sink mailgun.domain.api_key), never the key itself. UltraCart sets up its webhooks on the Mailgun domain with the key; if Mailgun refuses, nothing is saved and the handle is given back unused.
|
|
7275
7401
|
* Add a sending domain
|
|
@@ -12605,6 +12731,82 @@ var SfvbApi = /** @class */ (function (_super) {
|
|
|
12605
12731
|
});
|
|
12606
12732
|
});
|
|
12607
12733
|
};
|
|
12734
|
+
/**
|
|
12735
|
+
* A field left out stays as it is. Send the segment\'s hash_sha256 as If-Match; the change applies only while the name, rule and folder are still what was read. A changed rule is checked as on a create and starts a rebuild. Changing the rule of a segment a live campaign or flow uses needs sfvb_publish and an approved segment.update approval (Approval-Id); a name or folder change, or a segment nothing live uses, needs neither.
|
|
12736
|
+
* Change a segment\'s name, rule or folder
|
|
12737
|
+
*/
|
|
12738
|
+
SfvbApi.prototype.updateSfvbCommsSegmentRaw = function (requestParameters, initOverrides) {
|
|
12739
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12740
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
12741
|
+
return __generator(this, function (_c) {
|
|
12742
|
+
switch (_c.label) {
|
|
12743
|
+
case 0:
|
|
12744
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
12745
|
+
throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling updateSfvbCommsSegment.');
|
|
12746
|
+
}
|
|
12747
|
+
if (requestParameters.segmentUuid === null || requestParameters.segmentUuid === undefined) {
|
|
12748
|
+
throw new runtime.RequiredError('segmentUuid', 'Required parameter requestParameters.segmentUuid was null or undefined when calling updateSfvbCommsSegment.');
|
|
12749
|
+
}
|
|
12750
|
+
if (requestParameters.ifMatch === null || requestParameters.ifMatch === undefined) {
|
|
12751
|
+
throw new runtime.RequiredError('ifMatch', 'Required parameter requestParameters.ifMatch was null or undefined when calling updateSfvbCommsSegment.');
|
|
12752
|
+
}
|
|
12753
|
+
if (requestParameters.segmentWriteRequest === null || requestParameters.segmentWriteRequest === undefined) {
|
|
12754
|
+
throw new runtime.RequiredError('segmentWriteRequest', 'Required parameter requestParameters.segmentWriteRequest was null or undefined when calling updateSfvbCommsSegment.');
|
|
12755
|
+
}
|
|
12756
|
+
queryParameters = {};
|
|
12757
|
+
headerParameters = {};
|
|
12758
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
12759
|
+
if (requestParameters.ifMatch !== undefined && requestParameters.ifMatch !== null) {
|
|
12760
|
+
headerParameters['If-Match'] = String(requestParameters.ifMatch);
|
|
12761
|
+
}
|
|
12762
|
+
if (requestParameters.approvalId !== undefined && requestParameters.approvalId !== null) {
|
|
12763
|
+
headerParameters['Approval-Id'] = String(requestParameters.approvalId);
|
|
12764
|
+
}
|
|
12765
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
12766
|
+
// oauth required
|
|
12767
|
+
_a = headerParameters;
|
|
12768
|
+
_b = "Authorization";
|
|
12769
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", [])];
|
|
12770
|
+
case 1:
|
|
12771
|
+
// oauth required
|
|
12772
|
+
_a[_b] = _c.sent();
|
|
12773
|
+
_c.label = 2;
|
|
12774
|
+
case 2:
|
|
12775
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12776
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
12777
|
+
}
|
|
12778
|
+
return [4 /*yield*/, this.request({
|
|
12779
|
+
path: "/sfvb/storefronts/{storefront_oid}/segments/{segment_uuid}".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))).replace("{".concat("segment_uuid", "}"), encodeURIComponent(String(requestParameters.segmentUuid))),
|
|
12780
|
+
method: 'PUT',
|
|
12781
|
+
headers: headerParameters,
|
|
12782
|
+
query: queryParameters,
|
|
12783
|
+
body: (0, models_1.SfvbCommsSegmentWriteRequestToJSON)(requestParameters.segmentWriteRequest),
|
|
12784
|
+
}, initOverrides)];
|
|
12785
|
+
case 3:
|
|
12786
|
+
response = _c.sent();
|
|
12787
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SfvbCommsSegmentResponseFromJSON)(jsonValue); })];
|
|
12788
|
+
}
|
|
12789
|
+
});
|
|
12790
|
+
});
|
|
12791
|
+
};
|
|
12792
|
+
/**
|
|
12793
|
+
* A field left out stays as it is. Send the segment\'s hash_sha256 as If-Match; the change applies only while the name, rule and folder are still what was read. A changed rule is checked as on a create and starts a rebuild. Changing the rule of a segment a live campaign or flow uses needs sfvb_publish and an approved segment.update approval (Approval-Id); a name or folder change, or a segment nothing live uses, needs neither.
|
|
12794
|
+
* Change a segment\'s name, rule or folder
|
|
12795
|
+
*/
|
|
12796
|
+
SfvbApi.prototype.updateSfvbCommsSegment = function (requestParameters, initOverrides) {
|
|
12797
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12798
|
+
var response;
|
|
12799
|
+
return __generator(this, function (_a) {
|
|
12800
|
+
switch (_a.label) {
|
|
12801
|
+
case 0: return [4 /*yield*/, this.updateSfvbCommsSegmentRaw(requestParameters, initOverrides)];
|
|
12802
|
+
case 1:
|
|
12803
|
+
response = _a.sent();
|
|
12804
|
+
return [4 /*yield*/, response.value()];
|
|
12805
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
12806
|
+
}
|
|
12807
|
+
});
|
|
12808
|
+
});
|
|
12809
|
+
};
|
|
12608
12810
|
/**
|
|
12609
12811
|
* Only a mailgun domain\'s mailgun_api_key can change. Send it as a secret handle made for the domain to replace it, or as the mask it was read with to keep it. A new key sets up UltraCart\'s webhooks again with it; if Mailgun refuses, nothing is saved and the handle is given back unused.
|
|
12610
12812
|
* Update a sending domain
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { SfvbApprovalParams } from './SfvbApprovalParams';
|
|
13
|
+
import { SfvbCommsSegmentWriteRequest } from './SfvbCommsSegmentWriteRequest';
|
|
13
14
|
import { SfvbExperimentStartRequest } from './SfvbExperimentStartRequest';
|
|
14
15
|
import { SfvbItemAttributeBatchRow } from './SfvbItemAttributeBatchRow';
|
|
15
16
|
import { SfvbItemPricingRequest } from './SfvbItemPricingRequest';
|
|
@@ -68,6 +69,12 @@ export interface SfvbApprovalCreateRequest {
|
|
|
68
69
|
* @memberof SfvbApprovalCreateRequest
|
|
69
70
|
*/
|
|
70
71
|
redirect_rows?: Array<SfvbRedirectDeleteRow>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {SfvbCommsSegmentWriteRequest}
|
|
75
|
+
* @memberof SfvbApprovalCreateRequest
|
|
76
|
+
*/
|
|
77
|
+
segment_update?: SfvbCommsSegmentWriteRequest;
|
|
71
78
|
}
|
|
72
79
|
/**
|
|
73
80
|
* @export
|
|
@@ -85,6 +92,7 @@ export declare const SfvbApprovalCreateRequestActionEnum: {
|
|
|
85
92
|
readonly TwilioAccountDelete: "twilio_account.delete";
|
|
86
93
|
readonly SendingDomainDelete: "sending_domain.delete";
|
|
87
94
|
readonly SequenceStepDelete: "sequence_step.delete";
|
|
95
|
+
readonly SegmentUpdate: "segment.update";
|
|
88
96
|
};
|
|
89
97
|
export type SfvbApprovalCreateRequestActionEnum = typeof SfvbApprovalCreateRequestActionEnum[keyof typeof SfvbApprovalCreateRequestActionEnum];
|
|
90
98
|
/**
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.SfvbApprovalCreateRequestToJSON = exports.SfvbApprovalCreateRequestFromJSONTyped = exports.SfvbApprovalCreateRequestFromJSON = exports.instanceOfSfvbApprovalCreateRequest = exports.SfvbApprovalCreateRequestActionEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var SfvbApprovalParams_1 = require("./SfvbApprovalParams");
|
|
19
|
+
var SfvbCommsSegmentWriteRequest_1 = require("./SfvbCommsSegmentWriteRequest");
|
|
19
20
|
var SfvbExperimentStartRequest_1 = require("./SfvbExperimentStartRequest");
|
|
20
21
|
var SfvbItemAttributeBatchRow_1 = require("./SfvbItemAttributeBatchRow");
|
|
21
22
|
var SfvbItemPricingRequest_1 = require("./SfvbItemPricingRequest");
|
|
@@ -35,7 +36,8 @@ exports.SfvbApprovalCreateRequestActionEnum = {
|
|
|
35
36
|
ItemPricing: 'item.pricing',
|
|
36
37
|
TwilioAccountDelete: 'twilio_account.delete',
|
|
37
38
|
SendingDomainDelete: 'sending_domain.delete',
|
|
38
|
-
SequenceStepDelete: 'sequence_step.delete'
|
|
39
|
+
SequenceStepDelete: 'sequence_step.delete',
|
|
40
|
+
SegmentUpdate: 'segment.update'
|
|
39
41
|
};
|
|
40
42
|
/**
|
|
41
43
|
* Check if a given object implements the SfvbApprovalCreateRequest interface.
|
|
@@ -62,6 +64,7 @@ function SfvbApprovalCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
64
|
'params': !(0, runtime_1.exists)(json, 'params') ? undefined : (0, SfvbApprovalParams_1.SfvbApprovalParamsFromJSON)(json['params']),
|
|
63
65
|
'reason': !(0, runtime_1.exists)(json, 'reason') ? undefined : json['reason'],
|
|
64
66
|
'redirect_rows': !(0, runtime_1.exists)(json, 'redirect_rows') ? undefined : (json['redirect_rows'].map(SfvbRedirectDeleteRow_1.SfvbRedirectDeleteRowFromJSON)),
|
|
67
|
+
'segment_update': !(0, runtime_1.exists)(json, 'segment_update') ? undefined : (0, SfvbCommsSegmentWriteRequest_1.SfvbCommsSegmentWriteRequestFromJSON)(json['segment_update']),
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
70
|
exports.SfvbApprovalCreateRequestFromJSONTyped = SfvbApprovalCreateRequestFromJSONTyped;
|
|
@@ -81,6 +84,7 @@ function SfvbApprovalCreateRequestToJSON(value) {
|
|
|
81
84
|
'params': (0, SfvbApprovalParams_1.SfvbApprovalParamsToJSON)(value.params),
|
|
82
85
|
'reason': value.reason,
|
|
83
86
|
'redirect_rows': value.redirect_rows === undefined ? undefined : (value.redirect_rows.map(SfvbRedirectDeleteRow_1.SfvbRedirectDeleteRowToJSON)),
|
|
87
|
+
'segment_update': (0, SfvbCommsSegmentWriteRequest_1.SfvbCommsSegmentWriteRequestToJSON)(value.segment_update),
|
|
84
88
|
};
|
|
85
89
|
}
|
|
86
90
|
exports.SfvbApprovalCreateRequestToJSON = SfvbApprovalCreateRequestToJSON;
|
|
@@ -87,6 +87,12 @@ export interface SfvbApprovalParams {
|
|
|
87
87
|
* @memberof SfvbApprovalParams
|
|
88
88
|
*/
|
|
89
89
|
rule_count?: number;
|
|
90
|
+
/**
|
|
91
|
+
* The segment whose rule changes, for segment.update.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof SfvbApprovalParams
|
|
94
|
+
*/
|
|
95
|
+
segment_uuid?: string;
|
|
90
96
|
/**
|
|
91
97
|
* The communication sequence, for sequence_step.delete.
|
|
92
98
|
* @type {string}
|
|
@@ -51,6 +51,7 @@ function SfvbApprovalParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'request_sha256': !(0, runtime_1.exists)(json, 'request_sha256') ? undefined : json['request_sha256'],
|
|
52
52
|
'rows_sha256': !(0, runtime_1.exists)(json, 'rows_sha256') ? undefined : json['rows_sha256'],
|
|
53
53
|
'rule_count': !(0, runtime_1.exists)(json, 'rule_count') ? undefined : json['rule_count'],
|
|
54
|
+
'segment_uuid': !(0, runtime_1.exists)(json, 'segment_uuid') ? undefined : json['segment_uuid'],
|
|
54
55
|
'sequence_uuid': !(0, runtime_1.exists)(json, 'sequence_uuid') ? undefined : json['sequence_uuid'],
|
|
55
56
|
'slot': !(0, runtime_1.exists)(json, 'slot') ? undefined : json['slot'],
|
|
56
57
|
'step_uuid': !(0, runtime_1.exists)(json, 'step_uuid') ? undefined : json['step_uuid'],
|
|
@@ -82,6 +83,7 @@ function SfvbApprovalParamsToJSON(value) {
|
|
|
82
83
|
'request_sha256': value.request_sha256,
|
|
83
84
|
'rows_sha256': value.rows_sha256,
|
|
84
85
|
'rule_count': value.rule_count,
|
|
86
|
+
'segment_uuid': value.segment_uuid,
|
|
85
87
|
'sequence_uuid': value.sequence_uuid,
|
|
86
88
|
'slot': value.slot,
|
|
87
89
|
'step_uuid': value.step_uuid,
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { SfvbCommsSegmentUsedBy } from './SfvbCommsSegmentUsedBy';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SfvbCommsSegmentDetail
|
|
17
|
+
*/
|
|
18
|
+
export interface SfvbCommsSegmentDetail {
|
|
19
|
+
/**
|
|
20
|
+
* When it was created (ISO 8601, UTC).
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SfvbCommsSegmentDetail
|
|
23
|
+
*/
|
|
24
|
+
created_dts?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The rule, as JSON text in the admin editor's shape. Every entry in groups must hold, and inside a group one function is enough.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SfvbCommsSegmentDetail
|
|
29
|
+
*/
|
|
30
|
+
filter_profile_equation_json?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The list and segment folder it is filed in, or absent.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SfvbCommsSegmentDetail
|
|
35
|
+
*/
|
|
36
|
+
folder_uuid?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Send as If-Match on an update. Covers the name, the rule and the folder.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SfvbCommsSegmentDetail
|
|
41
|
+
*/
|
|
42
|
+
hash_sha256?: string;
|
|
43
|
+
/**
|
|
44
|
+
* How many customers it held at its last rebuild. Out of date while rebuild_required is true.
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof SfvbCommsSegmentDetail
|
|
47
|
+
*/
|
|
48
|
+
member_count?: number;
|
|
49
|
+
/**
|
|
50
|
+
* The segment name.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof SfvbCommsSegmentDetail
|
|
53
|
+
*/
|
|
54
|
+
name?: string;
|
|
55
|
+
/**
|
|
56
|
+
* True when the rule has a date range, so the segment is also rebuilt every night.
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof SfvbCommsSegmentDetail
|
|
59
|
+
*/
|
|
60
|
+
rebuild_nightly?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* How far the current rebuild has got, when one is running.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof SfvbCommsSegmentDetail
|
|
65
|
+
*/
|
|
66
|
+
rebuild_percentage?: number;
|
|
67
|
+
/**
|
|
68
|
+
* True when the rule changed and the segment has not finished rebuilding.
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof SfvbCommsSegmentDetail
|
|
71
|
+
*/
|
|
72
|
+
rebuild_required?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The segment uuid.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof SfvbCommsSegmentDetail
|
|
77
|
+
*/
|
|
78
|
+
segment_uuid?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The campaigns that send to it and the flows it starts.
|
|
81
|
+
* @type {Array<SfvbCommsSegmentUsedBy>}
|
|
82
|
+
* @memberof SfvbCommsSegmentDetail
|
|
83
|
+
*/
|
|
84
|
+
used_by?: Array<SfvbCommsSegmentUsedBy>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the SfvbCommsSegmentDetail interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfSfvbCommsSegmentDetail(value: object): boolean;
|
|
90
|
+
export declare function SfvbCommsSegmentDetailFromJSON(json: any): SfvbCommsSegmentDetail;
|
|
91
|
+
export declare function SfvbCommsSegmentDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbCommsSegmentDetail;
|
|
92
|
+
export declare function SfvbCommsSegmentDetailToJSON(value?: SfvbCommsSegmentDetail | null): any;
|