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