@wix/auto_sdk_loyalty_coupons 1.0.13 → 1.0.14

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 (130) hide show
  1. package/build/index.d.mts +101 -0
  2. package/build/index.d.ts +101 -0
  3. package/build/index.js +756 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +720 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +101 -0
  8. package/build/internal/index.d.ts +101 -0
  9. package/build/internal/index.js +756 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +720 -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-YZSAPFpG.d.mts} +62 -222
  14. package/build/internal/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.ts} +62 -222
  15. package/build/internal/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.mts} +64 -198
  16. package/build/{es/src/loyalty-v1-coupon-coupons.types.d.ts → internal/meta.d.ts} +64 -198
  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-YZSAPFpG.d.mts} +62 -222
  22. package/build/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.ts} +62 -222
  23. package/build/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.mts} +64 -198
  24. package/build/{internal/es/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.ts} +64 -198
  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 -372
  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/package.json +0 -3
  65. package/build/es/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  66. package/build/es/src/loyalty-v1-coupon-coupons.context.js +0 -22
  67. package/build/es/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  68. package/build/es/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  69. package/build/es/src/loyalty-v1-coupon-coupons.http.js +0 -379
  70. package/build/es/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  71. package/build/es/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  72. package/build/es/src/loyalty-v1-coupon-coupons.meta.js +0 -128
  73. package/build/es/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  74. package/build/es/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  75. package/build/es/src/loyalty-v1-coupon-coupons.public.js +0 -84
  76. package/build/es/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  77. package/build/es/src/loyalty-v1-coupon-coupons.types.js +0 -38
  78. package/build/es/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  79. package/build/es/src/loyalty-v1-coupon-coupons.universal.js +0 -339
  80. package/build/es/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  91. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.js +0 -29
  92. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  93. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  94. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.js +0 -389
  95. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  96. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  97. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.js +0 -161
  98. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  99. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  100. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.js +0 -98
  101. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  102. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.types.js +0 -41
  103. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  104. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.universal.js +0 -372
  105. package/build/internal/cjs/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
  116. package/build/internal/es/src/loyalty-v1-coupon-coupons.context.js +0 -22
  117. package/build/internal/es/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
  118. package/build/internal/es/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
  119. package/build/internal/es/src/loyalty-v1-coupon-coupons.http.js +0 -379
  120. package/build/internal/es/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
  121. package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
  122. package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.js +0 -128
  123. package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
  124. package/build/internal/es/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
  125. package/build/internal/es/src/loyalty-v1-coupon-coupons.public.js +0 -84
  126. package/build/internal/es/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
  127. package/build/internal/es/src/loyalty-v1-coupon-coupons.types.js +0 -38
  128. package/build/internal/es/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
  129. package/build/internal/es/src/loyalty-v1-coupon-coupons.universal.js +0 -339
  130. package/build/internal/es/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
@@ -0,0 +1,101 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { R as RedeemPointsForCouponOptions, a as RedeemPointsForCouponResponse, b as RedeemCurrentMemberPointsForCouponResponse, L as LoyaltyCoupon, B as BulkGetLoyaltyCouponOptions, c as BulkGetLoyaltyCouponResponse, G as GetCurrentMemberCouponsResponse, d as LoyaltyCouponsQueryBuilder, C as CouponCreatedEnvelope, e as CouponDeletedEnvelope } from './loyalty-v1-coupon-coupons.universal-YZSAPFpG.mjs';
3
+ export { V as ActionEvent, $ as BaseEventMetadata, s as BulkGetLoyaltyCouponRequest, k as BuyXGetY, g as CouponReference, x as CouponsInSite, w as CursorPaging, t as CursorQuery, u as CursorQueryPagingMethodOneOf, F as Cursors, H as DeleteLoyaltyCouponRequest, I as DeleteLoyaltyCouponResponse, J as DomainEvent, K as DomainEventBodyOneOf, X as Empty, M as EntityCreatedEvent, U as EntityDeletedEvent, O as EntityUpdatedEvent, a0 as EventMetadata, y as GetCurrentMemberCouponsRequest, q as GetLoyaltyCouponRequest, r as GetLoyaltyCouponResponse, Z as IdentificationData, _ as IdentificationDataIdOneOf, a1 as LoyaltyCouponsQueryResult, Y as MessageEnvelope, P as Paging, E as PagingMetadataV2, Q as QueryLoyaltyCouponRequest, D as QueryLoyaltyCouponResponse, z as QueryV2, A as QueryV2PagingMethodOneOf, n as RedeemCurrentMemberPointsForCouponRequest, o as RedeemMemberPointsForDiscountAmountCouponRequest, p as RedeemMemberPointsForDiscountAmountCouponResponse, m as RedeemPointsForCouponRequest, N as RestoreInfo, l as Scope, f as SortOrder, v as Sorting, h as Specification, j as SpecificationScopeOrMinSubtotalOneOf, i as SpecificationTypeDetailsOneOf, S as Status, T as Type, W as WebhookIdentityType } from './loyalty-v1-coupon-coupons.universal-YZSAPFpG.mjs';
4
+
5
+ declare function redeemPointsForCoupon$1(httpClient: HttpClient): RedeemPointsForCouponSignature;
6
+ interface RedeemPointsForCouponSignature {
7
+ /**
8
+ * Redeems a customer's loyalty points for a loyalty reward and creates a loyalty coupon.
9
+ *
10
+ * Creating a loyalty coupon also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/api/rest/coupons/about-wix-coupons).
11
+ * The customer receives the reference coupon, which they can apply to their order. The loyalty coupon and its corresponding reference coupon
12
+ * are linked and the loyalty coupon's `status` reflects the current state of the reference coupon.
13
+ *
14
+ * Check which loyalty rewards a site has available with [List Rewards](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/list-rewards).
15
+ * @param - ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
16
+ */
17
+ (rewardId: string, options: RedeemPointsForCouponOptions): Promise<RedeemPointsForCouponResponse>;
18
+ }
19
+ declare function redeemCurrentMemberPointsForCoupon$1(httpClient: HttpClient): RedeemCurrentMemberPointsForCouponSignature;
20
+ interface RedeemCurrentMemberPointsForCouponSignature {
21
+ /**
22
+ * Redeems a current customer's loyalty points for a loyalty reward and creates a loyalty coupon.
23
+ *
24
+ * Creating a loyalty coupon also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/api/rest/coupons/about-wix-coupons).
25
+ * The customer receives the reference coupon, which they can apply to their order. The loyalty coupon and its corresponding reference coupon
26
+ * are linked and the loyalty coupon's `status` reflects the current state of the reference coupon.
27
+ *
28
+ * Check which loyalty rewards a site has available with [List Rewards](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/list-rewards).
29
+ *
30
+ * >**Note:**
31
+ * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
32
+ * @param - ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
33
+ */
34
+ (rewardId: string): Promise<RedeemCurrentMemberPointsForCouponResponse>;
35
+ }
36
+ declare function getLoyaltyCoupon$1(httpClient: HttpClient): GetLoyaltyCouponSignature;
37
+ interface GetLoyaltyCouponSignature {
38
+ /**
39
+ * Retrieves a loyalty coupon.
40
+ * @param - ID of the loyalty coupon to retrieve.
41
+ * @returns Retrieved loyalty coupon.
42
+ */
43
+ (loyaltyCouponId: string): Promise<LoyaltyCoupon>;
44
+ }
45
+ declare function bulkGetLoyaltyCoupon$1(httpClient: HttpClient): BulkGetLoyaltyCouponSignature;
46
+ interface BulkGetLoyaltyCouponSignature {
47
+ /**
48
+ * Retrieves a sequence of loyalty coupons
49
+ */
50
+ (options?: BulkGetLoyaltyCouponOptions | undefined): Promise<BulkGetLoyaltyCouponResponse>;
51
+ }
52
+ declare function getCurrentMemberCoupons$1(httpClient: HttpClient): GetCurrentMemberCouponsSignature;
53
+ interface GetCurrentMemberCouponsSignature {
54
+ /**
55
+ * Retrieves the loyalty coupons for the currently logged-in member.
56
+ *
57
+ * >**Note:**
58
+ * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
59
+ */
60
+ (): Promise<GetCurrentMemberCouponsResponse>;
61
+ }
62
+ declare function queryLoyaltyCoupons$1(httpClient: HttpClient): QueryLoyaltyCouponsSignature;
63
+ interface QueryLoyaltyCouponsSignature {
64
+ /**
65
+ * Retrieves a list of loyalty coupons, given the provided paging, filtering, and sorting.
66
+ */
67
+ (): LoyaltyCouponsQueryBuilder;
68
+ }
69
+ declare function deleteLoyaltyCoupon$1(httpClient: HttpClient): DeleteLoyaltyCouponSignature;
70
+ interface DeleteLoyaltyCouponSignature {
71
+ /**
72
+ * Deletes a loyalty coupon.
73
+ *
74
+ * The deletion of a loyalty coupon does not impact the functionality of the corresponding coupon itself.
75
+ * @param - ID of the loyalty coupon to delete.
76
+ * @param - Revision number, which increments by 1 each time the loyalty coupon is updated.
77
+ *
78
+ * To prevent conflicting changes, the current `revision` must be passed when updating the loyalty coupon.
79
+ */
80
+ (_id: string, revision: string): Promise<void>;
81
+ }
82
+ declare const onCouponCreated$1: EventDefinition<CouponCreatedEnvelope, "wix.loyalty.v1.coupon_created">;
83
+ declare const onCouponDeleted$1: EventDefinition<CouponDeletedEnvelope, "wix.loyalty.v1.coupon_deleted">;
84
+
85
+ declare const redeemPointsForCoupon: MaybeContext<BuildRESTFunction<typeof redeemPointsForCoupon$1> & typeof redeemPointsForCoupon$1>;
86
+ declare const redeemCurrentMemberPointsForCoupon: MaybeContext<BuildRESTFunction<typeof redeemCurrentMemberPointsForCoupon$1> & typeof redeemCurrentMemberPointsForCoupon$1>;
87
+ declare const getLoyaltyCoupon: MaybeContext<BuildRESTFunction<typeof getLoyaltyCoupon$1> & typeof getLoyaltyCoupon$1>;
88
+ declare const bulkGetLoyaltyCoupon: MaybeContext<BuildRESTFunction<typeof bulkGetLoyaltyCoupon$1> & typeof bulkGetLoyaltyCoupon$1>;
89
+ declare const getCurrentMemberCoupons: MaybeContext<BuildRESTFunction<typeof getCurrentMemberCoupons$1> & typeof getCurrentMemberCoupons$1>;
90
+ declare const queryLoyaltyCoupons: MaybeContext<BuildRESTFunction<typeof queryLoyaltyCoupons$1> & typeof queryLoyaltyCoupons$1>;
91
+ declare const deleteLoyaltyCoupon: MaybeContext<BuildRESTFunction<typeof deleteLoyaltyCoupon$1> & typeof deleteLoyaltyCoupon$1>;
92
+ /**
93
+ * Triggered when a loyalty coupon is created.
94
+ */
95
+ declare const onCouponCreated: BuildEventDefinition<typeof onCouponCreated$1>;
96
+ /**
97
+ * Triggered when a loyalty coupon is deleted.
98
+ */
99
+ declare const onCouponDeleted: BuildEventDefinition<typeof onCouponDeleted$1>;
100
+
101
+ export { BulkGetLoyaltyCouponOptions, BulkGetLoyaltyCouponResponse, CouponCreatedEnvelope, CouponDeletedEnvelope, GetCurrentMemberCouponsResponse, LoyaltyCoupon, LoyaltyCouponsQueryBuilder, RedeemCurrentMemberPointsForCouponResponse, RedeemPointsForCouponOptions, RedeemPointsForCouponResponse, bulkGetLoyaltyCoupon, deleteLoyaltyCoupon, getCurrentMemberCoupons, getLoyaltyCoupon, onCouponCreated, onCouponDeleted, queryLoyaltyCoupons, redeemCurrentMemberPointsForCoupon, redeemPointsForCoupon };
@@ -0,0 +1,101 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { R as RedeemPointsForCouponOptions, a as RedeemPointsForCouponResponse, b as RedeemCurrentMemberPointsForCouponResponse, L as LoyaltyCoupon, B as BulkGetLoyaltyCouponOptions, c as BulkGetLoyaltyCouponResponse, G as GetCurrentMemberCouponsResponse, d as LoyaltyCouponsQueryBuilder, C as CouponCreatedEnvelope, e as CouponDeletedEnvelope } from './loyalty-v1-coupon-coupons.universal-YZSAPFpG.js';
3
+ export { V as ActionEvent, $ as BaseEventMetadata, s as BulkGetLoyaltyCouponRequest, k as BuyXGetY, g as CouponReference, x as CouponsInSite, w as CursorPaging, t as CursorQuery, u as CursorQueryPagingMethodOneOf, F as Cursors, H as DeleteLoyaltyCouponRequest, I as DeleteLoyaltyCouponResponse, J as DomainEvent, K as DomainEventBodyOneOf, X as Empty, M as EntityCreatedEvent, U as EntityDeletedEvent, O as EntityUpdatedEvent, a0 as EventMetadata, y as GetCurrentMemberCouponsRequest, q as GetLoyaltyCouponRequest, r as GetLoyaltyCouponResponse, Z as IdentificationData, _ as IdentificationDataIdOneOf, a1 as LoyaltyCouponsQueryResult, Y as MessageEnvelope, P as Paging, E as PagingMetadataV2, Q as QueryLoyaltyCouponRequest, D as QueryLoyaltyCouponResponse, z as QueryV2, A as QueryV2PagingMethodOneOf, n as RedeemCurrentMemberPointsForCouponRequest, o as RedeemMemberPointsForDiscountAmountCouponRequest, p as RedeemMemberPointsForDiscountAmountCouponResponse, m as RedeemPointsForCouponRequest, N as RestoreInfo, l as Scope, f as SortOrder, v as Sorting, h as Specification, j as SpecificationScopeOrMinSubtotalOneOf, i as SpecificationTypeDetailsOneOf, S as Status, T as Type, W as WebhookIdentityType } from './loyalty-v1-coupon-coupons.universal-YZSAPFpG.js';
4
+
5
+ declare function redeemPointsForCoupon$1(httpClient: HttpClient): RedeemPointsForCouponSignature;
6
+ interface RedeemPointsForCouponSignature {
7
+ /**
8
+ * Redeems a customer's loyalty points for a loyalty reward and creates a loyalty coupon.
9
+ *
10
+ * Creating a loyalty coupon also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/api/rest/coupons/about-wix-coupons).
11
+ * The customer receives the reference coupon, which they can apply to their order. The loyalty coupon and its corresponding reference coupon
12
+ * are linked and the loyalty coupon's `status` reflects the current state of the reference coupon.
13
+ *
14
+ * Check which loyalty rewards a site has available with [List Rewards](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/list-rewards).
15
+ * @param - ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
16
+ */
17
+ (rewardId: string, options: RedeemPointsForCouponOptions): Promise<RedeemPointsForCouponResponse>;
18
+ }
19
+ declare function redeemCurrentMemberPointsForCoupon$1(httpClient: HttpClient): RedeemCurrentMemberPointsForCouponSignature;
20
+ interface RedeemCurrentMemberPointsForCouponSignature {
21
+ /**
22
+ * Redeems a current customer's loyalty points for a loyalty reward and creates a loyalty coupon.
23
+ *
24
+ * Creating a loyalty coupon also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/api/rest/coupons/about-wix-coupons).
25
+ * The customer receives the reference coupon, which they can apply to their order. The loyalty coupon and its corresponding reference coupon
26
+ * are linked and the loyalty coupon's `status` reflects the current state of the reference coupon.
27
+ *
28
+ * Check which loyalty rewards a site has available with [List Rewards](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/list-rewards).
29
+ *
30
+ * >**Note:**
31
+ * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
32
+ * @param - ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
33
+ */
34
+ (rewardId: string): Promise<RedeemCurrentMemberPointsForCouponResponse>;
35
+ }
36
+ declare function getLoyaltyCoupon$1(httpClient: HttpClient): GetLoyaltyCouponSignature;
37
+ interface GetLoyaltyCouponSignature {
38
+ /**
39
+ * Retrieves a loyalty coupon.
40
+ * @param - ID of the loyalty coupon to retrieve.
41
+ * @returns Retrieved loyalty coupon.
42
+ */
43
+ (loyaltyCouponId: string): Promise<LoyaltyCoupon>;
44
+ }
45
+ declare function bulkGetLoyaltyCoupon$1(httpClient: HttpClient): BulkGetLoyaltyCouponSignature;
46
+ interface BulkGetLoyaltyCouponSignature {
47
+ /**
48
+ * Retrieves a sequence of loyalty coupons
49
+ */
50
+ (options?: BulkGetLoyaltyCouponOptions | undefined): Promise<BulkGetLoyaltyCouponResponse>;
51
+ }
52
+ declare function getCurrentMemberCoupons$1(httpClient: HttpClient): GetCurrentMemberCouponsSignature;
53
+ interface GetCurrentMemberCouponsSignature {
54
+ /**
55
+ * Retrieves the loyalty coupons for the currently logged-in member.
56
+ *
57
+ * >**Note:**
58
+ * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
59
+ */
60
+ (): Promise<GetCurrentMemberCouponsResponse>;
61
+ }
62
+ declare function queryLoyaltyCoupons$1(httpClient: HttpClient): QueryLoyaltyCouponsSignature;
63
+ interface QueryLoyaltyCouponsSignature {
64
+ /**
65
+ * Retrieves a list of loyalty coupons, given the provided paging, filtering, and sorting.
66
+ */
67
+ (): LoyaltyCouponsQueryBuilder;
68
+ }
69
+ declare function deleteLoyaltyCoupon$1(httpClient: HttpClient): DeleteLoyaltyCouponSignature;
70
+ interface DeleteLoyaltyCouponSignature {
71
+ /**
72
+ * Deletes a loyalty coupon.
73
+ *
74
+ * The deletion of a loyalty coupon does not impact the functionality of the corresponding coupon itself.
75
+ * @param - ID of the loyalty coupon to delete.
76
+ * @param - Revision number, which increments by 1 each time the loyalty coupon is updated.
77
+ *
78
+ * To prevent conflicting changes, the current `revision` must be passed when updating the loyalty coupon.
79
+ */
80
+ (_id: string, revision: string): Promise<void>;
81
+ }
82
+ declare const onCouponCreated$1: EventDefinition<CouponCreatedEnvelope, "wix.loyalty.v1.coupon_created">;
83
+ declare const onCouponDeleted$1: EventDefinition<CouponDeletedEnvelope, "wix.loyalty.v1.coupon_deleted">;
84
+
85
+ declare const redeemPointsForCoupon: MaybeContext<BuildRESTFunction<typeof redeemPointsForCoupon$1> & typeof redeemPointsForCoupon$1>;
86
+ declare const redeemCurrentMemberPointsForCoupon: MaybeContext<BuildRESTFunction<typeof redeemCurrentMemberPointsForCoupon$1> & typeof redeemCurrentMemberPointsForCoupon$1>;
87
+ declare const getLoyaltyCoupon: MaybeContext<BuildRESTFunction<typeof getLoyaltyCoupon$1> & typeof getLoyaltyCoupon$1>;
88
+ declare const bulkGetLoyaltyCoupon: MaybeContext<BuildRESTFunction<typeof bulkGetLoyaltyCoupon$1> & typeof bulkGetLoyaltyCoupon$1>;
89
+ declare const getCurrentMemberCoupons: MaybeContext<BuildRESTFunction<typeof getCurrentMemberCoupons$1> & typeof getCurrentMemberCoupons$1>;
90
+ declare const queryLoyaltyCoupons: MaybeContext<BuildRESTFunction<typeof queryLoyaltyCoupons$1> & typeof queryLoyaltyCoupons$1>;
91
+ declare const deleteLoyaltyCoupon: MaybeContext<BuildRESTFunction<typeof deleteLoyaltyCoupon$1> & typeof deleteLoyaltyCoupon$1>;
92
+ /**
93
+ * Triggered when a loyalty coupon is created.
94
+ */
95
+ declare const onCouponCreated: BuildEventDefinition<typeof onCouponCreated$1>;
96
+ /**
97
+ * Triggered when a loyalty coupon is deleted.
98
+ */
99
+ declare const onCouponDeleted: BuildEventDefinition<typeof onCouponDeleted$1>;
100
+
101
+ export { BulkGetLoyaltyCouponOptions, BulkGetLoyaltyCouponResponse, CouponCreatedEnvelope, CouponDeletedEnvelope, GetCurrentMemberCouponsResponse, LoyaltyCoupon, LoyaltyCouponsQueryBuilder, RedeemCurrentMemberPointsForCouponResponse, RedeemPointsForCouponOptions, RedeemPointsForCouponResponse, bulkGetLoyaltyCoupon, deleteLoyaltyCoupon, getCurrentMemberCoupons, getLoyaltyCoupon, onCouponCreated, onCouponDeleted, queryLoyaltyCoupons, redeemCurrentMemberPointsForCoupon, redeemPointsForCoupon };