@wix/auto_sdk_ecom_subscription-contracts 1.0.117 → 1.0.118
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 +27 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +65 -22
- package/build/cjs/index.typings.js +27 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +65 -22
- package/build/cjs/meta.js +27 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +26 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +65 -22
- package/build/es/index.typings.mjs +26 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +65 -22
- package/build/es/meta.mjs +26 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +27 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +99 -19
- package/build/internal/cjs/index.typings.js +27 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +65 -22
- package/build/internal/cjs/meta.js +27 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +26 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +99 -19
- package/build/internal/es/index.typings.mjs +26 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +65 -22
- package/build/internal/es/meta.mjs +26 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -884,6 +884,70 @@ declare enum TaxableAddressType {
|
|
|
884
884
|
}
|
|
885
885
|
/** @enumType */
|
|
886
886
|
type TaxableAddressTypeWithLiterals = TaxableAddressType | 'BUSINESS' | 'BILLING' | 'SHIPPING';
|
|
887
|
+
/**
|
|
888
|
+
* Decimal-quantity metadata for a line item.
|
|
889
|
+
*
|
|
890
|
+
* Set on a line item that represents a non-integer-quantity purchase
|
|
891
|
+
* (e.g. "2.75 square meters of fake grass", "1.5 kg of sugar",
|
|
892
|
+
* "0.75 hours of consultation"). When set, the line item must have
|
|
893
|
+
* `fixedQuantity` = true.
|
|
894
|
+
*
|
|
895
|
+
* The decimal value lives in `value`. When `decimalQuantity` is set,
|
|
896
|
+
* consumers read the human-readable quantity from `value` rather
|
|
897
|
+
* than from `lineItem.quantity`.
|
|
898
|
+
*/
|
|
899
|
+
interface DecimalQuantity extends DecimalQuantityUnitOneOf {
|
|
900
|
+
}
|
|
901
|
+
/** @oneof */
|
|
902
|
+
interface DecimalQuantityUnitOneOf {
|
|
903
|
+
}
|
|
904
|
+
interface TranslatableString {
|
|
905
|
+
/**
|
|
906
|
+
* __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
907
|
+
*
|
|
908
|
+
* Min: 1 character.
|
|
909
|
+
* Max: 200 characters.
|
|
910
|
+
* @minLength 1
|
|
911
|
+
* @maxLength 200
|
|
912
|
+
*/
|
|
913
|
+
original?: string;
|
|
914
|
+
/**
|
|
915
|
+
* String translated into the buyer's language.
|
|
916
|
+
*
|
|
917
|
+
* Min: 1 character.
|
|
918
|
+
* Max: 400 characters.
|
|
919
|
+
* Default: Same as `original`.
|
|
920
|
+
* @minLength 1
|
|
921
|
+
* @maxLength 400
|
|
922
|
+
*/
|
|
923
|
+
translated?: string | null;
|
|
924
|
+
}
|
|
925
|
+
declare enum MeasurementUnit {
|
|
926
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
927
|
+
ML = "ML",
|
|
928
|
+
CL = "CL",
|
|
929
|
+
L = "L",
|
|
930
|
+
CBM = "CBM",
|
|
931
|
+
MG = "MG",
|
|
932
|
+
G = "G",
|
|
933
|
+
KG = "KG",
|
|
934
|
+
MM = "MM",
|
|
935
|
+
CM = "CM",
|
|
936
|
+
M = "M",
|
|
937
|
+
SQM = "SQM",
|
|
938
|
+
OZ = "OZ",
|
|
939
|
+
LB = "LB",
|
|
940
|
+
FLOZ = "FLOZ",
|
|
941
|
+
PT = "PT",
|
|
942
|
+
QT = "QT",
|
|
943
|
+
GAL = "GAL",
|
|
944
|
+
IN = "IN",
|
|
945
|
+
FT = "FT",
|
|
946
|
+
YD = "YD",
|
|
947
|
+
SQFT = "SQFT"
|
|
948
|
+
}
|
|
949
|
+
/** @enumType */
|
|
950
|
+
type MeasurementUnitWithLiterals = MeasurementUnit | 'UNSPECIFIED' | 'ML' | 'CL' | 'L' | 'CBM' | 'MG' | 'G' | 'KG' | 'MM' | 'CM' | 'M' | 'SQM' | 'OZ' | 'LB' | 'FLOZ' | 'PT' | 'QT' | 'GAL' | 'IN' | 'FT' | 'YD' | 'SQFT';
|
|
887
951
|
interface ExtendedFields {
|
|
888
952
|
/**
|
|
889
953
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -911,27 +975,6 @@ interface ModifierGroup {
|
|
|
911
975
|
*/
|
|
912
976
|
modifiers?: ItemModifier[];
|
|
913
977
|
}
|
|
914
|
-
interface TranslatableString {
|
|
915
|
-
/**
|
|
916
|
-
* __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
917
|
-
*
|
|
918
|
-
* Min: 1 character.
|
|
919
|
-
* Max: 200 characters.
|
|
920
|
-
* @minLength 1
|
|
921
|
-
* @maxLength 200
|
|
922
|
-
*/
|
|
923
|
-
original?: string;
|
|
924
|
-
/**
|
|
925
|
-
* String translated into the buyer's language.
|
|
926
|
-
*
|
|
927
|
-
* Min: 1 character.
|
|
928
|
-
* Max: 400 characters.
|
|
929
|
-
* Default: Same as `original`.
|
|
930
|
-
* @minLength 1
|
|
931
|
-
* @maxLength 400
|
|
932
|
-
*/
|
|
933
|
-
translated?: string | null;
|
|
934
|
-
}
|
|
935
978
|
interface ItemModifier {
|
|
936
979
|
/**
|
|
937
980
|
* Modifier ID.
|
|
@@ -2767,4 +2810,4 @@ declare const utils: {
|
|
|
2767
2810
|
};
|
|
2768
2811
|
};
|
|
2769
2812
|
|
|
2770
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionInitiator, type ActionInitiatorWithLiterals, type ActivityAuthor, type ActivityAuthorValueOneOf, ActivityType, type ActivityTypeWithLiterals, type AdditionalFee, type AdditionalFeeDelta, type AdditionalFeeDeltaDeltaDetailsOneOf, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDelta, type AppliedDiscountDeltaDeltaDetailsOneOf, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BillingSettings, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, ChangeType, type ChangeTypeWithLiterals, type ChangesAppliedActivity, type ChangesAppliedActivityTargetOneOf, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type CommitSubscriptionContractChangesRequest, type CommitSubscriptionContractChangesResponse, type CommonQueryWithEntityContext, type ContractChange, type ContractChangeValueOneOf, type ContractTarget, type Coupon, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DigitalFile, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemChanges, type LineItemDelta, type LineItemDiscount, type LineItemQuantityChange, LineItemQuantityChangeType, type LineItemQuantityChangeTypeWithLiterals, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type ManagedAdditionalFee, type ManagedDiscount, type ManagedLineItem, type MaskedSubscriptionContract, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, type PlatformFeeSummary, type Price, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestockLocation, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, SpecificItemsCouponBehavior, type SpecificItemsCouponBehaviorWithLiterals, type StreetAddress, type SubscriptionCommitSettings, type SubscriptionContract, type SubscriptionContractActivity, type SubscriptionContractActivityContentOneOf, type SubscriptionContractActivityTargetOneOf, type SubscriptionContractCanceled, type SubscriptionContractChangesCommitted, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractDiffs, type SubscriptionContractExpired, type SubscriptionContractQuery, type SubscriptionContractQuerySpec, type SubscriptionContractSettings, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, SubscriptionSettingsProductPeriodAlignment, type SubscriptionSettingsProductPeriodAlignmentWithLiterals, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TotalPriceChange, type TranslatableString, type TranslatedValue, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1BillingSettings, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts, typedQuerySubscriptionContracts, utils };
|
|
2813
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionInitiator, type ActionInitiatorWithLiterals, type ActivityAuthor, type ActivityAuthorValueOneOf, ActivityType, type ActivityTypeWithLiterals, type AdditionalFee, type AdditionalFeeDelta, type AdditionalFeeDeltaDeltaDetailsOneOf, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDelta, type AppliedDiscountDeltaDeltaDetailsOneOf, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BillingSettings, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, ChangeType, type ChangeTypeWithLiterals, type ChangesAppliedActivity, type ChangesAppliedActivityTargetOneOf, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type CommitSubscriptionContractChangesRequest, type CommitSubscriptionContractChangesResponse, type CommonQueryWithEntityContext, type ContractChange, type ContractChangeValueOneOf, type ContractTarget, type Coupon, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type DecimalQuantity, type DecimalQuantityUnitOneOf, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DigitalFile, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemChanges, type LineItemDelta, type LineItemDiscount, type LineItemQuantityChange, LineItemQuantityChangeType, type LineItemQuantityChangeTypeWithLiterals, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type ManagedAdditionalFee, type ManagedDiscount, type ManagedLineItem, type MaskedSubscriptionContract, MeasurementUnit, type MeasurementUnitWithLiterals, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, type PlatformFeeSummary, type Price, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestockLocation, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, SpecificItemsCouponBehavior, type SpecificItemsCouponBehaviorWithLiterals, type StreetAddress, type SubscriptionCommitSettings, type SubscriptionContract, type SubscriptionContractActivity, type SubscriptionContractActivityContentOneOf, type SubscriptionContractActivityTargetOneOf, type SubscriptionContractCanceled, type SubscriptionContractChangesCommitted, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractDiffs, type SubscriptionContractExpired, type SubscriptionContractQuery, type SubscriptionContractQuerySpec, type SubscriptionContractSettings, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, SubscriptionSettingsProductPeriodAlignment, type SubscriptionSettingsProductPeriodAlignmentWithLiterals, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TotalPriceChange, type TranslatableString, type TranslatedValue, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1BillingSettings, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts, typedQuerySubscriptionContracts, utils };
|
|
@@ -312,6 +312,31 @@ var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
|
|
|
312
312
|
TaxableAddressType2["SHIPPING"] = "SHIPPING";
|
|
313
313
|
return TaxableAddressType2;
|
|
314
314
|
})(TaxableAddressType || {});
|
|
315
|
+
var MeasurementUnit = /* @__PURE__ */ ((MeasurementUnit2) => {
|
|
316
|
+
MeasurementUnit2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
317
|
+
MeasurementUnit2["ML"] = "ML";
|
|
318
|
+
MeasurementUnit2["CL"] = "CL";
|
|
319
|
+
MeasurementUnit2["L"] = "L";
|
|
320
|
+
MeasurementUnit2["CBM"] = "CBM";
|
|
321
|
+
MeasurementUnit2["MG"] = "MG";
|
|
322
|
+
MeasurementUnit2["G"] = "G";
|
|
323
|
+
MeasurementUnit2["KG"] = "KG";
|
|
324
|
+
MeasurementUnit2["MM"] = "MM";
|
|
325
|
+
MeasurementUnit2["CM"] = "CM";
|
|
326
|
+
MeasurementUnit2["M"] = "M";
|
|
327
|
+
MeasurementUnit2["SQM"] = "SQM";
|
|
328
|
+
MeasurementUnit2["OZ"] = "OZ";
|
|
329
|
+
MeasurementUnit2["LB"] = "LB";
|
|
330
|
+
MeasurementUnit2["FLOZ"] = "FLOZ";
|
|
331
|
+
MeasurementUnit2["PT"] = "PT";
|
|
332
|
+
MeasurementUnit2["QT"] = "QT";
|
|
333
|
+
MeasurementUnit2["GAL"] = "GAL";
|
|
334
|
+
MeasurementUnit2["IN"] = "IN";
|
|
335
|
+
MeasurementUnit2["FT"] = "FT";
|
|
336
|
+
MeasurementUnit2["YD"] = "YD";
|
|
337
|
+
MeasurementUnit2["SQFT"] = "SQFT";
|
|
338
|
+
return MeasurementUnit2;
|
|
339
|
+
})(MeasurementUnit || {});
|
|
315
340
|
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
316
341
|
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
317
342
|
WeightUnit2["KG"] = "KG";
|
|
@@ -597,6 +622,7 @@ export {
|
|
|
597
622
|
ItemTypePreset,
|
|
598
623
|
JurisdictionType,
|
|
599
624
|
LineItemQuantityChangeType,
|
|
625
|
+
MeasurementUnit,
|
|
600
626
|
PaymentOptionType,
|
|
601
627
|
PickupMethod,
|
|
602
628
|
ProductPeriodAlignment,
|