@wix/auto_sdk_ecom_subscription-contracts 1.0.113 → 1.0.114

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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js +31 -3
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +371 -5
  5. package/build/cjs/index.typings.js +26 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +370 -4
  8. package/build/cjs/meta.js +26 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +394 -0
  11. package/build/cjs/schemas.js +682 -8
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +2 -2
  14. package/build/es/index.mjs +28 -3
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +371 -5
  17. package/build/es/index.typings.mjs +23 -2
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +370 -4
  20. package/build/es/meta.mjs +23 -2
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +394 -0
  23. package/build/es/schemas.mjs +682 -8
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +2 -2
  26. package/build/internal/cjs/index.js +31 -3
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +371 -5
  29. package/build/internal/cjs/index.typings.js +26 -2
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +370 -4
  32. package/build/internal/cjs/meta.js +26 -2
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +394 -0
  35. package/build/internal/cjs/schemas.js +682 -8
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +2 -2
  38. package/build/internal/es/index.mjs +28 -3
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +371 -5
  41. package/build/internal/es/index.typings.mjs +23 -2
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +370 -4
  44. package/build/internal/es/meta.mjs +23 -2
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +394 -0
  47. package/build/internal/es/schemas.mjs +682 -8
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -61,6 +61,7 @@ interface SubscriptionContract {
61
61
  /**
62
62
  * Language for communication with the buyer. Defaults to the site language.
63
63
  * For a site that supports multiple languages, this is the language the buyer selected.
64
+ * @maxLength 10
64
65
  */
65
66
  buyerLanguage?: string | null;
66
67
  /** Weight measurement unit - defaults to site's weight unit. */
@@ -91,11 +92,17 @@ interface SubscriptionContract {
91
92
  billingInfo?: AddressWithContact;
92
93
  /** Shipping info and selected shipping option details. */
93
94
  shippingInfo?: ShippingInformation;
94
- /** Applied discounts. */
95
+ /**
96
+ * Applied discounts.
97
+ * @maxSize 100
98
+ */
95
99
  appliedDiscounts?: AppliedDiscount[];
96
100
  /** Information about the sales channel that submitted this order. */
97
101
  channelInfo?: ChannelInfo;
98
- /** Custom fields. */
102
+ /**
103
+ * Custom fields.
104
+ * @maxSize 100
105
+ */
99
106
  customFields?: CustomField[];
100
107
  /**
101
108
  * Order recipient address and contact details.
@@ -129,6 +136,12 @@ interface SubscriptionContract {
129
136
  * @maxSize 100
130
137
  */
131
138
  additionalFees?: AdditionalFee[];
139
+ /**
140
+ * Activities recorded on this contract (e.g. draft commits, status changes).
141
+ * @readonly
142
+ * @maxSize 500
143
+ */
144
+ activities?: SubscriptionContractActivity[];
132
145
  }
133
146
  interface V1SubscriptionDescription {
134
147
  /**
@@ -1893,13 +1906,239 @@ declare enum SpecificItemsCouponBehavior {
1893
1906
  }
1894
1907
  /** @enumType */
1895
1908
  type SpecificItemsCouponBehaviorWithLiterals = SpecificItemsCouponBehavior | 'UNDEFINED_COUPON_BEHAVIOR' | 'ITEM_SUBTOTAL_INCLUDES_DISCOUNT' | 'LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT';
1909
+ interface SubscriptionContractActivity extends SubscriptionContractActivityTargetOneOf, SubscriptionContractActivityContentOneOf {
1910
+ /** Scopes the draft to the contract level, applying to all future cycles. */
1911
+ contractTarget?: ContractTarget;
1912
+ /** Changes committed from a DraftSubscriptionContract. */
1913
+ changesApplied?: ChangesAppliedActivity;
1914
+ /**
1915
+ * Activity ID.
1916
+ * @format GUID
1917
+ * @readonly
1918
+ */
1919
+ _id?: string;
1920
+ /**
1921
+ * When the activity occurred.
1922
+ * @readonly
1923
+ */
1924
+ _createdDate?: Date | null;
1925
+ /**
1926
+ * Identity of the draft order's initiator.
1927
+ * @readonly
1928
+ */
1929
+ author?: ActivityAuthor;
1930
+ /** Activity type. */
1931
+ activityType?: ActivityTypeWithLiterals;
1932
+ }
1933
+ /** @oneof */
1934
+ interface SubscriptionContractActivityTargetOneOf {
1935
+ /** Scopes the draft to the contract level, applying to all future cycles. */
1936
+ contractTarget?: ContractTarget;
1937
+ }
1938
+ /** @oneof */
1939
+ interface SubscriptionContractActivityContentOneOf {
1940
+ /** Changes committed from a DraftSubscriptionContract. */
1941
+ changesApplied?: ChangesAppliedActivity;
1942
+ }
1943
+ /** Scopes the draft to the contract level, applying to all future cycles. */
1944
+ interface ContractTarget {
1945
+ /** Cycle number of the next billing cycle (1-based). Set by the caller; returned by the server on read. */
1946
+ nextCycleNumber?: number | null;
1947
+ }
1948
+ interface ActivityAuthor extends ActivityAuthorValueOneOf {
1949
+ /**
1950
+ * User ID. When the draft order was created by a Wix user.
1951
+ * @format GUID
1952
+ */
1953
+ userId?: string;
1954
+ /**
1955
+ * App ID. When the draft order was created by an app.
1956
+ * @format GUID
1957
+ */
1958
+ appId?: string;
1959
+ }
1960
+ /** @oneof */
1961
+ interface ActivityAuthorValueOneOf {
1962
+ /**
1963
+ * User ID. When the draft order was created by a Wix user.
1964
+ * @format GUID
1965
+ */
1966
+ userId?: string;
1967
+ /**
1968
+ * App ID. When the draft order was created by an app.
1969
+ * @format GUID
1970
+ */
1971
+ appId?: string;
1972
+ }
1973
+ interface ChangesAppliedActivity extends ChangesAppliedActivityTargetOneOf {
1974
+ /** Scopes the draft to the contract level, applying to all future cycles. */
1975
+ contractTarget?: ContractTarget;
1976
+ /**
1977
+ * ID of the DraftSubscriptionContract that was committed.
1978
+ * @format GUID
1979
+ */
1980
+ draftSubscriptionContractId?: string;
1981
+ /**
1982
+ * Individual typed changes applied.
1983
+ * @maxSize 100
1984
+ */
1985
+ changes?: ContractChange[];
1986
+ /**
1987
+ * Reason for the edit, provided by the merchant (optional).
1988
+ * @maxLength 200
1989
+ */
1990
+ reason?: string | null;
1991
+ }
1992
+ /** @oneof */
1993
+ interface ChangesAppliedActivityTargetOneOf {
1994
+ /** Scopes the draft to the contract level, applying to all future cycles. */
1995
+ contractTarget?: ContractTarget;
1996
+ }
1997
+ interface ContractChange extends ContractChangeValueOneOf {
1998
+ /** Line item was modified. */
1999
+ lineItemChanged?: LineItemChanges;
2000
+ /** Line item was added to the contract. */
2001
+ lineItemAdded?: ManagedLineItem;
2002
+ /** Line item was removed from the contract. */
2003
+ lineItemRemoved?: ManagedLineItem;
2004
+ /** Discount was added to the contract. */
2005
+ discountAdded?: ManagedDiscount;
2006
+ /** Discount was removed from the contract. */
2007
+ discountRemoved?: ManagedDiscount;
2008
+ /** Additional fee was added to the contract. */
2009
+ additionalFeeAdded?: ManagedAdditionalFee;
2010
+ /** Additional fee was removed from the contract. */
2011
+ additionalFeeRemoved?: ManagedAdditionalFee;
2012
+ /** Total price changed. */
2013
+ totalPriceChanged?: TotalPriceChange;
2014
+ }
2015
+ /** @oneof */
2016
+ interface ContractChangeValueOneOf {
2017
+ /** Line item was modified. */
2018
+ lineItemChanged?: LineItemChanges;
2019
+ /** Line item was added to the contract. */
2020
+ lineItemAdded?: ManagedLineItem;
2021
+ /** Line item was removed from the contract. */
2022
+ lineItemRemoved?: ManagedLineItem;
2023
+ /** Discount was added to the contract. */
2024
+ discountAdded?: ManagedDiscount;
2025
+ /** Discount was removed from the contract. */
2026
+ discountRemoved?: ManagedDiscount;
2027
+ /** Additional fee was added to the contract. */
2028
+ additionalFeeAdded?: ManagedAdditionalFee;
2029
+ /** Additional fee was removed from the contract. */
2030
+ additionalFeeRemoved?: ManagedAdditionalFee;
2031
+ /** Total price changed. */
2032
+ totalPriceChanged?: TotalPriceChange;
2033
+ }
2034
+ interface LineItemChanges {
2035
+ /**
2036
+ * Line item ID.
2037
+ * @format GUID
2038
+ */
2039
+ _id?: string;
2040
+ /** Item name after change. */
2041
+ name?: ProductName;
2042
+ /** Item quantity change. */
2043
+ quantity?: LineItemQuantityChange;
2044
+ }
2045
+ declare enum LineItemQuantityChangeType {
2046
+ QUANTITY_INCREASED = "QUANTITY_INCREASED",
2047
+ QUANTITY_DECREASED = "QUANTITY_DECREASED"
2048
+ }
2049
+ /** @enumType */
2050
+ type LineItemQuantityChangeTypeWithLiterals = LineItemQuantityChangeType | 'QUANTITY_INCREASED' | 'QUANTITY_DECREASED';
2051
+ interface LineItemQuantityChange {
2052
+ /**
2053
+ * Original item quantity before the change.
2054
+ * @max 1000000
2055
+ */
2056
+ originalQuantity?: number;
2057
+ /**
2058
+ * New item quantity after the change.
2059
+ * @max 1000000
2060
+ */
2061
+ newQuantity?: number;
2062
+ /**
2063
+ * Difference between new and original quantities.
2064
+ * @min 1
2065
+ * @max 1000000
2066
+ */
2067
+ diff?: number;
2068
+ /** Direction of the quantity change. */
2069
+ deltaType?: LineItemQuantityChangeTypeWithLiterals;
2070
+ }
2071
+ interface ManagedLineItem {
2072
+ /**
2073
+ * Line item ID.
2074
+ * @format GUID
2075
+ */
2076
+ _id?: string;
2077
+ /** Item name. */
2078
+ name?: ProductName;
2079
+ /**
2080
+ * Added or removed item quantity.
2081
+ * @min 1
2082
+ * @max 1000000
2083
+ */
2084
+ quantity?: number;
2085
+ }
2086
+ interface ManagedDiscount {
2087
+ /**
2088
+ * Discount ID.
2089
+ * @format GUID
2090
+ */
2091
+ _id?: string;
2092
+ /** Discount name. */
2093
+ name?: TranslatedValue;
2094
+ /** Discount amount. */
2095
+ totalAmount?: Price;
2096
+ }
2097
+ interface TranslatedValue {
2098
+ /**
2099
+ * Value in site default language.
2100
+ * @minLength 1
2101
+ */
2102
+ original?: string;
2103
+ /**
2104
+ * Translated value.
2105
+ * @minLength 1
2106
+ */
2107
+ translated?: string | null;
2108
+ }
2109
+ interface ManagedAdditionalFee {
2110
+ /**
2111
+ * Additional fee ID.
2112
+ * @format GUID
2113
+ */
2114
+ _id?: string;
2115
+ /** Additional fee name. */
2116
+ name?: TranslatedValue;
2117
+ /** Additional fee amount. */
2118
+ totalAmount?: Price;
2119
+ }
2120
+ interface TotalPriceChange {
2121
+ /** Total price before the commit. */
2122
+ originalTotal?: Price;
2123
+ /** Total price after the commit. */
2124
+ newTotal?: Price;
2125
+ }
2126
+ declare enum ActivityType {
2127
+ UNKNOWN_ACTIVITY_TYPE = "UNKNOWN_ACTIVITY_TYPE",
2128
+ CHANGES_APPLIED = "CHANGES_APPLIED"
2129
+ }
2130
+ /** @enumType */
2131
+ type ActivityTypeWithLiterals = ActivityType | 'UNKNOWN_ACTIVITY_TYPE' | 'CHANGES_APPLIED';
1896
2132
  /** Triggered when a subscription contract has been canceled before its designated end date. */
1897
2133
  interface SubscriptionContractCanceled {
1898
2134
  /** The subscription contract that was canceled. */
1899
2135
  subscriptionContract?: SubscriptionContract;
1900
2136
  /** Who initiated the cancellation. */
1901
2137
  initiator?: ActionInitiatorWithLiterals;
1902
- /** Reason for cancellation. */
2138
+ /**
2139
+ * Reason for cancellation.
2140
+ * @maxLength 500
2141
+ */
1903
2142
  reason?: string | null;
1904
2143
  }
1905
2144
  declare enum ActionInitiator {
@@ -1916,6 +2155,102 @@ interface SubscriptionContractExpired {
1916
2155
  /** The subscription contract that expired. */
1917
2156
  subscriptionContract?: SubscriptionContract;
1918
2157
  }
2158
+ /**
2159
+ * ACTION event payload emitted after a successful commit.
2160
+ * Carries the full delta — downstream consumers (email notifications, activity feed)
2161
+ * subscribe to this event and have all details inline without fetching the draft.
2162
+ */
2163
+ interface SubscriptionContractChangesCommitted {
2164
+ /** Updated SubscriptionContract after commit. */
2165
+ subscriptionContract?: SubscriptionContract;
2166
+ /**
2167
+ * ID of the DraftSubscriptionContract that triggered this commit.
2168
+ * @format GUID
2169
+ */
2170
+ draftSubscriptionContractId?: string;
2171
+ /** The actual delta applied. */
2172
+ changes?: SubscriptionContractDiffs;
2173
+ /**
2174
+ * Date and time the changes were committed.
2175
+ * @readonly
2176
+ */
2177
+ commitDate?: Date | null;
2178
+ }
2179
+ interface SubscriptionContractDiffs {
2180
+ /**
2181
+ * Per-item deltas: added, changed, or removed line items.
2182
+ * @maxSize 100
2183
+ */
2184
+ lineItems?: LineItemDelta[];
2185
+ /**
2186
+ * Per-discount deltas.
2187
+ * @maxSize 100
2188
+ */
2189
+ appliedDiscounts?: AppliedDiscountDelta[];
2190
+ /**
2191
+ * Per-fee deltas.
2192
+ * @maxSize 100
2193
+ */
2194
+ additionalFees?: AdditionalFeeDelta[];
2195
+ /** Updated price summary (overwrites existing). */
2196
+ priceSummary?: PriceSummary;
2197
+ /** Updated tax info (overwrites existing). */
2198
+ taxInfo?: OrderTaxInfo;
2199
+ }
2200
+ interface LineItemDelta {
2201
+ /**
2202
+ * Line item ID.
2203
+ * @format GUID
2204
+ */
2205
+ lineItemId?: string;
2206
+ /** Full line item content (absent for removed items). */
2207
+ lineItem?: OrderLineItem;
2208
+ /** Type of change applied to this line item. */
2209
+ changeType?: ChangeTypeWithLiterals;
2210
+ }
2211
+ /** Describes the type of change applied to an element. */
2212
+ declare enum ChangeType {
2213
+ /** Element was added (absent in the original contract). */
2214
+ ADDED = "ADDED",
2215
+ /** Element was modified from the original contract. */
2216
+ CHANGED = "CHANGED",
2217
+ /** Element was removed from the contract. */
2218
+ REMOVED = "REMOVED"
2219
+ }
2220
+ /** @enumType */
2221
+ type ChangeTypeWithLiterals = ChangeType | 'ADDED' | 'CHANGED' | 'REMOVED';
2222
+ interface AppliedDiscountDelta extends AppliedDiscountDeltaDeltaDetailsOneOf {
2223
+ /** Discount content after the change. */
2224
+ changed?: AppliedDiscount;
2225
+ /**
2226
+ * Discount ID.
2227
+ * @format GUID
2228
+ */
2229
+ discountId?: string;
2230
+ /** Type of change applied to this discount. */
2231
+ changeType?: ChangeTypeWithLiterals;
2232
+ }
2233
+ /** @oneof */
2234
+ interface AppliedDiscountDeltaDeltaDetailsOneOf {
2235
+ /** Discount content after the change. */
2236
+ changed?: AppliedDiscount;
2237
+ }
2238
+ interface AdditionalFeeDelta extends AdditionalFeeDeltaDeltaDetailsOneOf {
2239
+ /** Additional fee content after the change. */
2240
+ changed?: AdditionalFee;
2241
+ /**
2242
+ * Additional fee ID.
2243
+ * @format GUID
2244
+ */
2245
+ additionalFeeId?: string;
2246
+ /** Type of change applied to this additional fee. */
2247
+ changeType?: ChangeTypeWithLiterals;
2248
+ }
2249
+ /** @oneof */
2250
+ interface AdditionalFeeDeltaDeltaDetailsOneOf {
2251
+ /** Additional fee content after the change. */
2252
+ changed?: AdditionalFee;
2253
+ }
1919
2254
  interface CreateSubscriptionContractRequest {
1920
2255
  /** SubscriptionContract to be created. */
1921
2256
  subscriptionContract?: SubscriptionContract;
@@ -2189,6 +2524,37 @@ interface BulkUpdateSubscriptionContractsResponse {
2189
2524
  /** Metadata about the bulk operation. */
2190
2525
  bulkActionMetadata?: BulkActionMetadata;
2191
2526
  }
2527
+ interface CommitSubscriptionContractChangesRequest {
2528
+ /**
2529
+ * ID of the SubscriptionContract to update.
2530
+ * @format GUID
2531
+ */
2532
+ subscriptionContractId?: string;
2533
+ /**
2534
+ * ID of the originating DraftSubscriptionContract (for traceability).
2535
+ * @format GUID
2536
+ */
2537
+ draftSubscriptionContractId?: string;
2538
+ /** Delta changes to apply. */
2539
+ changes?: SubscriptionContractDiffs;
2540
+ /**
2541
+ * Reason for the edit, provided by the merchant (optional).
2542
+ * @maxLength 200
2543
+ */
2544
+ reason?: string | null;
2545
+ /** Side-effects to happen after contract is updated */
2546
+ settings?: SubscriptionCommitSettings;
2547
+ }
2548
+ interface SubscriptionCommitSettings {
2549
+ /** If false, do not send notifications to buyer. Default is true. */
2550
+ sendNotificationsToBuyer?: boolean | null;
2551
+ /** If false, do not send notifications to business. Default is true. */
2552
+ sendNotificationsToBusiness?: boolean | null;
2553
+ }
2554
+ interface CommitSubscriptionContractChangesResponse {
2555
+ /** Updated SubscriptionContract. */
2556
+ subscriptionContract?: SubscriptionContract;
2557
+ }
2192
2558
  interface MessageEnvelope {
2193
2559
  /**
2194
2560
  * App instance ID.
@@ -2404,7 +2770,7 @@ declare function onSubscriptionContractUpdated(handler: (event: SubscriptionCont
2404
2770
  * @returns The requested SubscriptionContract.
2405
2771
  * @fqn wix.ecom.subscription_contracts.v1.SubscriptionContracts.GetSubscriptionContract
2406
2772
  */
2407
- declare function getSubscriptionContract(subscriptionContractId: string): Promise<NonNullablePaths<SubscriptionContract, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `subscriptionSettings.freeTrialPeriod.frequency` | `subscriptionSettings.freeTrialPeriod.interval` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.productName.original` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.quantity` | `lineItems.${number}.totalDiscount.amount` | `lineItems.${number}.totalDiscount.formattedAmount` | `lineItems.${number}.physicalProperties.shippable` | `lineItems.${number}.itemType.preset` | `lineItems.${number}.itemType.custom` | `lineItems.${number}.paymentOption` | `lineItems.${number}.taxDetails.taxRate` | `lineItems.${number}.taxInfo.taxIncludedInPrice` | `lineItems.${number}.digitalFile.fileId` | `lineItems.${number}.subscriptionInfo.cycleNumber` | `lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `lineItems.${number}.priceUndetermined` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `platformFeeSummary.fees` | `platformFeeSummary.fees.${number}.lineItemId` | `platformFeeSummary.fees.${number}.chargeType` | `platformFeeSummary.fees.${number}.percentageRate` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}._id` | `additionalFees.${number}.source`, 6>>;
2773
+ declare function getSubscriptionContract(subscriptionContractId: string): Promise<NonNullablePaths<SubscriptionContract, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `subscriptionSettings.freeTrialPeriod.frequency` | `subscriptionSettings.freeTrialPeriod.interval` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.productName.original` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.quantity` | `lineItems.${number}.totalDiscount.amount` | `lineItems.${number}.totalDiscount.formattedAmount` | `lineItems.${number}.physicalProperties.shippable` | `lineItems.${number}.itemType.preset` | `lineItems.${number}.itemType.custom` | `lineItems.${number}.paymentOption` | `lineItems.${number}.taxDetails.taxRate` | `lineItems.${number}.taxInfo.taxIncludedInPrice` | `lineItems.${number}.digitalFile.fileId` | `lineItems.${number}.subscriptionInfo.cycleNumber` | `lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `lineItems.${number}.priceUndetermined` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `platformFeeSummary.fees` | `platformFeeSummary.fees.${number}.lineItemId` | `platformFeeSummary.fees.${number}.chargeType` | `platformFeeSummary.fees.${number}.percentageRate` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}._id` | `additionalFees.${number}.source` | `activities` | `activities.${number}.changesApplied.draftSubscriptionContractId` | `activities.${number}._id` | `activities.${number}.author.userId` | `activities.${number}.author.appId` | `activities.${number}.activityType`, 6>>;
2408
2774
  /**
2409
2775
  * Retrieves a list of SubscriptionContracts, given the provided [paging, filtering, and sorting][1].
2410
2776
  *
@@ -2570,4 +2936,4 @@ declare const utils: {
2570
2936
  };
2571
2937
  };
2572
2938
 
2573
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionInitiator, type ActionInitiatorWithLiterals, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, 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, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type CommonQueryWithEntityContext, 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 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 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 SubscriptionContract, type SubscriptionContractCanceled, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, 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 TranslatableString, 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 };
2939
+ 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 };
@@ -21,8 +21,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_exports, {
23
23
  ActionInitiator: () => ActionInitiator,
24
+ ActivityType: () => ActivityType,
24
25
  AdditionalFeeSource: () => AdditionalFeeSource,
25
26
  AdjustmentType: () => AdjustmentType,
27
+ ChangeType: () => ChangeType,
26
28
  ChannelType: () => ChannelType,
27
29
  ChargeType: () => ChargeType,
28
30
  DescriptionLineType: () => DescriptionLineType,
@@ -31,6 +33,7 @@ __export(index_typings_exports, {
31
33
  DiscountType: () => DiscountType,
32
34
  ItemTypePreset: () => ItemTypePreset,
33
35
  JurisdictionType: () => JurisdictionType,
36
+ LineItemQuantityChangeType: () => LineItemQuantityChangeType,
34
37
  PaymentOptionType: () => PaymentOptionType,
35
38
  PickupMethod: () => PickupMethod,
36
39
  ProductPeriodAlignment: () => ProductPeriodAlignment,
@@ -137,7 +140,8 @@ function getSubscriptionContract(payload) {
137
140
  },
138
141
  {
139
142
  path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to"
140
- }
143
+ },
144
+ { path: "subscriptionContract.activities.createdDate" }
141
145
  ]
142
146
  },
143
147
  {
@@ -220,7 +224,8 @@ function querySubscriptionContracts(payload) {
220
224
  },
221
225
  {
222
226
  path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to"
223
- }
227
+ },
228
+ { path: "subscriptionContracts.activities.createdDate" }
224
229
  ]
225
230
  },
226
231
  {
@@ -430,6 +435,16 @@ var SpecificItemsCouponBehavior = /* @__PURE__ */ ((SpecificItemsCouponBehavior2
430
435
  SpecificItemsCouponBehavior2["LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT"] = "LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT";
431
436
  return SpecificItemsCouponBehavior2;
432
437
  })(SpecificItemsCouponBehavior || {});
438
+ var LineItemQuantityChangeType = /* @__PURE__ */ ((LineItemQuantityChangeType2) => {
439
+ LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
440
+ LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
441
+ return LineItemQuantityChangeType2;
442
+ })(LineItemQuantityChangeType || {});
443
+ var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
444
+ ActivityType2["UNKNOWN_ACTIVITY_TYPE"] = "UNKNOWN_ACTIVITY_TYPE";
445
+ ActivityType2["CHANGES_APPLIED"] = "CHANGES_APPLIED";
446
+ return ActivityType2;
447
+ })(ActivityType || {});
433
448
  var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
434
449
  ActionInitiator2["UNKNOWN_ACTION_INITIATOR"] = "UNKNOWN_ACTION_INITIATOR";
435
450
  ActionInitiator2["BUSINESS"] = "BUSINESS";
@@ -438,6 +453,12 @@ var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
438
453
  ActionInitiator2["PAYMENT_FAILURE"] = "PAYMENT_FAILURE";
439
454
  return ActionInitiator2;
440
455
  })(ActionInitiator || {});
456
+ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
457
+ ChangeType2["ADDED"] = "ADDED";
458
+ ChangeType2["CHANGED"] = "CHANGED";
459
+ ChangeType2["REMOVED"] = "REMOVED";
460
+ return ChangeType2;
461
+ })(ChangeType || {});
441
462
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
442
463
  SortOrder2["ASC"] = "ASC";
443
464
  SortOrder2["DESC"] = "DESC";
@@ -616,8 +637,10 @@ var utils = {
616
637
  // Annotate the CommonJS export names for ESM import in node:
617
638
  0 && (module.exports = {
618
639
  ActionInitiator,
640
+ ActivityType,
619
641
  AdditionalFeeSource,
620
642
  AdjustmentType,
643
+ ChangeType,
621
644
  ChannelType,
622
645
  ChargeType,
623
646
  DescriptionLineType,
@@ -626,6 +649,7 @@ var utils = {
626
649
  DiscountType,
627
650
  ItemTypePreset,
628
651
  JurisdictionType,
652
+ LineItemQuantityChangeType,
629
653
  PaymentOptionType,
630
654
  PickupMethod,
631
655
  ProductPeriodAlignment,