@wix/auto_sdk_loyalty_coupons 1.0.13 → 1.0.15

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 (119) hide show
  1. package/build/cjs/index.d.ts +101 -1
  2. package/build/cjs/index.js +753 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/{internal/cjs/src/loyalty-v1-coupon-coupons.universal.d.ts → cjs/loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.ts} +62 -222
  5. package/build/cjs/meta.d.ts +478 -1
  6. package/build/cjs/meta.js +512 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/es/index.d.mts +101 -0
  9. package/build/es/index.mjs +720 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/{internal/es/src/loyalty-v1-coupon-coupons.universal.d.ts → es/loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.mts} +62 -222
  12. package/build/{internal/cjs/src/loyalty-v1-coupon-coupons.types.d.ts → es/meta.d.mts} +64 -198
  13. package/build/es/meta.mjs +482 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/internal/cjs/index.d.ts +101 -1
  16. package/build/internal/cjs/index.js +753 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/{cjs/src/loyalty-v1-coupon-coupons.universal.d.ts → internal/cjs/loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.ts} +62 -222
  19. package/build/internal/cjs/meta.d.ts +478 -1
  20. package/build/internal/cjs/meta.js +512 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/index.d.mts +101 -0
  23. package/build/internal/es/index.mjs +720 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → internal/es/loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.mts} +62 -222
  26. package/build/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → internal/es/meta.d.mts} +64 -198
  27. package/build/internal/es/meta.mjs +482 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +10 -9
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  34. package/build/cjs/src/loyalty-v1-coupon-coupons.context.js +0 -29
  35. package/build/cjs/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  36. package/build/cjs/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  37. package/build/cjs/src/loyalty-v1-coupon-coupons.http.js +0 -389
  38. package/build/cjs/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  39. package/build/cjs/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  40. package/build/cjs/src/loyalty-v1-coupon-coupons.meta.js +0 -161
  41. package/build/cjs/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  42. package/build/cjs/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  43. package/build/cjs/src/loyalty-v1-coupon-coupons.public.js +0 -98
  44. package/build/cjs/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  45. package/build/cjs/src/loyalty-v1-coupon-coupons.types.js +0 -41
  46. package/build/cjs/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  47. package/build/cjs/src/loyalty-v1-coupon-coupons.universal.js +0 -372
  48. package/build/cjs/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
  49. package/build/es/index.d.ts +0 -1
  50. package/build/es/index.js +0 -2
  51. package/build/es/index.js.map +0 -1
  52. package/build/es/index.typings.d.ts +0 -1
  53. package/build/es/index.typings.js +0 -2
  54. package/build/es/index.typings.js.map +0 -1
  55. package/build/es/meta.d.ts +0 -1
  56. package/build/es/meta.js +0 -2
  57. package/build/es/meta.js.map +0 -1
  58. package/build/es/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  59. package/build/es/src/loyalty-v1-coupon-coupons.context.js +0 -22
  60. package/build/es/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  61. package/build/es/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  62. package/build/es/src/loyalty-v1-coupon-coupons.http.js +0 -379
  63. package/build/es/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  64. package/build/es/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  65. package/build/es/src/loyalty-v1-coupon-coupons.meta.js +0 -128
  66. package/build/es/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  67. package/build/es/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  68. package/build/es/src/loyalty-v1-coupon-coupons.public.js +0 -84
  69. package/build/es/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  70. package/build/es/src/loyalty-v1-coupon-coupons.types.d.ts +0 -612
  71. package/build/es/src/loyalty-v1-coupon-coupons.types.js +0 -38
  72. package/build/es/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  73. package/build/es/src/loyalty-v1-coupon-coupons.universal.js +0 -339
  74. package/build/es/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
  75. package/build/internal/cjs/index.typings.d.ts +0 -1
  76. package/build/internal/cjs/index.typings.js +0 -18
  77. package/build/internal/cjs/index.typings.js.map +0 -1
  78. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  79. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.js +0 -29
  80. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  81. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  82. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.js +0 -389
  83. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  84. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  85. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.js +0 -161
  86. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  87. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  88. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.js +0 -98
  89. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  90. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.types.js +0 -41
  91. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  92. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.universal.js +0 -372
  93. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  104. package/build/internal/es/src/loyalty-v1-coupon-coupons.context.js +0 -22
  105. package/build/internal/es/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  106. package/build/internal/es/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  107. package/build/internal/es/src/loyalty-v1-coupon-coupons.http.js +0 -379
  108. package/build/internal/es/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  109. package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  110. package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.js +0 -128
  111. package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  112. package/build/internal/es/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  113. package/build/internal/es/src/loyalty-v1-coupon-coupons.public.js +0 -84
  114. package/build/internal/es/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  115. package/build/internal/es/src/loyalty-v1-coupon-coupons.types.d.ts +0 -612
  116. package/build/internal/es/src/loyalty-v1-coupon-coupons.types.js +0 -38
  117. package/build/internal/es/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  118. package/build/internal/es/src/loyalty-v1-coupon-coupons.universal.js +0 -339
  119. package/build/internal/es/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
@@ -1,8 +1,10 @@
1
+ import { m as RedeemPointsForCouponRequest$1, a as RedeemPointsForCouponResponse$1, n as RedeemCurrentMemberPointsForCouponRequest$1, b as RedeemCurrentMemberPointsForCouponResponse$1, q as GetLoyaltyCouponRequest$1, r as GetLoyaltyCouponResponse$1, s as BulkGetLoyaltyCouponRequest$1, c as BulkGetLoyaltyCouponResponse$1, y as GetCurrentMemberCouponsRequest$1, G as GetCurrentMemberCouponsResponse$1, Q as QueryLoyaltyCouponRequest$1, D as QueryLoyaltyCouponResponse$1, H as DeleteLoyaltyCouponRequest$1, I as DeleteLoyaltyCouponResponse$1 } from './loyalty-v1-coupon-coupons.universal-YZSAPFpG.mjs';
2
+
1
3
  /**
2
4
  * A loyalty coupon is created when a customer redeems their loyalty points for a reward. Creating a loyalty coupon
3
5
  * also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/api/rest/coupons/about-wix-coupons).
4
6
  */
5
- export interface LoyaltyCoupon {
7
+ interface LoyaltyCoupon {
6
8
  /**
7
9
  * Loyalty coupon ID.
8
10
  * @format GUID
@@ -75,7 +77,7 @@ export interface LoyaltyCoupon {
75
77
  */
76
78
  updatedDate?: Date | null;
77
79
  }
78
- export interface CouponReference {
80
+ interface CouponReference {
79
81
  /**
80
82
  * Coupon ID.
81
83
  * @format GUID
@@ -107,7 +109,7 @@ export interface CouponReference {
107
109
  */
108
110
  deleted?: boolean | null;
109
111
  }
110
- export interface Specification extends SpecificationTypeDetailsOneOf, SpecificationScopeOrMinSubtotalOneOf {
112
+ interface Specification extends SpecificationTypeDetailsOneOf, SpecificationScopeOrMinSubtotalOneOf {
111
113
  /** Fixed price discount. */
112
114
  moneyOffAmount?: number;
113
115
  /** Discount as a percentage. */
@@ -153,7 +155,7 @@ export interface Specification extends SpecificationTypeDetailsOneOf, Specificat
153
155
  discountedCycleCount?: number | null;
154
156
  }
155
157
  /** @oneof */
156
- export interface SpecificationTypeDetailsOneOf {
158
+ interface SpecificationTypeDetailsOneOf {
157
159
  /** Fixed price discount. */
158
160
  moneyOffAmount?: number;
159
161
  /** Discount as a percentage. */
@@ -170,7 +172,7 @@ export interface SpecificationTypeDetailsOneOf {
170
172
  buyXGetY?: BuyXGetY;
171
173
  }
172
174
  /** @oneof */
173
- export interface SpecificationScopeOrMinSubtotalOneOf {
175
+ interface SpecificationScopeOrMinSubtotalOneOf {
174
176
  /**
175
177
  * Scope of the coupon. When no scope is defined, the coupon applies to all
176
178
  * items in all `namespaces` in the site.
@@ -179,7 +181,7 @@ export interface SpecificationScopeOrMinSubtotalOneOf {
179
181
  /** The coupon is only applicable when the order subtotal is over this amount. */
180
182
  minimumSubtotal?: number | null;
181
183
  }
182
- export declare enum Type {
184
+ declare enum Type {
183
185
  UNKNOWN = "UNKNOWN",
184
186
  MONEY_OFF_AMOUNT = "MONEY_OFF_AMOUNT",
185
187
  PERCENT_OFF_RATE = "PERCENT_OFF_RATE",
@@ -188,14 +190,14 @@ export declare enum Type {
188
190
  BUY_X_GET_Y = "BUY_X_GET_Y"
189
191
  }
190
192
  /** @enumType */
191
- export type TypeWithLiterals = Type | 'UNKNOWN' | 'MONEY_OFF_AMOUNT' | 'PERCENT_OFF_RATE' | 'FREE_SHIPPING' | 'FIXED_PRICE_AMOUNT' | 'BUY_X_GET_Y';
192
- export interface BuyXGetY {
193
+ type TypeWithLiterals = Type | 'UNKNOWN' | 'MONEY_OFF_AMOUNT' | 'PERCENT_OFF_RATE' | 'FREE_SHIPPING' | 'FIXED_PRICE_AMOUNT' | 'BUY_X_GET_Y';
194
+ interface BuyXGetY {
193
195
  /** Number of purchased items required to receive free items. */
194
196
  x?: number;
195
197
  /** Number of items received for free if required number of items were purchased. */
196
198
  y?: number;
197
199
  }
198
- export interface Scope {
200
+ interface Scope {
199
201
  /**
200
202
  * Group within a `namespace` for which the coupon is applicable.
201
203
  *
@@ -223,7 +225,7 @@ export interface Scope {
223
225
  */
224
226
  namespace?: string;
225
227
  }
226
- export declare enum Status {
228
+ declare enum Status {
227
229
  /** Unknown status. */
228
230
  UNKNOWN = "UNKNOWN",
229
231
  /** The reference coupon was created but the loyalty points have not been redeemed yet. */
@@ -238,8 +240,8 @@ export declare enum Status {
238
240
  ARCHIVED = "ARCHIVED"
239
241
  }
240
242
  /** @enumType */
241
- export type StatusWithLiterals = Status | 'UNKNOWN' | 'PENDING' | 'ACTIVE' | 'APPLIED' | 'FAILED' | 'ARCHIVED';
242
- export interface RedeemPointsForCouponRequest {
243
+ type StatusWithLiterals = Status | 'UNKNOWN' | 'PENDING' | 'ACTIVE' | 'APPLIED' | 'FAILED' | 'ARCHIVED';
244
+ interface RedeemPointsForCouponRequest {
243
245
  /**
244
246
  * ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
245
247
  * @format GUID
@@ -251,59 +253,37 @@ export interface RedeemPointsForCouponRequest {
251
253
  */
252
254
  loyaltyAccountId: string;
253
255
  }
254
- export interface RedeemPointsForCouponResponse {
256
+ interface RedeemPointsForCouponResponse {
255
257
  /** Created loyalty coupon. */
256
258
  coupon?: LoyaltyCoupon;
257
259
  }
258
- export interface RedeemCurrentMemberPointsForCouponRequest {
260
+ interface RedeemCurrentMemberPointsForCouponRequest {
259
261
  /**
260
262
  * ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
261
263
  * @format GUID
262
264
  */
263
265
  rewardId: string;
264
266
  }
265
- export interface RedeemCurrentMemberPointsForCouponResponse {
267
+ interface RedeemCurrentMemberPointsForCouponResponse {
266
268
  /** Created loyalty coupon. */
267
269
  coupon?: LoyaltyCoupon;
268
270
  }
269
- export interface RedeemMemberPointsForDiscountAmountCouponRequest {
270
- /**
271
- * ID of the [loyalty reward](https://dev.wix.com/api/rest/wix-loyalty-program/rewards) to redeem.
272
- * @format GUID
273
- */
274
- rewardId?: string;
275
- /**
276
- * Loyalty account id.
277
- * @format GUID
278
- */
279
- loyaltyAccountId?: string;
280
- /** Number of points to redeem. */
281
- pointsToRedeem?: number;
282
- /** Coupon specification. */
283
- specification?: Specification;
284
- }
285
- export interface RedeemMemberPointsForDiscountAmountCouponResponse {
286
- /** Created loyalty coupon. */
287
- coupon?: LoyaltyCoupon;
288
- /** Transaction id of the coupon redemption */
289
- transactionId?: string;
290
- }
291
- export interface GetLoyaltyCouponRequest {
271
+ interface GetLoyaltyCouponRequest {
292
272
  /**
293
273
  * ID of the loyalty coupon to retrieve.
294
274
  * @format GUID
295
275
  */
296
276
  loyaltyCouponId: string;
297
277
  }
298
- export interface GetLoyaltyCouponResponse {
278
+ interface GetLoyaltyCouponResponse {
299
279
  /** Retrieved loyalty coupon. */
300
280
  loyaltyCoupon?: LoyaltyCoupon;
301
281
  }
302
- export interface BulkGetLoyaltyCouponRequest {
282
+ interface BulkGetLoyaltyCouponRequest {
303
283
  /** Query to filter loyalty coupons. */
304
284
  query?: CursorQuery;
305
285
  }
306
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
286
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
307
287
  /**
308
288
  * Cursor paging options.
309
289
  *
@@ -325,7 +305,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
325
305
  sort?: Sorting[];
326
306
  }
327
307
  /** @oneof */
328
- export interface CursorQueryPagingMethodOneOf {
308
+ interface CursorQueryPagingMethodOneOf {
329
309
  /**
330
310
  * Cursor paging options.
331
311
  *
@@ -333,7 +313,7 @@ export interface CursorQueryPagingMethodOneOf {
333
313
  */
334
314
  cursorPaging?: CursorPaging;
335
315
  }
336
- export interface Sorting {
316
+ interface Sorting {
337
317
  /**
338
318
  * Name of the field to sort by.
339
319
  * @maxLength 512
@@ -342,13 +322,13 @@ export interface Sorting {
342
322
  /** Sort order. */
343
323
  order?: SortOrderWithLiterals;
344
324
  }
345
- export declare enum SortOrder {
325
+ declare enum SortOrder {
346
326
  ASC = "ASC",
347
327
  DESC = "DESC"
348
328
  }
349
329
  /** @enumType */
350
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
351
- export interface CursorPaging {
330
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
331
+ interface CursorPaging {
352
332
  /**
353
333
  * Maximum number of items to return in the results.
354
334
  * @max 100
@@ -363,14 +343,14 @@ export interface CursorPaging {
363
343
  */
364
344
  cursor?: string | null;
365
345
  }
366
- export interface BulkGetLoyaltyCouponResponse {
346
+ interface BulkGetLoyaltyCouponResponse {
367
347
  /**
368
348
  * Retrieved loyalty coupons.
369
349
  * @maxSize 100
370
350
  */
371
351
  couponsInSite?: CouponsInSite[];
372
352
  }
373
- export interface CouponsInSite {
353
+ interface CouponsInSite {
374
354
  /**
375
355
  * Metasite id
376
356
  * @format GUID
@@ -382,17 +362,17 @@ export interface CouponsInSite {
382
362
  */
383
363
  loyaltyCoupons?: LoyaltyCoupon[];
384
364
  }
385
- export interface GetCurrentMemberCouponsRequest {
365
+ interface GetCurrentMemberCouponsRequest {
386
366
  }
387
- export interface GetCurrentMemberCouponsResponse {
367
+ interface GetCurrentMemberCouponsResponse {
388
368
  /** Retrieved loyalty coupons. */
389
369
  loyaltyCoupons?: LoyaltyCoupon[];
390
370
  }
391
- export interface QueryLoyaltyCouponRequest {
371
+ interface QueryLoyaltyCouponRequest {
392
372
  /** Query options. */
393
373
  query: QueryV2;
394
374
  }
395
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
375
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
396
376
  /** Paging options to limit and skip the number of items. */
397
377
  paging?: Paging;
398
378
  /** 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`. */
@@ -415,25 +395,25 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
415
395
  fieldsets?: string[];
416
396
  }
417
397
  /** @oneof */
418
- export interface QueryV2PagingMethodOneOf {
398
+ interface QueryV2PagingMethodOneOf {
419
399
  /** Paging options to limit and skip the number of items. */
420
400
  paging?: Paging;
421
401
  /** 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`. */
422
402
  cursorPaging?: CursorPaging;
423
403
  }
424
- export interface Paging {
404
+ interface Paging {
425
405
  /** Number of items to load. */
426
406
  limit?: number | null;
427
407
  /** Number of items to skip in the current sort order. */
428
408
  offset?: number | null;
429
409
  }
430
- export interface QueryLoyaltyCouponResponse {
410
+ interface QueryLoyaltyCouponResponse {
431
411
  /** Retrieved loyalty coupons. */
432
412
  loyaltyCoupons?: LoyaltyCoupon[];
433
413
  /** Metadata. */
434
414
  metadata?: PagingMetadataV2;
435
415
  }
436
- export interface PagingMetadataV2 {
416
+ interface PagingMetadataV2 {
437
417
  /** Number of items returned in the response. */
438
418
  count?: number | null;
439
419
  /** Offset that was requested. */
@@ -445,7 +425,7 @@ export interface PagingMetadataV2 {
445
425
  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
446
426
  cursors?: Cursors;
447
427
  }
448
- export interface Cursors {
428
+ interface Cursors {
449
429
  /**
450
430
  * Cursor string pointing to the next page in the list of results.
451
431
  * @maxLength 16000
@@ -457,7 +437,7 @@ export interface Cursors {
457
437
  */
458
438
  prev?: string | null;
459
439
  }
460
- export interface DeleteLoyaltyCouponRequest {
440
+ interface DeleteLoyaltyCouponRequest {
461
441
  /**
462
442
  * ID of the loyalty coupon to delete.
463
443
  * @format GUID
@@ -470,143 +450,29 @@ export interface DeleteLoyaltyCouponRequest {
470
450
  */
471
451
  revision?: string;
472
452
  }
473
- export interface DeleteLoyaltyCouponResponse {
474
- }
475
- export interface DomainEvent extends DomainEventBodyOneOf {
476
- createdEvent?: EntityCreatedEvent;
477
- updatedEvent?: EntityUpdatedEvent;
478
- deletedEvent?: EntityDeletedEvent;
479
- actionEvent?: ActionEvent;
480
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
481
- id?: string;
482
- /**
483
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
484
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
485
- */
486
- entityFqdn?: string;
487
- /**
488
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
489
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
490
- */
491
- slug?: string;
492
- /** ID of the entity associated with the event. */
493
- entityId?: string;
494
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
495
- eventTime?: Date | null;
496
- /**
497
- * Whether the event was triggered as a result of a privacy regulation application
498
- * (for example, GDPR).
499
- */
500
- triggeredByAnonymizeRequest?: boolean | null;
501
- /** If present, indicates the action that triggered the event. */
502
- originatedFrom?: string | null;
503
- /**
504
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
505
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
506
- */
507
- entityEventSequence?: string | null;
508
- }
509
- /** @oneof */
510
- export interface DomainEventBodyOneOf {
511
- createdEvent?: EntityCreatedEvent;
512
- updatedEvent?: EntityUpdatedEvent;
513
- deletedEvent?: EntityDeletedEvent;
514
- actionEvent?: ActionEvent;
515
- }
516
- export interface EntityCreatedEvent {
517
- entityAsJson?: string;
518
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
519
- restoreInfo?: RestoreInfo;
520
- }
521
- export interface RestoreInfo {
522
- deletedDate?: Date | null;
523
- }
524
- export interface EntityUpdatedEvent {
525
- /**
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
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
528
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
529
- */
530
- currentEntityAsJson?: string;
531
- }
532
- export interface EntityDeletedEvent {
533
- /** Entity that was deleted. */
534
- deletedEntityAsJson?: string | null;
535
- }
536
- export interface ActionEvent {
537
- bodyAsJson?: string;
538
- }
539
- export interface Empty {
540
- }
541
- export interface MessageEnvelope {
542
- /**
543
- * App instance ID.
544
- * @format GUID
545
- */
546
- instanceId?: string | null;
547
- /**
548
- * Event type.
549
- * @maxLength 150
550
- */
551
- eventType?: string;
552
- /** The identification type and identity data. */
553
- identity?: IdentificationData;
554
- /** Stringify payload. */
555
- data?: string;
556
- }
557
- export interface IdentificationData extends IdentificationDataIdOneOf {
558
- /**
559
- * ID of a site visitor that has not logged in to the site.
560
- * @format GUID
561
- */
562
- anonymousVisitorId?: string;
563
- /**
564
- * ID of a site visitor that has logged in to the site.
565
- * @format GUID
566
- */
567
- memberId?: string;
568
- /**
569
- * ID of a Wix user (site owner, contributor, etc.).
570
- * @format GUID
571
- */
572
- wixUserId?: string;
573
- /**
574
- * ID of an app.
575
- * @format GUID
576
- */
577
- appId?: string;
578
- /** @readonly */
579
- identityType?: WebhookIdentityTypeWithLiterals;
580
- }
581
- /** @oneof */
582
- export interface IdentificationDataIdOneOf {
583
- /**
584
- * ID of a site visitor that has not logged in to the site.
585
- * @format GUID
586
- */
587
- anonymousVisitorId?: string;
588
- /**
589
- * ID of a site visitor that has logged in to the site.
590
- * @format GUID
591
- */
592
- memberId?: string;
593
- /**
594
- * ID of a Wix user (site owner, contributor, etc.).
595
- * @format GUID
596
- */
597
- wixUserId?: string;
598
- /**
599
- * ID of an app.
600
- * @format GUID
601
- */
602
- appId?: string;
603
- }
604
- export declare enum WebhookIdentityType {
605
- UNKNOWN = "UNKNOWN",
606
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
607
- MEMBER = "MEMBER",
608
- WIX_USER = "WIX_USER",
609
- APP = "APP"
610
- }
611
- /** @enumType */
612
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
453
+ interface DeleteLoyaltyCouponResponse {
454
+ }
455
+
456
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
457
+ getUrl: (context: any) => string;
458
+ httpMethod: K;
459
+ path: string;
460
+ pathParams: M;
461
+ __requestType: T;
462
+ __originalRequestType: S;
463
+ __responseType: Q;
464
+ __originalResponseType: R;
465
+ };
466
+ declare function redeemPointsForCoupon(): __PublicMethodMetaInfo<'POST', {}, RedeemPointsForCouponRequest$1, RedeemPointsForCouponRequest, RedeemPointsForCouponResponse$1, RedeemPointsForCouponResponse>;
467
+ declare function redeemCurrentMemberPointsForCoupon(): __PublicMethodMetaInfo<'POST', {}, RedeemCurrentMemberPointsForCouponRequest$1, RedeemCurrentMemberPointsForCouponRequest, RedeemCurrentMemberPointsForCouponResponse$1, RedeemCurrentMemberPointsForCouponResponse>;
468
+ declare function getLoyaltyCoupon(): __PublicMethodMetaInfo<'GET', {
469
+ loyaltyCouponId: string;
470
+ }, GetLoyaltyCouponRequest$1, GetLoyaltyCouponRequest, GetLoyaltyCouponResponse$1, GetLoyaltyCouponResponse>;
471
+ declare function bulkGetLoyaltyCoupon(): __PublicMethodMetaInfo<'GET', {}, BulkGetLoyaltyCouponRequest$1, BulkGetLoyaltyCouponRequest, BulkGetLoyaltyCouponResponse$1, BulkGetLoyaltyCouponResponse>;
472
+ declare function getCurrentMemberCoupons(): __PublicMethodMetaInfo<'GET', {}, GetCurrentMemberCouponsRequest$1, GetCurrentMemberCouponsRequest, GetCurrentMemberCouponsResponse$1, GetCurrentMemberCouponsResponse>;
473
+ declare function queryLoyaltyCoupons(): __PublicMethodMetaInfo<'POST', {}, QueryLoyaltyCouponRequest$1, QueryLoyaltyCouponRequest, QueryLoyaltyCouponResponse$1, QueryLoyaltyCouponResponse>;
474
+ declare function deleteLoyaltyCoupon(): __PublicMethodMetaInfo<'DELETE', {
475
+ id: string;
476
+ }, DeleteLoyaltyCouponRequest$1, DeleteLoyaltyCouponRequest, DeleteLoyaltyCouponResponse$1, DeleteLoyaltyCouponResponse>;
477
+
478
+ export { type __PublicMethodMetaInfo, bulkGetLoyaltyCoupon, deleteLoyaltyCoupon, getCurrentMemberCoupons, getLoyaltyCoupon, queryLoyaltyCoupons, redeemCurrentMemberPointsForCoupon, redeemPointsForCoupon };