@wix/auto_sdk_loyalty_rewards 1.0.7 → 1.0.9

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 (121) hide show
  1. package/build/cjs/index.d.ts +128 -1
  2. package/build/cjs/index.js +831 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/{es/src/loyalty-v1-reward-rewards.types.d.ts → cjs/loyalty-v1-reward-rewards.universal-BFnbQRqi.d.ts} +196 -87
  5. package/build/cjs/meta.d.ts +476 -1
  6. package/build/cjs/meta.js +594 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/es/index.d.mts +128 -0
  9. package/build/es/index.mjs +797 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/{cjs/src/loyalty-v1-reward-rewards.types.d.ts → es/loyalty-v1-reward-rewards.universal-BFnbQRqi.d.mts} +196 -87
  12. package/build/es/meta.d.mts +476 -0
  13. package/build/es/meta.mjs +563 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/internal/cjs/index.d.ts +128 -1
  16. package/build/internal/cjs/index.js +831 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/{src/loyalty-v1-reward-rewards.types.d.ts → loyalty-v1-reward-rewards.universal-BFnbQRqi.d.ts} +196 -87
  19. package/build/internal/cjs/meta.d.ts +476 -1
  20. package/build/internal/cjs/meta.js +594 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/index.d.mts +128 -0
  23. package/build/internal/es/index.mjs +797 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/internal/es/{src/loyalty-v1-reward-rewards.types.d.ts → loyalty-v1-reward-rewards.universal-BFnbQRqi.d.mts} +196 -87
  26. package/build/internal/es/meta.d.mts +476 -0
  27. package/build/internal/es/meta.mjs +563 -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-reward-rewards.context.d.ts +0 -28
  34. package/build/cjs/src/loyalty-v1-reward-rewards.context.js +0 -34
  35. package/build/cjs/src/loyalty-v1-reward-rewards.context.js.map +0 -1
  36. package/build/cjs/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
  37. package/build/cjs/src/loyalty-v1-reward-rewards.http.js +0 -464
  38. package/build/cjs/src/loyalty-v1-reward-rewards.http.js.map +0 -1
  39. package/build/cjs/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
  40. package/build/cjs/src/loyalty-v1-reward-rewards.meta.js +0 -180
  41. package/build/cjs/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
  42. package/build/cjs/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
  43. package/build/cjs/src/loyalty-v1-reward-rewards.public.js +0 -119
  44. package/build/cjs/src/loyalty-v1-reward-rewards.public.js.map +0 -1
  45. package/build/cjs/src/loyalty-v1-reward-rewards.types.js +0 -29
  46. package/build/cjs/src/loyalty-v1-reward-rewards.types.js.map +0 -1
  47. package/build/cjs/src/loyalty-v1-reward-rewards.universal.d.ts +0 -926
  48. package/build/cjs/src/loyalty-v1-reward-rewards.universal.js +0 -373
  49. package/build/cjs/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
  60. package/build/es/src/loyalty-v1-reward-rewards.context.js +0 -28
  61. package/build/es/src/loyalty-v1-reward-rewards.context.js.map +0 -1
  62. package/build/es/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
  63. package/build/es/src/loyalty-v1-reward-rewards.http.js +0 -453
  64. package/build/es/src/loyalty-v1-reward-rewards.http.js.map +0 -1
  65. package/build/es/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
  66. package/build/es/src/loyalty-v1-reward-rewards.meta.js +0 -146
  67. package/build/es/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
  68. package/build/es/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
  69. package/build/es/src/loyalty-v1-reward-rewards.public.js +0 -105
  70. package/build/es/src/loyalty-v1-reward-rewards.public.js.map +0 -1
  71. package/build/es/src/loyalty-v1-reward-rewards.types.js +0 -26
  72. package/build/es/src/loyalty-v1-reward-rewards.types.js.map +0 -1
  73. package/build/es/src/loyalty-v1-reward-rewards.universal.d.ts +0 -926
  74. package/build/es/src/loyalty-v1-reward-rewards.universal.js +0 -339
  75. package/build/es/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
  76. package/build/internal/cjs/index.typings.d.ts +0 -1
  77. package/build/internal/cjs/index.typings.js +0 -18
  78. package/build/internal/cjs/index.typings.js.map +0 -1
  79. package/build/internal/cjs/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
  80. package/build/internal/cjs/src/loyalty-v1-reward-rewards.context.js +0 -34
  81. package/build/internal/cjs/src/loyalty-v1-reward-rewards.context.js.map +0 -1
  82. package/build/internal/cjs/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
  83. package/build/internal/cjs/src/loyalty-v1-reward-rewards.http.js +0 -464
  84. package/build/internal/cjs/src/loyalty-v1-reward-rewards.http.js.map +0 -1
  85. package/build/internal/cjs/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
  86. package/build/internal/cjs/src/loyalty-v1-reward-rewards.meta.js +0 -180
  87. package/build/internal/cjs/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
  88. package/build/internal/cjs/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
  89. package/build/internal/cjs/src/loyalty-v1-reward-rewards.public.js +0 -119
  90. package/build/internal/cjs/src/loyalty-v1-reward-rewards.public.js.map +0 -1
  91. package/build/internal/cjs/src/loyalty-v1-reward-rewards.types.js +0 -29
  92. package/build/internal/cjs/src/loyalty-v1-reward-rewards.types.js.map +0 -1
  93. package/build/internal/cjs/src/loyalty-v1-reward-rewards.universal.d.ts +0 -926
  94. package/build/internal/cjs/src/loyalty-v1-reward-rewards.universal.js +0 -373
  95. package/build/internal/cjs/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
  96. package/build/internal/es/index.d.ts +0 -1
  97. package/build/internal/es/index.js +0 -2
  98. package/build/internal/es/index.js.map +0 -1
  99. package/build/internal/es/index.typings.d.ts +0 -1
  100. package/build/internal/es/index.typings.js +0 -2
  101. package/build/internal/es/index.typings.js.map +0 -1
  102. package/build/internal/es/meta.d.ts +0 -1
  103. package/build/internal/es/meta.js +0 -2
  104. package/build/internal/es/meta.js.map +0 -1
  105. package/build/internal/es/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
  106. package/build/internal/es/src/loyalty-v1-reward-rewards.context.js +0 -28
  107. package/build/internal/es/src/loyalty-v1-reward-rewards.context.js.map +0 -1
  108. package/build/internal/es/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
  109. package/build/internal/es/src/loyalty-v1-reward-rewards.http.js +0 -453
  110. package/build/internal/es/src/loyalty-v1-reward-rewards.http.js.map +0 -1
  111. package/build/internal/es/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
  112. package/build/internal/es/src/loyalty-v1-reward-rewards.meta.js +0 -146
  113. package/build/internal/es/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
  114. package/build/internal/es/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
  115. package/build/internal/es/src/loyalty-v1-reward-rewards.public.js +0 -105
  116. package/build/internal/es/src/loyalty-v1-reward-rewards.public.js.map +0 -1
  117. package/build/internal/es/src/loyalty-v1-reward-rewards.types.js +0 -26
  118. package/build/internal/es/src/loyalty-v1-reward-rewards.types.js.map +0 -1
  119. package/build/internal/es/src/loyalty-v1-reward-rewards.universal.d.ts +0 -926
  120. package/build/internal/es/src/loyalty-v1-reward-rewards.universal.js +0 -339
  121. package/build/internal/es/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
@@ -1,107 +0,0 @@
1
- import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
- import { BulkCreateRewardsResponse, BulkGetRewardsResponse, CursorQuery, ListRewardsOptions, ListRewardsResponse, QueryRewardsResponse, Reward, RewardCreatedEnvelope, RewardDeletedEnvelope, RewardUpdatedEnvelope, UpdateReward, UpdateRewardResponse } from './loyalty-v1-reward-rewards.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function createReward(httpClient: HttpClient): CreateRewardSignature;
7
- interface CreateRewardSignature {
8
- /**
9
- * Creates a reward that can be redeemed with loyalty points.
10
- *
11
- * When a customer redeems a reward, a loyalty coupon is created
12
- * based on the specifications detailed in either the `discountAmount` or `couponReward` fields. This coupon can
13
- * then be used by the customer to receive the discount. Note that while the Rewards API uses coupon scopes and specifications,
14
- * no coupon is actually created until a reward is redeemed with points.
15
- * See the Coupons API for more information about coupons.
16
- *
17
- * A reward's `active` status defaults to `false`. To make the reward available to customers,
18
- * either set the `active` field to `true` during creation or call [`updateReward()`](#updatereward)
19
- * to change the status.
20
- *
21
- * To customize a reward for each loyalty tier, use the `configsByTier` parameter.
22
- * This allows you to specify the amount of the earned discount, the cost in loyalty points
23
- * to redeem the reward, and the tier to which this configuration applies. Each tier requires its own
24
- * `configsByTier` configuration. To create a reward that is available to loyalty accounts in the base tier,
25
- * leave the `tierId` field empty. See the Loyalty Tiers API for more information on tiers.
26
- * @param - Reward to create.
27
- * @returns Created reward.
28
- */
29
- (reward: Reward): Promise<Reward>;
30
- }
31
- export declare function bulkCreateRewards(httpClient: HttpClient): BulkCreateRewardsSignature;
32
- interface BulkCreateRewardsSignature {
33
- /**
34
- * Creates multiple rewards.
35
- * @param - Rewards to create.
36
- */
37
- (rewards: Reward[]): Promise<BulkCreateRewardsResponse>;
38
- }
39
- export declare function getReward(httpClient: HttpClient): GetRewardSignature;
40
- interface GetRewardSignature {
41
- /**
42
- * Retrieves a reward.
43
- * @param - ID of the reward to retrieve.
44
- * @returns Retrieved reward.
45
- */
46
- (_id: string): Promise<Reward>;
47
- }
48
- export declare function bulkGetRewards(httpClient: HttpClient): BulkGetRewardsSignature;
49
- interface BulkGetRewardsSignature {
50
- /**
51
- * Retrieves rewards from all metasites that the caller is the member of.
52
- *
53
- * Must be called with user identity.
54
- */
55
- (): Promise<BulkGetRewardsResponse>;
56
- }
57
- export declare function queryRewards(httpClient: HttpClient): QueryRewardsSignature;
58
- interface QueryRewardsSignature {
59
- /**
60
- * Retrieves a list of rewards, given the provided paging, filtering, and sorting.
61
- *
62
- * Query Rewards runs with these defaults, which you can override: `cursorPaging.limit` is `50`.
63
- *
64
- * To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),[Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
65
- * @param - Query parameters.
66
- */
67
- (query: CursorQuery): Promise<QueryRewardsResponse>;
68
- }
69
- export declare function updateReward(httpClient: HttpClient): UpdateRewardSignature;
70
- interface UpdateRewardSignature {
71
- /**
72
- * Updates a loyalty reward.
73
- *
74
- * Use this endpoint to update details of a reward, such as the name, whether or not a reward is active,
75
- * or the amount of points it costs to redeem. Also use this endpoint to add new tiers that are eligible to redeem a reward.
76
- *
77
- * You may not change the `type` of a reward. That is set upon creation and cannot be updated.
78
- * @param - Reward ID.
79
- * @param - Reward info to update.
80
- */
81
- (_id: string, reward: UpdateReward): Promise<UpdateRewardResponse>;
82
- }
83
- export declare function deleteReward(httpClient: HttpClient): DeleteRewardSignature;
84
- interface DeleteRewardSignature {
85
- /**
86
- * Deletes a reward.
87
- * @param - ID of the reward to delete.
88
- * @param - Revision number, which increments by 1 each time the reward is updated.
89
- *
90
- * To prevent conflicting changes, the current `revision` must be passed when deleting the reward.
91
- */
92
- (_id: string, revision: string): Promise<void>;
93
- }
94
- export declare function listRewards(httpClient: HttpClient): ListRewardsSignature;
95
- interface ListRewardsSignature {
96
- /**
97
- * Retrieves a list of rewards.
98
- *
99
- * The list includes rewards that are currently nonredeemable due to insufficient points held by any customers.
100
- * @param - List options.
101
- */
102
- (options?: ListRewardsOptions | undefined): Promise<ListRewardsResponse>;
103
- }
104
- export declare const onRewardCreated: EventDefinition<RewardCreatedEnvelope, "wix.loyalty.v1.reward_created">;
105
- export declare const onRewardDeleted: EventDefinition<RewardDeletedEnvelope, "wix.loyalty.v1.reward_deleted">;
106
- export declare const onRewardUpdated: EventDefinition<RewardUpdatedEnvelope, "wix.loyalty.v1.reward_updated">;
107
- export { ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateRewardsRequest, BulkCreateRewardsResponse, BulkGetRewardsRequest, BulkGetRewardsResponse, BulkRewardResult, CouponReward, CouponRewardDiscountTypeOneOf, CouponRewardScopeOrMinSubtotalOneOf, CouponScope, CreateRewardRequest, CreateRewardResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteRewardRequest, DeleteRewardResponse, DiscountAmount, DiscountAmountConfig, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FixedAmountDiscount, FixedAmountDiscountConfig, FreeShippingDiscount, FreeShippingDiscountConfig, GetRewardRequest, GetRewardResponse, Group, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListRewardsInTierRequest, ListRewardsInTierResponse, ListRewardsOptions, ListRewardsRequest, ListRewardsResponse, MessageEnvelope, PagingMetadataV2, PercentageDiscount, PercentageDiscountConfig, QueryRewardsRequest, QueryRewardsResponse, RestoreInfo, Reward, RewardCreatedEnvelope, RewardDeletedEnvelope, RewardDisabled, RewardType, RewardTypeDetailsOneOf, RewardUpdatedEnvelope, RewardsInSite, SortOrder, Sorting, SpiDiscountAmount, UpdateReward, UpdateRewardRequest, UpdateRewardResponse, WebhookIdentityType, } from './loyalty-v1-reward-rewards.universal.js';
@@ -1,105 +0,0 @@
1
- import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
2
- import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
3
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
4
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
5
- import { EventDefinition } from '@wix/sdk-types';
6
- import { bulkCreateRewards as universalBulkCreateRewards, bulkGetRewards as universalBulkGetRewards, createReward as universalCreateReward, deleteReward as universalDeleteReward, getReward as universalGetReward, listRewards as universalListRewards, queryRewards as universalQueryRewards, updateReward as universalUpdateReward, } from './loyalty-v1-reward-rewards.universal.js';
7
- export const __metadata = { PACKAGE_NAME: '@wix/loyalty' };
8
- export function createReward(httpClient) {
9
- return (reward) => universalCreateReward(reward,
10
- // @ts-ignore
11
- { httpClient });
12
- }
13
- export function bulkCreateRewards(httpClient) {
14
- return (rewards) => universalBulkCreateRewards(rewards,
15
- // @ts-ignore
16
- { httpClient });
17
- }
18
- export function getReward(httpClient) {
19
- return (_id) => universalGetReward(_id,
20
- // @ts-ignore
21
- { httpClient });
22
- }
23
- export function bulkGetRewards(httpClient) {
24
- return () => universalBulkGetRewards(
25
- // @ts-ignore
26
- { httpClient });
27
- }
28
- export function queryRewards(httpClient) {
29
- return (query) => universalQueryRewards(query,
30
- // @ts-ignore
31
- { httpClient });
32
- }
33
- export function updateReward(httpClient) {
34
- return (_id, reward) => universalUpdateReward(_id, reward,
35
- // @ts-ignore
36
- { httpClient });
37
- }
38
- export function deleteReward(httpClient) {
39
- return (_id, revision) => universalDeleteReward(_id, revision,
40
- // @ts-ignore
41
- { httpClient });
42
- }
43
- export function listRewards(httpClient) {
44
- return (options) => universalListRewards(options,
45
- // @ts-ignore
46
- { httpClient });
47
- }
48
- export const onRewardCreated = EventDefinition('wix.loyalty.v1.reward_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
49
- {
50
- transformFn: transformRESTTimestampToSDKTimestamp,
51
- paths: [
52
- { path: 'entity.createdDate' },
53
- { path: 'entity.updatedDate' },
54
- { path: 'metadata.eventTime' },
55
- ],
56
- },
57
- {
58
- transformFn: transformRESTFloatToSDKFloat,
59
- paths: [
60
- { path: 'entity.couponReward.minimumSubtotal' },
61
- { path: 'entity.couponReward.fixedAmount.configsByTier.amount' },
62
- { path: 'entity.couponReward.percentage.configsByTier.percentage' },
63
- ],
64
- },
65
- ])))();
66
- export const onRewardDeleted = EventDefinition('wix.loyalty.v1.reward_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
67
- {
68
- transformFn: transformRESTTimestampToSDKTimestamp,
69
- paths: [
70
- { path: 'undefined.createdDate' },
71
- { path: 'undefined.updatedDate' },
72
- { path: 'metadata.eventTime' },
73
- ],
74
- },
75
- {
76
- transformFn: transformRESTFloatToSDKFloat,
77
- paths: [
78
- { path: 'undefined.couponReward.minimumSubtotal' },
79
- { path: 'undefined.couponReward.fixedAmount.configsByTier.amount' },
80
- {
81
- path: 'undefined.couponReward.percentage.configsByTier.percentage',
82
- },
83
- ],
84
- },
85
- ])))();
86
- export const onRewardUpdated = EventDefinition('wix.loyalty.v1.reward_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
87
- {
88
- transformFn: transformRESTTimestampToSDKTimestamp,
89
- paths: [
90
- { path: 'entity.createdDate' },
91
- { path: 'entity.updatedDate' },
92
- { path: 'metadata.eventTime' },
93
- ],
94
- },
95
- {
96
- transformFn: transformRESTFloatToSDKFloat,
97
- paths: [
98
- { path: 'entity.couponReward.minimumSubtotal' },
99
- { path: 'entity.couponReward.fixedAmount.configsByTier.amount' },
100
- { path: 'entity.couponReward.percentage.configsByTier.percentage' },
101
- ],
102
- },
103
- ])))();
104
- export { RewardType, SortOrder, WebhookIdentityType, } from './loyalty-v1-reward-rewards.universal.js';
105
- //# sourceMappingURL=loyalty-v1-reward-rewards.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loyalty-v1-reward-rewards.public.js","sourceRoot":"","sources":["../../../../src/loyalty-v1-reward-rewards.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAaL,iBAAiB,IAAI,0BAA0B,EAC/C,cAAc,IAAI,uBAAuB,EACzC,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,EACrC,SAAS,IAAI,kBAAkB,EAC/B,WAAW,IAAI,oBAAoB,EACnC,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,GACtC,MAAM,0CAA0C,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE3D,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,MAAwC,EAAE,EAAE,CAClD,qBAAqB,CACnB,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AA2BD,MAAM,UAAU,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CAAC,OAA2C,EAAE,EAAE,CACrD,0BAA0B,CACxB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAUD,MAAM,UAAU,SAAS,CAAC,UAAsB;IAC9C,OAAO,CAAC,GAAW,EAAE,E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F,CAAC,CACH,CACJ,EAAyB,CAAC;AAE3B,OAAO,EA0DL,UAAU,EAIV,SAAS,EAMT,mBAAmB,GACpB,MAAM,0CAA0C,CAAC"}
@@ -1,26 +0,0 @@
1
- /** Available reward types. */
2
- export var RewardType;
3
- (function (RewardType) {
4
- /** Undefined reward type. */
5
- RewardType["UNDEFINED"] = "UNDEFINED";
6
- /** Discount reward. Special flexible reward type used in checkout. */
7
- RewardType["DISCOUNT_AMOUNT"] = "DISCOUNT_AMOUNT";
8
- /** Coupon reward. [Learn more about coupons.](https://support.wix.com/en/article/using-coupons-as-loyalty-rewards) */
9
- RewardType["COUPON_REWARD"] = "COUPON_REWARD";
10
- /** For internal use. */
11
- RewardType["SPI_DISCOUNT_AMOUNT"] = "SPI_DISCOUNT_AMOUNT";
12
- })(RewardType || (RewardType = {}));
13
- export var SortOrder;
14
- (function (SortOrder) {
15
- SortOrder["ASC"] = "ASC";
16
- SortOrder["DESC"] = "DESC";
17
- })(SortOrder || (SortOrder = {}));
18
- export var WebhookIdentityType;
19
- (function (WebhookIdentityType) {
20
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
21
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
22
- WebhookIdentityType["MEMBER"] = "MEMBER";
23
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
24
- WebhookIdentityType["APP"] = "APP";
25
- })(WebhookIdentityType || (WebhookIdentityType = {}));
26
- //# sourceMappingURL=loyalty-v1-reward-rewards.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loyalty-v1-reward-rewards.types.js","sourceRoot":"","sources":["../../../../src/loyalty-v1-reward-rewards.types.ts"],"names":[],"mappings":"AAoDA,8BAA8B;AAC9B,MAAM,CAAN,IAAY,UASX;AATD,WAAY,UAAU;IACpB,6BAA6B;IAC7B,qCAAuB,CAAA;IACvB,sEAAsE;IACtE,iDAAmC,CAAA;IACnC,sHAAsH;IACtH,6CAA+B,CAAA;IAC/B,wBAAwB;IACxB,yDAA2C,CAAA;AAC7C,CAAC,EATW,UAAU,KAAV,UAAU,QASrB;AAuVD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA+QD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}