@wix/auto_sdk_loyalty_coupons 1.0.5 → 1.0.7

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 (129) hide show
  1. package/build/index.d.mts +100 -0
  2. package/build/index.d.ts +100 -0
  3. package/build/index.js +753 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +717 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +100 -0
  8. package/build/internal/index.d.ts +100 -0
  9. package/build/internal/index.js +753 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +717 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/{cjs/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-BpPn8h94.d.mts} +58 -260
  14. package/build/internal/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-BpPn8h94.d.ts} +58 -260
  15. package/build/internal/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.mts} +60 -253
  16. package/build/{es/src/loyalty-v1-coupon-coupons.types.d.ts → internal/meta.d.ts} +60 -253
  17. package/build/internal/meta.js +515 -0
  18. package/build/internal/meta.js.map +1 -0
  19. package/build/internal/meta.mjs +482 -0
  20. package/build/internal/meta.mjs.map +1 -0
  21. package/build/{cjs/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-BpPn8h94.d.mts} +58 -260
  22. package/build/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-BpPn8h94.d.ts} +58 -260
  23. package/build/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.mts} +60 -253
  24. package/build/{internal/es/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.ts} +60 -253
  25. package/build/meta.js +515 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +482 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  40. package/build/cjs/src/loyalty-v1-coupon-coupons.context.js +0 -29
  41. package/build/cjs/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  42. package/build/cjs/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  43. package/build/cjs/src/loyalty-v1-coupon-coupons.http.js +0 -389
  44. package/build/cjs/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  45. package/build/cjs/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  46. package/build/cjs/src/loyalty-v1-coupon-coupons.meta.js +0 -161
  47. package/build/cjs/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  48. package/build/cjs/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  49. package/build/cjs/src/loyalty-v1-coupon-coupons.public.js +0 -98
  50. package/build/cjs/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  51. package/build/cjs/src/loyalty-v1-coupon-coupons.types.js +0 -41
  52. package/build/cjs/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  53. package/build/cjs/src/loyalty-v1-coupon-coupons.universal.js +0 -370
  54. package/build/cjs/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  65. package/build/es/src/loyalty-v1-coupon-coupons.context.js +0 -22
  66. package/build/es/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  67. package/build/es/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  68. package/build/es/src/loyalty-v1-coupon-coupons.http.js +0 -379
  69. package/build/es/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  70. package/build/es/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  71. package/build/es/src/loyalty-v1-coupon-coupons.meta.js +0 -128
  72. package/build/es/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  73. package/build/es/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  74. package/build/es/src/loyalty-v1-coupon-coupons.public.js +0 -84
  75. package/build/es/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  76. package/build/es/src/loyalty-v1-coupon-coupons.types.js +0 -38
  77. package/build/es/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  78. package/build/es/src/loyalty-v1-coupon-coupons.universal.js +0 -337
  79. package/build/es/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
  80. package/build/internal/cjs/index.d.ts +0 -1
  81. package/build/internal/cjs/index.js +0 -18
  82. package/build/internal/cjs/index.js.map +0 -1
  83. package/build/internal/cjs/index.typings.d.ts +0 -1
  84. package/build/internal/cjs/index.typings.js +0 -18
  85. package/build/internal/cjs/index.typings.js.map +0 -1
  86. package/build/internal/cjs/meta.d.ts +0 -1
  87. package/build/internal/cjs/meta.js +0 -18
  88. package/build/internal/cjs/meta.js.map +0 -1
  89. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  90. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.js +0 -29
  91. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  92. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  93. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.js +0 -389
  94. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  95. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  96. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.js +0 -161
  97. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  98. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  99. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.js +0 -98
  100. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  101. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.types.js +0 -41
  102. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  103. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.universal.js +0 -370
  104. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
  105. package/build/internal/es/index.d.ts +0 -1
  106. package/build/internal/es/index.js +0 -2
  107. package/build/internal/es/index.js.map +0 -1
  108. package/build/internal/es/index.typings.d.ts +0 -1
  109. package/build/internal/es/index.typings.js +0 -2
  110. package/build/internal/es/index.typings.js.map +0 -1
  111. package/build/internal/es/meta.d.ts +0 -1
  112. package/build/internal/es/meta.js +0 -2
  113. package/build/internal/es/meta.js.map +0 -1
  114. package/build/internal/es/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  115. package/build/internal/es/src/loyalty-v1-coupon-coupons.context.js +0 -22
  116. package/build/internal/es/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  117. package/build/internal/es/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  118. package/build/internal/es/src/loyalty-v1-coupon-coupons.http.js +0 -379
  119. package/build/internal/es/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  120. package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  121. package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.js +0 -128
  122. package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  123. package/build/internal/es/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  124. package/build/internal/es/src/loyalty-v1-coupon-coupons.public.js +0 -84
  125. package/build/internal/es/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  126. package/build/internal/es/src/loyalty-v1-coupon-coupons.types.js +0 -38
  127. package/build/internal/es/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  128. package/build/internal/es/src/loyalty-v1-coupon-coupons.universal.js +0 -337
  129. package/build/internal/es/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
  * A loyalty coupon is created when a customer redeems their loyalty points for a reward. Creating a loyalty coupon
3
3
  * also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/api/rest/coupons/about-wix-coupons).
4
4
  */
5
- export interface LoyaltyCoupon {
5
+ interface LoyaltyCoupon {
6
6
  /**
7
7
  * Loyalty coupon ID.
8
8
  * @format GUID
@@ -75,7 +75,7 @@ export interface LoyaltyCoupon {
75
75
  */
76
76
  _updatedDate?: Date | null;
77
77
  }
78
- export interface CouponReference {
78
+ interface CouponReference {
79
79
  /**
80
80
  * Coupon ID.
81
81
  * @format GUID
@@ -107,7 +107,7 @@ export interface CouponReference {
107
107
  */
108
108
  deleted?: boolean | null;
109
109
  }
110
- export interface Specification extends SpecificationTypeDetailsOneOf, SpecificationScopeOrMinSubtotalOneOf {
110
+ interface Specification extends SpecificationTypeDetailsOneOf, SpecificationScopeOrMinSubtotalOneOf {
111
111
  /** Fixed price discount. */
112
112
  moneyOffAmount?: number;
113
113
  /** Discount as a percentage. */
@@ -153,7 +153,7 @@ export interface Specification extends SpecificationTypeDetailsOneOf, Specificat
153
153
  discountedCycleCount?: number | null;
154
154
  }
155
155
  /** @oneof */
156
- export interface SpecificationTypeDetailsOneOf {
156
+ interface SpecificationTypeDetailsOneOf {
157
157
  /** Fixed price discount. */
158
158
  moneyOffAmount?: number;
159
159
  /** Discount as a percentage. */
@@ -170,7 +170,7 @@ export interface SpecificationTypeDetailsOneOf {
170
170
  buyXGetY?: BuyXGetY;
171
171
  }
172
172
  /** @oneof */
173
- export interface SpecificationScopeOrMinSubtotalOneOf {
173
+ interface SpecificationScopeOrMinSubtotalOneOf {
174
174
  /**
175
175
  * Scope of the coupon. When no scope is defined, the coupon applies to all
176
176
  * items in all `namespaces` in the site.
@@ -179,7 +179,7 @@ export interface SpecificationScopeOrMinSubtotalOneOf {
179
179
  /** The coupon is only applicable when the order subtotal is over this amount. */
180
180
  minimumSubtotal?: number | null;
181
181
  }
182
- export declare enum Type {
182
+ declare enum Type {
183
183
  UNKNOWN = "UNKNOWN",
184
184
  MONEY_OFF_AMOUNT = "MONEY_OFF_AMOUNT",
185
185
  PERCENT_OFF_RATE = "PERCENT_OFF_RATE",
@@ -187,13 +187,13 @@ export declare enum Type {
187
187
  FIXED_PRICE_AMOUNT = "FIXED_PRICE_AMOUNT",
188
188
  BUY_X_GET_Y = "BUY_X_GET_Y"
189
189
  }
190
- export interface BuyXGetY {
190
+ interface BuyXGetY {
191
191
  /** Number of purchased items required to receive free items. */
192
192
  x?: number;
193
193
  /** Number of items received for free if required number of items were purchased. */
194
194
  y?: number;
195
195
  }
196
- export interface Scope {
196
+ interface Scope {
197
197
  /**
198
198
  * Group within a `namespace` for which the coupon is applicable.
199
199
  *
@@ -221,7 +221,7 @@ export interface Scope {
221
221
  */
222
222
  namespace?: string;
223
223
  }
224
- export declare enum Status {
224
+ declare enum Status {
225
225
  /** Unknown status. */
226
226
  UNKNOWN = "UNKNOWN",
227
227
  /** The reference coupon was created but the loyalty points have not been redeemed yet. */
@@ -235,7 +235,7 @@ export declare enum Status {
235
235
  /** The reference coupon was deleted. */
236
236
  ARCHIVED = "ARCHIVED"
237
237
  }
238
- export interface RedeemPointsForCouponRequest {
238
+ interface RedeemPointsForCouponRequest {
239
239
  /**
240
240
  * ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
241
241
  * @format GUID
@@ -247,22 +247,22 @@ export interface RedeemPointsForCouponRequest {
247
247
  */
248
248
  loyaltyAccountId: string;
249
249
  }
250
- export interface RedeemPointsForCouponResponse {
250
+ interface RedeemPointsForCouponResponse {
251
251
  /** Created loyalty coupon. */
252
252
  coupon?: LoyaltyCoupon;
253
253
  }
254
- export interface RedeemCurrentMemberPointsForCouponRequest {
254
+ interface RedeemCurrentMemberPointsForCouponRequest {
255
255
  /**
256
256
  * ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
257
257
  * @format GUID
258
258
  */
259
259
  rewardId: string;
260
260
  }
261
- export interface RedeemCurrentMemberPointsForCouponResponse {
261
+ interface RedeemCurrentMemberPointsForCouponResponse {
262
262
  /** Created loyalty coupon. */
263
263
  coupon?: LoyaltyCoupon;
264
264
  }
265
- export interface RedeemMemberPointsForDiscountAmountCouponRequest {
265
+ interface RedeemMemberPointsForDiscountAmountCouponRequest {
266
266
  /**
267
267
  * ID of the [loyalty reward](https://dev.wix.com/api/rest/wix-loyalty-program/rewards) to redeem.
268
268
  * @format GUID
@@ -278,28 +278,28 @@ export interface RedeemMemberPointsForDiscountAmountCouponRequest {
278
278
  /** Coupon specification. */
279
279
  specification?: Specification;
280
280
  }
281
- export interface RedeemMemberPointsForDiscountAmountCouponResponse {
281
+ interface RedeemMemberPointsForDiscountAmountCouponResponse {
282
282
  /** Created loyalty coupon. */
283
283
  coupon?: LoyaltyCoupon;
284
284
  /** Transaction id of the coupon redemption */
285
285
  transactionId?: string;
286
286
  }
287
- export interface GetLoyaltyCouponRequest {
287
+ interface GetLoyaltyCouponRequest {
288
288
  /**
289
289
  * ID of the loyalty coupon to retrieve.
290
290
  * @format GUID
291
291
  */
292
292
  loyaltyCouponId: string;
293
293
  }
294
- export interface GetLoyaltyCouponResponse {
294
+ interface GetLoyaltyCouponResponse {
295
295
  /** Retrieved loyalty coupon. */
296
296
  loyaltyCoupon?: LoyaltyCoupon;
297
297
  }
298
- export interface BulkGetLoyaltyCouponRequest {
298
+ interface BulkGetLoyaltyCouponRequest {
299
299
  /** Query to filter loyalty coupons. */
300
300
  query?: CursorQuery;
301
301
  }
302
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
302
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
303
303
  /**
304
304
  * Cursor paging options.
305
305
  *
@@ -321,7 +321,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
321
321
  sort?: Sorting[];
322
322
  }
323
323
  /** @oneof */
324
- export interface CursorQueryPagingMethodOneOf {
324
+ interface CursorQueryPagingMethodOneOf {
325
325
  /**
326
326
  * Cursor paging options.
327
327
  *
@@ -329,7 +329,7 @@ export interface CursorQueryPagingMethodOneOf {
329
329
  */
330
330
  cursorPaging?: CursorPaging;
331
331
  }
332
- export interface Sorting {
332
+ interface Sorting {
333
333
  /**
334
334
  * Name of the field to sort by.
335
335
  * @maxLength 512
@@ -338,11 +338,11 @@ export interface Sorting {
338
338
  /** Sort order. */
339
339
  order?: SortOrder;
340
340
  }
341
- export declare enum SortOrder {
341
+ declare enum SortOrder {
342
342
  ASC = "ASC",
343
343
  DESC = "DESC"
344
344
  }
345
- export interface CursorPaging {
345
+ interface CursorPaging {
346
346
  /**
347
347
  * Maximum number of items to return in the results.
348
348
  * @max 100
@@ -357,14 +357,14 @@ export interface CursorPaging {
357
357
  */
358
358
  cursor?: string | null;
359
359
  }
360
- export interface BulkGetLoyaltyCouponResponse {
360
+ interface BulkGetLoyaltyCouponResponse {
361
361
  /**
362
362
  * Retrieved loyalty coupons.
363
363
  * @maxSize 100
364
364
  */
365
365
  couponsInSite?: CouponsInSite[];
366
366
  }
367
- export interface CouponsInSite {
367
+ interface CouponsInSite {
368
368
  /**
369
369
  * Metasite id
370
370
  * @format GUID
@@ -376,17 +376,17 @@ export interface CouponsInSite {
376
376
  */
377
377
  loyaltyCoupons?: LoyaltyCoupon[];
378
378
  }
379
- export interface GetCurrentMemberCouponsRequest {
379
+ interface GetCurrentMemberCouponsRequest {
380
380
  }
381
- export interface GetCurrentMemberCouponsResponse {
381
+ interface GetCurrentMemberCouponsResponse {
382
382
  /** Retrieved loyalty coupons. */
383
383
  loyaltyCoupons?: LoyaltyCoupon[];
384
384
  }
385
- export interface QueryLoyaltyCouponRequest {
385
+ interface QueryLoyaltyCouponRequest {
386
386
  /** Query options. */
387
387
  query: QueryV2;
388
388
  }
389
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
389
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
390
390
  /** Paging options to limit and skip the number of items. */
391
391
  paging?: Paging;
392
392
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
@@ -409,25 +409,25 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
409
409
  fieldsets?: string[];
410
410
  }
411
411
  /** @oneof */
412
- export interface QueryV2PagingMethodOneOf {
412
+ interface QueryV2PagingMethodOneOf {
413
413
  /** Paging options to limit and skip the number of items. */
414
414
  paging?: Paging;
415
415
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
416
416
  cursorPaging?: CursorPaging;
417
417
  }
418
- export interface Paging {
418
+ interface Paging {
419
419
  /** Number of items to load. */
420
420
  limit?: number | null;
421
421
  /** Number of items to skip in the current sort order. */
422
422
  offset?: number | null;
423
423
  }
424
- export interface QueryLoyaltyCouponResponse {
424
+ interface QueryLoyaltyCouponResponse {
425
425
  /** Retrieved loyalty coupons. */
426
426
  loyaltyCoupons?: LoyaltyCoupon[];
427
427
  /** Metadata. */
428
428
  metadata?: PagingMetadataV2;
429
429
  }
430
- export interface PagingMetadataV2 {
430
+ interface PagingMetadataV2 {
431
431
  /** Number of items returned in the response. */
432
432
  count?: number | null;
433
433
  /** Offset that was requested. */
@@ -439,7 +439,7 @@ export interface PagingMetadataV2 {
439
439
  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
440
440
  cursors?: Cursors;
441
441
  }
442
- export interface Cursors {
442
+ interface Cursors {
443
443
  /**
444
444
  * Cursor string pointing to the next page in the list of results.
445
445
  * @maxLength 16000
@@ -451,7 +451,7 @@ export interface Cursors {
451
451
  */
452
452
  prev?: string | null;
453
453
  }
454
- export interface DeleteLoyaltyCouponRequest {
454
+ interface DeleteLoyaltyCouponRequest {
455
455
  /**
456
456
  * ID of the loyalty coupon to delete.
457
457
  * @format GUID
@@ -464,9 +464,9 @@ export interface DeleteLoyaltyCouponRequest {
464
464
  */
465
465
  revision?: string;
466
466
  }
467
- export interface DeleteLoyaltyCouponResponse {
467
+ interface DeleteLoyaltyCouponResponse {
468
468
  }
469
- export interface DomainEvent extends DomainEventBodyOneOf {
469
+ interface DomainEvent extends DomainEventBodyOneOf {
470
470
  createdEvent?: EntityCreatedEvent;
471
471
  updatedEvent?: EntityUpdatedEvent;
472
472
  deletedEvent?: EntityDeletedEvent;
@@ -509,19 +509,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
509
509
  entityEventSequence?: string | null;
510
510
  }
511
511
  /** @oneof */
512
- export interface DomainEventBodyOneOf {
512
+ interface DomainEventBodyOneOf {
513
513
  createdEvent?: EntityCreatedEvent;
514
514
  updatedEvent?: EntityUpdatedEvent;
515
515
  deletedEvent?: EntityDeletedEvent;
516
516
  actionEvent?: ActionEvent;
517
517
  }
518
- export interface EntityCreatedEvent {
518
+ interface EntityCreatedEvent {
519
519
  entity?: string;
520
520
  }
521
- export interface RestoreInfo {
521
+ interface RestoreInfo {
522
522
  deletedDate?: Date | null;
523
523
  }
524
- export interface EntityUpdatedEvent {
524
+ interface EntityUpdatedEvent {
525
525
  /**
526
526
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
527
527
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -529,16 +529,16 @@ export interface EntityUpdatedEvent {
529
529
  */
530
530
  currentEntity?: string;
531
531
  }
532
- export interface EntityDeletedEvent {
532
+ interface EntityDeletedEvent {
533
533
  /** Entity that was deleted */
534
534
  deletedEntity?: string | null;
535
535
  }
536
- export interface ActionEvent {
536
+ interface ActionEvent {
537
537
  body?: string;
538
538
  }
539
- export interface Empty {
539
+ interface Empty {
540
540
  }
541
- export interface MessageEnvelope {
541
+ interface MessageEnvelope {
542
542
  /**
543
543
  * App instance ID.
544
544
  * @format GUID
@@ -554,7 +554,7 @@ export interface MessageEnvelope {
554
554
  /** Stringify payload. */
555
555
  data?: string;
556
556
  }
557
- export interface IdentificationData extends IdentificationDataIdOneOf {
557
+ interface IdentificationData extends IdentificationDataIdOneOf {
558
558
  /**
559
559
  * ID of a site visitor that has not logged in to the site.
560
560
  * @format GUID
@@ -579,7 +579,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
579
579
  identityType?: WebhookIdentityType;
580
580
  }
581
581
  /** @oneof */
582
- export interface IdentificationDataIdOneOf {
582
+ interface IdentificationDataIdOneOf {
583
583
  /**
584
584
  * ID of a site visitor that has not logged in to the site.
585
585
  * @format GUID
@@ -601,66 +601,14 @@ export interface IdentificationDataIdOneOf {
601
601
  */
602
602
  appId?: string;
603
603
  }
604
- export declare enum WebhookIdentityType {
604
+ declare enum WebhookIdentityType {
605
605
  UNKNOWN = "UNKNOWN",
606
606
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
607
607
  MEMBER = "MEMBER",
608
608
  WIX_USER = "WIX_USER",
609
609
  APP = "APP"
610
610
  }
611
- interface BuyXGetYNonNullableFields {
612
- x: number;
613
- y: number;
614
- }
615
- interface ScopeNonNullableFields {
616
- namespace: string;
617
- }
618
- interface SpecificationNonNullableFields {
619
- moneyOffAmount: number;
620
- percentOffRate: number;
621
- freeShipping: boolean;
622
- fixedPriceAmount: number;
623
- buyXGetY?: BuyXGetYNonNullableFields;
624
- scope?: ScopeNonNullableFields;
625
- type: Type;
626
- }
627
- interface CouponReferenceNonNullableFields {
628
- couponId: string;
629
- code: string;
630
- specification?: SpecificationNonNullableFields;
631
- }
632
- export interface LoyaltyCouponNonNullableFields {
633
- _id: string;
634
- accountId: string;
635
- memberIdDeprecated: string;
636
- couponReference?: CouponReferenceNonNullableFields;
637
- status: Status;
638
- rewardName: string;
639
- }
640
- export interface RedeemPointsForCouponResponseNonNullableFields {
641
- coupon?: LoyaltyCouponNonNullableFields;
642
- }
643
- export interface RedeemCurrentMemberPointsForCouponResponseNonNullableFields {
644
- coupon?: LoyaltyCouponNonNullableFields;
645
- transactionId: string;
646
- }
647
- export interface GetLoyaltyCouponResponseNonNullableFields {
648
- loyaltyCoupon?: LoyaltyCouponNonNullableFields;
649
- }
650
- interface CouponsInSiteNonNullableFields {
651
- metaSiteId: string;
652
- loyaltyCoupons: LoyaltyCouponNonNullableFields[];
653
- }
654
- export interface BulkGetLoyaltyCouponResponseNonNullableFields {
655
- couponsInSite: CouponsInSiteNonNullableFields[];
656
- }
657
- export interface GetCurrentMemberCouponsResponseNonNullableFields {
658
- loyaltyCoupons: LoyaltyCouponNonNullableFields[];
659
- }
660
- export interface QueryLoyaltyCouponResponseNonNullableFields {
661
- loyaltyCoupons: LoyaltyCouponNonNullableFields[];
662
- }
663
- export interface BaseEventMetadata {
611
+ interface BaseEventMetadata {
664
612
  /**
665
613
  * App instance ID.
666
614
  * @format GUID
@@ -674,7 +622,7 @@ export interface BaseEventMetadata {
674
622
  /** The identification type and identity data. */
675
623
  identity?: IdentificationData;
676
624
  }
677
- export interface EventMetadata extends BaseEventMetadata {
625
+ interface EventMetadata extends BaseEventMetadata {
678
626
  /**
679
627
  * Unique event ID.
680
628
  * Allows clients to ignore duplicate webhooks.
@@ -712,155 +660,24 @@ export interface EventMetadata extends BaseEventMetadata {
712
660
  */
713
661
  entityEventSequence?: string | null;
714
662
  }
715
- export interface CouponCreatedEnvelope {
663
+ interface CouponCreatedEnvelope {
716
664
  entity: LoyaltyCoupon;
717
665
  metadata: EventMetadata;
718
666
  }
719
- /**
720
- * Triggered when a loyalty coupon is created.
721
- * @permissionScope Read Loyalty
722
- * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
723
- * @permissionScope Manage Loyalty
724
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
725
- * @permissionScope Manage Restaurants - all permissions
726
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
727
- * @permissionId LOYALTY.READ_COUPONS
728
- * @webhook
729
- * @eventType wix.loyalty.v1.coupon_created
730
- * @serviceIdentifier com.wixpress.loyalty.coupon.LoyaltyCoupons
731
- * @slug created
732
- */
733
- export declare function onCouponCreated(handler: (event: CouponCreatedEnvelope) => void | Promise<void>): void;
734
- export interface CouponDeletedEnvelope {
667
+ interface CouponDeletedEnvelope {
735
668
  metadata: EventMetadata;
736
669
  }
737
- /**
738
- * Triggered when a loyalty coupon is deleted.
739
- * @permissionScope Read Loyalty
740
- * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
741
- * @permissionScope Manage Loyalty
742
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
743
- * @permissionScope Manage Restaurants - all permissions
744
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
745
- * @permissionId LOYALTY.READ_COUPONS
746
- * @webhook
747
- * @eventType wix.loyalty.v1.coupon_deleted
748
- * @serviceIdentifier com.wixpress.loyalty.coupon.LoyaltyCoupons
749
- * @slug deleted
750
- */
751
- export declare function onCouponDeleted(handler: (event: CouponDeletedEnvelope) => void | Promise<void>): void;
752
- /**
753
- * Redeems a customer's loyalty points for a loyalty reward and creates a loyalty coupon.
754
- *
755
- * Creating a loyalty coupon also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/api/rest/coupons/about-wix-coupons).
756
- * The customer receives the reference coupon, which they can apply to their order. The loyalty coupon and its corresponding reference coupon
757
- * are linked and the loyalty coupon's `status` reflects the current state of the reference coupon.
758
- *
759
- * Check which loyalty rewards a site has available with [List Rewards](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/list-rewards).
760
- * @param rewardId - ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
761
- * @public
762
- * @requiredField options
763
- * @requiredField options.loyaltyAccountId
764
- * @requiredField rewardId
765
- * @permissionId LOYALTY.REDEEM_COUPON
766
- * @permissionScope Manage Restaurants - all permissions
767
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
768
- * @applicableIdentity APP
769
- * @fqn com.wixpress.loyalty.coupon.LoyaltyCoupons.RedeemPointsForCoupon
770
- */
771
- export declare function redeemPointsForCoupon(rewardId: string, options: RedeemPointsForCouponOptions): Promise<RedeemPointsForCouponResponse & RedeemPointsForCouponResponseNonNullableFields>;
772
- export interface RedeemPointsForCouponOptions {
670
+ interface RedeemPointsForCouponOptions {
773
671
  /**
774
672
  * ID of the [loyalty account](https://dev.wix.com/docs/rest/crm/loyalty-program/accounts/account-object) of the customer redeeming points.
775
673
  * @format GUID
776
674
  */
777
675
  loyaltyAccountId: string;
778
676
  }
779
- /**
780
- * Redeems a current customer's loyalty points for a loyalty reward and creates a loyalty coupon.
781
- *
782
- * Creating a loyalty coupon also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/api/rest/coupons/about-wix-coupons).
783
- * The customer receives the reference coupon, which they can apply to their order. The loyalty coupon and its corresponding reference coupon
784
- * are linked and the loyalty coupon's `status` reflects the current state of the reference coupon.
785
- *
786
- * Check which loyalty rewards a site has available with [List Rewards](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/list-rewards).
787
- *
788
- * >**Note:**
789
- * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
790
- * @param rewardId - ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
791
- * @public
792
- * @requiredField rewardId
793
- * @permissionId LOYALTY.REDEEM_OWN_COUPON
794
- * @permissionScope Manage Loyalty
795
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
796
- * @permissionScope Manage Restaurants - all permissions
797
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
798
- * @applicableIdentity APP
799
- * @applicableIdentity MEMBER
800
- * @fqn com.wixpress.loyalty.coupon.LoyaltyCoupons.RedeemCurrentMemberPointsForCoupon
801
- */
802
- export declare function redeemCurrentMemberPointsForCoupon(rewardId: string): Promise<RedeemCurrentMemberPointsForCouponResponse & RedeemCurrentMemberPointsForCouponResponseNonNullableFields>;
803
- /**
804
- * Retrieves a loyalty coupon.
805
- * @param loyaltyCouponId - ID of the loyalty coupon to retrieve.
806
- * @public
807
- * @requiredField loyaltyCouponId
808
- * @permissionId LOYALTY.READ_COUPONS
809
- * @permissionScope Read Loyalty
810
- * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
811
- * @permissionScope Manage Loyalty
812
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
813
- * @permissionScope Manage Restaurants - all permissions
814
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
815
- * @applicableIdentity APP
816
- * @returns Retrieved loyalty coupon.
817
- * @fqn com.wixpress.loyalty.coupon.LoyaltyCoupons.GetLoyaltyCoupon
818
- */
819
- export declare function getLoyaltyCoupon(loyaltyCouponId: string): Promise<LoyaltyCoupon & LoyaltyCouponNonNullableFields>;
820
- /**
821
- * Retrieves a sequence of loyalty coupons
822
- * @public
823
- * @documentationMaturity preview
824
- * @permissionId LOYALTY.REWARD_BULK_READ
825
- * @fqn com.wixpress.loyalty.coupon.LoyaltyCoupons.BulkGetLoyaltyCoupon
826
- */
827
- export declare function bulkGetLoyaltyCoupon(options?: BulkGetLoyaltyCouponOptions): Promise<BulkGetLoyaltyCouponResponse & BulkGetLoyaltyCouponResponseNonNullableFields>;
828
- export interface BulkGetLoyaltyCouponOptions {
677
+ interface BulkGetLoyaltyCouponOptions {
829
678
  /** Query to filter loyalty coupons. */
830
679
  query?: CursorQuery;
831
680
  }
832
- /**
833
- * Retrieves the loyalty coupons for the currently logged-in member.
834
- *
835
- * >**Note:**
836
- * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
837
- * @public
838
- * @permissionId LOYALTY.READ_OWN_COUPONS
839
- * @permissionScope Read Loyalty
840
- * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
841
- * @permissionScope Manage Loyalty
842
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
843
- * @permissionScope Manage Restaurants - all permissions
844
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
845
- * @applicableIdentity APP
846
- * @applicableIdentity MEMBER
847
- * @fqn com.wixpress.loyalty.coupon.LoyaltyCoupons.GetCurrentMemberCoupons
848
- */
849
- export declare function getCurrentMemberCoupons(): Promise<GetCurrentMemberCouponsResponse & GetCurrentMemberCouponsResponseNonNullableFields>;
850
- /**
851
- * Retrieves a list of loyalty coupons, given the provided paging, filtering, and sorting.
852
- * @public
853
- * @permissionScope Read Loyalty
854
- * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
855
- * @permissionScope Manage Loyalty
856
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
857
- * @permissionScope Manage Restaurants - all permissions
858
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
859
- * @permissionId LOYALTY.READ_COUPONS
860
- * @applicableIdentity APP
861
- * @fqn com.wixpress.loyalty.coupon.LoyaltyCoupons.QueryLoyaltyCoupon
862
- */
863
- export declare function queryLoyaltyCoupons(): LoyaltyCouponsQueryBuilder;
864
681
  interface QueryCursorResult {
865
682
  cursors: Cursors;
866
683
  hasNext: () => boolean;
@@ -868,13 +685,13 @@ interface QueryCursorResult {
868
685
  length: number;
869
686
  pageSize: number;
870
687
  }
871
- export interface LoyaltyCouponsQueryResult extends QueryCursorResult {
688
+ interface LoyaltyCouponsQueryResult extends QueryCursorResult {
872
689
  items: LoyaltyCoupon[];
873
690
  query: LoyaltyCouponsQueryBuilder;
874
691
  next: () => Promise<LoyaltyCouponsQueryResult>;
875
692
  prev: () => Promise<LoyaltyCouponsQueryResult>;
876
693
  }
877
- export interface LoyaltyCouponsQueryBuilder {
694
+ interface LoyaltyCouponsQueryBuilder {
878
695
  /** @param propertyName - Property whose value is compared with `value`.
879
696
  * @param value - Value to compare against.
880
697
  */
@@ -919,24 +736,5 @@ export interface LoyaltyCouponsQueryBuilder {
919
736
  skipTo: (cursor: string) => LoyaltyCouponsQueryBuilder;
920
737
  find: () => Promise<LoyaltyCouponsQueryResult>;
921
738
  }
922
- /**
923
- * Deletes a loyalty coupon.
924
- *
925
- * The deletion of a loyalty coupon does not impact the functionality of the corresponding coupon itself.
926
- * @param _id - ID of the loyalty coupon to delete.
927
- * @param revision - Revision number, which increments by 1 each time the loyalty coupon is updated.
928
- *
929
- * To prevent conflicting changes, the current `revision` must be passed when updating the loyalty coupon.
930
- * @public
931
- * @requiredField _id
932
- * @requiredField revision
933
- * @permissionId LOYALTY.MANAGE_COUPONS
934
- * @permissionScope Manage Loyalty
935
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
936
- * @permissionScope Manage Restaurants - all permissions
937
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
938
- * @applicableIdentity APP
939
- * @fqn com.wixpress.loyalty.coupon.LoyaltyCoupons.DeleteLoyaltyCoupon
940
- */
941
- export declare function deleteLoyaltyCoupon(_id: string, revision: string): Promise<void>;
942
- export {};
739
+
740
+ export { type CouponCreatedEnvelope as $, type PagingMetadataV2 as A, type BulkGetLoyaltyCouponOptions as B, type CouponReference as C, type Cursors as D, type DeleteLoyaltyCouponRequest as E, type DeleteLoyaltyCouponResponse as F, type GetCurrentMemberCouponsResponse as G, type DomainEvent as H, type DomainEventBodyOneOf as I, type EntityCreatedEvent as J, type RestoreInfo as K, type LoyaltyCoupon as L, type EntityUpdatedEvent as M, type EntityDeletedEvent as N, type ActionEvent as O, type Paging as P, type QueryLoyaltyCouponRequest as Q, type RedeemPointsForCouponOptions as R, Status as S, Type as T, type Empty as U, type MessageEnvelope as V, WebhookIdentityType as W, type IdentificationData as X, type IdentificationDataIdOneOf as Y, type BaseEventMetadata as Z, type EventMetadata as _, type RedeemPointsForCouponResponse as a, type CouponDeletedEnvelope as a0, type LoyaltyCouponsQueryResult as a1, type RedeemCurrentMemberPointsForCouponResponse as b, type BulkGetLoyaltyCouponResponse as c, type LoyaltyCouponsQueryBuilder as d, SortOrder as e, type Specification as f, type SpecificationTypeDetailsOneOf as g, type SpecificationScopeOrMinSubtotalOneOf as h, type BuyXGetY as i, type Scope as j, type RedeemPointsForCouponRequest as k, type RedeemCurrentMemberPointsForCouponRequest as l, type RedeemMemberPointsForDiscountAmountCouponRequest as m, type RedeemMemberPointsForDiscountAmountCouponResponse as n, type GetLoyaltyCouponRequest as o, type GetLoyaltyCouponResponse as p, type BulkGetLoyaltyCouponRequest as q, type CursorQuery as r, type CursorQueryPagingMethodOneOf as s, type Sorting as t, type CursorPaging as u, type CouponsInSite as v, type GetCurrentMemberCouponsRequest as w, type QueryV2 as x, type QueryV2PagingMethodOneOf as y, type QueryLoyaltyCouponResponse as z };