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