@wix/auto_sdk_packages_packages 1.0.30 → 1.0.32

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 (42) hide show
  1. package/build/cjs/index.d.ts +9 -9
  2. package/build/cjs/index.js +2 -4
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +14 -22
  5. package/build/cjs/index.typings.js +1 -3
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/es/index.d.mts +9 -9
  8. package/build/es/index.mjs +2 -4
  9. package/build/es/index.mjs.map +1 -1
  10. package/build/es/index.typings.d.mts +14 -22
  11. package/build/es/index.typings.mjs +1 -3
  12. package/build/es/index.typings.mjs.map +1 -1
  13. package/build/internal/cjs/index.d.ts +9 -9
  14. package/build/internal/cjs/index.typings.d.ts +14 -22
  15. package/build/internal/es/index.d.mts +9 -9
  16. package/build/internal/es/index.typings.d.mts +14 -22
  17. package/package.json +5 -12
  18. package/build/cjs/schemas.d.ts +0 -1009
  19. package/build/cjs/schemas.js +0 -1595
  20. package/build/cjs/schemas.js.map +0 -1
  21. package/build/es/schemas.d.mts +0 -1009
  22. package/build/es/schemas.mjs +0 -1539
  23. package/build/es/schemas.mjs.map +0 -1
  24. package/build/internal/cjs/index.js +0 -1069
  25. package/build/internal/cjs/index.js.map +0 -1
  26. package/build/internal/cjs/index.typings.js +0 -963
  27. package/build/internal/cjs/index.typings.js.map +0 -1
  28. package/build/internal/cjs/meta.js +0 -796
  29. package/build/internal/cjs/meta.js.map +0 -1
  30. package/build/internal/cjs/schemas.d.ts +0 -1009
  31. package/build/internal/cjs/schemas.js +0 -1595
  32. package/build/internal/cjs/schemas.js.map +0 -1
  33. package/build/internal/es/index.mjs +0 -1016
  34. package/build/internal/es/index.mjs.map +0 -1
  35. package/build/internal/es/index.typings.mjs +0 -909
  36. package/build/internal/es/index.typings.mjs.map +0 -1
  37. package/build/internal/es/meta.mjs +0 -741
  38. package/build/internal/es/meta.mjs.map +0 -1
  39. package/build/internal/es/schemas.d.mts +0 -1009
  40. package/build/internal/es/schemas.mjs +0 -1539
  41. package/build/internal/es/schemas.mjs.map +0 -1
  42. package/schemas/package.json +0 -3
@@ -1,796 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // meta.ts
21
- var meta_exports = {};
22
- __export(meta_exports, {
23
- ContractSwitchReasonOriginal: () => ContractSwitchReason,
24
- ContractSwitchTypeOriginal: () => ContractSwitchType,
25
- CycleDescriptorTypeOriginal: () => CycleDescriptorType,
26
- FailureReasonCodeOriginal: () => FailureReasonCode,
27
- FieldToUpdateOriginal: () => FieldToUpdate,
28
- InitiatorOriginal: () => Initiator,
29
- IntervalIntervalUnitOriginal: () => IntervalIntervalUnit,
30
- IntervalUnitOriginal: () => IntervalUnit,
31
- PriceIncreaseTriggerOriginal: () => PriceIncreaseTrigger,
32
- ProductAdjustmentOriginal: () => ProductAdjustment,
33
- ProviderNameOriginal: () => ProviderName,
34
- ReactivationReasonEnumOriginal: () => ReactivationReasonEnum,
35
- RecurringChargeFailureReasonOriginal: () => RecurringChargeFailureReason,
36
- RefundTypeOriginal: () => RefundType,
37
- SortOrderOriginal: () => SortOrder,
38
- StatusOriginal: () => Status,
39
- SubscriptionStatusOriginal: () => SubscriptionStatus,
40
- UnassignReasonOriginal: () => UnassignReason,
41
- WebhookIdentityTypeOriginal: () => WebhookIdentityType,
42
- adjustProductInstanceSpecifications: () => adjustProductInstanceSpecifications2,
43
- assignProductInstanceToSite: () => assignProductInstanceToSite2,
44
- cancelPackage: () => cancelPackage2,
45
- cancelProductInstance: () => cancelProductInstance2,
46
- createPackage: () => createPackage2,
47
- createPackageV2: () => createPackageV22,
48
- getPackage: () => getPackage2,
49
- queryPackages: () => queryPackages2,
50
- unassignProductInstanceFromSite: () => unassignProductInstanceFromSite2,
51
- updatePackageExternalId: () => updatePackageExternalId2
52
- });
53
- module.exports = __toCommonJS(meta_exports);
54
-
55
- // src/premium-reseller-v1-packages-packages.http.ts
56
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
57
- var import_float = require("@wix/sdk-runtime/transformations/float");
58
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
59
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
60
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
61
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
62
- function resolveComWixpressPremiumResellerPackagesV1PackagesUrl(opts) {
63
- const domainToMappings = {
64
- "www.wixapis.com": [
65
- {
66
- srcPath: "/resellers/v1/packages",
67
- destPath: "/v1/packages"
68
- },
69
- {
70
- srcPath: "/resellers/v2/packages",
71
- destPath: "/v2/packages"
72
- }
73
- ],
74
- "api._api_base_domain_": [
75
- {
76
- srcPath: "/premium-reseller-packages",
77
- destPath: ""
78
- }
79
- ]
80
- };
81
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
82
- }
83
- var PACKAGE_NAME = "@wix/auto_sdk_packages_packages";
84
- function createPackage(payload) {
85
- function __createPackage({ host }) {
86
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
87
- {
88
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
89
- paths: [
90
- { path: "products.createdDate" },
91
- { path: "products.updatedDate" },
92
- { path: "products.expirationDate" }
93
- ]
94
- }
95
- ]);
96
- const metadata = {
97
- entityFqdn: "wix.premium.reseller.v1.packages",
98
- method: "POST",
99
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CreatePackage",
100
- packageName: PACKAGE_NAME,
101
- migrationOptions: {
102
- optInTransformResponse: true
103
- },
104
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
105
- protoPath: "/v1/packages",
106
- data: serializedData,
107
- host
108
- }),
109
- data: serializedData,
110
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
111
- {
112
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
113
- paths: [
114
- { path: "package.createdDate" },
115
- { path: "package.updatedDate" },
116
- { path: "package.productInstances.createdDate" },
117
- { path: "package.productInstances.updatedDate" },
118
- { path: "package.productInstances.expirationDate" }
119
- ]
120
- }
121
- ])
122
- };
123
- return metadata;
124
- }
125
- return __createPackage;
126
- }
127
- function createPackageV2(payload) {
128
- function __createPackageV2({ host }) {
129
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
130
- {
131
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
132
- paths: [
133
- { path: "products.createdDate" },
134
- { path: "products.updatedDate" },
135
- { path: "products.expirationDate" }
136
- ]
137
- }
138
- ]);
139
- const metadata = {
140
- entityFqdn: "wix.premium.reseller.v1.packages",
141
- method: "POST",
142
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CreatePackageV2",
143
- packageName: PACKAGE_NAME,
144
- migrationOptions: {
145
- optInTransformResponse: true
146
- },
147
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
148
- protoPath: "/v2/packages",
149
- data: serializedData,
150
- host
151
- }),
152
- data: serializedData,
153
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
154
- {
155
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
156
- paths: [
157
- { path: "package.createdDate" },
158
- { path: "package.updatedDate" },
159
- { path: "package.productInstances.createdDate" },
160
- { path: "package.productInstances.updatedDate" },
161
- { path: "package.productInstances.expirationDate" }
162
- ]
163
- }
164
- ])
165
- };
166
- return metadata;
167
- }
168
- return __createPackageV2;
169
- }
170
- function cancelPackage(payload) {
171
- function __cancelPackage({ host }) {
172
- const metadata = {
173
- entityFqdn: "wix.premium.reseller.v1.packages",
174
- method: "DELETE",
175
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CancelPackage",
176
- packageName: PACKAGE_NAME,
177
- migrationOptions: {
178
- optInTransformResponse: true
179
- },
180
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
181
- protoPath: "/v1/packages/{id}",
182
- data: payload,
183
- host
184
- }),
185
- params: (0, import_rest_modules.toURLSearchParams)(payload),
186
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
187
- {
188
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
189
- paths: [
190
- { path: "package.createdDate" },
191
- { path: "package.updatedDate" },
192
- { path: "package.productInstances.createdDate" },
193
- { path: "package.productInstances.updatedDate" },
194
- { path: "package.productInstances.expirationDate" }
195
- ]
196
- }
197
- ])
198
- };
199
- return metadata;
200
- }
201
- return __cancelPackage;
202
- }
203
- function getPackage(payload) {
204
- function __getPackage({ host }) {
205
- const metadata = {
206
- entityFqdn: "wix.premium.reseller.v1.packages",
207
- method: "GET",
208
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.GetPackage",
209
- packageName: PACKAGE_NAME,
210
- migrationOptions: {
211
- optInTransformResponse: true
212
- },
213
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
214
- protoPath: "/v1/packages/{id}",
215
- data: payload,
216
- host
217
- }),
218
- params: (0, import_rest_modules.toURLSearchParams)(payload),
219
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
220
- {
221
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
222
- paths: [
223
- { path: "package.createdDate" },
224
- { path: "package.updatedDate" },
225
- { path: "package.productInstances.createdDate" },
226
- { path: "package.productInstances.updatedDate" },
227
- { path: "package.productInstances.expirationDate" }
228
- ]
229
- }
230
- ])
231
- };
232
- return metadata;
233
- }
234
- return __getPackage;
235
- }
236
- function queryPackages(payload) {
237
- function __queryPackages({ host }) {
238
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
239
- {
240
- transformFn: import_float.transformSDKFloatToRESTFloat,
241
- paths: [
242
- { path: "query.sort.origin.latitude" },
243
- { path: "query.sort.origin.longitude" }
244
- ]
245
- }
246
- ]);
247
- const metadata = {
248
- entityFqdn: "wix.premium.reseller.v1.packages",
249
- method: "POST",
250
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.QueryPackages",
251
- packageName: PACKAGE_NAME,
252
- migrationOptions: {
253
- optInTransformResponse: true
254
- },
255
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
256
- protoPath: "/v1/packages/query",
257
- data: serializedData,
258
- host
259
- }),
260
- data: serializedData,
261
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
262
- {
263
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
264
- paths: [
265
- { path: "packages.createdDate" },
266
- { path: "packages.updatedDate" },
267
- { path: "packages.productInstances.createdDate" },
268
- { path: "packages.productInstances.updatedDate" },
269
- { path: "packages.productInstances.expirationDate" }
270
- ]
271
- }
272
- ])
273
- };
274
- return metadata;
275
- }
276
- return __queryPackages;
277
- }
278
- function assignProductInstanceToSite(payload) {
279
- function __assignProductInstanceToSite({ host }) {
280
- const metadata = {
281
- entityFqdn: "wix.premium.reseller.v1.packages",
282
- method: "PATCH",
283
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.AssignProductInstanceToSite",
284
- packageName: PACKAGE_NAME,
285
- migrationOptions: {
286
- optInTransformResponse: true
287
- },
288
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
289
- protoPath: "/v1/packages/product-instances/{instanceId}/{siteId}",
290
- data: payload,
291
- host
292
- }),
293
- data: payload,
294
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
295
- {
296
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
297
- paths: [
298
- { path: "package.createdDate" },
299
- { path: "package.updatedDate" },
300
- { path: "package.productInstances.createdDate" },
301
- { path: "package.productInstances.updatedDate" },
302
- { path: "package.productInstances.expirationDate" }
303
- ]
304
- }
305
- ])
306
- };
307
- return metadata;
308
- }
309
- return __assignProductInstanceToSite;
310
- }
311
- function unassignProductInstanceFromSite(payload) {
312
- function __unassignProductInstanceFromSite({ host }) {
313
- const metadata = {
314
- entityFqdn: "wix.premium.reseller.v1.packages",
315
- method: "PATCH",
316
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.UnassignProductInstanceFromSite",
317
- packageName: PACKAGE_NAME,
318
- migrationOptions: {
319
- optInTransformResponse: true
320
- },
321
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
322
- protoPath: "/v1/packages/product-instances/{instanceId}/unassign",
323
- data: payload,
324
- host
325
- }),
326
- data: payload,
327
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
328
- {
329
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
330
- paths: [
331
- { path: "package.createdDate" },
332
- { path: "package.updatedDate" },
333
- { path: "package.productInstances.createdDate" },
334
- { path: "package.productInstances.updatedDate" },
335
- { path: "package.productInstances.expirationDate" }
336
- ]
337
- }
338
- ])
339
- };
340
- return metadata;
341
- }
342
- return __unassignProductInstanceFromSite;
343
- }
344
- function cancelProductInstance(payload) {
345
- function __cancelProductInstance({ host }) {
346
- const metadata = {
347
- entityFqdn: "wix.premium.reseller.v1.packages",
348
- method: "DELETE",
349
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.CancelProductInstance",
350
- packageName: PACKAGE_NAME,
351
- migrationOptions: {
352
- optInTransformResponse: true
353
- },
354
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
355
- protoPath: "/v1/packages/product-instances/{instanceId}",
356
- data: payload,
357
- host
358
- }),
359
- params: (0, import_rest_modules.toURLSearchParams)(payload),
360
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
361
- {
362
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
363
- paths: [
364
- { path: "package.createdDate" },
365
- { path: "package.updatedDate" },
366
- { path: "package.productInstances.createdDate" },
367
- { path: "package.productInstances.updatedDate" },
368
- { path: "package.productInstances.expirationDate" }
369
- ]
370
- }
371
- ])
372
- };
373
- return metadata;
374
- }
375
- return __cancelProductInstance;
376
- }
377
- function adjustProductInstanceSpecifications(payload) {
378
- function __adjustProductInstanceSpecifications({ host }) {
379
- const metadata = {
380
- entityFqdn: "wix.premium.reseller.v1.packages",
381
- method: "PATCH",
382
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.AdjustProductInstanceSpecifications",
383
- packageName: PACKAGE_NAME,
384
- migrationOptions: {
385
- optInTransformResponse: true
386
- },
387
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
388
- protoPath: "/v1/packages/product-instances/{instanceId}",
389
- data: payload,
390
- host
391
- }),
392
- data: payload,
393
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
394
- {
395
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
396
- paths: [
397
- { path: "package.createdDate" },
398
- { path: "package.updatedDate" },
399
- { path: "package.productInstances.createdDate" },
400
- { path: "package.productInstances.updatedDate" },
401
- { path: "package.productInstances.expirationDate" }
402
- ]
403
- }
404
- ])
405
- };
406
- return metadata;
407
- }
408
- return __adjustProductInstanceSpecifications;
409
- }
410
- function updatePackageExternalId(payload) {
411
- function __updatePackageExternalId({ host }) {
412
- const metadata = {
413
- entityFqdn: "wix.premium.reseller.v1.packages",
414
- method: "PATCH",
415
- methodFqn: "com.wixpress.premium.reseller.packages.v1.Packages.UpdatePackageExternalId",
416
- packageName: PACKAGE_NAME,
417
- migrationOptions: {
418
- optInTransformResponse: true
419
- },
420
- url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
421
- protoPath: "/v1/packages/update/{packageId}/{externalId}",
422
- data: payload,
423
- host
424
- }),
425
- data: payload,
426
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
427
- {
428
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
429
- paths: [
430
- { path: "updatedPackage.createdDate" },
431
- { path: "updatedPackage.updatedDate" },
432
- { path: "updatedPackage.productInstances.createdDate" },
433
- { path: "updatedPackage.productInstances.updatedDate" },
434
- { path: "updatedPackage.productInstances.expirationDate" }
435
- ]
436
- }
437
- ])
438
- };
439
- return metadata;
440
- }
441
- return __updatePackageExternalId;
442
- }
443
-
444
- // src/premium-reseller-v1-packages-packages.types.ts
445
- var FailureReasonCode = /* @__PURE__ */ ((FailureReasonCode2) => {
446
- FailureReasonCode2["DELIVERY_TIMEOUT"] = "DELIVERY_TIMEOUT";
447
- FailureReasonCode2["EXTERNAL_FAILURE"] = "EXTERNAL_FAILURE";
448
- return FailureReasonCode2;
449
- })(FailureReasonCode || {});
450
- var IntervalIntervalUnit = /* @__PURE__ */ ((IntervalIntervalUnit2) => {
451
- IntervalIntervalUnit2["DAY"] = "DAY";
452
- IntervalIntervalUnit2["WEEK"] = "WEEK";
453
- IntervalIntervalUnit2["MONTH"] = "MONTH";
454
- IntervalIntervalUnit2["YEAR"] = "YEAR";
455
- return IntervalIntervalUnit2;
456
- })(IntervalIntervalUnit || {});
457
- var CycleDescriptorType = /* @__PURE__ */ ((CycleDescriptorType2) => {
458
- CycleDescriptorType2["ONE_TIME"] = "ONE_TIME";
459
- CycleDescriptorType2["RECURRING"] = "RECURRING";
460
- return CycleDescriptorType2;
461
- })(CycleDescriptorType || {});
462
- var Status = /* @__PURE__ */ ((Status2) => {
463
- Status2["PENDING"] = "PENDING";
464
- Status2["ENABLED"] = "ENABLED";
465
- Status2["CANCELED"] = "CANCELED";
466
- Status2["FAILED"] = "FAILED";
467
- Status2["AWAITING_ACTION"] = "AWAITING_ACTION";
468
- return Status2;
469
- })(Status || {});
470
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
471
- SortOrder2["ASC"] = "ASC";
472
- SortOrder2["DESC"] = "DESC";
473
- return SortOrder2;
474
- })(SortOrder || {});
475
- var ProviderName = /* @__PURE__ */ ((ProviderName2) => {
476
- ProviderName2["UNKNOWN"] = "UNKNOWN";
477
- ProviderName2["SBS"] = "SBS";
478
- ProviderName2["LICENSER"] = "LICENSER";
479
- ProviderName2["BASS"] = "BASS";
480
- ProviderName2["RESELLER"] = "RESELLER";
481
- ProviderName2["RECURRING_INVOICES"] = "RECURRING_INVOICES";
482
- return ProviderName2;
483
- })(ProviderName || {});
484
- var IntervalUnit = /* @__PURE__ */ ((IntervalUnit2) => {
485
- IntervalUnit2["UNKNOWN"] = "UNKNOWN";
486
- IntervalUnit2["DAY"] = "DAY";
487
- IntervalUnit2["WEEK"] = "WEEK";
488
- IntervalUnit2["MONTH"] = "MONTH";
489
- IntervalUnit2["YEAR"] = "YEAR";
490
- return IntervalUnit2;
491
- })(IntervalUnit || {});
492
- var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
493
- SubscriptionStatus2["UNKNOWN"] = "UNKNOWN";
494
- SubscriptionStatus2["AUTO_RENEW_ON"] = "AUTO_RENEW_ON";
495
- SubscriptionStatus2["AUTO_RENEW_OFF"] = "AUTO_RENEW_OFF";
496
- SubscriptionStatus2["MANUAL_RECURRING"] = "MANUAL_RECURRING";
497
- SubscriptionStatus2["CANCELLED"] = "CANCELLED";
498
- SubscriptionStatus2["TRANSFERRED"] = "TRANSFERRED";
499
- return SubscriptionStatus2;
500
- })(SubscriptionStatus || {});
501
- var ReactivationReasonEnum = /* @__PURE__ */ ((ReactivationReasonEnum2) => {
502
- ReactivationReasonEnum2["UNKNOWN"] = "UNKNOWN";
503
- ReactivationReasonEnum2["BILLING_STATUS_CHANGE"] = "BILLING_STATUS_CHANGE";
504
- ReactivationReasonEnum2["REACTIVATED_AFTER_CHARGEBACK"] = "REACTIVATED_AFTER_CHARGEBACK";
505
- return ReactivationReasonEnum2;
506
- })(ReactivationReasonEnum || {});
507
- var Initiator = /* @__PURE__ */ ((Initiator2) => {
508
- Initiator2["UNKNOWN"] = "UNKNOWN";
509
- Initiator2["USER_REQUESTED"] = "USER_REQUESTED";
510
- Initiator2["APP_MANAGED"] = "APP_MANAGED";
511
- Initiator2["PASSIVE"] = "PASSIVE";
512
- return Initiator2;
513
- })(Initiator || {});
514
- var RefundType = /* @__PURE__ */ ((RefundType2) => {
515
- RefundType2["UNKNOWN"] = "UNKNOWN";
516
- RefundType2["NO_REFUND"] = "NO_REFUND";
517
- RefundType2["FULL_REFUND"] = "FULL_REFUND";
518
- RefundType2["PRORATED_REFUND"] = "PRORATED_REFUND";
519
- return RefundType2;
520
- })(RefundType || {});
521
- var UnassignReason = /* @__PURE__ */ ((UnassignReason2) => {
522
- UnassignReason2["UNKNOWN"] = "UNKNOWN";
523
- UnassignReason2["USER_REQUESTED"] = "USER_REQUESTED";
524
- UnassignReason2["REPLACED_BY_ANOTHER_SUBSCRIPTION"] = "REPLACED_BY_ANOTHER_SUBSCRIPTION";
525
- return UnassignReason2;
526
- })(UnassignReason || {});
527
- var ContractSwitchType = /* @__PURE__ */ ((ContractSwitchType2) => {
528
- ContractSwitchType2["NOT_APPLICABLE"] = "NOT_APPLICABLE";
529
- ContractSwitchType2["ADDITIONAL_QUANTITY"] = "ADDITIONAL_QUANTITY";
530
- ContractSwitchType2["CREDIT_UNUSED_PERIOD"] = "CREDIT_UNUSED_PERIOD";
531
- ContractSwitchType2["REFUND_PRICE_DIFF"] = "REFUND_PRICE_DIFF";
532
- ContractSwitchType2["ADJUST_PERIOD_END"] = "ADJUST_PERIOD_END";
533
- ContractSwitchType2["DOWNGRADE_GRACE_PERIOD"] = "DOWNGRADE_GRACE_PERIOD";
534
- ContractSwitchType2["FULL_AMOUNT_PERIOD"] = "FULL_AMOUNT_PERIOD";
535
- ContractSwitchType2["END_OF_PERIOD"] = "END_OF_PERIOD";
536
- ContractSwitchType2["PENDING_CHANGES"] = "PENDING_CHANGES";
537
- ContractSwitchType2["DOWNGRADE_RENEWAL"] = "DOWNGRADE_RENEWAL";
538
- ContractSwitchType2["FIXED_BILLING_DATE_PRORATION"] = "FIXED_BILLING_DATE_PRORATION";
539
- ContractSwitchType2["IMMEDIATE_SWITCH"] = "IMMEDIATE_SWITCH";
540
- ContractSwitchType2["FLAT_PRICE_DIFFERENCE"] = "FLAT_PRICE_DIFFERENCE";
541
- return ContractSwitchType2;
542
- })(ContractSwitchType || {});
543
- var ContractSwitchReason = /* @__PURE__ */ ((ContractSwitchReason2) => {
544
- ContractSwitchReason2["EXTERNAL_PROVIDER_TRIGGER"] = "EXTERNAL_PROVIDER_TRIGGER";
545
- ContractSwitchReason2["PRICE_INCREASE"] = "PRICE_INCREASE";
546
- return ContractSwitchReason2;
547
- })(ContractSwitchReason || {});
548
- var PriceIncreaseTrigger = /* @__PURE__ */ ((PriceIncreaseTrigger2) => {
549
- PriceIncreaseTrigger2["NEAR_RENEWAL"] = "NEAR_RENEWAL";
550
- PriceIncreaseTrigger2["RECURRING_SUCCESS"] = "RECURRING_SUCCESS";
551
- PriceIncreaseTrigger2["MANUAL"] = "MANUAL";
552
- return PriceIncreaseTrigger2;
553
- })(PriceIncreaseTrigger || {});
554
- var ProductAdjustment = /* @__PURE__ */ ((ProductAdjustment2) => {
555
- ProductAdjustment2["NOT_APPLICABLE"] = "NOT_APPLICABLE";
556
- ProductAdjustment2["DOWNGRADE"] = "DOWNGRADE";
557
- return ProductAdjustment2;
558
- })(ProductAdjustment || {});
559
- var RecurringChargeFailureReason = /* @__PURE__ */ ((RecurringChargeFailureReason2) => {
560
- RecurringChargeFailureReason2["CHARGE_FAILURE"] = "CHARGE_FAILURE";
561
- RecurringChargeFailureReason2["CREDIT_CARD_EXPIRED"] = "CREDIT_CARD_EXPIRED";
562
- RecurringChargeFailureReason2["NO_ACTIVE_BILLING_ACCOUNT"] = "NO_ACTIVE_BILLING_ACCOUNT";
563
- return RecurringChargeFailureReason2;
564
- })(RecurringChargeFailureReason || {});
565
- var FieldToUpdate = /* @__PURE__ */ ((FieldToUpdate2) => {
566
- FieldToUpdate2["STATUS"] = "STATUS";
567
- FieldToUpdate2["COUNTRY_CODE"] = "COUNTRY_CODE";
568
- return FieldToUpdate2;
569
- })(FieldToUpdate || {});
570
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
571
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
572
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
573
- WebhookIdentityType2["MEMBER"] = "MEMBER";
574
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
575
- WebhookIdentityType2["APP"] = "APP";
576
- return WebhookIdentityType2;
577
- })(WebhookIdentityType || {});
578
-
579
- // src/premium-reseller-v1-packages-packages.meta.ts
580
- function createPackage2() {
581
- const payload = {};
582
- const getRequestOptions = createPackage(payload);
583
- const getUrl = (context) => {
584
- const { url } = getRequestOptions(context);
585
- return url;
586
- };
587
- return {
588
- getUrl,
589
- httpMethod: "POST",
590
- path: "/v1/packages",
591
- pathParams: {},
592
- __requestType: null,
593
- __originalRequestType: null,
594
- __responseType: null,
595
- __originalResponseType: null
596
- };
597
- }
598
- function createPackageV22() {
599
- const payload = {};
600
- const getRequestOptions = createPackageV2(payload);
601
- const getUrl = (context) => {
602
- const { url } = getRequestOptions(context);
603
- return url;
604
- };
605
- return {
606
- getUrl,
607
- httpMethod: "POST",
608
- path: "/v2/packages",
609
- pathParams: {},
610
- __requestType: null,
611
- __originalRequestType: null,
612
- __responseType: null,
613
- __originalResponseType: null
614
- };
615
- }
616
- function cancelPackage2() {
617
- const payload = { id: ":id" };
618
- const getRequestOptions = cancelPackage(payload);
619
- const getUrl = (context) => {
620
- const { url } = getRequestOptions(context);
621
- return url;
622
- };
623
- return {
624
- getUrl,
625
- httpMethod: "DELETE",
626
- path: "/v1/packages/{id}",
627
- pathParams: { id: "id" },
628
- __requestType: null,
629
- __originalRequestType: null,
630
- __responseType: null,
631
- __originalResponseType: null
632
- };
633
- }
634
- function getPackage2() {
635
- const payload = { id: ":id" };
636
- const getRequestOptions = getPackage(payload);
637
- const getUrl = (context) => {
638
- const { url } = getRequestOptions(context);
639
- return url;
640
- };
641
- return {
642
- getUrl,
643
- httpMethod: "GET",
644
- path: "/v1/packages/{id}",
645
- pathParams: { id: "id" },
646
- __requestType: null,
647
- __originalRequestType: null,
648
- __responseType: null,
649
- __originalResponseType: null
650
- };
651
- }
652
- function queryPackages2() {
653
- const payload = {};
654
- const getRequestOptions = queryPackages(payload);
655
- const getUrl = (context) => {
656
- const { url } = getRequestOptions(context);
657
- return url;
658
- };
659
- return {
660
- getUrl,
661
- httpMethod: "POST",
662
- path: "/v1/packages/query",
663
- pathParams: {},
664
- __requestType: null,
665
- __originalRequestType: null,
666
- __responseType: null,
667
- __originalResponseType: null
668
- };
669
- }
670
- function assignProductInstanceToSite2() {
671
- const payload = { instanceId: ":instanceId", siteId: ":siteId" };
672
- const getRequestOptions = assignProductInstanceToSite(payload);
673
- const getUrl = (context) => {
674
- const { url } = getRequestOptions(context);
675
- return url;
676
- };
677
- return {
678
- getUrl,
679
- httpMethod: "PATCH",
680
- path: "/v1/packages/product-instances/{instanceId}/{siteId}",
681
- pathParams: { instanceId: "instanceId", siteId: "siteId" },
682
- __requestType: null,
683
- __originalRequestType: null,
684
- __responseType: null,
685
- __originalResponseType: null
686
- };
687
- }
688
- function unassignProductInstanceFromSite2() {
689
- const payload = { instanceId: ":instanceId" };
690
- const getRequestOptions = unassignProductInstanceFromSite(
691
- payload
692
- );
693
- const getUrl = (context) => {
694
- const { url } = getRequestOptions(context);
695
- return url;
696
- };
697
- return {
698
- getUrl,
699
- httpMethod: "PATCH",
700
- path: "/v1/packages/product-instances/{instanceId}/unassign",
701
- pathParams: { instanceId: "instanceId" },
702
- __requestType: null,
703
- __originalRequestType: null,
704
- __responseType: null,
705
- __originalResponseType: null
706
- };
707
- }
708
- function cancelProductInstance2() {
709
- const payload = { instanceId: ":instanceId" };
710
- const getRequestOptions = cancelProductInstance(payload);
711
- const getUrl = (context) => {
712
- const { url } = getRequestOptions(context);
713
- return url;
714
- };
715
- return {
716
- getUrl,
717
- httpMethod: "DELETE",
718
- path: "/v1/packages/product-instances/{instanceId}",
719
- pathParams: { instanceId: "instanceId" },
720
- __requestType: null,
721
- __originalRequestType: null,
722
- __responseType: null,
723
- __originalResponseType: null
724
- };
725
- }
726
- function adjustProductInstanceSpecifications2() {
727
- const payload = { instanceId: ":instanceId" };
728
- const getRequestOptions = adjustProductInstanceSpecifications(
729
- payload
730
- );
731
- const getUrl = (context) => {
732
- const { url } = getRequestOptions(context);
733
- return url;
734
- };
735
- return {
736
- getUrl,
737
- httpMethod: "PATCH",
738
- path: "/v1/packages/product-instances/{instanceId}",
739
- pathParams: { instanceId: "instanceId" },
740
- __requestType: null,
741
- __originalRequestType: null,
742
- __responseType: null,
743
- __originalResponseType: null
744
- };
745
- }
746
- function updatePackageExternalId2() {
747
- const payload = { packageId: ":packageId", externalId: ":externalId" };
748
- const getRequestOptions = updatePackageExternalId(payload);
749
- const getUrl = (context) => {
750
- const { url } = getRequestOptions(context);
751
- return url;
752
- };
753
- return {
754
- getUrl,
755
- httpMethod: "PATCH",
756
- path: "/v1/packages/update/{packageId}/{externalId}",
757
- pathParams: { packageId: "packageId", externalId: "externalId" },
758
- __requestType: null,
759
- __originalRequestType: null,
760
- __responseType: null,
761
- __originalResponseType: null
762
- };
763
- }
764
- // Annotate the CommonJS export names for ESM import in node:
765
- 0 && (module.exports = {
766
- ContractSwitchReasonOriginal,
767
- ContractSwitchTypeOriginal,
768
- CycleDescriptorTypeOriginal,
769
- FailureReasonCodeOriginal,
770
- FieldToUpdateOriginal,
771
- InitiatorOriginal,
772
- IntervalIntervalUnitOriginal,
773
- IntervalUnitOriginal,
774
- PriceIncreaseTriggerOriginal,
775
- ProductAdjustmentOriginal,
776
- ProviderNameOriginal,
777
- ReactivationReasonEnumOriginal,
778
- RecurringChargeFailureReasonOriginal,
779
- RefundTypeOriginal,
780
- SortOrderOriginal,
781
- StatusOriginal,
782
- SubscriptionStatusOriginal,
783
- UnassignReasonOriginal,
784
- WebhookIdentityTypeOriginal,
785
- adjustProductInstanceSpecifications,
786
- assignProductInstanceToSite,
787
- cancelPackage,
788
- cancelProductInstance,
789
- createPackage,
790
- createPackageV2,
791
- getPackage,
792
- queryPackages,
793
- unassignProductInstanceFromSite,
794
- updatePackageExternalId
795
- });
796
- //# sourceMappingURL=meta.js.map