@wix/auto_sdk_ecom_ecommerce-settings 1.0.32 → 1.0.34
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/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +8 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +16 -1
- package/build/cjs/index.typings.js +8 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +16 -1
- package/build/cjs/meta.js +8 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +5 -5
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +7 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +16 -1
- package/build/es/index.typings.mjs +7 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +16 -1
- package/build/es/meta.mjs +7 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +5 -5
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +27 -1
- package/build/internal/cjs/meta.d.ts +27 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +27 -1
- package/build/internal/es/meta.d.mts +27 -1
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -347
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -334
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -297
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -77
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -311
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -298
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -258
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -39
- package/build/internal/es/schemas.mjs.map +0 -1
|
@@ -240,6 +240,17 @@ interface CheckoutFields {
|
|
|
240
240
|
* @internal
|
|
241
241
|
*/
|
|
242
242
|
purchaseRecommendationsEnabled?: boolean | null;
|
|
243
|
+
/**
|
|
244
|
+
* Who can enter Test Mode on the site's checkout. In Test Mode, the regular payment methods are
|
|
245
|
+
* hidden and checkout completes with a dedicated test payment method, so no real payment is
|
|
246
|
+
* processed. The resulting order is marked as a test order and excluded from analytics, but it
|
|
247
|
+
* still triggers the regular order flows, including fulfillment, transactional emails,
|
|
248
|
+
* automations, and inventory changes.
|
|
249
|
+
*
|
|
250
|
+
* Default: `DISABLED`
|
|
251
|
+
* @internal
|
|
252
|
+
*/
|
|
253
|
+
testMode?: TestModeWithLiterals;
|
|
243
254
|
}
|
|
244
255
|
interface SubscriptionCheckboxField {
|
|
245
256
|
/**
|
|
@@ -270,6 +281,21 @@ interface CheckboxField {
|
|
|
270
281
|
/** Whether the checkbox is checked by default. */
|
|
271
282
|
checkedByDefault?: boolean | null;
|
|
272
283
|
}
|
|
284
|
+
declare enum TestMode {
|
|
285
|
+
/** Test Mode is off everywhere. */
|
|
286
|
+
DISABLED = "DISABLED",
|
|
287
|
+
/** Every checkout on the site runs as a test flow. */
|
|
288
|
+
ENABLED_TO_ALL = "ENABLED_TO_ALL",
|
|
289
|
+
/**
|
|
290
|
+
* Only the site owner and collaborators enter Test Mode. Other visitors get the regular checkout.
|
|
291
|
+
*
|
|
292
|
+
* >**Note:** has no effect on sites without a Wix member area, such as Headless sites. On these
|
|
293
|
+
* sites, `DISABLED` and `ENABLED_TO_OWNER_AND_COLLABORATORS` behave the same - use `ENABLED_TO_ALL` instead.
|
|
294
|
+
*/
|
|
295
|
+
ENABLED_TO_OWNER_AND_COLLABORATORS = "ENABLED_TO_OWNER_AND_COLLABORATORS"
|
|
296
|
+
}
|
|
297
|
+
/** @enumType */
|
|
298
|
+
type TestModeWithLiterals = TestMode | 'DISABLED' | 'ENABLED_TO_ALL' | 'ENABLED_TO_OWNER_AND_COLLABORATORS';
|
|
273
299
|
interface CheckoutBrand {
|
|
274
300
|
/** Checkout header. */
|
|
275
301
|
header?: CheckoutHeader;
|
|
@@ -1538,4 +1564,4 @@ declare function getEcommerceSettings(fields: RequestedFieldsWithLiterals[]): Pr
|
|
|
1538
1564
|
__applicationErrorsType?: GetEcommerceSettingsApplicationErrors;
|
|
1539
1565
|
}>;
|
|
1540
1566
|
|
|
1541
|
-
export { type AccountInfo, type ActionEvent, type ActiveProvider, type Address, Alignment, type AlignmentWithLiterals, type App, type AssignedFromFloatingReason, type BackgroundFill, type BackgroundFillOptionsOneOf, type BooleanFeature, type BusinessProperties, type CancelRequestedReason, type CheckboxField, CheckoutBillingFields, type CheckoutBillingFieldsWithLiterals, type CheckoutBrand, type CheckoutFields, type CheckoutFooter, type CheckoutGlobal, type CheckoutHeader, type CheckoutMain, type CheckoutPolicies, type CheckoutSettings, type ContactUsPolicy, type ContinueShopping, ContractSwitchClassification, type ContractSwitchClassificationWithLiterals, type ContractSwitchedReason, type CountryDeliveryProperties, type CustomCheckoutPolicy, type CustomTag, type DeliveryConfiguration, type DeliveryDestinationProperties, type Destination, DestinationScope, type DestinationScopeWithLiterals, type DigitalItemPolicy, type DiscountRulesConfiguration, DisplayType, type DisplayTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EcomSitePropertiesChangedEvent, type EcommerceSettings, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Error, ExpressButtonsCornerRadius, type ExpressButtonsCornerRadiusWithLiterals, type Feature, type FeatureCancelled, type FeatureCancelledReasonOneOf, type FeatureContext, type FeatureDisabled, type FeatureDisabledReasonOneOf, type FeatureEnabled, type FeatureEnabledReasonOneOf, type FeatureEvent, type FeatureEventEventOneOf, FeaturePeriod, type FeaturePeriodWithLiterals, type FeatureQuantityInfoOneOf, type FeatureQuotaUsageChanged, type FeatureUpdated, type FeatureUpdatedPreviousQuantityInfoOneOf, type FeatureUpdatedReasonOneOf, type File, type FocalPoint, type GetEcommerceSettingsApplicationErrors, type GetEcommerceSettingsRequest, type GetEcommerceSettingsResponse, type IdentificationData, type IdentificationDataIdOneOf, InputFieldBackgroundStyle, type InputFieldBackgroundStyleWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type Locale, type Logo, LogoSize, type LogoSizeWithLiterals, type ManualFeatureCreationReason, type ManualSyncReason, type MessageEnvelope, type MigratedFromLegacyReason, type NewFeatureReason, type Page, type Pages, type PrivacyPolicy, type QuotaExhaustedReason, type QuotaFeature, type QuotaInfo, type QuotaInfoEntry, type ReassignedFromSiteReason, type ReassignedToAnotherSiteReason, type ReplacedByAnotherSubscriptionReason, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ReturnPolicy, type ServicePluginConfiguration, type StreetAddress, type SubdivisionDeliveryProperties, type SubscriptionCheckboxField, type TaxConfiguration, type TermsAndConditionsPolicy, type TransferredFromAnotherAccountReason, type TransferredToAnotherAccountReason, TriggerFlow, type TriggerFlowWithLiterals, type URI, type URIs, type UnAssingedToFloatingReason, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getEcommerceSettings };
|
|
1567
|
+
export { type AccountInfo, type ActionEvent, type ActiveProvider, type Address, Alignment, type AlignmentWithLiterals, type App, type AssignedFromFloatingReason, type BackgroundFill, type BackgroundFillOptionsOneOf, type BooleanFeature, type BusinessProperties, type CancelRequestedReason, type CheckboxField, CheckoutBillingFields, type CheckoutBillingFieldsWithLiterals, type CheckoutBrand, type CheckoutFields, type CheckoutFooter, type CheckoutGlobal, type CheckoutHeader, type CheckoutMain, type CheckoutPolicies, type CheckoutSettings, type ContactUsPolicy, type ContinueShopping, ContractSwitchClassification, type ContractSwitchClassificationWithLiterals, type ContractSwitchedReason, type CountryDeliveryProperties, type CustomCheckoutPolicy, type CustomTag, type DeliveryConfiguration, type DeliveryDestinationProperties, type Destination, DestinationScope, type DestinationScopeWithLiterals, type DigitalItemPolicy, type DiscountRulesConfiguration, DisplayType, type DisplayTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EcomSitePropertiesChangedEvent, type EcommerceSettings, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Error, ExpressButtonsCornerRadius, type ExpressButtonsCornerRadiusWithLiterals, type Feature, type FeatureCancelled, type FeatureCancelledReasonOneOf, type FeatureContext, type FeatureDisabled, type FeatureDisabledReasonOneOf, type FeatureEnabled, type FeatureEnabledReasonOneOf, type FeatureEvent, type FeatureEventEventOneOf, FeaturePeriod, type FeaturePeriodWithLiterals, type FeatureQuantityInfoOneOf, type FeatureQuotaUsageChanged, type FeatureUpdated, type FeatureUpdatedPreviousQuantityInfoOneOf, type FeatureUpdatedReasonOneOf, type File, type FocalPoint, type GetEcommerceSettingsApplicationErrors, type GetEcommerceSettingsRequest, type GetEcommerceSettingsResponse, type IdentificationData, type IdentificationDataIdOneOf, InputFieldBackgroundStyle, type InputFieldBackgroundStyleWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type Locale, type Logo, LogoSize, type LogoSizeWithLiterals, type ManualFeatureCreationReason, type ManualSyncReason, type MessageEnvelope, type MigratedFromLegacyReason, type NewFeatureReason, type Page, type Pages, type PrivacyPolicy, type QuotaExhaustedReason, type QuotaFeature, type QuotaInfo, type QuotaInfoEntry, type ReassignedFromSiteReason, type ReassignedToAnotherSiteReason, type ReplacedByAnotherSubscriptionReason, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ReturnPolicy, type ServicePluginConfiguration, type StreetAddress, type SubdivisionDeliveryProperties, type SubscriptionCheckboxField, type TaxConfiguration, type TermsAndConditionsPolicy, TestMode, type TestModeWithLiterals, type TransferredFromAnotherAccountReason, type TransferredToAnotherAccountReason, TriggerFlow, type TriggerFlowWithLiterals, type URI, type URIs, type UnAssingedToFloatingReason, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getEcommerceSettings };
|
|
@@ -241,6 +241,17 @@ interface CheckoutFields {
|
|
|
241
241
|
* @internal
|
|
242
242
|
*/
|
|
243
243
|
purchaseRecommendationsEnabled?: boolean | null;
|
|
244
|
+
/**
|
|
245
|
+
* Who can enter Test Mode on the site's checkout. In Test Mode, the regular payment methods are
|
|
246
|
+
* hidden and checkout completes with a dedicated test payment method, so no real payment is
|
|
247
|
+
* processed. The resulting order is marked as a test order and excluded from analytics, but it
|
|
248
|
+
* still triggers the regular order flows, including fulfillment, transactional emails,
|
|
249
|
+
* automations, and inventory changes.
|
|
250
|
+
*
|
|
251
|
+
* Default: `DISABLED`
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
254
|
+
testMode?: TestModeWithLiterals;
|
|
244
255
|
}
|
|
245
256
|
interface SubscriptionCheckboxField {
|
|
246
257
|
/**
|
|
@@ -271,6 +282,21 @@ interface CheckboxField {
|
|
|
271
282
|
/** Whether the checkbox is checked by default. */
|
|
272
283
|
checkedByDefault?: boolean | null;
|
|
273
284
|
}
|
|
285
|
+
declare enum TestMode {
|
|
286
|
+
/** Test Mode is off everywhere. */
|
|
287
|
+
DISABLED = "DISABLED",
|
|
288
|
+
/** Every checkout on the site runs as a test flow. */
|
|
289
|
+
ENABLED_TO_ALL = "ENABLED_TO_ALL",
|
|
290
|
+
/**
|
|
291
|
+
* Only the site owner and collaborators enter Test Mode. Other visitors get the regular checkout.
|
|
292
|
+
*
|
|
293
|
+
* >**Note:** has no effect on sites without a Wix member area, such as Headless sites. On these
|
|
294
|
+
* sites, `DISABLED` and `ENABLED_TO_OWNER_AND_COLLABORATORS` behave the same - use `ENABLED_TO_ALL` instead.
|
|
295
|
+
*/
|
|
296
|
+
ENABLED_TO_OWNER_AND_COLLABORATORS = "ENABLED_TO_OWNER_AND_COLLABORATORS"
|
|
297
|
+
}
|
|
298
|
+
/** @enumType */
|
|
299
|
+
type TestModeWithLiterals = TestMode | 'DISABLED' | 'ENABLED_TO_ALL' | 'ENABLED_TO_OWNER_AND_COLLABORATORS';
|
|
274
300
|
interface CheckoutBrand {
|
|
275
301
|
/** Checkout header. */
|
|
276
302
|
header?: CheckoutHeader;
|
|
@@ -1623,4 +1649,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1623
1649
|
};
|
|
1624
1650
|
declare function getEcommerceSettings(): __PublicMethodMetaInfo<'GET', {}, GetEcommerceSettingsRequest$1, GetEcommerceSettingsRequest, GetEcommerceSettingsResponse$1, GetEcommerceSettingsResponse>;
|
|
1625
1651
|
|
|
1626
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActiveProvider as ActiveProviderOriginal, type Address as AddressOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type App as AppOriginal, type AssignedFromFloatingReason as AssignedFromFloatingReasonOriginal, type BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal, type BackgroundFill as BackgroundFillOriginal, type BooleanFeature as BooleanFeatureOriginal, type BusinessProperties as BusinessPropertiesOriginal, type CancelRequestedReason as CancelRequestedReasonOriginal, type CheckboxField as CheckboxFieldOriginal, CheckoutBillingFields as CheckoutBillingFieldsOriginal, type CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutFooter as CheckoutFooterOriginal, type CheckoutGlobal as CheckoutGlobalOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutMain as CheckoutMainOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type ContinueShopping as ContinueShoppingOriginal, ContractSwitchClassification as ContractSwitchClassificationOriginal, type ContractSwitchClassificationWithLiterals as ContractSwitchClassificationWithLiteralsOriginal, type ContractSwitchedReason as ContractSwitchedReasonOriginal, type CountryDeliveryProperties as CountryDeliveryPropertiesOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type CustomTag as CustomTagOriginal, type DeliveryConfiguration as DeliveryConfigurationOriginal, type DeliveryDestinationProperties as DeliveryDestinationPropertiesOriginal, type Destination as DestinationOriginal, DestinationScope as DestinationScopeOriginal, type DestinationScopeWithLiterals as DestinationScopeWithLiteralsOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, type DiscountRulesConfiguration as DiscountRulesConfigurationOriginal, DisplayType as DisplayTypeOriginal, type DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EcomSitePropertiesChangedEvent as EcomSitePropertiesChangedEventOriginal, type EcommerceSettings as EcommerceSettingsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Error as ErrorOriginal, ExpressButtonsCornerRadius as ExpressButtonsCornerRadiusOriginal, type ExpressButtonsCornerRadiusWithLiterals as ExpressButtonsCornerRadiusWithLiteralsOriginal, type FeatureCancelled as FeatureCancelledOriginal, type FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOfOriginal, type FeatureContext as FeatureContextOriginal, type FeatureDisabled as FeatureDisabledOriginal, type FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOfOriginal, type FeatureEnabled as FeatureEnabledOriginal, type FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOfOriginal, type FeatureEventEventOneOf as FeatureEventEventOneOfOriginal, type FeatureEvent as FeatureEventOriginal, type Feature as FeatureOriginal, FeaturePeriod as FeaturePeriodOriginal, type FeaturePeriodWithLiterals as FeaturePeriodWithLiteralsOriginal, type FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOfOriginal, type FeatureQuotaUsageChanged as FeatureQuotaUsageChangedOriginal, type FeatureUpdated as FeatureUpdatedOriginal, type FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOfOriginal, type FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOfOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type GetEcommerceSettingsApplicationErrors as GetEcommerceSettingsApplicationErrorsOriginal, type GetEcommerceSettingsRequest as GetEcommerceSettingsRequestOriginal, type GetEcommerceSettingsResponse as GetEcommerceSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, InputFieldBackgroundStyle as InputFieldBackgroundStyleOriginal, type InputFieldBackgroundStyleWithLiterals as InputFieldBackgroundStyleWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type Locale as LocaleOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type ManualFeatureCreationReason as ManualFeatureCreationReasonOriginal, type ManualSyncReason as ManualSyncReasonOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigratedFromLegacyReason as MigratedFromLegacyReasonOriginal, type NewFeatureReason as NewFeatureReasonOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type QuotaExhaustedReason as QuotaExhaustedReasonOriginal, type QuotaFeature as QuotaFeatureOriginal, type QuotaInfoEntry as QuotaInfoEntryOriginal, type QuotaInfo as QuotaInfoOriginal, type ReassignedFromSiteReason as ReassignedFromSiteReasonOriginal, type ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReasonOriginal, type ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReasonOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type ServicePluginConfiguration as ServicePluginConfigurationOriginal, type StreetAddress as StreetAddressOriginal, type SubdivisionDeliveryProperties as SubdivisionDeliveryPropertiesOriginal, type SubscriptionCheckboxField as SubscriptionCheckboxFieldOriginal, type TaxConfiguration as TaxConfigurationOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, type TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReasonOriginal, type TransferredToAnotherAccountReason as TransferredToAnotherAccountReasonOriginal, TriggerFlow as TriggerFlowOriginal, type TriggerFlowWithLiterals as TriggerFlowWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnAssingedToFloatingReason as UnAssingedToFloatingReasonOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getEcommerceSettings };
|
|
1652
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActiveProvider as ActiveProviderOriginal, type Address as AddressOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type App as AppOriginal, type AssignedFromFloatingReason as AssignedFromFloatingReasonOriginal, type BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal, type BackgroundFill as BackgroundFillOriginal, type BooleanFeature as BooleanFeatureOriginal, type BusinessProperties as BusinessPropertiesOriginal, type CancelRequestedReason as CancelRequestedReasonOriginal, type CheckboxField as CheckboxFieldOriginal, CheckoutBillingFields as CheckoutBillingFieldsOriginal, type CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutFooter as CheckoutFooterOriginal, type CheckoutGlobal as CheckoutGlobalOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutMain as CheckoutMainOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type ContinueShopping as ContinueShoppingOriginal, ContractSwitchClassification as ContractSwitchClassificationOriginal, type ContractSwitchClassificationWithLiterals as ContractSwitchClassificationWithLiteralsOriginal, type ContractSwitchedReason as ContractSwitchedReasonOriginal, type CountryDeliveryProperties as CountryDeliveryPropertiesOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type CustomTag as CustomTagOriginal, type DeliveryConfiguration as DeliveryConfigurationOriginal, type DeliveryDestinationProperties as DeliveryDestinationPropertiesOriginal, type Destination as DestinationOriginal, DestinationScope as DestinationScopeOriginal, type DestinationScopeWithLiterals as DestinationScopeWithLiteralsOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, type DiscountRulesConfiguration as DiscountRulesConfigurationOriginal, DisplayType as DisplayTypeOriginal, type DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EcomSitePropertiesChangedEvent as EcomSitePropertiesChangedEventOriginal, type EcommerceSettings as EcommerceSettingsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Error as ErrorOriginal, ExpressButtonsCornerRadius as ExpressButtonsCornerRadiusOriginal, type ExpressButtonsCornerRadiusWithLiterals as ExpressButtonsCornerRadiusWithLiteralsOriginal, type FeatureCancelled as FeatureCancelledOriginal, type FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOfOriginal, type FeatureContext as FeatureContextOriginal, type FeatureDisabled as FeatureDisabledOriginal, type FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOfOriginal, type FeatureEnabled as FeatureEnabledOriginal, type FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOfOriginal, type FeatureEventEventOneOf as FeatureEventEventOneOfOriginal, type FeatureEvent as FeatureEventOriginal, type Feature as FeatureOriginal, FeaturePeriod as FeaturePeriodOriginal, type FeaturePeriodWithLiterals as FeaturePeriodWithLiteralsOriginal, type FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOfOriginal, type FeatureQuotaUsageChanged as FeatureQuotaUsageChangedOriginal, type FeatureUpdated as FeatureUpdatedOriginal, type FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOfOriginal, type FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOfOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type GetEcommerceSettingsApplicationErrors as GetEcommerceSettingsApplicationErrorsOriginal, type GetEcommerceSettingsRequest as GetEcommerceSettingsRequestOriginal, type GetEcommerceSettingsResponse as GetEcommerceSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, InputFieldBackgroundStyle as InputFieldBackgroundStyleOriginal, type InputFieldBackgroundStyleWithLiterals as InputFieldBackgroundStyleWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type Locale as LocaleOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type ManualFeatureCreationReason as ManualFeatureCreationReasonOriginal, type ManualSyncReason as ManualSyncReasonOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigratedFromLegacyReason as MigratedFromLegacyReasonOriginal, type NewFeatureReason as NewFeatureReasonOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type QuotaExhaustedReason as QuotaExhaustedReasonOriginal, type QuotaFeature as QuotaFeatureOriginal, type QuotaInfoEntry as QuotaInfoEntryOriginal, type QuotaInfo as QuotaInfoOriginal, type ReassignedFromSiteReason as ReassignedFromSiteReasonOriginal, type ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReasonOriginal, type ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReasonOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type ServicePluginConfiguration as ServicePluginConfigurationOriginal, type StreetAddress as StreetAddressOriginal, type SubdivisionDeliveryProperties as SubdivisionDeliveryPropertiesOriginal, type SubscriptionCheckboxField as SubscriptionCheckboxFieldOriginal, type TaxConfiguration as TaxConfigurationOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, TestMode as TestModeOriginal, type TestModeWithLiterals as TestModeWithLiteralsOriginal, type TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReasonOriginal, type TransferredToAnotherAccountReason as TransferredToAnotherAccountReasonOriginal, TriggerFlow as TriggerFlowOriginal, type TriggerFlowWithLiterals as TriggerFlowWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnAssingedToFloatingReason as UnAssingedToFloatingReasonOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getEcommerceSettings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_ecommerce-settings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"fqdn": "wix.ecom.v1.ecommerce_settings"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "a10ca05c35e6b252695da4b934b1171e77c57be39f85376695747e96"
|
|
61
61
|
}
|
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
Alignment: () => Alignment,
|
|
24
|
-
CheckoutBillingFields: () => CheckoutBillingFields,
|
|
25
|
-
ContractSwitchClassification: () => ContractSwitchClassification,
|
|
26
|
-
DestinationScope: () => DestinationScope,
|
|
27
|
-
DisplayType: () => DisplayType,
|
|
28
|
-
ExpressButtonsCornerRadius: () => ExpressButtonsCornerRadius,
|
|
29
|
-
FeaturePeriod: () => FeaturePeriod,
|
|
30
|
-
InputFieldBackgroundStyle: () => InputFieldBackgroundStyle,
|
|
31
|
-
LogoSize: () => LogoSize,
|
|
32
|
-
RequestedFields: () => RequestedFields,
|
|
33
|
-
TriggerFlow: () => TriggerFlow,
|
|
34
|
-
WebhookIdentityType: () => WebhookIdentityType,
|
|
35
|
-
getEcommerceSettings: () => getEcommerceSettings4
|
|
36
|
-
});
|
|
37
|
-
module.exports = __toCommonJS(index_exports);
|
|
38
|
-
|
|
39
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.universal.ts
|
|
40
|
-
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
41
|
-
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
42
|
-
|
|
43
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.http.ts
|
|
44
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
45
|
-
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
46
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
47
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
48
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
49
|
-
function resolveWixEcomEcommerceSettingsV1EcommerceSettingsServiceUrl(opts) {
|
|
50
|
-
const domainToMappings = {
|
|
51
|
-
_: [
|
|
52
|
-
{
|
|
53
|
-
srcPath: "/_api/ecommerce-settings",
|
|
54
|
-
destPath: ""
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"editor._base_domain_": [
|
|
58
|
-
{
|
|
59
|
-
srcPath: "/_api/ecommerce-settings",
|
|
60
|
-
destPath: ""
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"blocks._base_domain_": [
|
|
64
|
-
{
|
|
65
|
-
srcPath: "/_api/ecommerce-settings",
|
|
66
|
-
destPath: ""
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"create.editorx": [
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/_api/ecommerce-settings",
|
|
72
|
-
destPath: ""
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"*.dev.wix-code.com": [
|
|
76
|
-
{
|
|
77
|
-
srcPath: "/_api/ecommerce-settings",
|
|
78
|
-
destPath: ""
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"editor.wixapps.net": [
|
|
82
|
-
{
|
|
83
|
-
srcPath: "/_api/ecommerce-settings",
|
|
84
|
-
destPath: ""
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"www._base_domain_": [
|
|
88
|
-
{
|
|
89
|
-
srcPath: "/_api/ecommerce-settings",
|
|
90
|
-
destPath: ""
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"www.wixapis.com": [
|
|
94
|
-
{
|
|
95
|
-
srcPath: "/_api/ecommerce-settings",
|
|
96
|
-
destPath: ""
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
};
|
|
100
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
101
|
-
}
|
|
102
|
-
var PACKAGE_NAME = "@wix/auto_sdk_ecom_ecommerce-settings";
|
|
103
|
-
function getEcommerceSettings(payload) {
|
|
104
|
-
function __getEcommerceSettings({ host }) {
|
|
105
|
-
const metadata = {
|
|
106
|
-
entityFqdn: "wix.ecom.v1.ecommerce_settings",
|
|
107
|
-
method: "GET",
|
|
108
|
-
methodFqn: "wix.ecom.ecommerce_settings.v1.EcommerceSettingsService.GetEcommerceSettings",
|
|
109
|
-
packageName: PACKAGE_NAME,
|
|
110
|
-
migrationOptions: {
|
|
111
|
-
optInTransformResponse: true
|
|
112
|
-
},
|
|
113
|
-
url: resolveWixEcomEcommerceSettingsV1EcommerceSettingsServiceUrl({
|
|
114
|
-
protoPath: "/v1/ecommerce-settings",
|
|
115
|
-
data: payload,
|
|
116
|
-
host
|
|
117
|
-
}),
|
|
118
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
119
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
120
|
-
{
|
|
121
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
122
|
-
paths: [
|
|
123
|
-
{ path: "ecommerceSettings.checkout.createdDate" },
|
|
124
|
-
{ path: "ecommerceSettings.checkout.updatedDate" },
|
|
125
|
-
{
|
|
126
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.logo.image.urlExpirationDate"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.urlExpirationDate"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.formBackgroundFill.image.urlExpirationDate"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.summaryBackgroundFill.image.urlExpirationDate"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
path: "ecommerceSettings.checkout.checkoutBrand.footer.backgroundFill.image.urlExpirationDate"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
144
|
-
paths: [
|
|
145
|
-
{
|
|
146
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.logo.image.focalPoint.x"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.logo.image.focalPoint.y"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.focalPoint.x"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.focalPoint.y"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.x"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.y"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.x"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.y"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
path: "ecommerceSettings.checkout.checkoutBrand.footer.backgroundFill.image.focalPoint.x"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
path: "ecommerceSettings.checkout.checkoutBrand.footer.backgroundFill.image.focalPoint.y"
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
}
|
|
177
|
-
])
|
|
178
|
-
};
|
|
179
|
-
return metadata;
|
|
180
|
-
}
|
|
181
|
-
return __getEcommerceSettings;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.universal.ts
|
|
185
|
-
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
186
|
-
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
187
|
-
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
188
|
-
var TriggerFlow = /* @__PURE__ */ ((TriggerFlow2) => {
|
|
189
|
-
TriggerFlow2["CART"] = "CART";
|
|
190
|
-
TriggerFlow2["CHECKOUT"] = "CHECKOUT";
|
|
191
|
-
return TriggerFlow2;
|
|
192
|
-
})(TriggerFlow || {});
|
|
193
|
-
var LogoSize = /* @__PURE__ */ ((LogoSize2) => {
|
|
194
|
-
LogoSize2["SMALL"] = "SMALL";
|
|
195
|
-
LogoSize2["MEDIUM"] = "MEDIUM";
|
|
196
|
-
LogoSize2["LARGE"] = "LARGE";
|
|
197
|
-
return LogoSize2;
|
|
198
|
-
})(LogoSize || {});
|
|
199
|
-
var Alignment = /* @__PURE__ */ ((Alignment2) => {
|
|
200
|
-
Alignment2["SIDE"] = "SIDE";
|
|
201
|
-
Alignment2["CENTER"] = "CENTER";
|
|
202
|
-
return Alignment2;
|
|
203
|
-
})(Alignment || {});
|
|
204
|
-
var DisplayType = /* @__PURE__ */ ((DisplayType2) => {
|
|
205
|
-
DisplayType2["TEXT"] = "TEXT";
|
|
206
|
-
DisplayType2["ICON"] = "ICON";
|
|
207
|
-
return DisplayType2;
|
|
208
|
-
})(DisplayType || {});
|
|
209
|
-
var ExpressButtonsCornerRadius = /* @__PURE__ */ ((ExpressButtonsCornerRadius2) => {
|
|
210
|
-
ExpressButtonsCornerRadius2["RECTANGLE"] = "RECTANGLE";
|
|
211
|
-
ExpressButtonsCornerRadius2["PILL"] = "PILL";
|
|
212
|
-
return ExpressButtonsCornerRadius2;
|
|
213
|
-
})(ExpressButtonsCornerRadius || {});
|
|
214
|
-
var InputFieldBackgroundStyle = /* @__PURE__ */ ((InputFieldBackgroundStyle2) => {
|
|
215
|
-
InputFieldBackgroundStyle2["WHITE"] = "WHITE";
|
|
216
|
-
InputFieldBackgroundStyle2["TRANSPARENT"] = "TRANSPARENT";
|
|
217
|
-
return InputFieldBackgroundStyle2;
|
|
218
|
-
})(InputFieldBackgroundStyle || {});
|
|
219
|
-
var CheckoutBillingFields = /* @__PURE__ */ ((CheckoutBillingFields2) => {
|
|
220
|
-
CheckoutBillingFields2["All_FIELDS"] = "All_FIELDS";
|
|
221
|
-
CheckoutBillingFields2["MINIMUM_REQUIRED_FIELDS"] = "MINIMUM_REQUIRED_FIELDS";
|
|
222
|
-
return CheckoutBillingFields2;
|
|
223
|
-
})(CheckoutBillingFields || {});
|
|
224
|
-
var DestinationScope = /* @__PURE__ */ ((DestinationScope2) => {
|
|
225
|
-
DestinationScope2["SPECIFIC_DESTINATIONS"] = "SPECIFIC_DESTINATIONS";
|
|
226
|
-
DestinationScope2["WORLDWIDE"] = "WORLDWIDE";
|
|
227
|
-
return DestinationScope2;
|
|
228
|
-
})(DestinationScope || {});
|
|
229
|
-
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
230
|
-
RequestedFields2["ADDITIONAL_FEES_SERVICE_PLUGIN"] = "ADDITIONAL_FEES_SERVICE_PLUGIN";
|
|
231
|
-
RequestedFields2["VALIDATIONS_SERVICE_PLUGIN"] = "VALIDATIONS_SERVICE_PLUGIN";
|
|
232
|
-
RequestedFields2["TAX"] = "TAX";
|
|
233
|
-
RequestedFields2["DISCOUNT_RULES"] = "DISCOUNT_RULES";
|
|
234
|
-
RequestedFields2["CHECKOUT"] = "CHECKOUT";
|
|
235
|
-
RequestedFields2["DELIVERY"] = "DELIVERY";
|
|
236
|
-
RequestedFields2["PREMIUM_SITE"] = "PREMIUM_SITE";
|
|
237
|
-
RequestedFields2["BUSINESS_INFO"] = "BUSINESS_INFO";
|
|
238
|
-
RequestedFields2["PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN"] = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN";
|
|
239
|
-
return RequestedFields2;
|
|
240
|
-
})(RequestedFields || {});
|
|
241
|
-
var FeaturePeriod = /* @__PURE__ */ ((FeaturePeriod2) => {
|
|
242
|
-
FeaturePeriod2["NO_PERIOD"] = "NO_PERIOD";
|
|
243
|
-
FeaturePeriod2["MILLISECOND"] = "MILLISECOND";
|
|
244
|
-
FeaturePeriod2["SECOND"] = "SECOND";
|
|
245
|
-
FeaturePeriod2["MINUTE"] = "MINUTE";
|
|
246
|
-
FeaturePeriod2["HOUR"] = "HOUR";
|
|
247
|
-
FeaturePeriod2["DAY"] = "DAY";
|
|
248
|
-
FeaturePeriod2["WEEK"] = "WEEK";
|
|
249
|
-
FeaturePeriod2["MONTH"] = "MONTH";
|
|
250
|
-
FeaturePeriod2["YEAR"] = "YEAR";
|
|
251
|
-
return FeaturePeriod2;
|
|
252
|
-
})(FeaturePeriod || {});
|
|
253
|
-
var ContractSwitchClassification = /* @__PURE__ */ ((ContractSwitchClassification2) => {
|
|
254
|
-
ContractSwitchClassification2["UNKNOWN"] = "UNKNOWN";
|
|
255
|
-
ContractSwitchClassification2["UPGRADE"] = "UPGRADE";
|
|
256
|
-
ContractSwitchClassification2["DOWNGRADE"] = "DOWNGRADE";
|
|
257
|
-
ContractSwitchClassification2["PRICE_INCREASE"] = "PRICE_INCREASE";
|
|
258
|
-
return ContractSwitchClassification2;
|
|
259
|
-
})(ContractSwitchClassification || {});
|
|
260
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
261
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
262
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
263
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
264
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
265
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
266
|
-
return WebhookIdentityType2;
|
|
267
|
-
})(WebhookIdentityType || {});
|
|
268
|
-
async function getEcommerceSettings2(fields) {
|
|
269
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
270
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ fields });
|
|
271
|
-
const reqOpts = getEcommerceSettings(payload);
|
|
272
|
-
sideEffects?.onSiteCall?.();
|
|
273
|
-
try {
|
|
274
|
-
const result = await httpClient.request(reqOpts);
|
|
275
|
-
sideEffects?.onSuccess?.(result);
|
|
276
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
277
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
278
|
-
{
|
|
279
|
-
transformFn: import_image.transformRESTImageToSDKImage,
|
|
280
|
-
paths: [
|
|
281
|
-
{
|
|
282
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.logo.image"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.formBackgroundFill.image"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.summaryBackgroundFill.image"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
path: "ecommerceSettings.checkout.checkoutBrand.footer.backgroundFill.image"
|
|
295
|
-
}
|
|
296
|
-
]
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
transformFn: import_address.transformRESTAddressToSDKAddress,
|
|
300
|
-
paths: [{ path: "ecommerceSettings.businessInfo.address" }]
|
|
301
|
-
}
|
|
302
|
-
])
|
|
303
|
-
);
|
|
304
|
-
} catch (err) {
|
|
305
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
306
|
-
err,
|
|
307
|
-
{
|
|
308
|
-
spreadPathsToArguments: {},
|
|
309
|
-
explicitPathsToArguments: { fields: "$[0]" },
|
|
310
|
-
singleArgumentUnchanged: false
|
|
311
|
-
},
|
|
312
|
-
["fields"]
|
|
313
|
-
);
|
|
314
|
-
sideEffects?.onError?.(err);
|
|
315
|
-
throw transformedError;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.public.ts
|
|
320
|
-
function getEcommerceSettings3(httpClient) {
|
|
321
|
-
return (fields) => getEcommerceSettings2(
|
|
322
|
-
fields,
|
|
323
|
-
// @ts-ignore
|
|
324
|
-
{ httpClient }
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.context.ts
|
|
329
|
-
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
330
|
-
var getEcommerceSettings4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getEcommerceSettings3);
|
|
331
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
332
|
-
0 && (module.exports = {
|
|
333
|
-
Alignment,
|
|
334
|
-
CheckoutBillingFields,
|
|
335
|
-
ContractSwitchClassification,
|
|
336
|
-
DestinationScope,
|
|
337
|
-
DisplayType,
|
|
338
|
-
ExpressButtonsCornerRadius,
|
|
339
|
-
FeaturePeriod,
|
|
340
|
-
InputFieldBackgroundStyle,
|
|
341
|
-
LogoSize,
|
|
342
|
-
RequestedFields,
|
|
343
|
-
TriggerFlow,
|
|
344
|
-
WebhookIdentityType,
|
|
345
|
-
getEcommerceSettings
|
|
346
|
-
});
|
|
347
|
-
//# sourceMappingURL=index.js.map
|