@wix/auto_sdk_loyalty_rewards 1.0.7 → 1.0.8
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.
- package/build/index.d.mts +128 -0
- package/build/index.d.ts +128 -0
- package/build/index.js +834 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +797 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +128 -0
- package/build/internal/index.d.ts +128 -0
- package/build/internal/index.js +834 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +797 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/loyalty-v1-reward-rewards.types.d.ts → internal/loyalty-v1-reward-rewards.universal-BFnbQRqi.d.mts} +196 -87
- package/build/{cjs/src/loyalty-v1-reward-rewards.types.d.ts → internal/loyalty-v1-reward-rewards.universal-BFnbQRqi.d.ts} +196 -87
- package/build/internal/meta.d.mts +476 -0
- package/build/internal/meta.d.ts +476 -0
- package/build/internal/meta.js +597 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +563 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{internal/cjs/src/loyalty-v1-reward-rewards.types.d.ts → loyalty-v1-reward-rewards.universal-BFnbQRqi.d.mts} +196 -87
- package/build/{internal/es/src/loyalty-v1-reward-rewards.types.d.ts → loyalty-v1-reward-rewards.universal-BFnbQRqi.d.ts} +196 -87
- package/build/meta.d.mts +476 -0
- package/build/meta.d.ts +476 -0
- package/build/meta.js +597 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +563 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
- package/build/cjs/src/loyalty-v1-reward-rewards.context.js +0 -34
- package/build/cjs/src/loyalty-v1-reward-rewards.context.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
- package/build/cjs/src/loyalty-v1-reward-rewards.http.js +0 -464
- package/build/cjs/src/loyalty-v1-reward-rewards.http.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
- package/build/cjs/src/loyalty-v1-reward-rewards.meta.js +0 -180
- package/build/cjs/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
- package/build/cjs/src/loyalty-v1-reward-rewards.public.js +0 -119
- package/build/cjs/src/loyalty-v1-reward-rewards.public.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.types.js +0 -29
- package/build/cjs/src/loyalty-v1-reward-rewards.types.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.universal.d.ts +0 -926
- package/build/cjs/src/loyalty-v1-reward-rewards.universal.js +0 -373
- package/build/cjs/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
- package/build/es/src/loyalty-v1-reward-rewards.context.js +0 -28
- package/build/es/src/loyalty-v1-reward-rewards.context.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
- package/build/es/src/loyalty-v1-reward-rewards.http.js +0 -453
- package/build/es/src/loyalty-v1-reward-rewards.http.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
- package/build/es/src/loyalty-v1-reward-rewards.meta.js +0 -146
- package/build/es/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
- package/build/es/src/loyalty-v1-reward-rewards.public.js +0 -105
- package/build/es/src/loyalty-v1-reward-rewards.public.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.types.js +0 -26
- package/build/es/src/loyalty-v1-reward-rewards.types.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.universal.d.ts +0 -926
- package/build/es/src/loyalty-v1-reward-rewards.universal.js +0 -339
- package/build/es/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.context.js +0 -34
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.context.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.http.js +0 -464
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.http.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.meta.js +0 -180
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.public.js +0 -119
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.public.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.types.js +0 -29
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.types.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.universal.d.ts +0 -926
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.universal.js +0 -373
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
- package/build/internal/es/src/loyalty-v1-reward-rewards.context.js +0 -28
- package/build/internal/es/src/loyalty-v1-reward-rewards.context.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
- package/build/internal/es/src/loyalty-v1-reward-rewards.http.js +0 -453
- package/build/internal/es/src/loyalty-v1-reward-rewards.http.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
- package/build/internal/es/src/loyalty-v1-reward-rewards.meta.js +0 -146
- package/build/internal/es/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
- package/build/internal/es/src/loyalty-v1-reward-rewards.public.js +0 -105
- package/build/internal/es/src/loyalty-v1-reward-rewards.public.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.types.js +0 -26
- package/build/internal/es/src/loyalty-v1-reward-rewards.types.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.universal.d.ts +0 -926
- package/build/internal/es/src/loyalty-v1-reward-rewards.universal.js +0 -339
- package/build/internal/es/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
|
@@ -1,464 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listRewards = exports.deleteReward = exports.updateReward = exports.queryRewards = exports.bulkGetRewards = exports.getReward = exports.bulkCreateRewards = exports.createReward = void 0;
|
|
4
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
-
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
6
|
-
const float_2 = require("@wix/sdk-runtime/transformations/float");
|
|
7
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
8
|
-
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
9
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
10
|
-
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
11
|
-
function resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl(opts) {
|
|
12
|
-
const domainToMappings = {
|
|
13
|
-
'manage._base_domain_': [
|
|
14
|
-
{
|
|
15
|
-
srcPath: '/_api/loyalty-rewards',
|
|
16
|
-
destPath: '',
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
_: [
|
|
20
|
-
{
|
|
21
|
-
srcPath: '/_api/loyalty-rewards',
|
|
22
|
-
destPath: '',
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
'editor.wixapps.net': [
|
|
26
|
-
{
|
|
27
|
-
srcPath: '/_api/loyalty-rewards',
|
|
28
|
-
destPath: '',
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
'editor._base_domain_': [
|
|
32
|
-
{
|
|
33
|
-
srcPath: '/_api/loyalty-rewards',
|
|
34
|
-
destPath: '',
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
'blocks._base_domain_': [
|
|
38
|
-
{
|
|
39
|
-
srcPath: '/_api/loyalty-rewards',
|
|
40
|
-
destPath: '',
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
'create.editorx': [
|
|
44
|
-
{
|
|
45
|
-
srcPath: '/_api/loyalty-rewards',
|
|
46
|
-
destPath: '',
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
'www._base_domain_': [
|
|
50
|
-
{
|
|
51
|
-
srcPath: '/_api/loyalty-rewards',
|
|
52
|
-
destPath: '',
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
'*.dev.wix-code.com': [
|
|
56
|
-
{
|
|
57
|
-
srcPath: '/_api/loyalty-rewards',
|
|
58
|
-
destPath: '',
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
'*.pub.wix-code.com': [
|
|
62
|
-
{
|
|
63
|
-
srcPath: '/_api/loyalty-rewards',
|
|
64
|
-
destPath: '',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
'api._api_base_domain_': [
|
|
68
|
-
{
|
|
69
|
-
srcPath: '/loyalty-rewards',
|
|
70
|
-
destPath: '',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
'www.wixapis.com': [
|
|
74
|
-
{
|
|
75
|
-
srcPath: '/loyalty-rewards',
|
|
76
|
-
destPath: '',
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
};
|
|
80
|
-
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
81
|
-
}
|
|
82
|
-
const PACKAGE_NAME = '@wix/auto_sdk_loyalty_rewards';
|
|
83
|
-
/**
|
|
84
|
-
* Creates a reward that can be redeemed with loyalty points.
|
|
85
|
-
*
|
|
86
|
-
* When a customer redeems a reward, a loyalty coupon is created
|
|
87
|
-
* based on the specifications detailed in either the `discountAmount` or `couponReward` fields. This coupon can
|
|
88
|
-
* then be used by the customer to receive the discount. Note that while the Rewards API uses coupon scopes and specifications,
|
|
89
|
-
* no coupon is actually created until a reward is redeemed with points.
|
|
90
|
-
* See the Coupons API for more information about coupons.
|
|
91
|
-
*
|
|
92
|
-
* A reward's `active` status defaults to `false`. To make the reward available to customers,
|
|
93
|
-
* either set the `active` field to `true` during creation or call [`updateReward()`](#updatereward)
|
|
94
|
-
* to change the status.
|
|
95
|
-
*
|
|
96
|
-
* To customize a reward for each loyalty tier, use the `configsByTier` parameter.
|
|
97
|
-
* This allows you to specify the amount of the earned discount, the cost in loyalty points
|
|
98
|
-
* to redeem the reward, and the tier to which this configuration applies. Each tier requires its own
|
|
99
|
-
* `configsByTier` configuration. To create a reward that is available to loyalty accounts in the base tier,
|
|
100
|
-
* leave the `tierId` field empty. See the Loyalty Tiers API for more information on tiers.
|
|
101
|
-
*/
|
|
102
|
-
function createReward(payload) {
|
|
103
|
-
function __createReward({ host }) {
|
|
104
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
105
|
-
{
|
|
106
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
107
|
-
paths: [{ path: 'reward.createdDate' }, { path: 'reward.updatedDate' }],
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
111
|
-
paths: [
|
|
112
|
-
{ path: 'reward.couponReward.minimumSubtotal' },
|
|
113
|
-
{ path: 'reward.couponReward.fixedAmount.configsByTier.amount' },
|
|
114
|
-
{ path: 'reward.couponReward.percentage.configsByTier.percentage' },
|
|
115
|
-
],
|
|
116
|
-
},
|
|
117
|
-
]);
|
|
118
|
-
const metadata = {
|
|
119
|
-
entityFqdn: 'wix.loyalty.v1.reward',
|
|
120
|
-
method: 'POST',
|
|
121
|
-
methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.CreateReward',
|
|
122
|
-
packageName: PACKAGE_NAME,
|
|
123
|
-
url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({
|
|
124
|
-
protoPath: '/v1/rewards',
|
|
125
|
-
data: serializedData,
|
|
126
|
-
host,
|
|
127
|
-
}),
|
|
128
|
-
data: serializedData,
|
|
129
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
130
|
-
{
|
|
131
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
132
|
-
paths: [
|
|
133
|
-
{ path: 'reward.createdDate' },
|
|
134
|
-
{ path: 'reward.updatedDate' },
|
|
135
|
-
],
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
139
|
-
paths: [
|
|
140
|
-
{ path: 'reward.couponReward.minimumSubtotal' },
|
|
141
|
-
{ path: 'reward.couponReward.fixedAmount.configsByTier.amount' },
|
|
142
|
-
{
|
|
143
|
-
path: 'reward.couponReward.percentage.configsByTier.percentage',
|
|
144
|
-
},
|
|
145
|
-
],
|
|
146
|
-
},
|
|
147
|
-
]),
|
|
148
|
-
};
|
|
149
|
-
return metadata;
|
|
150
|
-
}
|
|
151
|
-
return __createReward;
|
|
152
|
-
}
|
|
153
|
-
exports.createReward = createReward;
|
|
154
|
-
/** Creates multiple rewards. */
|
|
155
|
-
function bulkCreateRewards(payload) {
|
|
156
|
-
function __bulkCreateRewards({ host }) {
|
|
157
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
158
|
-
{
|
|
159
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
160
|
-
paths: [
|
|
161
|
-
{ path: 'rewards.createdDate' },
|
|
162
|
-
{ path: 'rewards.updatedDate' },
|
|
163
|
-
],
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
167
|
-
paths: [
|
|
168
|
-
{ path: 'rewards.couponReward.minimumSubtotal' },
|
|
169
|
-
{ path: 'rewards.couponReward.fixedAmount.configsByTier.amount' },
|
|
170
|
-
{ path: 'rewards.couponReward.percentage.configsByTier.percentage' },
|
|
171
|
-
],
|
|
172
|
-
},
|
|
173
|
-
]);
|
|
174
|
-
const metadata = {
|
|
175
|
-
entityFqdn: 'wix.loyalty.v1.reward',
|
|
176
|
-
method: 'POST',
|
|
177
|
-
methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.BulkCreateRewards',
|
|
178
|
-
packageName: PACKAGE_NAME,
|
|
179
|
-
url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({
|
|
180
|
-
protoPath: '/v1/bulk/rewards/create',
|
|
181
|
-
data: serializedData,
|
|
182
|
-
host,
|
|
183
|
-
}),
|
|
184
|
-
data: serializedData,
|
|
185
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
186
|
-
{
|
|
187
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
188
|
-
paths: [
|
|
189
|
-
{ path: 'results.item.createdDate' },
|
|
190
|
-
{ path: 'results.item.updatedDate' },
|
|
191
|
-
],
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
195
|
-
paths: [
|
|
196
|
-
{ path: 'results.item.couponReward.minimumSubtotal' },
|
|
197
|
-
{
|
|
198
|
-
path: 'results.item.couponReward.fixedAmount.configsByTier.amount',
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
path: 'results.item.couponReward.percentage.configsByTier.percentage',
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
},
|
|
205
|
-
]),
|
|
206
|
-
};
|
|
207
|
-
return metadata;
|
|
208
|
-
}
|
|
209
|
-
return __bulkCreateRewards;
|
|
210
|
-
}
|
|
211
|
-
exports.bulkCreateRewards = bulkCreateRewards;
|
|
212
|
-
/** Retrieves a reward. */
|
|
213
|
-
function getReward(payload) {
|
|
214
|
-
function __getReward({ host }) {
|
|
215
|
-
const metadata = {
|
|
216
|
-
entityFqdn: 'wix.loyalty.v1.reward',
|
|
217
|
-
method: 'GET',
|
|
218
|
-
methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.GetReward',
|
|
219
|
-
packageName: PACKAGE_NAME,
|
|
220
|
-
url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({
|
|
221
|
-
protoPath: '/v1/rewards/{id}',
|
|
222
|
-
data: payload,
|
|
223
|
-
host,
|
|
224
|
-
}),
|
|
225
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
226
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
227
|
-
{
|
|
228
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
229
|
-
paths: [
|
|
230
|
-
{ path: 'reward.createdDate' },
|
|
231
|
-
{ path: 'reward.updatedDate' },
|
|
232
|
-
],
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
236
|
-
paths: [
|
|
237
|
-
{ path: 'reward.couponReward.minimumSubtotal' },
|
|
238
|
-
{ path: 'reward.couponReward.fixedAmount.configsByTier.amount' },
|
|
239
|
-
{
|
|
240
|
-
path: 'reward.couponReward.percentage.configsByTier.percentage',
|
|
241
|
-
},
|
|
242
|
-
],
|
|
243
|
-
},
|
|
244
|
-
]),
|
|
245
|
-
};
|
|
246
|
-
return metadata;
|
|
247
|
-
}
|
|
248
|
-
return __getReward;
|
|
249
|
-
}
|
|
250
|
-
exports.getReward = getReward;
|
|
251
|
-
/**
|
|
252
|
-
* Retrieves rewards from all metasites that the caller is the member of.
|
|
253
|
-
*
|
|
254
|
-
* Must be called with user identity.
|
|
255
|
-
*/
|
|
256
|
-
function bulkGetRewards(payload) {
|
|
257
|
-
function __bulkGetRewards({ host }) {
|
|
258
|
-
const metadata = {
|
|
259
|
-
entityFqdn: 'wix.loyalty.v1.reward',
|
|
260
|
-
method: 'GET',
|
|
261
|
-
methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.BulkGetRewards',
|
|
262
|
-
packageName: PACKAGE_NAME,
|
|
263
|
-
url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({
|
|
264
|
-
protoPath: '/v1/bulk/rewards',
|
|
265
|
-
data: payload,
|
|
266
|
-
host,
|
|
267
|
-
}),
|
|
268
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
269
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
270
|
-
{
|
|
271
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
272
|
-
paths: [
|
|
273
|
-
{ path: 'rewardsInSite.rewards.createdDate' },
|
|
274
|
-
{ path: 'rewardsInSite.rewards.updatedDate' },
|
|
275
|
-
],
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
279
|
-
paths: [
|
|
280
|
-
{ path: 'rewardsInSite.rewards.couponReward.minimumSubtotal' },
|
|
281
|
-
{
|
|
282
|
-
path: 'rewardsInSite.rewards.couponReward.fixedAmount.configsByTier.amount',
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
path: 'rewardsInSite.rewards.couponReward.percentage.configsByTier.percentage',
|
|
286
|
-
},
|
|
287
|
-
],
|
|
288
|
-
},
|
|
289
|
-
]),
|
|
290
|
-
};
|
|
291
|
-
return metadata;
|
|
292
|
-
}
|
|
293
|
-
return __bulkGetRewards;
|
|
294
|
-
}
|
|
295
|
-
exports.bulkGetRewards = bulkGetRewards;
|
|
296
|
-
/**
|
|
297
|
-
* Retrieves a list of rewards, given the provided paging, filtering, and sorting.
|
|
298
|
-
*
|
|
299
|
-
* Query Rewards runs with these defaults, which you can override: `cursorPaging.limit` is `50`.
|
|
300
|
-
*
|
|
301
|
-
* 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).
|
|
302
|
-
*/
|
|
303
|
-
function queryRewards(payload) {
|
|
304
|
-
function __queryRewards({ host }) {
|
|
305
|
-
const metadata = {
|
|
306
|
-
entityFqdn: 'wix.loyalty.v1.reward',
|
|
307
|
-
method: 'POST',
|
|
308
|
-
methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.QueryRewards',
|
|
309
|
-
packageName: PACKAGE_NAME,
|
|
310
|
-
url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({
|
|
311
|
-
protoPath: '/v1/rewards/query',
|
|
312
|
-
data: payload,
|
|
313
|
-
host,
|
|
314
|
-
}),
|
|
315
|
-
data: payload,
|
|
316
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
317
|
-
{
|
|
318
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
319
|
-
paths: [
|
|
320
|
-
{ path: 'rewards.createdDate' },
|
|
321
|
-
{ path: 'rewards.updatedDate' },
|
|
322
|
-
],
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
326
|
-
paths: [
|
|
327
|
-
{ path: 'rewards.couponReward.minimumSubtotal' },
|
|
328
|
-
{ path: 'rewards.couponReward.fixedAmount.configsByTier.amount' },
|
|
329
|
-
{
|
|
330
|
-
path: 'rewards.couponReward.percentage.configsByTier.percentage',
|
|
331
|
-
},
|
|
332
|
-
],
|
|
333
|
-
},
|
|
334
|
-
]),
|
|
335
|
-
};
|
|
336
|
-
return metadata;
|
|
337
|
-
}
|
|
338
|
-
return __queryRewards;
|
|
339
|
-
}
|
|
340
|
-
exports.queryRewards = queryRewards;
|
|
341
|
-
/**
|
|
342
|
-
* Updates a loyalty reward.
|
|
343
|
-
*
|
|
344
|
-
* Use this endpoint to update details of a reward, such as the name, whether or not a reward is active,
|
|
345
|
-
* or the amount of points it costs to redeem. Also use this endpoint to add new tiers that are eligible to redeem a reward.
|
|
346
|
-
*
|
|
347
|
-
* You may not change the `type` of a reward. That is set upon creation and cannot be updated.
|
|
348
|
-
*/
|
|
349
|
-
function updateReward(payload) {
|
|
350
|
-
function __updateReward({ host }) {
|
|
351
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
352
|
-
{
|
|
353
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
354
|
-
paths: [{ path: 'reward.createdDate' }, { path: 'reward.updatedDate' }],
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
358
|
-
paths: [
|
|
359
|
-
{ path: 'reward.couponReward.minimumSubtotal' },
|
|
360
|
-
{ path: 'reward.couponReward.fixedAmount.configsByTier.amount' },
|
|
361
|
-
{ path: 'reward.couponReward.percentage.configsByTier.percentage' },
|
|
362
|
-
],
|
|
363
|
-
},
|
|
364
|
-
]);
|
|
365
|
-
const metadata = {
|
|
366
|
-
entityFqdn: 'wix.loyalty.v1.reward',
|
|
367
|
-
method: 'PUT',
|
|
368
|
-
methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.UpdateReward',
|
|
369
|
-
packageName: PACKAGE_NAME,
|
|
370
|
-
url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({
|
|
371
|
-
protoPath: '/v1/rewards/{reward.id}',
|
|
372
|
-
data: serializedData,
|
|
373
|
-
host,
|
|
374
|
-
}),
|
|
375
|
-
data: serializedData,
|
|
376
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
377
|
-
{
|
|
378
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
379
|
-
paths: [
|
|
380
|
-
{ path: 'reward.createdDate' },
|
|
381
|
-
{ path: 'reward.updatedDate' },
|
|
382
|
-
],
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
386
|
-
paths: [
|
|
387
|
-
{ path: 'reward.couponReward.minimumSubtotal' },
|
|
388
|
-
{ path: 'reward.couponReward.fixedAmount.configsByTier.amount' },
|
|
389
|
-
{
|
|
390
|
-
path: 'reward.couponReward.percentage.configsByTier.percentage',
|
|
391
|
-
},
|
|
392
|
-
],
|
|
393
|
-
},
|
|
394
|
-
]),
|
|
395
|
-
};
|
|
396
|
-
return metadata;
|
|
397
|
-
}
|
|
398
|
-
return __updateReward;
|
|
399
|
-
}
|
|
400
|
-
exports.updateReward = updateReward;
|
|
401
|
-
/** Deletes a reward. */
|
|
402
|
-
function deleteReward(payload) {
|
|
403
|
-
function __deleteReward({ host }) {
|
|
404
|
-
const metadata = {
|
|
405
|
-
entityFqdn: 'wix.loyalty.v1.reward',
|
|
406
|
-
method: 'DELETE',
|
|
407
|
-
methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.DeleteReward',
|
|
408
|
-
packageName: PACKAGE_NAME,
|
|
409
|
-
url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({
|
|
410
|
-
protoPath: '/v1/rewards/{id}',
|
|
411
|
-
data: payload,
|
|
412
|
-
host,
|
|
413
|
-
}),
|
|
414
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
415
|
-
};
|
|
416
|
-
return metadata;
|
|
417
|
-
}
|
|
418
|
-
return __deleteReward;
|
|
419
|
-
}
|
|
420
|
-
exports.deleteReward = deleteReward;
|
|
421
|
-
/**
|
|
422
|
-
* Retrieves a list of rewards.
|
|
423
|
-
*
|
|
424
|
-
* The list includes rewards that are currently nonredeemable due to insufficient points held by any customers.
|
|
425
|
-
*/
|
|
426
|
-
function listRewards(payload) {
|
|
427
|
-
function __listRewards({ host }) {
|
|
428
|
-
const metadata = {
|
|
429
|
-
entityFqdn: 'wix.loyalty.v1.reward',
|
|
430
|
-
method: 'GET',
|
|
431
|
-
methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.ListRewards',
|
|
432
|
-
packageName: PACKAGE_NAME,
|
|
433
|
-
url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({
|
|
434
|
-
protoPath: '/v1/rewards',
|
|
435
|
-
data: payload,
|
|
436
|
-
host,
|
|
437
|
-
}),
|
|
438
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
439
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
440
|
-
{
|
|
441
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
442
|
-
paths: [
|
|
443
|
-
{ path: 'rewards.createdDate' },
|
|
444
|
-
{ path: 'rewards.updatedDate' },
|
|
445
|
-
],
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
449
|
-
paths: [
|
|
450
|
-
{ path: 'rewards.couponReward.minimumSubtotal' },
|
|
451
|
-
{ path: 'rewards.couponReward.fixedAmount.configsByTier.amount' },
|
|
452
|
-
{
|
|
453
|
-
path: 'rewards.couponReward.percentage.configsByTier.percentage',
|
|
454
|
-
},
|
|
455
|
-
],
|
|
456
|
-
},
|
|
457
|
-
]),
|
|
458
|
-
};
|
|
459
|
-
return metadata;
|
|
460
|
-
}
|
|
461
|
-
return __listRewards;
|
|
462
|
-
}
|
|
463
|
-
exports.listRewards = listRewards;
|
|
464
|
-
//# sourceMappingURL=loyalty-v1-reward-rewards.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-v1-reward-rewards.http.js","sourceRoot":"","sources":["../../../../src/loyalty-v1-reward-rewards.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,gDAAgD,CACvD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,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EAAE;wBACL,EAAE,IAAI,EAAE,sCAAsC,EAAE;wBAChD,EAAE,IAAI,EAAE,uDAAuD,EAAE;wBACjE;4BACE,IAAI,EAAE,0DAA0D;yBACjE;qBACF;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAvCD,kCAuCC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixLoyaltyV1RewardTypes from './loyalty-v1-reward-rewards.types.js';
|
|
2
|
-
import * as ambassadorWixLoyaltyV1RewardUniversalTypes from './loyalty-v1-reward-rewards.universal.js';
|
|
3
|
-
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function createReward(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixLoyaltyV1RewardUniversalTypes.CreateRewardRequest, ambassadorWixLoyaltyV1RewardTypes.CreateRewardRequest, ambassadorWixLoyaltyV1RewardUniversalTypes.CreateRewardResponse, ambassadorWixLoyaltyV1RewardTypes.CreateRewardResponse>;
|
|
14
|
-
export declare function bulkCreateRewards(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixLoyaltyV1RewardUniversalTypes.BulkCreateRewardsRequest, ambassadorWixLoyaltyV1RewardTypes.BulkCreateRewardsRequest, ambassadorWixLoyaltyV1RewardUniversalTypes.BulkCreateRewardsResponse, ambassadorWixLoyaltyV1RewardTypes.BulkCreateRewardsResponse>;
|
|
15
|
-
export declare function getReward(): __PublicMethodMetaInfo<'GET', {
|
|
16
|
-
id: string;
|
|
17
|
-
}, ambassadorWixLoyaltyV1RewardUniversalTypes.GetRewardRequest, ambassadorWixLoyaltyV1RewardTypes.GetRewardRequest, ambassadorWixLoyaltyV1RewardUniversalTypes.GetRewardResponse, ambassadorWixLoyaltyV1RewardTypes.GetRewardResponse>;
|
|
18
|
-
export declare function bulkGetRewards(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixLoyaltyV1RewardUniversalTypes.BulkGetRewardsRequest, ambassadorWixLoyaltyV1RewardTypes.BulkGetRewardsRequest, ambassadorWixLoyaltyV1RewardUniversalTypes.BulkGetRewardsResponse, ambassadorWixLoyaltyV1RewardTypes.BulkGetRewardsResponse>;
|
|
19
|
-
export declare function queryRewards(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixLoyaltyV1RewardUniversalTypes.QueryRewardsRequest, ambassadorWixLoyaltyV1RewardTypes.QueryRewardsRequest, ambassadorWixLoyaltyV1RewardUniversalTypes.QueryRewardsResponse, ambassadorWixLoyaltyV1RewardTypes.QueryRewardsResponse>;
|
|
20
|
-
export declare function updateReward(): __PublicMethodMetaInfo<'PUT', {
|
|
21
|
-
rewardId: string;
|
|
22
|
-
}, ambassadorWixLoyaltyV1RewardUniversalTypes.UpdateRewardRequest, ambassadorWixLoyaltyV1RewardTypes.UpdateRewardRequest, ambassadorWixLoyaltyV1RewardUniversalTypes.UpdateRewardResponse, ambassadorWixLoyaltyV1RewardTypes.UpdateRewardResponse>;
|
|
23
|
-
export declare function deleteReward(): __PublicMethodMetaInfo<'DELETE', {
|
|
24
|
-
id: string;
|
|
25
|
-
}, ambassadorWixLoyaltyV1RewardUniversalTypes.DeleteRewardRequest, ambassadorWixLoyaltyV1RewardTypes.DeleteRewardRequest, ambassadorWixLoyaltyV1RewardUniversalTypes.DeleteRewardResponse, ambassadorWixLoyaltyV1RewardTypes.DeleteRewardResponse>;
|
|
26
|
-
export declare function listRewards(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixLoyaltyV1RewardUniversalTypes.ListRewardsRequest, ambassadorWixLoyaltyV1RewardTypes.ListRewardsRequest, ambassadorWixLoyaltyV1RewardUniversalTypes.ListRewardsResponse, ambassadorWixLoyaltyV1RewardTypes.ListRewardsResponse>;
|