@wix/auto_sdk_packages_packages 1.0.7 → 1.0.8

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 (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +39 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +11 -1
  5. package/build/cjs/index.typings.js +39 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +934 -1
  8. package/build/cjs/meta.js +195 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +38 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +11 -1
  14. package/build/es/index.typings.mjs +38 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +934 -1
  17. package/build/es/meta.mjs +177 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +39 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +11 -1
  23. package/build/internal/cjs/index.typings.js +39 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +934 -1
  26. package/build/internal/cjs/meta.js +195 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +38 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +11 -1
  32. package/build/internal/es/index.typings.mjs +38 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +934 -1
  35. package/build/internal/es/meta.mjs +177 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -880,6 +880,8 @@ interface SubscriptionCancelled {
880
880
  immediateCancel?: boolean;
881
881
  /** Whether the subscription was canceled during the free trial period. */
882
882
  canceledInFreeTrial?: boolean;
883
+ /** The type of refund applied to the cancellation. */
884
+ refundType?: RefundTypeWithLiterals;
883
885
  }
884
886
  /** Information about the cancellation flow including who canceled the subscription and why it was canceled. */
885
887
  interface CancellationDetails {
@@ -931,6 +933,14 @@ declare enum Initiator {
931
933
  }
932
934
  /** @enumType */
933
935
  type InitiatorWithLiterals = Initiator | 'UNKNOWN' | 'USER_REQUESTED' | 'APP_MANAGED' | 'PASSIVE';
936
+ declare enum RefundType {
937
+ UNKNOWN = "UNKNOWN",
938
+ NO_REFUND = "NO_REFUND",
939
+ FULL_REFUND = "FULL_REFUND",
940
+ PRORATED_REFUND = "PRORATED_REFUND"
941
+ }
942
+ /** @enumType */
943
+ type RefundTypeWithLiterals = RefundType | 'UNKNOWN' | 'NO_REFUND' | 'FULL_REFUND' | 'PRORATED_REFUND';
934
944
  /** Triggered when the subscription's auto renew is turned on. */
935
945
  interface SubscriptionAutoRenewTurnedOn {
936
946
  /** Subscription for which auto renew is turned on. */
@@ -1853,4 +1863,4 @@ interface UpdatePackageExternalIdIdentifiers {
1853
1863
  externalId: string;
1854
1864
  }
1855
1865
 
1856
- export { type ActionEvent, type AdjustProductInstanceSpecificationsOptions, type AdjustProductInstanceSpecificationsRequest, type AdjustProductInstanceSpecificationsResponse, type AdjustedProductInstanceSpecifications, type AssignProductInstanceToSiteIdentifiers, type AssignProductInstanceToSiteOptions, type AssignProductInstanceToSiteRequest, type AssignProductInstanceToSiteResponse, type AssignedProductInstanceToSite, type BillingReference, type Cancel, type CancelPackageOptions, type CancelPackageRequest, type CancelPackageResponse, type CancelProductInstanceOptions, type CancelProductInstanceRequest, type CancelProductInstanceResponse, type CancellationDetails, type Complete, ContractSwitchReason, type ContractSwitchReasonWithLiterals, ContractSwitchType, type ContractSwitchTypeWithLiterals, type ContractSwitched, type CountPackagesRequest, type CountPackagesResponse, type CreatePackageOptions, type CreatePackageRequest, type CreatePackageResponse, type CreatePackageV2Options, type CursorPaging, type Cursors, type Cycle, type CycleCycleSelectorOneOf, CycleDescriptorType, type CycleDescriptorTypeWithLiterals, type CycleInterval, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailureReason, FailureReasonFailureReason, type FailureReasonFailureReasonWithLiterals, type FailureReportRequest, FieldToUpdate, type FieldToUpdateWithLiterals, type FixBrokenMigrationRequest, type FixBrokenMigrationResponse, type GetPackageRequest, type GetPackageResponse, type IdentificationData, type IdentificationDataIdOneOf, Initiator, type InitiatorWithLiterals, type Interval, IntervalIntervalUnit, type IntervalIntervalUnitWithLiterals, IntervalUnit, type IntervalUnitWithLiterals, type MessageEnvelope, type MigrateSubscriptionToPackagesRequest, type MigrateSubscriptionToPackagesResponse, type OneTime, type Package, type PackageCanceled, type PackagesQueryBuilder, type PackagesQueryResult, type Paging, type PagingMetadataV2, PriceIncreaseTrigger, type PriceIncreaseTriggerWithLiterals, ProductAdjustment, type ProductAdjustmentWithLiterals, type ProductInstance, type ProductInstanceCanceled, type ProductInstanceContractDetailsOneOf, type ProductInstanceCycle, type ProductInstanceFailed, type ProductInstanceUpdated, type ProductPriceIncreaseData, ProviderName, type ProviderNameWithLiterals, type QueryPackagesRequest, type QueryPackagesResponse, type QueryV2, type QueryV2PagingMethodOneOf, type ReactivationData, ReactivationReasonEnum, type ReactivationReasonEnumWithLiterals, type RecurringChargeAttemptFailed, type RecurringChargeSucceeded, type Reschedule, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type Subscription, type SubscriptionAssigned, type SubscriptionAutoRenewTurnedOff, type SubscriptionAutoRenewTurnedOn, type SubscriptionCancelled, type SubscriptionCreated, type SubscriptionEvent, type SubscriptionEventEventOneOf, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, type Task, type TaskAction, type TaskActionActionOneOf, type TaskKey, type UnassignProductInstanceFromSiteOptions, type UnassignProductInstanceFromSiteRequest, type UnassignProductInstanceFromSiteResponse, UnassignReason, type UnassignReasonWithLiterals, type UnassignedProductInstanceFromSite, type UpdatePackageExternalIdIdentifiers, type UpdatePackageExternalIdRequest, type UpdatePackageExternalIdResponse, type UpdateProductInstanceRequest, type UpdateProductInstanceResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, unassignProductInstanceFromSite, updatePackageExternalId };
1866
+ export { type ActionEvent, type AdjustProductInstanceSpecificationsOptions, type AdjustProductInstanceSpecificationsRequest, type AdjustProductInstanceSpecificationsResponse, type AdjustedProductInstanceSpecifications, type AssignProductInstanceToSiteIdentifiers, type AssignProductInstanceToSiteOptions, type AssignProductInstanceToSiteRequest, type AssignProductInstanceToSiteResponse, type AssignedProductInstanceToSite, type BillingReference, type Cancel, type CancelPackageOptions, type CancelPackageRequest, type CancelPackageResponse, type CancelProductInstanceOptions, type CancelProductInstanceRequest, type CancelProductInstanceResponse, type CancellationDetails, type Complete, ContractSwitchReason, type ContractSwitchReasonWithLiterals, ContractSwitchType, type ContractSwitchTypeWithLiterals, type ContractSwitched, type CountPackagesRequest, type CountPackagesResponse, type CreatePackageOptions, type CreatePackageRequest, type CreatePackageResponse, type CreatePackageV2Options, type CursorPaging, type Cursors, type Cycle, type CycleCycleSelectorOneOf, CycleDescriptorType, type CycleDescriptorTypeWithLiterals, type CycleInterval, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailureReason, FailureReasonFailureReason, type FailureReasonFailureReasonWithLiterals, type FailureReportRequest, FieldToUpdate, type FieldToUpdateWithLiterals, type FixBrokenMigrationRequest, type FixBrokenMigrationResponse, type GetPackageRequest, type GetPackageResponse, type IdentificationData, type IdentificationDataIdOneOf, Initiator, type InitiatorWithLiterals, type Interval, IntervalIntervalUnit, type IntervalIntervalUnitWithLiterals, IntervalUnit, type IntervalUnitWithLiterals, type MessageEnvelope, type MigrateSubscriptionToPackagesRequest, type MigrateSubscriptionToPackagesResponse, type OneTime, type Package, type PackageCanceled, type PackagesQueryBuilder, type PackagesQueryResult, type Paging, type PagingMetadataV2, PriceIncreaseTrigger, type PriceIncreaseTriggerWithLiterals, ProductAdjustment, type ProductAdjustmentWithLiterals, type ProductInstance, type ProductInstanceCanceled, type ProductInstanceContractDetailsOneOf, type ProductInstanceCycle, type ProductInstanceFailed, type ProductInstanceUpdated, type ProductPriceIncreaseData, ProviderName, type ProviderNameWithLiterals, type QueryPackagesRequest, type QueryPackagesResponse, type QueryV2, type QueryV2PagingMethodOneOf, type ReactivationData, ReactivationReasonEnum, type ReactivationReasonEnumWithLiterals, type RecurringChargeAttemptFailed, type RecurringChargeSucceeded, RefundType, type RefundTypeWithLiterals, type Reschedule, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type Subscription, type SubscriptionAssigned, type SubscriptionAutoRenewTurnedOff, type SubscriptionAutoRenewTurnedOn, type SubscriptionCancelled, type SubscriptionCreated, type SubscriptionEvent, type SubscriptionEventEventOneOf, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, type Task, type TaskAction, type TaskActionActionOneOf, type TaskKey, type UnassignProductInstanceFromSiteOptions, type UnassignProductInstanceFromSiteRequest, type UnassignProductInstanceFromSiteResponse, UnassignReason, type UnassignReasonWithLiterals, type UnassignedProductInstanceFromSite, type UpdatePackageExternalIdIdentifiers, type UpdatePackageExternalIdRequest, type UpdatePackageExternalIdResponse, type UpdateProductInstanceRequest, type UpdateProductInstanceResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, unassignProductInstanceFromSite, updatePackageExternalId };
@@ -32,6 +32,7 @@ __export(index_typings_exports, {
32
32
  ProductAdjustment: () => ProductAdjustment,
33
33
  ProviderName: () => ProviderName,
34
34
  ReactivationReasonEnum: () => ReactivationReasonEnum,
35
+ RefundType: () => RefundType,
35
36
  SortOrder: () => SortOrder,
36
37
  Status: () => Status,
37
38
  SubscriptionStatus: () => SubscriptionStatus,
@@ -94,6 +95,9 @@ function createPackage(payload) {
94
95
  method: "POST",
95
96
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CreatePackage",
96
97
  packageName: PACKAGE_NAME,
98
+ migrationOptions: {
99
+ optInTransformResponse: true
100
+ },
97
101
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
98
102
  protoPath: "/v1/packages",
99
103
  data: serializedData,
@@ -134,6 +138,9 @@ function createPackageV2(payload) {
134
138
  method: "POST",
135
139
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CreatePackageV2",
136
140
  packageName: PACKAGE_NAME,
141
+ migrationOptions: {
142
+ optInTransformResponse: true
143
+ },
137
144
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
138
145
  protoPath: "/v2/packages",
139
146
  data: serializedData,
@@ -164,6 +171,9 @@ function cancelPackage(payload) {
164
171
  method: "DELETE",
165
172
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CancelPackage",
166
173
  packageName: PACKAGE_NAME,
174
+ migrationOptions: {
175
+ optInTransformResponse: true
176
+ },
167
177
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
168
178
  protoPath: "/v1/packages/{id}",
169
179
  data: payload,
@@ -194,6 +204,9 @@ function getPackage(payload) {
194
204
  method: "GET",
195
205
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.GetPackage",
196
206
  packageName: PACKAGE_NAME,
207
+ migrationOptions: {
208
+ optInTransformResponse: true
209
+ },
197
210
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
198
211
  protoPath: "/v1/packages/{id}",
199
212
  data: payload,
@@ -224,6 +237,9 @@ function queryPackages(payload) {
224
237
  method: "POST",
225
238
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.QueryPackages",
226
239
  packageName: PACKAGE_NAME,
240
+ migrationOptions: {
241
+ optInTransformResponse: true
242
+ },
227
243
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
228
244
  protoPath: "/v1/packages/query",
229
245
  data: payload,
@@ -254,6 +270,9 @@ function assignProductInstanceToSite(payload) {
254
270
  method: "PATCH",
255
271
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.AssignProductInstanceToSite",
256
272
  packageName: PACKAGE_NAME,
273
+ migrationOptions: {
274
+ optInTransformResponse: true
275
+ },
257
276
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
258
277
  protoPath: "/v1/packages/product-instances/{instanceId}/{siteId}",
259
278
  data: payload,
@@ -284,6 +303,9 @@ function unassignProductInstanceFromSite(payload) {
284
303
  method: "PATCH",
285
304
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.UnassignProductInstanceFromSite",
286
305
  packageName: PACKAGE_NAME,
306
+ migrationOptions: {
307
+ optInTransformResponse: true
308
+ },
287
309
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
288
310
  protoPath: "/v1/packages/product-instances/{instanceId}/unassign",
289
311
  data: payload,
@@ -314,6 +336,9 @@ function cancelProductInstance(payload) {
314
336
  method: "DELETE",
315
337
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CancelProductInstance",
316
338
  packageName: PACKAGE_NAME,
339
+ migrationOptions: {
340
+ optInTransformResponse: true
341
+ },
317
342
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
318
343
  protoPath: "/v1/packages/product-instances/{instanceId}",
319
344
  data: payload,
@@ -344,6 +369,9 @@ function adjustProductInstanceSpecifications(payload) {
344
369
  method: "PATCH",
345
370
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.AdjustProductInstanceSpecifications",
346
371
  packageName: PACKAGE_NAME,
372
+ migrationOptions: {
373
+ optInTransformResponse: true
374
+ },
347
375
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
348
376
  protoPath: "/v1/packages/product-instances/{instanceId}",
349
377
  data: payload,
@@ -374,6 +402,9 @@ function updatePackageExternalId(payload) {
374
402
  method: "PATCH",
375
403
  methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.UpdatePackageExternalId",
376
404
  packageName: PACKAGE_NAME,
405
+ migrationOptions: {
406
+ optInTransformResponse: true
407
+ },
377
408
  url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
378
409
  protoPath: "/v1/packages/update/{packageId}/{externalId}",
379
410
  data: payload,
@@ -472,6 +503,13 @@ var Initiator = /* @__PURE__ */ ((Initiator2) => {
472
503
  Initiator2["PASSIVE"] = "PASSIVE";
473
504
  return Initiator2;
474
505
  })(Initiator || {});
506
+ var RefundType = /* @__PURE__ */ ((RefundType2) => {
507
+ RefundType2["UNKNOWN"] = "UNKNOWN";
508
+ RefundType2["NO_REFUND"] = "NO_REFUND";
509
+ RefundType2["FULL_REFUND"] = "FULL_REFUND";
510
+ RefundType2["PRORATED_REFUND"] = "PRORATED_REFUND";
511
+ return RefundType2;
512
+ })(RefundType || {});
475
513
  var UnassignReason = /* @__PURE__ */ ((UnassignReason2) => {
476
514
  UnassignReason2["UNKNOWN"] = "UNKNOWN";
477
515
  UnassignReason2["USER_REQUESTED"] = "USER_REQUESTED";
@@ -848,6 +886,7 @@ async function updatePackageExternalId2(identifiers) {
848
886
  ProductAdjustment,
849
887
  ProviderName,
850
888
  ReactivationReasonEnum,
889
+ RefundType,
851
890
  SortOrder,
852
891
  Status,
853
892
  SubscriptionStatus,