@wix/auto_sdk_packages_packages 1.0.7 → 1.0.9
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 +40 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +14 -3
- package/build/cjs/index.typings.js +40 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +935 -1
- package/build/cjs/meta.js +196 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +39 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +14 -3
- package/build/es/index.typings.mjs +39 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +935 -1
- package/build/es/meta.mjs +178 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +40 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +14 -3
- package/build/internal/cjs/index.typings.js +40 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +935 -1
- package/build/internal/cjs/meta.js +196 -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 +39 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +14 -3
- package/build/internal/es/index.typings.mjs +39 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +935 -1
- package/build/internal/es/meta.mjs +178 -0
- package/build/internal/es/meta.mjs.map +1 -1
- 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. */
|
|
@@ -1080,10 +1090,11 @@ declare enum ContractSwitchType {
|
|
|
1080
1090
|
FULL_AMOUNT_PERIOD = "FULL_AMOUNT_PERIOD",
|
|
1081
1091
|
END_OF_PERIOD = "END_OF_PERIOD",
|
|
1082
1092
|
PENDING_CHANGES = "PENDING_CHANGES",
|
|
1083
|
-
DOWNGRADE_RENEWAL = "DOWNGRADE_RENEWAL"
|
|
1093
|
+
DOWNGRADE_RENEWAL = "DOWNGRADE_RENEWAL",
|
|
1094
|
+
FIXED_BILLING_DATE_PRORATION = "FIXED_BILLING_DATE_PRORATION"
|
|
1084
1095
|
}
|
|
1085
1096
|
/** @enumType */
|
|
1086
|
-
type ContractSwitchTypeWithLiterals = ContractSwitchType | 'NOT_APPLICABLE' | 'ADDITIONAL_QUANTITY' | 'CREDIT_UNUSED_PERIOD' | 'REFUND_PRICE_DIFF' | 'ADJUST_PERIOD_END' | 'DOWNGRADE_GRACE_PERIOD' | 'FULL_AMOUNT_PERIOD' | 'END_OF_PERIOD' | 'PENDING_CHANGES' | 'DOWNGRADE_RENEWAL';
|
|
1097
|
+
type ContractSwitchTypeWithLiterals = ContractSwitchType | 'NOT_APPLICABLE' | 'ADDITIONAL_QUANTITY' | 'CREDIT_UNUSED_PERIOD' | 'REFUND_PRICE_DIFF' | 'ADJUST_PERIOD_END' | 'DOWNGRADE_GRACE_PERIOD' | 'FULL_AMOUNT_PERIOD' | 'END_OF_PERIOD' | 'PENDING_CHANGES' | 'DOWNGRADE_RENEWAL' | 'FIXED_BILLING_DATE_PRORATION';
|
|
1087
1098
|
declare enum ContractSwitchReason {
|
|
1088
1099
|
EXTERNAL_PROVIDER_TRIGGER = "EXTERNAL_PROVIDER_TRIGGER",
|
|
1089
1100
|
PRICE_INCREASE = "PRICE_INCREASE"
|
|
@@ -1853,4 +1864,4 @@ interface UpdatePackageExternalIdIdentifiers {
|
|
|
1853
1864
|
externalId: string;
|
|
1854
1865
|
}
|
|
1855
1866
|
|
|
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 };
|
|
1867
|
+
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";
|
|
@@ -489,6 +527,7 @@ var ContractSwitchType = /* @__PURE__ */ ((ContractSwitchType2) => {
|
|
|
489
527
|
ContractSwitchType2["END_OF_PERIOD"] = "END_OF_PERIOD";
|
|
490
528
|
ContractSwitchType2["PENDING_CHANGES"] = "PENDING_CHANGES";
|
|
491
529
|
ContractSwitchType2["DOWNGRADE_RENEWAL"] = "DOWNGRADE_RENEWAL";
|
|
530
|
+
ContractSwitchType2["FIXED_BILLING_DATE_PRORATION"] = "FIXED_BILLING_DATE_PRORATION";
|
|
492
531
|
return ContractSwitchType2;
|
|
493
532
|
})(ContractSwitchType || {});
|
|
494
533
|
var ContractSwitchReason = /* @__PURE__ */ ((ContractSwitchReason2) => {
|
|
@@ -848,6 +887,7 @@ async function updatePackageExternalId2(identifiers) {
|
|
|
848
887
|
ProductAdjustment,
|
|
849
888
|
ProviderName,
|
|
850
889
|
ReactivationReasonEnum,
|
|
890
|
+
RefundType,
|
|
851
891
|
SortOrder,
|
|
852
892
|
Status,
|
|
853
893
|
SubscriptionStatus,
|