@wix/auto_sdk_ecom_subscription-contracts 1.0.53 → 1.0.55
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 +20 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +92 -1
- package/build/cjs/index.typings.js +20 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +20 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +20 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +92 -1
- package/build/es/index.typings.mjs +20 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +20 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +20 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +92 -1
- package/build/internal/cjs/index.typings.js +20 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +20 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +20 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +92 -1
- package/build/internal/es/index.typings.mjs +20 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +20 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1677,6 +1677,97 @@ interface ActionEvent {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
interface Empty {
|
|
1679
1679
|
}
|
|
1680
|
+
interface BulkCreateSubscriptionContractsRequest {
|
|
1681
|
+
/**
|
|
1682
|
+
* List of SubscriptionContracts to create.
|
|
1683
|
+
* @minSize 1
|
|
1684
|
+
* @maxSize 100
|
|
1685
|
+
*/
|
|
1686
|
+
subscriptionContracts?: SubscriptionContract[];
|
|
1687
|
+
/**
|
|
1688
|
+
* Whether to return the full subscription contract entities in the response.
|
|
1689
|
+
*
|
|
1690
|
+
* Default: `false`
|
|
1691
|
+
*/
|
|
1692
|
+
returnEntity?: boolean;
|
|
1693
|
+
}
|
|
1694
|
+
interface BulkCreateSubscriptionContractsResponse {
|
|
1695
|
+
/**
|
|
1696
|
+
* Results of the contract created operation.
|
|
1697
|
+
* @minSize 1
|
|
1698
|
+
* @maxSize 100
|
|
1699
|
+
*/
|
|
1700
|
+
results?: BulkSubscriptionContractResult[];
|
|
1701
|
+
/** Bulk action metadata. */
|
|
1702
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1703
|
+
}
|
|
1704
|
+
interface BulkSubscriptionContractResult {
|
|
1705
|
+
/** Metadata about a single update operation. */
|
|
1706
|
+
itemMetadata?: ItemMetadata;
|
|
1707
|
+
/**
|
|
1708
|
+
* Created subscription contract.
|
|
1709
|
+
*
|
|
1710
|
+
* Only present if `returnEntity` was `true`.
|
|
1711
|
+
*/
|
|
1712
|
+
item?: SubscriptionContract;
|
|
1713
|
+
}
|
|
1714
|
+
interface ItemMetadata {
|
|
1715
|
+
/**
|
|
1716
|
+
* Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
|
|
1717
|
+
* @format GUID
|
|
1718
|
+
*/
|
|
1719
|
+
_id?: string | null;
|
|
1720
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
1721
|
+
originalIndex?: number;
|
|
1722
|
+
/** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
|
|
1723
|
+
success?: boolean;
|
|
1724
|
+
/** Details about the error in case of failure. */
|
|
1725
|
+
error?: ApplicationError;
|
|
1726
|
+
}
|
|
1727
|
+
interface ApplicationError {
|
|
1728
|
+
/** Error code. */
|
|
1729
|
+
code?: string;
|
|
1730
|
+
/** Description of the error. */
|
|
1731
|
+
description?: string;
|
|
1732
|
+
/** Data related to the error. */
|
|
1733
|
+
data?: Record<string, any> | null;
|
|
1734
|
+
}
|
|
1735
|
+
interface BulkActionMetadata {
|
|
1736
|
+
/** Number of items that were successfully processed. */
|
|
1737
|
+
totalSuccesses?: number;
|
|
1738
|
+
/** Number of items that couldn't be processed. */
|
|
1739
|
+
totalFailures?: number;
|
|
1740
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1741
|
+
undetailedFailures?: number;
|
|
1742
|
+
}
|
|
1743
|
+
interface BulkUpdateSubscriptionContractsRequest {
|
|
1744
|
+
/**
|
|
1745
|
+
* List of SubscriptionContracts to update.
|
|
1746
|
+
* @minSize 1
|
|
1747
|
+
* @maxSize 100
|
|
1748
|
+
*/
|
|
1749
|
+
subscriptionContracts?: MaskedSubscriptionContract[];
|
|
1750
|
+
/**
|
|
1751
|
+
* Whether to return the full subscription contract entities in the response.
|
|
1752
|
+
*
|
|
1753
|
+
* Default: `false`
|
|
1754
|
+
*/
|
|
1755
|
+
returnEntity?: boolean;
|
|
1756
|
+
}
|
|
1757
|
+
interface MaskedSubscriptionContract {
|
|
1758
|
+
/** Subscription contract to be updated. */
|
|
1759
|
+
subscriptionContract?: SubscriptionContract;
|
|
1760
|
+
}
|
|
1761
|
+
interface BulkUpdateSubscriptionContractsResponse {
|
|
1762
|
+
/**
|
|
1763
|
+
* Results of the contract updated operation.
|
|
1764
|
+
* @minSize 1
|
|
1765
|
+
* @maxSize 100
|
|
1766
|
+
*/
|
|
1767
|
+
results?: BulkSubscriptionContractResult[];
|
|
1768
|
+
/** Metadata about the bulk operation. */
|
|
1769
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1770
|
+
}
|
|
1680
1771
|
interface MessageEnvelope {
|
|
1681
1772
|
/**
|
|
1682
1773
|
* App instance ID.
|
|
@@ -1955,4 +2046,4 @@ interface SubscriptionContractsQueryBuilder {
|
|
|
1955
2046
|
find: () => Promise<SubscriptionContractsQueryResult>;
|
|
1956
2047
|
}
|
|
1957
2048
|
|
|
1958
|
-
export { type ActionEvent, type AdditionalFee, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, type Color, 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, 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 ItemModifier, type ItemTaxFullDetails, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemDiscount, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, 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 Price, type PriceDescription, type PriceSummary, type ProductName, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type SubscriptionContract, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TranslatableString, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, 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 };
|
|
2049
|
+
export { type ActionEvent, type AdditionalFee, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, type Color, 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, 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 ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemDiscount, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, 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 Price, type PriceDescription, type PriceSummary, type ProductName, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type SubscriptionContract, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TranslatableString, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, 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 };
|
|
@@ -53,7 +53,26 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
53
53
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
54
54
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
55
55
|
function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
56
|
-
const domainToMappings = {
|
|
56
|
+
const domainToMappings = {
|
|
57
|
+
"www.wixapis.com": [
|
|
58
|
+
{
|
|
59
|
+
srcPath: "/ecom/subscription-contracts/v1/subscription-contracts",
|
|
60
|
+
destPath: "/v1/subscription-contracts"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"*.dev.wix-code.com": [
|
|
64
|
+
{
|
|
65
|
+
srcPath: "/ecom/subscription-contracts/v1/subscription-contracts",
|
|
66
|
+
destPath: "/v1/subscription-contracts"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
_: [
|
|
70
|
+
{
|
|
71
|
+
srcPath: "/ecom/subscription-contracts/v1/subscription-contracts",
|
|
72
|
+
destPath: "/v1/subscription-contracts"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
};
|
|
57
76
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
58
77
|
}
|
|
59
78
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_subscription-contracts";
|