@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.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +39 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +11 -1
- package/build/cjs/index.typings.js +39 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +934 -1
- package/build/cjs/meta.js +195 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +38 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +11 -1
- package/build/es/index.typings.mjs +38 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +934 -1
- package/build/es/meta.mjs +177 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +39 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +11 -1
- package/build/internal/cjs/index.typings.js +39 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +934 -1
- package/build/internal/cjs/meta.js +195 -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 +38 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +11 -1
- package/build/internal/es/index.typings.mjs +38 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +934 -1
- package/build/internal/es/meta.mjs +177 -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. */
|
|
@@ -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 };
|
|
@@ -45,6 +45,9 @@ function createPackage(payload) {
|
|
|
45
45
|
method: "POST",
|
|
46
46
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CreatePackage",
|
|
47
47
|
packageName: PACKAGE_NAME,
|
|
48
|
+
migrationOptions: {
|
|
49
|
+
optInTransformResponse: true
|
|
50
|
+
},
|
|
48
51
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
49
52
|
protoPath: "/v1/packages",
|
|
50
53
|
data: serializedData,
|
|
@@ -85,6 +88,9 @@ function createPackageV2(payload) {
|
|
|
85
88
|
method: "POST",
|
|
86
89
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CreatePackageV2",
|
|
87
90
|
packageName: PACKAGE_NAME,
|
|
91
|
+
migrationOptions: {
|
|
92
|
+
optInTransformResponse: true
|
|
93
|
+
},
|
|
88
94
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
89
95
|
protoPath: "/v2/packages",
|
|
90
96
|
data: serializedData,
|
|
@@ -115,6 +121,9 @@ function cancelPackage(payload) {
|
|
|
115
121
|
method: "DELETE",
|
|
116
122
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CancelPackage",
|
|
117
123
|
packageName: PACKAGE_NAME,
|
|
124
|
+
migrationOptions: {
|
|
125
|
+
optInTransformResponse: true
|
|
126
|
+
},
|
|
118
127
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
119
128
|
protoPath: "/v1/packages/{id}",
|
|
120
129
|
data: payload,
|
|
@@ -145,6 +154,9 @@ function getPackage(payload) {
|
|
|
145
154
|
method: "GET",
|
|
146
155
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.GetPackage",
|
|
147
156
|
packageName: PACKAGE_NAME,
|
|
157
|
+
migrationOptions: {
|
|
158
|
+
optInTransformResponse: true
|
|
159
|
+
},
|
|
148
160
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
149
161
|
protoPath: "/v1/packages/{id}",
|
|
150
162
|
data: payload,
|
|
@@ -175,6 +187,9 @@ function queryPackages(payload) {
|
|
|
175
187
|
method: "POST",
|
|
176
188
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.QueryPackages",
|
|
177
189
|
packageName: PACKAGE_NAME,
|
|
190
|
+
migrationOptions: {
|
|
191
|
+
optInTransformResponse: true
|
|
192
|
+
},
|
|
178
193
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
179
194
|
protoPath: "/v1/packages/query",
|
|
180
195
|
data: payload,
|
|
@@ -205,6 +220,9 @@ function assignProductInstanceToSite(payload) {
|
|
|
205
220
|
method: "PATCH",
|
|
206
221
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.AssignProductInstanceToSite",
|
|
207
222
|
packageName: PACKAGE_NAME,
|
|
223
|
+
migrationOptions: {
|
|
224
|
+
optInTransformResponse: true
|
|
225
|
+
},
|
|
208
226
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
209
227
|
protoPath: "/v1/packages/product-instances/{instanceId}/{siteId}",
|
|
210
228
|
data: payload,
|
|
@@ -235,6 +253,9 @@ function unassignProductInstanceFromSite(payload) {
|
|
|
235
253
|
method: "PATCH",
|
|
236
254
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.UnassignProductInstanceFromSite",
|
|
237
255
|
packageName: PACKAGE_NAME,
|
|
256
|
+
migrationOptions: {
|
|
257
|
+
optInTransformResponse: true
|
|
258
|
+
},
|
|
238
259
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
239
260
|
protoPath: "/v1/packages/product-instances/{instanceId}/unassign",
|
|
240
261
|
data: payload,
|
|
@@ -265,6 +286,9 @@ function cancelProductInstance(payload) {
|
|
|
265
286
|
method: "DELETE",
|
|
266
287
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CancelProductInstance",
|
|
267
288
|
packageName: PACKAGE_NAME,
|
|
289
|
+
migrationOptions: {
|
|
290
|
+
optInTransformResponse: true
|
|
291
|
+
},
|
|
268
292
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
269
293
|
protoPath: "/v1/packages/product-instances/{instanceId}",
|
|
270
294
|
data: payload,
|
|
@@ -295,6 +319,9 @@ function adjustProductInstanceSpecifications(payload) {
|
|
|
295
319
|
method: "PATCH",
|
|
296
320
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.AdjustProductInstanceSpecifications",
|
|
297
321
|
packageName: PACKAGE_NAME,
|
|
322
|
+
migrationOptions: {
|
|
323
|
+
optInTransformResponse: true
|
|
324
|
+
},
|
|
298
325
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
299
326
|
protoPath: "/v1/packages/product-instances/{instanceId}",
|
|
300
327
|
data: payload,
|
|
@@ -325,6 +352,9 @@ function updatePackageExternalId(payload) {
|
|
|
325
352
|
method: "PATCH",
|
|
326
353
|
methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.UpdatePackageExternalId",
|
|
327
354
|
packageName: PACKAGE_NAME,
|
|
355
|
+
migrationOptions: {
|
|
356
|
+
optInTransformResponse: true
|
|
357
|
+
},
|
|
328
358
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
329
359
|
protoPath: "/v1/packages/update/{packageId}/{externalId}",
|
|
330
360
|
data: payload,
|
|
@@ -423,6 +453,13 @@ var Initiator = /* @__PURE__ */ ((Initiator2) => {
|
|
|
423
453
|
Initiator2["PASSIVE"] = "PASSIVE";
|
|
424
454
|
return Initiator2;
|
|
425
455
|
})(Initiator || {});
|
|
456
|
+
var RefundType = /* @__PURE__ */ ((RefundType2) => {
|
|
457
|
+
RefundType2["UNKNOWN"] = "UNKNOWN";
|
|
458
|
+
RefundType2["NO_REFUND"] = "NO_REFUND";
|
|
459
|
+
RefundType2["FULL_REFUND"] = "FULL_REFUND";
|
|
460
|
+
RefundType2["PRORATED_REFUND"] = "PRORATED_REFUND";
|
|
461
|
+
return RefundType2;
|
|
462
|
+
})(RefundType || {});
|
|
426
463
|
var UnassignReason = /* @__PURE__ */ ((UnassignReason2) => {
|
|
427
464
|
UnassignReason2["UNKNOWN"] = "UNKNOWN";
|
|
428
465
|
UnassignReason2["USER_REQUESTED"] = "USER_REQUESTED";
|
|
@@ -798,6 +835,7 @@ export {
|
|
|
798
835
|
ProductAdjustment,
|
|
799
836
|
ProviderName,
|
|
800
837
|
ReactivationReasonEnum,
|
|
838
|
+
RefundType,
|
|
801
839
|
SortOrder,
|
|
802
840
|
Status,
|
|
803
841
|
SubscriptionStatus,
|