ultracart_rest_api_v2_typescript 4.1.234 → 4.1.235
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 +7 -0
- package/README.md +3 -2
- package/dist/apis/SfvbApi.d.ts +38 -1
- package/dist/apis/SfvbApi.js +77 -0
- package/dist/models/SfvbTrackingCheckPlan.d.ts +123 -0
- package/dist/models/SfvbTrackingCheckPlan.js +92 -0
- package/dist/models/SfvbTrackingCheckPlanEvent.d.ts +52 -0
- package/dist/models/SfvbTrackingCheckPlanEvent.js +62 -0
- package/dist/models/SfvbTrackingCheckPlanGate.d.ts +55 -0
- package/dist/models/SfvbTrackingCheckPlanGate.js +68 -0
- package/dist/models/SfvbTrackingCheckPlanProvider.d.ts +100 -0
- package/dist/models/SfvbTrackingCheckPlanProvider.js +85 -0
- package/dist/models/SfvbTrackingCheckPlanRequest.d.ts +58 -0
- package/dist/models/SfvbTrackingCheckPlanRequest.js +64 -0
- package/dist/models/SfvbTrackingCheckPlanServerSide.d.ts +37 -0
- package/dist/models/SfvbTrackingCheckPlanServerSide.js +52 -0
- package/dist/models/SfvbTrackingCheckPlanUnchecked.d.ts +37 -0
- package/dist/models/SfvbTrackingCheckPlanUnchecked.js +52 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/SfvbApi.ts +98 -0
- package/src/models/SfvbTrackingCheckPlan.ts +202 -0
- package/src/models/SfvbTrackingCheckPlanEvent.ts +94 -0
- package/src/models/SfvbTrackingCheckPlanGate.ts +96 -0
- package/src/models/SfvbTrackingCheckPlanProvider.ts +171 -0
- package/src/models/SfvbTrackingCheckPlanRequest.ts +102 -0
- package/src/models/SfvbTrackingCheckPlanServerSide.ts +75 -0
- package/src/models/SfvbTrackingCheckPlanUnchecked.ts +75 -0
- package/src/models/index.ts +7 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -1319,6 +1319,13 @@ src/models/SfvbThemesResponse.ts
|
|
|
1319
1319
|
src/models/SfvbTrackingAdvanced.ts
|
|
1320
1320
|
src/models/SfvbTrackingAdvancedRequest.ts
|
|
1321
1321
|
src/models/SfvbTrackingChange.ts
|
|
1322
|
+
src/models/SfvbTrackingCheckPlan.ts
|
|
1323
|
+
src/models/SfvbTrackingCheckPlanEvent.ts
|
|
1324
|
+
src/models/SfvbTrackingCheckPlanGate.ts
|
|
1325
|
+
src/models/SfvbTrackingCheckPlanProvider.ts
|
|
1326
|
+
src/models/SfvbTrackingCheckPlanRequest.ts
|
|
1327
|
+
src/models/SfvbTrackingCheckPlanServerSide.ts
|
|
1328
|
+
src/models/SfvbTrackingCheckPlanUnchecked.ts
|
|
1322
1329
|
src/models/SfvbTrackingHtml.ts
|
|
1323
1330
|
src/models/SfvbTrackingHtmlRenderRequest.ts
|
|
1324
1331
|
src/models/SfvbTrackingHtmlRenderResponse.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.235
|
|
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.235 --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.235 | 11/09/2026 | sfvb internal testing |
|
|
87
88
|
| 4.1.234 | 11/09/2026 | sfvb internal testing |
|
|
88
89
|
| 4.1.233 | 11/06/2026 | sfvb internal testing |
|
|
89
90
|
| 4.1.232 | 11/05/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 { SfvbAffiliateNetwork, SfvbAffiliateNetworkRequest, SfvbAffiliateNetworksResponse, SfvbApproval, SfvbApprovalCreateRequest, SfvbApprovalsResponse, SfvbArchiveRequest, SfvbBlogPostDetail, SfvbBlogPostImageRequest, SfvbBlogPostRequest, SfvbBlogPostsResponse, SfvbCampaign, SfvbCampaignWriteRequest, SfvbCampaignsResponse, SfvbCodeLibraryEmailsResponse, SfvbCommsClicksResponse, SfvbCommsDashboardResponse, SfvbCommsFolderResponse, SfvbCommsFolderWriteRequest, SfvbCommsFoldersResponse, SfvbCommsListResponse, SfvbCommsListWriteRequest, SfvbCommsListsResponse, SfvbCommsLookupResponse, SfvbCommsMembersResponse, SfvbCommsPlanResponse, SfvbCommsProviderImportRequest, SfvbCommsProviderImportResponse, SfvbCommsProvidersResponse, SfvbCommsRulerValidateRequest, SfvbCommsRulerValidateResponse, SfvbCommsSegmentResponse, SfvbCommsSegmentWriteRequest, SfvbCommsSegmentsResponse, SfvbCommsSendingDomain, SfvbCommsSendingDomainsResponse, SfvbCommsSequenceFolderResponse, SfvbCommsSequenceFoldersResponse, SfvbCommsSequenceStatsResponse, SfvbCommsSettingsResponse, SfvbCommsSettingsUpdateRequest, SfvbCommsTemplateResponse, SfvbCommsTemplatesResponse, SfvbCommsTestEmailRequest, SfvbCommsTestPostcardRequest, SfvbCommsTestSendResponse, SfvbCommsTestSmsRequest, SfvbCommsTwilioAccount, SfvbCommsTwilioAccountResponse, SfvbCommsUnreferencedResponse, 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, SfvbFlowBackfillRequest, SfvbFlowBackfillResponse, 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, SfvbNotFoundSummary, SfvbPageAttributeUpdateRequest, SfvbPageBlogPostsRequest, SfvbPageBlogPostsResponse, SfvbPageCreateRequest, SfvbPageDuplicateRequest, SfvbPageItemsAddRequest, SfvbPageItemsRemoveRequest, SfvbPageItemsResponse, SfvbPageListResponse, SfvbPageMultimediaRequest, SfvbPageRefreshRequest, SfvbPageRefreshResponse, SfvbPageResponse, SfvbPageSelectors, SfvbPageSettingsRequest, SfvbPostcardProofRequest, SfvbPostcardProofResponse, SfvbPostcardTrackingResponse, SfvbPreviewAccessRequest, SfvbPreviewAccessResponse, SfvbPreviewSessionRequest, SfvbPreviewSessionResponse, SfvbPreviewTrackingHtmlRequest, SfvbPreviewUrlResponse, SfvbRecordingEventsResponse, SfvbRecordingResponse, SfvbRecordingSettingsRequest, SfvbRecordingSettingsResponse, SfvbRedirect, SfvbRedirectCheckResponse, SfvbRedirectDeleteRequest, SfvbRedirectDeleteResponse, SfvbRedirectImportRequest, SfvbRedirectImportResponse, SfvbRedirectRequest, SfvbRedirectResolveBatchRequest, SfvbRedirectResolveBatchResponse, SfvbRedirectResolveResponse, SfvbRedirectResponse, SfvbRedirectsResponse, SfvbRenderRequest, SfvbRenderResponse, SfvbSecretKindsResponse, SfvbSecretRequest, SfvbSecretRequestCreate, SfvbSecretRequestsResponse, SfvbSequence, SfvbSequenceStepCreateRequest, SfvbSequenceStepCreateResponse, SfvbSequenceStepDeleteResponse, SfvbSequenceStepMoveRequest, SfvbSequenceStepMoveResponse, SfvbSequenceStepUpdateRequest, SfvbSequenceStepUpdateResponse, SfvbServerLogDetail, SfvbServerLogsResponse, SfvbSiteAttributeUpdateRequest, SfvbSiteAttributesResponse, SfvbSiteSeo, SfvbSiteSeoRequest, SfvbSitemapsResponse, SfvbSmartAttribution, SfvbSmartAttributionRequest, SfvbStepDispatchLogsResponse, SfvbStorefrontsResponse, SfvbTemplateResolveResponse, SfvbTemplatesResponse, SfvbTestOrdersResponse, SfvbTheme, SfvbThemeAttributeUpdateRequest, SfvbThemeAttributesResponse, SfvbThemeDuplicateRequest, SfvbThemeJobResponse, SfvbThemesResponse, SfvbTrackingAdvancedRequest, SfvbTrackingHtml, SfvbTrackingHtmlRenderRequest, SfvbTrackingHtmlRenderResponse, SfvbTrackingHtmlRequest, SfvbTrackingHtmlResponse, SfvbTrackingPrivacyRequest, SfvbTrackingProvider, SfvbTrackingProviderRequest, SfvbTrackingProvidersResponse, SfvbTrackingSettingsResponse, SfvbTransactionalEmailResponse, SfvbTransactionalEmailUpdateRequest, SfvbTransactionalEmailsResponse, SfvbUpsellOffer, SfvbUpsellOffersResponse, SfvbUpsellPath, SfvbUpsellPathDuplicateRequest, SfvbUpsellPathMoveRequest, SfvbUpsellPathsResponse, SfvbUtmShortcode, SfvbUtmShortcodeRequest, SfvbUtmShortcodesResponse, SfvbValidateRequest, SfvbValidationResponse, SfvbVelocityValidateRequest, SfvbVersionResponse, SfvbWhoamiResponse, SfvbWidgetIdsResponse } from '../models';
|
|
13
|
+
import { SfvbAffiliateNetwork, SfvbAffiliateNetworkRequest, SfvbAffiliateNetworksResponse, SfvbApproval, SfvbApprovalCreateRequest, SfvbApprovalsResponse, SfvbArchiveRequest, SfvbBlogPostDetail, SfvbBlogPostImageRequest, SfvbBlogPostRequest, SfvbBlogPostsResponse, SfvbCampaign, SfvbCampaignWriteRequest, SfvbCampaignsResponse, SfvbCodeLibraryEmailsResponse, SfvbCommsClicksResponse, SfvbCommsDashboardResponse, SfvbCommsFolderResponse, SfvbCommsFolderWriteRequest, SfvbCommsFoldersResponse, SfvbCommsListResponse, SfvbCommsListWriteRequest, SfvbCommsListsResponse, SfvbCommsLookupResponse, SfvbCommsMembersResponse, SfvbCommsPlanResponse, SfvbCommsProviderImportRequest, SfvbCommsProviderImportResponse, SfvbCommsProvidersResponse, SfvbCommsRulerValidateRequest, SfvbCommsRulerValidateResponse, SfvbCommsSegmentResponse, SfvbCommsSegmentWriteRequest, SfvbCommsSegmentsResponse, SfvbCommsSendingDomain, SfvbCommsSendingDomainsResponse, SfvbCommsSequenceFolderResponse, SfvbCommsSequenceFoldersResponse, SfvbCommsSequenceStatsResponse, SfvbCommsSettingsResponse, SfvbCommsSettingsUpdateRequest, SfvbCommsTemplateResponse, SfvbCommsTemplatesResponse, SfvbCommsTestEmailRequest, SfvbCommsTestPostcardRequest, SfvbCommsTestSendResponse, SfvbCommsTestSmsRequest, SfvbCommsTwilioAccount, SfvbCommsTwilioAccountResponse, SfvbCommsUnreferencedResponse, 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, SfvbFlowBackfillRequest, SfvbFlowBackfillResponse, 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, SfvbNotFoundSummary, SfvbPageAttributeUpdateRequest, SfvbPageBlogPostsRequest, SfvbPageBlogPostsResponse, SfvbPageCreateRequest, SfvbPageDuplicateRequest, SfvbPageItemsAddRequest, SfvbPageItemsRemoveRequest, SfvbPageItemsResponse, SfvbPageListResponse, SfvbPageMultimediaRequest, SfvbPageRefreshRequest, SfvbPageRefreshResponse, SfvbPageResponse, SfvbPageSelectors, SfvbPageSettingsRequest, SfvbPostcardProofRequest, SfvbPostcardProofResponse, SfvbPostcardTrackingResponse, SfvbPreviewAccessRequest, SfvbPreviewAccessResponse, SfvbPreviewSessionRequest, SfvbPreviewSessionResponse, SfvbPreviewTrackingHtmlRequest, SfvbPreviewUrlResponse, SfvbRecordingEventsResponse, SfvbRecordingResponse, SfvbRecordingSettingsRequest, SfvbRecordingSettingsResponse, SfvbRedirect, SfvbRedirectCheckResponse, SfvbRedirectDeleteRequest, SfvbRedirectDeleteResponse, SfvbRedirectImportRequest, SfvbRedirectImportResponse, SfvbRedirectRequest, SfvbRedirectResolveBatchRequest, SfvbRedirectResolveBatchResponse, SfvbRedirectResolveResponse, SfvbRedirectResponse, SfvbRedirectsResponse, SfvbRenderRequest, SfvbRenderResponse, SfvbSecretKindsResponse, SfvbSecretRequest, SfvbSecretRequestCreate, SfvbSecretRequestsResponse, SfvbSequence, SfvbSequenceStepCreateRequest, SfvbSequenceStepCreateResponse, SfvbSequenceStepDeleteResponse, SfvbSequenceStepMoveRequest, SfvbSequenceStepMoveResponse, SfvbSequenceStepUpdateRequest, SfvbSequenceStepUpdateResponse, SfvbServerLogDetail, SfvbServerLogsResponse, SfvbSiteAttributeUpdateRequest, SfvbSiteAttributesResponse, SfvbSiteSeo, SfvbSiteSeoRequest, SfvbSitemapsResponse, SfvbSmartAttribution, SfvbSmartAttributionRequest, SfvbStepDispatchLogsResponse, SfvbStorefrontsResponse, SfvbTemplateResolveResponse, SfvbTemplatesResponse, SfvbTestOrdersResponse, SfvbTheme, SfvbThemeAttributeUpdateRequest, SfvbThemeAttributesResponse, SfvbThemeDuplicateRequest, SfvbThemeJobResponse, SfvbThemesResponse, SfvbTrackingAdvancedRequest, SfvbTrackingCheckPlan, SfvbTrackingHtml, SfvbTrackingHtmlRenderRequest, SfvbTrackingHtmlRenderResponse, SfvbTrackingHtmlRequest, SfvbTrackingHtmlResponse, SfvbTrackingPrivacyRequest, SfvbTrackingProvider, SfvbTrackingProviderRequest, SfvbTrackingProvidersResponse, SfvbTrackingSettingsResponse, SfvbTransactionalEmailResponse, SfvbTransactionalEmailUpdateRequest, SfvbTransactionalEmailsResponse, SfvbUpsellOffer, SfvbUpsellOffersResponse, SfvbUpsellPath, SfvbUpsellPathDuplicateRequest, SfvbUpsellPathMoveRequest, SfvbUpsellPathsResponse, SfvbUtmShortcode, SfvbUtmShortcodeRequest, SfvbUtmShortcodesResponse, SfvbValidateRequest, SfvbValidationResponse, SfvbVelocityValidateRequest, SfvbVersionResponse, SfvbWhoamiResponse, SfvbWidgetIdsResponse } from '../models';
|
|
14
14
|
export interface AddSfvbPageBlogPostsRequest {
|
|
15
15
|
storefrontOid: number;
|
|
16
16
|
path: string;
|
|
@@ -637,6 +637,14 @@ export interface GetSfvbThemeJobRequest {
|
|
|
637
637
|
storefrontOid: number;
|
|
638
638
|
jobId: number;
|
|
639
639
|
}
|
|
640
|
+
export interface GetSfvbTrackingCheckPlanRequest {
|
|
641
|
+
storefrontOid: number;
|
|
642
|
+
path: string;
|
|
643
|
+
event?: string;
|
|
644
|
+
orderId?: string;
|
|
645
|
+
consent?: string;
|
|
646
|
+
region?: string;
|
|
647
|
+
}
|
|
640
648
|
export interface GetSfvbTrackingHtmlRequest {
|
|
641
649
|
storefrontOid: number;
|
|
642
650
|
slot: string;
|
|
@@ -3615,6 +3623,25 @@ export interface SfvbApiInterface {
|
|
|
3615
3623
|
* Status of an asynchronous theme job
|
|
3616
3624
|
*/
|
|
3617
3625
|
getSfvbThemeJob(requestParameters: GetSfvbThemeJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbThemeJobResponse>;
|
|
3626
|
+
/**
|
|
3627
|
+
* What each tracking provider should load on one page, for page_view or a test order\'s purchase, under a consent state and region, with the requests and calls to look for and the ones that must not appear. Built from the same rules the storefront\'s tracking templates follow, never by running them, so nothing is sent to any provider. Includes the hosts the storefront\'s custom and affiliate network HTML loads, the sends made from UltraCart servers, and a snippet that collects what the browser saw. Grade the results locally; they are never sent here. With neither consent nor region, every provider is listed with the gate that holds it back. A purchase needs a test order on this account.
|
|
3628
|
+
* @summary Plan a browser check of a storefront\'s tracking
|
|
3629
|
+
* @param {number} storefrontOid
|
|
3630
|
+
* @param {string} path A storefront page path, such as / or /checkout/receipt.html, with an optional query
|
|
3631
|
+
* @param {string} [event] page_view (the default) or purchase
|
|
3632
|
+
* @param {string} [orderId] For purchase, a test order on this account
|
|
3633
|
+
* @param {string} [consent] none, all, or a comma list of statistics, preferences and marketing
|
|
3634
|
+
* @param {string} [region] Where the browser is. eea, non-us or other
|
|
3635
|
+
* @param {*} [options] Override http request option.
|
|
3636
|
+
* @throws {RequiredError}
|
|
3637
|
+
* @memberof SfvbApiInterface
|
|
3638
|
+
*/
|
|
3639
|
+
getSfvbTrackingCheckPlanRaw(requestParameters: GetSfvbTrackingCheckPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbTrackingCheckPlan>>;
|
|
3640
|
+
/**
|
|
3641
|
+
* What each tracking provider should load on one page, for page_view or a test order\'s purchase, under a consent state and region, with the requests and calls to look for and the ones that must not appear. Built from the same rules the storefront\'s tracking templates follow, never by running them, so nothing is sent to any provider. Includes the hosts the storefront\'s custom and affiliate network HTML loads, the sends made from UltraCart servers, and a snippet that collects what the browser saw. Grade the results locally; they are never sent here. With neither consent nor region, every provider is listed with the gate that holds it back. A purchase needs a test order on this account.
|
|
3642
|
+
* Plan a browser check of a storefront\'s tracking
|
|
3643
|
+
*/
|
|
3644
|
+
getSfvbTrackingCheckPlan(requestParameters: GetSfvbTrackingCheckPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbTrackingCheckPlan>;
|
|
3618
3645
|
/**
|
|
3619
3646
|
* The HTML with its Velocity tokens as stored, and the hash_sha256 a write sends back as If-Match.
|
|
3620
3647
|
* @summary Read one custom tracking HTML slot
|
|
@@ -7387,6 +7414,16 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
|
|
|
7387
7414
|
* Status of an asynchronous theme job
|
|
7388
7415
|
*/
|
|
7389
7416
|
getSfvbThemeJob(requestParameters: GetSfvbThemeJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbThemeJobResponse>;
|
|
7417
|
+
/**
|
|
7418
|
+
* What each tracking provider should load on one page, for page_view or a test order\'s purchase, under a consent state and region, with the requests and calls to look for and the ones that must not appear. Built from the same rules the storefront\'s tracking templates follow, never by running them, so nothing is sent to any provider. Includes the hosts the storefront\'s custom and affiliate network HTML loads, the sends made from UltraCart servers, and a snippet that collects what the browser saw. Grade the results locally; they are never sent here. With neither consent nor region, every provider is listed with the gate that holds it back. A purchase needs a test order on this account.
|
|
7419
|
+
* Plan a browser check of a storefront\'s tracking
|
|
7420
|
+
*/
|
|
7421
|
+
getSfvbTrackingCheckPlanRaw(requestParameters: GetSfvbTrackingCheckPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbTrackingCheckPlan>>;
|
|
7422
|
+
/**
|
|
7423
|
+
* What each tracking provider should load on one page, for page_view or a test order\'s purchase, under a consent state and region, with the requests and calls to look for and the ones that must not appear. Built from the same rules the storefront\'s tracking templates follow, never by running them, so nothing is sent to any provider. Includes the hosts the storefront\'s custom and affiliate network HTML loads, the sends made from UltraCart servers, and a snippet that collects what the browser saw. Grade the results locally; they are never sent here. With neither consent nor region, every provider is listed with the gate that holds it back. A purchase needs a test order on this account.
|
|
7424
|
+
* Plan a browser check of a storefront\'s tracking
|
|
7425
|
+
*/
|
|
7426
|
+
getSfvbTrackingCheckPlan(requestParameters: GetSfvbTrackingCheckPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbTrackingCheckPlan>;
|
|
7390
7427
|
/**
|
|
7391
7428
|
* The HTML with its Velocity tokens as stored, and the hash_sha256 a write sends back as If-Match.
|
|
7392
7429
|
* Read one custom tracking HTML slot
|
package/dist/apis/SfvbApi.js
CHANGED
|
@@ -9376,6 +9376,83 @@ var SfvbApi = /** @class */ (function (_super) {
|
|
|
9376
9376
|
});
|
|
9377
9377
|
});
|
|
9378
9378
|
};
|
|
9379
|
+
/**
|
|
9380
|
+
* What each tracking provider should load on one page, for page_view or a test order\'s purchase, under a consent state and region, with the requests and calls to look for and the ones that must not appear. Built from the same rules the storefront\'s tracking templates follow, never by running them, so nothing is sent to any provider. Includes the hosts the storefront\'s custom and affiliate network HTML loads, the sends made from UltraCart servers, and a snippet that collects what the browser saw. Grade the results locally; they are never sent here. With neither consent nor region, every provider is listed with the gate that holds it back. A purchase needs a test order on this account.
|
|
9381
|
+
* Plan a browser check of a storefront\'s tracking
|
|
9382
|
+
*/
|
|
9383
|
+
SfvbApi.prototype.getSfvbTrackingCheckPlanRaw = function (requestParameters, initOverrides) {
|
|
9384
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9385
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
9386
|
+
return __generator(this, function (_c) {
|
|
9387
|
+
switch (_c.label) {
|
|
9388
|
+
case 0:
|
|
9389
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
9390
|
+
throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling getSfvbTrackingCheckPlan.');
|
|
9391
|
+
}
|
|
9392
|
+
if (requestParameters.path === null || requestParameters.path === undefined) {
|
|
9393
|
+
throw new runtime.RequiredError('path', 'Required parameter requestParameters.path was null or undefined when calling getSfvbTrackingCheckPlan.');
|
|
9394
|
+
}
|
|
9395
|
+
queryParameters = {};
|
|
9396
|
+
if (requestParameters.path !== undefined) {
|
|
9397
|
+
queryParameters['path'] = requestParameters.path;
|
|
9398
|
+
}
|
|
9399
|
+
if (requestParameters.event !== undefined) {
|
|
9400
|
+
queryParameters['event'] = requestParameters.event;
|
|
9401
|
+
}
|
|
9402
|
+
if (requestParameters.orderId !== undefined) {
|
|
9403
|
+
queryParameters['order_id'] = requestParameters.orderId;
|
|
9404
|
+
}
|
|
9405
|
+
if (requestParameters.consent !== undefined) {
|
|
9406
|
+
queryParameters['consent'] = requestParameters.consent;
|
|
9407
|
+
}
|
|
9408
|
+
if (requestParameters.region !== undefined) {
|
|
9409
|
+
queryParameters['region'] = requestParameters.region;
|
|
9410
|
+
}
|
|
9411
|
+
headerParameters = {};
|
|
9412
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
9413
|
+
// oauth required
|
|
9414
|
+
_a = headerParameters;
|
|
9415
|
+
_b = "Authorization";
|
|
9416
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", [])];
|
|
9417
|
+
case 1:
|
|
9418
|
+
// oauth required
|
|
9419
|
+
_a[_b] = _c.sent();
|
|
9420
|
+
_c.label = 2;
|
|
9421
|
+
case 2:
|
|
9422
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9423
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
9424
|
+
}
|
|
9425
|
+
return [4 /*yield*/, this.request({
|
|
9426
|
+
path: "/sfvb/storefronts/{storefront_oid}/tracking/check_plan".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))),
|
|
9427
|
+
method: 'GET',
|
|
9428
|
+
headers: headerParameters,
|
|
9429
|
+
query: queryParameters,
|
|
9430
|
+
}, initOverrides)];
|
|
9431
|
+
case 3:
|
|
9432
|
+
response = _c.sent();
|
|
9433
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SfvbTrackingCheckPlanFromJSON)(jsonValue); })];
|
|
9434
|
+
}
|
|
9435
|
+
});
|
|
9436
|
+
});
|
|
9437
|
+
};
|
|
9438
|
+
/**
|
|
9439
|
+
* What each tracking provider should load on one page, for page_view or a test order\'s purchase, under a consent state and region, with the requests and calls to look for and the ones that must not appear. Built from the same rules the storefront\'s tracking templates follow, never by running them, so nothing is sent to any provider. Includes the hosts the storefront\'s custom and affiliate network HTML loads, the sends made from UltraCart servers, and a snippet that collects what the browser saw. Grade the results locally; they are never sent here. With neither consent nor region, every provider is listed with the gate that holds it back. A purchase needs a test order on this account.
|
|
9440
|
+
* Plan a browser check of a storefront\'s tracking
|
|
9441
|
+
*/
|
|
9442
|
+
SfvbApi.prototype.getSfvbTrackingCheckPlan = function (requestParameters, initOverrides) {
|
|
9443
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9444
|
+
var response;
|
|
9445
|
+
return __generator(this, function (_a) {
|
|
9446
|
+
switch (_a.label) {
|
|
9447
|
+
case 0: return [4 /*yield*/, this.getSfvbTrackingCheckPlanRaw(requestParameters, initOverrides)];
|
|
9448
|
+
case 1:
|
|
9449
|
+
response = _a.sent();
|
|
9450
|
+
return [4 /*yield*/, response.value()];
|
|
9451
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
9452
|
+
}
|
|
9453
|
+
});
|
|
9454
|
+
});
|
|
9455
|
+
};
|
|
9379
9456
|
/**
|
|
9380
9457
|
* The HTML with its Velocity tokens as stored, and the hash_sha256 a write sends back as If-Match.
|
|
9381
9458
|
* Read one custom tracking HTML slot
|
|
@@ -0,0 +1,123 @@
|
|
|
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 { SfvbTrackingCheckPlanProvider } from './SfvbTrackingCheckPlanProvider';
|
|
13
|
+
import { SfvbTrackingCheckPlanServerSide } from './SfvbTrackingCheckPlanServerSide';
|
|
14
|
+
import { SfvbTrackingCheckPlanUnchecked } from './SfvbTrackingCheckPlanUnchecked';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SfvbTrackingCheckPlan
|
|
19
|
+
*/
|
|
20
|
+
export interface SfvbTrackingCheckPlan {
|
|
21
|
+
/**
|
|
22
|
+
* The tracking provider catalog version the plan was built from.
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof SfvbTrackingCheckPlan
|
|
25
|
+
*/
|
|
26
|
+
catalog_version?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The consent state the plan assumes. none, all, or the granted categories in the order statistics, preferences, marketing. Left out when the plan lists every gate instead.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof SfvbTrackingCheckPlan
|
|
31
|
+
*/
|
|
32
|
+
consent?: string;
|
|
33
|
+
/**
|
|
34
|
+
* page_view, or purchase for a test order receipt.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof SfvbTrackingCheckPlan
|
|
37
|
+
*/
|
|
38
|
+
event?: SfvbTrackingCheckPlanEventEnum;
|
|
39
|
+
/**
|
|
40
|
+
* What the plan assumes about the browser and the page.
|
|
41
|
+
* @type {Array<string>}
|
|
42
|
+
* @memberof SfvbTrackingCheckPlan
|
|
43
|
+
*/
|
|
44
|
+
notes?: Array<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The test order a purchase plan is for. Left out for a page view.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof SfvbTrackingCheckPlan
|
|
49
|
+
*/
|
|
50
|
+
order_id?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The page path the plan is for, as given.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof SfvbTrackingCheckPlan
|
|
55
|
+
*/
|
|
56
|
+
path?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The lowercase SHA-256 hex of the UTF-8 bytes of this response written as JSON without plan_id and snippet, with object keys sorted, no white space, and keys whose value is null left out, as JavaScript JSON.stringify writes values. A results file carries it, so the CLI can tell which plan the results belong to.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof SfvbTrackingCheckPlan
|
|
61
|
+
*/
|
|
62
|
+
plan_id?: string;
|
|
63
|
+
/**
|
|
64
|
+
* One entry per provider the storefront turns on for this event, then one per host found in custom or affiliate network HTML.
|
|
65
|
+
* @type {Array<SfvbTrackingCheckPlanProvider>}
|
|
66
|
+
* @memberof SfvbTrackingCheckPlan
|
|
67
|
+
*/
|
|
68
|
+
providers?: Array<SfvbTrackingCheckPlanProvider>;
|
|
69
|
+
/**
|
|
70
|
+
* Where the browser is, which decides which gates apply. eea, non-us or other. Left out when the plan lists every gate instead.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof SfvbTrackingCheckPlan
|
|
73
|
+
*/
|
|
74
|
+
region?: SfvbTrackingCheckPlanRegionEnum;
|
|
75
|
+
/**
|
|
76
|
+
* What providers send from UltraCart servers for this event. The browser never sees these, so they are reported as not checked.
|
|
77
|
+
* @type {Array<SfvbTrackingCheckPlanServerSide>}
|
|
78
|
+
* @memberof SfvbTrackingCheckPlan
|
|
79
|
+
*/
|
|
80
|
+
server_side?: Array<SfvbTrackingCheckPlanServerSide>;
|
|
81
|
+
/**
|
|
82
|
+
* The collector, the source of one JavaScript async arrow function. Run it with addInitScript before the action so it starts before the page scripts, then run it again with evaluate after the action. The second run waits for 3 seconds of quiet, or 15 seconds at most, and returns plan_id, page, collected_at, requests (url, initiator) and events (via, name, params). URLs keep only the query params the plan names for that host, and events only the params the plan names. It never reads cookies, storage or form fields and sends nothing anywhere.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof SfvbTrackingCheckPlan
|
|
85
|
+
*/
|
|
86
|
+
snippet?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The storefront.
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof SfvbTrackingCheckPlan
|
|
91
|
+
*/
|
|
92
|
+
storefront_oid?: number;
|
|
93
|
+
/**
|
|
94
|
+
* What the plan could not predict, and why.
|
|
95
|
+
* @type {Array<SfvbTrackingCheckPlanUnchecked>}
|
|
96
|
+
* @memberof SfvbTrackingCheckPlan
|
|
97
|
+
*/
|
|
98
|
+
unchecked?: Array<SfvbTrackingCheckPlanUnchecked>;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export declare const SfvbTrackingCheckPlanEventEnum: {
|
|
104
|
+
readonly PageView: "page_view";
|
|
105
|
+
readonly Purchase: "purchase";
|
|
106
|
+
};
|
|
107
|
+
export type SfvbTrackingCheckPlanEventEnum = typeof SfvbTrackingCheckPlanEventEnum[keyof typeof SfvbTrackingCheckPlanEventEnum];
|
|
108
|
+
/**
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export declare const SfvbTrackingCheckPlanRegionEnum: {
|
|
112
|
+
readonly Eea: "eea";
|
|
113
|
+
readonly NonUs: "non-us";
|
|
114
|
+
readonly Other: "other";
|
|
115
|
+
};
|
|
116
|
+
export type SfvbTrackingCheckPlanRegionEnum = typeof SfvbTrackingCheckPlanRegionEnum[keyof typeof SfvbTrackingCheckPlanRegionEnum];
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the SfvbTrackingCheckPlan interface.
|
|
119
|
+
*/
|
|
120
|
+
export declare function instanceOfSfvbTrackingCheckPlan(value: object): boolean;
|
|
121
|
+
export declare function SfvbTrackingCheckPlanFromJSON(json: any): SfvbTrackingCheckPlan;
|
|
122
|
+
export declare function SfvbTrackingCheckPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbTrackingCheckPlan;
|
|
123
|
+
export declare function SfvbTrackingCheckPlanToJSON(value?: SfvbTrackingCheckPlan | null): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
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.SfvbTrackingCheckPlanToJSON = exports.SfvbTrackingCheckPlanFromJSONTyped = exports.SfvbTrackingCheckPlanFromJSON = exports.instanceOfSfvbTrackingCheckPlan = exports.SfvbTrackingCheckPlanRegionEnum = exports.SfvbTrackingCheckPlanEventEnum = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var SfvbTrackingCheckPlanProvider_1 = require("./SfvbTrackingCheckPlanProvider");
|
|
19
|
+
var SfvbTrackingCheckPlanServerSide_1 = require("./SfvbTrackingCheckPlanServerSide");
|
|
20
|
+
var SfvbTrackingCheckPlanUnchecked_1 = require("./SfvbTrackingCheckPlanUnchecked");
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.SfvbTrackingCheckPlanEventEnum = {
|
|
25
|
+
PageView: 'page_view',
|
|
26
|
+
Purchase: 'purchase'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.SfvbTrackingCheckPlanRegionEnum = {
|
|
32
|
+
Eea: 'eea',
|
|
33
|
+
NonUs: 'non-us',
|
|
34
|
+
Other: 'other'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SfvbTrackingCheckPlan interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfSfvbTrackingCheckPlan(value) {
|
|
40
|
+
var isInstance = true;
|
|
41
|
+
return isInstance;
|
|
42
|
+
}
|
|
43
|
+
exports.instanceOfSfvbTrackingCheckPlan = instanceOfSfvbTrackingCheckPlan;
|
|
44
|
+
function SfvbTrackingCheckPlanFromJSON(json) {
|
|
45
|
+
return SfvbTrackingCheckPlanFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
exports.SfvbTrackingCheckPlanFromJSON = SfvbTrackingCheckPlanFromJSON;
|
|
48
|
+
function SfvbTrackingCheckPlanFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if ((json === undefined) || (json === null)) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'catalog_version': !(0, runtime_1.exists)(json, 'catalog_version') ? undefined : json['catalog_version'],
|
|
54
|
+
'consent': !(0, runtime_1.exists)(json, 'consent') ? undefined : json['consent'],
|
|
55
|
+
'event': !(0, runtime_1.exists)(json, 'event') ? undefined : json['event'],
|
|
56
|
+
'notes': !(0, runtime_1.exists)(json, 'notes') ? undefined : json['notes'],
|
|
57
|
+
'order_id': !(0, runtime_1.exists)(json, 'order_id') ? undefined : json['order_id'],
|
|
58
|
+
'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
|
|
59
|
+
'plan_id': !(0, runtime_1.exists)(json, 'plan_id') ? undefined : json['plan_id'],
|
|
60
|
+
'providers': !(0, runtime_1.exists)(json, 'providers') ? undefined : (json['providers'].map(SfvbTrackingCheckPlanProvider_1.SfvbTrackingCheckPlanProviderFromJSON)),
|
|
61
|
+
'region': !(0, runtime_1.exists)(json, 'region') ? undefined : json['region'],
|
|
62
|
+
'server_side': !(0, runtime_1.exists)(json, 'server_side') ? undefined : (json['server_side'].map(SfvbTrackingCheckPlanServerSide_1.SfvbTrackingCheckPlanServerSideFromJSON)),
|
|
63
|
+
'snippet': !(0, runtime_1.exists)(json, 'snippet') ? undefined : json['snippet'],
|
|
64
|
+
'storefront_oid': !(0, runtime_1.exists)(json, 'storefront_oid') ? undefined : json['storefront_oid'],
|
|
65
|
+
'unchecked': !(0, runtime_1.exists)(json, 'unchecked') ? undefined : (json['unchecked'].map(SfvbTrackingCheckPlanUnchecked_1.SfvbTrackingCheckPlanUncheckedFromJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.SfvbTrackingCheckPlanFromJSONTyped = SfvbTrackingCheckPlanFromJSONTyped;
|
|
69
|
+
function SfvbTrackingCheckPlanToJSON(value) {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'catalog_version': value.catalog_version,
|
|
78
|
+
'consent': value.consent,
|
|
79
|
+
'event': value.event,
|
|
80
|
+
'notes': value.notes,
|
|
81
|
+
'order_id': value.order_id,
|
|
82
|
+
'path': value.path,
|
|
83
|
+
'plan_id': value.plan_id,
|
|
84
|
+
'providers': value.providers === undefined ? undefined : (value.providers.map(SfvbTrackingCheckPlanProvider_1.SfvbTrackingCheckPlanProviderToJSON)),
|
|
85
|
+
'region': value.region,
|
|
86
|
+
'server_side': value.server_side === undefined ? undefined : (value.server_side.map(SfvbTrackingCheckPlanServerSide_1.SfvbTrackingCheckPlanServerSideToJSON)),
|
|
87
|
+
'snippet': value.snippet,
|
|
88
|
+
'storefront_oid': value.storefront_oid,
|
|
89
|
+
'unchecked': value.unchecked === undefined ? undefined : (value.unchecked.map(SfvbTrackingCheckPlanUnchecked_1.SfvbTrackingCheckPlanUncheckedToJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
exports.SfvbTrackingCheckPlanToJSON = SfvbTrackingCheckPlanToJSON;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 SfvbTrackingCheckPlanEvent
|
|
16
|
+
*/
|
|
17
|
+
export interface SfvbTrackingCheckPlanEvent {
|
|
18
|
+
/**
|
|
19
|
+
* The event name or command.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SfvbTrackingCheckPlanEvent
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Params the call must carry, as text. A star means present with any value.
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof SfvbTrackingCheckPlanEvent
|
|
28
|
+
*/
|
|
29
|
+
params?: object;
|
|
30
|
+
/**
|
|
31
|
+
* dataLayer, gtag or fbq.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SfvbTrackingCheckPlanEvent
|
|
34
|
+
*/
|
|
35
|
+
via?: SfvbTrackingCheckPlanEventViaEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const SfvbTrackingCheckPlanEventViaEnum: {
|
|
41
|
+
readonly DataLayer: "dataLayer";
|
|
42
|
+
readonly Gtag: "gtag";
|
|
43
|
+
readonly Fbq: "fbq";
|
|
44
|
+
};
|
|
45
|
+
export type SfvbTrackingCheckPlanEventViaEnum = typeof SfvbTrackingCheckPlanEventViaEnum[keyof typeof SfvbTrackingCheckPlanEventViaEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the SfvbTrackingCheckPlanEvent interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfSfvbTrackingCheckPlanEvent(value: object): boolean;
|
|
50
|
+
export declare function SfvbTrackingCheckPlanEventFromJSON(json: any): SfvbTrackingCheckPlanEvent;
|
|
51
|
+
export declare function SfvbTrackingCheckPlanEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbTrackingCheckPlanEvent;
|
|
52
|
+
export declare function SfvbTrackingCheckPlanEventToJSON(value?: SfvbTrackingCheckPlanEvent | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.SfvbTrackingCheckPlanEventToJSON = exports.SfvbTrackingCheckPlanEventFromJSONTyped = exports.SfvbTrackingCheckPlanEventFromJSON = exports.instanceOfSfvbTrackingCheckPlanEvent = exports.SfvbTrackingCheckPlanEventViaEnum = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.SfvbTrackingCheckPlanEventViaEnum = {
|
|
22
|
+
DataLayer: 'dataLayer',
|
|
23
|
+
Gtag: 'gtag',
|
|
24
|
+
Fbq: 'fbq'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SfvbTrackingCheckPlanEvent interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfSfvbTrackingCheckPlanEvent(value) {
|
|
30
|
+
var isInstance = true;
|
|
31
|
+
return isInstance;
|
|
32
|
+
}
|
|
33
|
+
exports.instanceOfSfvbTrackingCheckPlanEvent = instanceOfSfvbTrackingCheckPlanEvent;
|
|
34
|
+
function SfvbTrackingCheckPlanEventFromJSON(json) {
|
|
35
|
+
return SfvbTrackingCheckPlanEventFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
exports.SfvbTrackingCheckPlanEventFromJSON = SfvbTrackingCheckPlanEventFromJSON;
|
|
38
|
+
function SfvbTrackingCheckPlanEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if ((json === undefined) || (json === null)) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
44
|
+
'params': !(0, runtime_1.exists)(json, 'params') ? undefined : json['params'],
|
|
45
|
+
'via': !(0, runtime_1.exists)(json, 'via') ? undefined : json['via'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.SfvbTrackingCheckPlanEventFromJSONTyped = SfvbTrackingCheckPlanEventFromJSONTyped;
|
|
49
|
+
function SfvbTrackingCheckPlanEventToJSON(value) {
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
if (value === null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value.name,
|
|
58
|
+
'params': value.params,
|
|
59
|
+
'via': value.via,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.SfvbTrackingCheckPlanEventToJSON = SfvbTrackingCheckPlanEventToJSON;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 SfvbTrackingCheckPlanGate
|
|
16
|
+
*/
|
|
17
|
+
export interface SfvbTrackingCheckPlanGate {
|
|
18
|
+
/**
|
|
19
|
+
* Where the gate applies. all, eea or non_us.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SfvbTrackingCheckPlanGate
|
|
22
|
+
*/
|
|
23
|
+
region?: SfvbTrackingCheckPlanGateRegionEnum;
|
|
24
|
+
/**
|
|
25
|
+
* The consent category that must be granted. Statistics, Preferences or Marketing.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SfvbTrackingCheckPlanGate
|
|
28
|
+
*/
|
|
29
|
+
type?: SfvbTrackingCheckPlanGateTypeEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const SfvbTrackingCheckPlanGateRegionEnum: {
|
|
35
|
+
readonly All: "all";
|
|
36
|
+
readonly Eea: "eea";
|
|
37
|
+
readonly NonUs: "non_us";
|
|
38
|
+
};
|
|
39
|
+
export type SfvbTrackingCheckPlanGateRegionEnum = typeof SfvbTrackingCheckPlanGateRegionEnum[keyof typeof SfvbTrackingCheckPlanGateRegionEnum];
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export declare const SfvbTrackingCheckPlanGateTypeEnum: {
|
|
44
|
+
readonly Statistics: "Statistics";
|
|
45
|
+
readonly Preferences: "Preferences";
|
|
46
|
+
readonly Marketing: "Marketing";
|
|
47
|
+
};
|
|
48
|
+
export type SfvbTrackingCheckPlanGateTypeEnum = typeof SfvbTrackingCheckPlanGateTypeEnum[keyof typeof SfvbTrackingCheckPlanGateTypeEnum];
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SfvbTrackingCheckPlanGate interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSfvbTrackingCheckPlanGate(value: object): boolean;
|
|
53
|
+
export declare function SfvbTrackingCheckPlanGateFromJSON(json: any): SfvbTrackingCheckPlanGate;
|
|
54
|
+
export declare function SfvbTrackingCheckPlanGateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbTrackingCheckPlanGate;
|
|
55
|
+
export declare function SfvbTrackingCheckPlanGateToJSON(value?: SfvbTrackingCheckPlanGate | null): any;
|