@wix/auto_sdk_ecom_checkout-templates 1.0.42 → 1.0.44

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.
@@ -1,7 +1,8 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { CheckoutTemplate, CreateCheckoutTemplateApplicationErrors, UpdateCheckoutTemplate, UpdateCheckoutTemplateApplicationErrors, CheckoutTemplatesQueryBuilder, CreateCheckoutFromTemplateResponse, CreateCheckoutFromTemplateApplicationErrors, RawHttpResponse, CreateAndRedirectToCheckoutApplicationErrors, CheckoutTemplateCreatedEnvelope, CheckoutTemplateDeletedEnvelope, CheckoutTemplateUpdatedEnvelope, CheckoutTemplateUsedEnvelope } from './index.typings.js';
3
3
  export { ActionEvent, AdditionalFee, AdditionalFeeSource, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BaseEventMetadata, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelType, Charge, ChargeType, Checkout, CheckoutCustomization, CheckoutTemplateUsed, CheckoutTemplatesQueryResult, Color, ConversionInfo, Coupon, CreateAndRedirectToCheckoutRequest, CreateCheckoutFromTemplateRequest, CreateCheckoutTemplateRequest, CreateCheckoutTemplateResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomContentReference, CustomField, CustomLineItem, CustomSettings, DeleteCheckoutTemplateRequest, DeleteCheckoutTemplateResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCheckoutTemplateRequest, GetCheckoutTemplateResponse, GiftCard, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, ManualCalculationReason, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInOther, Other, OtherCharge, PaymentOption, PaymentOptionType, PhysicalProperties, PickupDetails, PickupMethod, PlainTextValue, Policy, PriceDescription, PriceSummary, ProductName, QueryCheckoutTemplatesRequest, QueryCheckoutTemplatesResponse, RateType, Region, RestoreInfo, RuleType, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, Sorting, Status, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, Title, TranslatableString, UpdateCheckoutTemplateRequest, UpdateCheckoutTemplateResponse, V1ItemModifier, V1LineItem, V1ModifierGroup, ValidationError, VatId, VatType, Violation, WebClientCustomization, WebhookIdentityType, WeightUnit } from './index.typings.js';
4
4
 
5
+ type CheckoutTemplateNonNullablePaths = `status` | `customization.webClient.disabledContinueShoppingButton` | `customization.webClient.disabledPolicyAgreementCheckbox` | `customization.lockedGiftCard` | `customization.lockedCoupon` | `customization.disabledManualPayment` | `lineItems` | `lineItems.${number}.quantity` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.catalogOverrideFields.productName.original` | `lineItems.${number}.catalogOverrideFields.physicalProperties.shippable` | `lineItems.${number}.catalogOverrideFields.paymentOption.value` | `customLineItems` | `customLineItems.${number}.quantity` | `customLineItems.${number}.price` | `customLineItems.${number}.priceDescription.original` | `customLineItems.${number}.productName.original` | `customLineItems.${number}.itemType.preset` | `customLineItems.${number}.itemType.custom` | `customLineItems.${number}.physicalProperties.shippable` | `customLineItems.${number}.paymentOption` | `customLineItems.${number}.catalogReference.catalogItemId` | `customLineItems.${number}.catalogReference.appId` | `customLineItems.${number}.savePaymentMethod` | `customLineItems.${number}.membersOnly` | `customLineItems.${number}.taxableAddress.addressType` | `customContentReference.appId` | `customContentReference.componentId` | `externalReference.appId`;
5
6
  declare function createCheckoutTemplate$1(httpClient: HttpClient): CreateCheckoutTemplateSignature;
6
7
  interface CreateCheckoutTemplateSignature {
7
8
  /**
@@ -20,8 +21,8 @@ interface CreateCheckoutTemplateSignature {
20
21
  * @param - Checkout template to create.
21
22
  * @returns Created checkout template.
22
23
  */
23
- (checkoutTemplate: CheckoutTemplate): Promise<CheckoutTemplate & {
24
- __applicationErrorsType?: CreateCheckoutTemplateApplicationErrors | undefined;
24
+ (checkoutTemplate: NonNullablePaths<CheckoutTemplate, `customLineItems.${number}.descriptionLines.${number}.name` | `customLineItems.${number}.itemType` | `customLineItems.${number}.productName` | `customLineItems.${number}.quantity` | `lineItems.${number}.catalogReference` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.quantity`>): Promise<NonNullablePaths<CheckoutTemplate, CheckoutTemplateNonNullablePaths> & {
25
+ __applicationErrorsType?: CreateCheckoutTemplateApplicationErrors;
25
26
  }>;
26
27
  }
27
28
  declare function getCheckoutTemplate$1(httpClient: HttpClient): GetCheckoutTemplateSignature;
@@ -31,7 +32,7 @@ interface GetCheckoutTemplateSignature {
31
32
  * @param - ID of the checkout template to retrieve.
32
33
  * @returns Retrieved checkout template.
33
34
  */
34
- (checkoutTemplateId: string): Promise<CheckoutTemplate>;
35
+ (checkoutTemplateId: string): Promise<NonNullablePaths<CheckoutTemplate, CheckoutTemplateNonNullablePaths>>;
35
36
  }
36
37
  declare function updateCheckoutTemplate$1(httpClient: HttpClient): UpdateCheckoutTemplateSignature;
37
38
  interface UpdateCheckoutTemplateSignature {
@@ -44,8 +45,8 @@ interface UpdateCheckoutTemplateSignature {
44
45
  * @param - Checkout template info to update.
45
46
  * @returns Updated checkout template.
46
47
  */
47
- (_id: string, checkoutTemplate: UpdateCheckoutTemplate): Promise<CheckoutTemplate & {
48
- __applicationErrorsType?: UpdateCheckoutTemplateApplicationErrors | undefined;
48
+ (_id: string, checkoutTemplate: UpdateCheckoutTemplate): Promise<NonNullablePaths<CheckoutTemplate, CheckoutTemplateNonNullablePaths> & {
49
+ __applicationErrorsType?: UpdateCheckoutTemplateApplicationErrors;
49
50
  }>;
50
51
  }
51
52
  declare function deleteCheckoutTemplate$1(httpClient: HttpClient): DeleteCheckoutTemplateSignature;
@@ -90,8 +91,8 @@ interface CreateCheckoutFromTemplateSignature {
90
91
  * @param - ID of the checkout template to use to create a checkout from.
91
92
  * @param - ID of the site associated with the checkout template.
92
93
  */
93
- (checkoutTemplateId: string, siteId: string): Promise<CreateCheckoutFromTemplateResponse & {
94
- __applicationErrorsType?: CreateCheckoutFromTemplateApplicationErrors | undefined;
94
+ (checkoutTemplateId: string, siteId: string): Promise<NonNullablePaths<CreateCheckoutFromTemplateResponse, `checkoutId` | `checkoutUrl`> & {
95
+ __applicationErrorsType?: CreateCheckoutFromTemplateApplicationErrors;
95
96
  }>;
96
97
  }
97
98
  declare function createAndRedirectToCheckout$1(httpClient: HttpClient): CreateAndRedirectToCheckoutSignature;
@@ -108,8 +109,8 @@ interface CreateAndRedirectToCheckoutSignature {
108
109
  * @param - ID of the checkout template to use to create a checkout.
109
110
  * @param - ID of the site associated with the checkout template.
110
111
  */
111
- (checkoutTemplateId: string, siteId: string): Promise<RawHttpResponse & {
112
- __applicationErrorsType?: CreateAndRedirectToCheckoutApplicationErrors | undefined;
112
+ (checkoutTemplateId: string, siteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`> & {
113
+ __applicationErrorsType?: CreateAndRedirectToCheckoutApplicationErrors;
113
114
  }>;
114
115
  }
115
116
  declare const onCheckoutTemplateCreated$1: EventDefinition<CheckoutTemplateCreatedEnvelope, "wix.ecom.v1.checkout_template_created">;