@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.
- package/build/index.d.mts +100 -0
- package/build/index.d.ts +100 -0
- package/build/index.js +753 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +717 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +100 -0
- package/build/internal/index.d.ts +100 -0
- package/build/internal/index.js +753 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +717 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/{cjs/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-BpPn8h94.d.mts} +58 -260
- package/build/internal/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-BpPn8h94.d.ts} +58 -260
- package/build/internal/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.mts} +60 -253
- package/build/{es/src/loyalty-v1-coupon-coupons.types.d.ts → internal/meta.d.ts} +60 -253
- package/build/internal/meta.js +515 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +482 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-BpPn8h94.d.mts} +58 -260
- package/build/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-BpPn8h94.d.ts} +58 -260
- package/build/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.mts} +60 -253
- package/build/{internal/es/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.ts} +60 -253
- package/build/meta.js +515 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +482 -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-coupon-coupons.context.d.ts +0 -22
- package/build/cjs/src/loyalty-v1-coupon-coupons.context.js +0 -29
- package/build/cjs/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
- package/build/cjs/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
- package/build/cjs/src/loyalty-v1-coupon-coupons.http.js +0 -389
- package/build/cjs/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
- package/build/cjs/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
- package/build/cjs/src/loyalty-v1-coupon-coupons.meta.js +0 -161
- package/build/cjs/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
- package/build/cjs/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
- package/build/cjs/src/loyalty-v1-coupon-coupons.public.js +0 -98
- package/build/cjs/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
- package/build/cjs/src/loyalty-v1-coupon-coupons.types.js +0 -41
- package/build/cjs/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
- package/build/cjs/src/loyalty-v1-coupon-coupons.universal.js +0 -370
- package/build/cjs/src/loyalty-v1-coupon-coupons.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/src/loyalty-v1-coupon-coupons.context.d.ts +0 -22
- package/build/es/src/loyalty-v1-coupon-coupons.context.js +0 -22
- package/build/es/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
- package/build/es/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
- package/build/es/src/loyalty-v1-coupon-coupons.http.js +0 -379
- package/build/es/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
- package/build/es/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
- package/build/es/src/loyalty-v1-coupon-coupons.meta.js +0 -128
- package/build/es/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
- package/build/es/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
- package/build/es/src/loyalty-v1-coupon-coupons.public.js +0 -84
- package/build/es/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
- package/build/es/src/loyalty-v1-coupon-coupons.types.js +0 -38
- package/build/es/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
- package/build/es/src/loyalty-v1-coupon-coupons.universal.js +0 -337
- package/build/es/src/loyalty-v1-coupon-coupons.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-coupon-coupons.context.d.ts +0 -22
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.js +0 -29
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.js +0 -389
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.js +0 -161
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.js +0 -98
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.types.js +0 -41
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.universal.js +0 -370
- package/build/internal/cjs/src/loyalty-v1-coupon-coupons.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-coupon-coupons.context.d.ts +0 -22
- package/build/internal/es/src/loyalty-v1-coupon-coupons.context.js +0 -22
- package/build/internal/es/src/loyalty-v1-coupon-coupons.context.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-coupon-coupons.http.d.ts +0 -43
- package/build/internal/es/src/loyalty-v1-coupon-coupons.http.js +0 -379
- package/build/internal/es/src/loyalty-v1-coupon-coupons.http.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.d.ts +0 -23
- package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.js +0 -128
- package/build/internal/es/src/loyalty-v1-coupon-coupons.meta.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-coupon-coupons.public.d.ts +0 -85
- package/build/internal/es/src/loyalty-v1-coupon-coupons.public.js +0 -84
- package/build/internal/es/src/loyalty-v1-coupon-coupons.public.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-coupon-coupons.types.js +0 -38
- package/build/internal/es/src/loyalty-v1-coupon-coupons.types.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-coupon-coupons.universal.js +0 -337
- package/build/internal/es/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { k as RedeemPointsForCouponRequest$1, a as RedeemPointsForCouponResponse$1, l as RedeemCurrentMemberPointsForCouponRequest$1, b as RedeemCurrentMemberPointsForCouponResponse$1, o as GetLoyaltyCouponRequest$1, p as GetLoyaltyCouponResponse$1, q as BulkGetLoyaltyCouponRequest$1, c as BulkGetLoyaltyCouponResponse$1, w as GetCurrentMemberCouponsRequest$1, G as GetCurrentMemberCouponsResponse$1, Q as QueryLoyaltyCouponRequest$1, z as QueryLoyaltyCouponResponse$1, E as DeleteLoyaltyCouponRequest$1, F as DeleteLoyaltyCouponResponse$1 } from './loyalty-v1-coupon-coupons.universal-BpPn8h94.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* A loyalty coupon is created when a customer redeems their loyalty points for a reward. Creating a loyalty coupon
|
|
3
5
|
* also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/api/rest/coupons/about-wix-coupons).
|
|
4
6
|
*/
|
|
5
|
-
|
|
7
|
+
interface LoyaltyCoupon {
|
|
6
8
|
/**
|
|
7
9
|
* Loyalty coupon ID.
|
|
8
10
|
* @format GUID
|
|
@@ -75,7 +77,7 @@ export interface LoyaltyCoupon {
|
|
|
75
77
|
*/
|
|
76
78
|
updatedDate?: Date | null;
|
|
77
79
|
}
|
|
78
|
-
|
|
80
|
+
interface CouponReference {
|
|
79
81
|
/**
|
|
80
82
|
* Coupon ID.
|
|
81
83
|
* @format GUID
|
|
@@ -107,7 +109,7 @@ export interface CouponReference {
|
|
|
107
109
|
*/
|
|
108
110
|
deleted?: boolean | null;
|
|
109
111
|
}
|
|
110
|
-
|
|
112
|
+
interface Specification extends SpecificationTypeDetailsOneOf, SpecificationScopeOrMinSubtotalOneOf {
|
|
111
113
|
/** Fixed price discount. */
|
|
112
114
|
moneyOffAmount?: number;
|
|
113
115
|
/** Discount as a percentage. */
|
|
@@ -153,7 +155,7 @@ export interface Specification extends SpecificationTypeDetailsOneOf, Specificat
|
|
|
153
155
|
discountedCycleCount?: number | null;
|
|
154
156
|
}
|
|
155
157
|
/** @oneof */
|
|
156
|
-
|
|
158
|
+
interface SpecificationTypeDetailsOneOf {
|
|
157
159
|
/** Fixed price discount. */
|
|
158
160
|
moneyOffAmount?: number;
|
|
159
161
|
/** Discount as a percentage. */
|
|
@@ -170,7 +172,7 @@ export interface SpecificationTypeDetailsOneOf {
|
|
|
170
172
|
buyXGetY?: BuyXGetY;
|
|
171
173
|
}
|
|
172
174
|
/** @oneof */
|
|
173
|
-
|
|
175
|
+
interface SpecificationScopeOrMinSubtotalOneOf {
|
|
174
176
|
/**
|
|
175
177
|
* Scope of the coupon. When no scope is defined, the coupon applies to all
|
|
176
178
|
* items in all `namespaces` in the site.
|
|
@@ -179,7 +181,7 @@ export interface SpecificationScopeOrMinSubtotalOneOf {
|
|
|
179
181
|
/** The coupon is only applicable when the order subtotal is over this amount. */
|
|
180
182
|
minimumSubtotal?: number | null;
|
|
181
183
|
}
|
|
182
|
-
|
|
184
|
+
declare enum Type {
|
|
183
185
|
UNKNOWN = "UNKNOWN",
|
|
184
186
|
MONEY_OFF_AMOUNT = "MONEY_OFF_AMOUNT",
|
|
185
187
|
PERCENT_OFF_RATE = "PERCENT_OFF_RATE",
|
|
@@ -187,13 +189,13 @@ export declare enum Type {
|
|
|
187
189
|
FIXED_PRICE_AMOUNT = "FIXED_PRICE_AMOUNT",
|
|
188
190
|
BUY_X_GET_Y = "BUY_X_GET_Y"
|
|
189
191
|
}
|
|
190
|
-
|
|
192
|
+
interface BuyXGetY {
|
|
191
193
|
/** Number of purchased items required to receive free items. */
|
|
192
194
|
x?: number;
|
|
193
195
|
/** Number of items received for free if required number of items were purchased. */
|
|
194
196
|
y?: number;
|
|
195
197
|
}
|
|
196
|
-
|
|
198
|
+
interface Scope {
|
|
197
199
|
/**
|
|
198
200
|
* Group within a `namespace` for which the coupon is applicable.
|
|
199
201
|
*
|
|
@@ -221,7 +223,7 @@ export interface Scope {
|
|
|
221
223
|
*/
|
|
222
224
|
namespace?: string;
|
|
223
225
|
}
|
|
224
|
-
|
|
226
|
+
declare enum Status {
|
|
225
227
|
/** Unknown status. */
|
|
226
228
|
UNKNOWN = "UNKNOWN",
|
|
227
229
|
/** The reference coupon was created but the loyalty points have not been redeemed yet. */
|
|
@@ -235,7 +237,7 @@ export declare enum Status {
|
|
|
235
237
|
/** The reference coupon was deleted. */
|
|
236
238
|
ARCHIVED = "ARCHIVED"
|
|
237
239
|
}
|
|
238
|
-
|
|
240
|
+
interface RedeemPointsForCouponRequest {
|
|
239
241
|
/**
|
|
240
242
|
* ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
|
|
241
243
|
* @format GUID
|
|
@@ -247,59 +249,37 @@ export interface RedeemPointsForCouponRequest {
|
|
|
247
249
|
*/
|
|
248
250
|
loyaltyAccountId: string;
|
|
249
251
|
}
|
|
250
|
-
|
|
252
|
+
interface RedeemPointsForCouponResponse {
|
|
251
253
|
/** Created loyalty coupon. */
|
|
252
254
|
coupon?: LoyaltyCoupon;
|
|
253
255
|
}
|
|
254
|
-
|
|
256
|
+
interface RedeemCurrentMemberPointsForCouponRequest {
|
|
255
257
|
/**
|
|
256
258
|
* ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
|
|
257
259
|
* @format GUID
|
|
258
260
|
*/
|
|
259
261
|
rewardId: string;
|
|
260
262
|
}
|
|
261
|
-
|
|
263
|
+
interface RedeemCurrentMemberPointsForCouponResponse {
|
|
262
264
|
/** Created loyalty coupon. */
|
|
263
265
|
coupon?: LoyaltyCoupon;
|
|
264
266
|
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* ID of the [loyalty reward](https://dev.wix.com/api/rest/wix-loyalty-program/rewards) to redeem.
|
|
268
|
-
* @format GUID
|
|
269
|
-
*/
|
|
270
|
-
rewardId?: string;
|
|
271
|
-
/**
|
|
272
|
-
* Loyalty account id.
|
|
273
|
-
* @format GUID
|
|
274
|
-
*/
|
|
275
|
-
loyaltyAccountId?: string;
|
|
276
|
-
/** Number of points to redeem. */
|
|
277
|
-
pointsToRedeem?: number;
|
|
278
|
-
/** Coupon specification. */
|
|
279
|
-
specification?: Specification;
|
|
280
|
-
}
|
|
281
|
-
export interface RedeemMemberPointsForDiscountAmountCouponResponse {
|
|
282
|
-
/** Created loyalty coupon. */
|
|
283
|
-
coupon?: LoyaltyCoupon;
|
|
284
|
-
/** Transaction id of the coupon redemption */
|
|
285
|
-
transactionId?: string;
|
|
286
|
-
}
|
|
287
|
-
export interface GetLoyaltyCouponRequest {
|
|
267
|
+
interface GetLoyaltyCouponRequest {
|
|
288
268
|
/**
|
|
289
269
|
* ID of the loyalty coupon to retrieve.
|
|
290
270
|
* @format GUID
|
|
291
271
|
*/
|
|
292
272
|
loyaltyCouponId: string;
|
|
293
273
|
}
|
|
294
|
-
|
|
274
|
+
interface GetLoyaltyCouponResponse {
|
|
295
275
|
/** Retrieved loyalty coupon. */
|
|
296
276
|
loyaltyCoupon?: LoyaltyCoupon;
|
|
297
277
|
}
|
|
298
|
-
|
|
278
|
+
interface BulkGetLoyaltyCouponRequest {
|
|
299
279
|
/** Query to filter loyalty coupons. */
|
|
300
280
|
query?: CursorQuery;
|
|
301
281
|
}
|
|
302
|
-
|
|
282
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
303
283
|
/**
|
|
304
284
|
* Cursor paging options.
|
|
305
285
|
*
|
|
@@ -321,7 +301,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
321
301
|
sort?: Sorting[];
|
|
322
302
|
}
|
|
323
303
|
/** @oneof */
|
|
324
|
-
|
|
304
|
+
interface CursorQueryPagingMethodOneOf {
|
|
325
305
|
/**
|
|
326
306
|
* Cursor paging options.
|
|
327
307
|
*
|
|
@@ -329,7 +309,7 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
329
309
|
*/
|
|
330
310
|
cursorPaging?: CursorPaging;
|
|
331
311
|
}
|
|
332
|
-
|
|
312
|
+
interface Sorting {
|
|
333
313
|
/**
|
|
334
314
|
* Name of the field to sort by.
|
|
335
315
|
* @maxLength 512
|
|
@@ -338,11 +318,11 @@ export interface Sorting {
|
|
|
338
318
|
/** Sort order. */
|
|
339
319
|
order?: SortOrder;
|
|
340
320
|
}
|
|
341
|
-
|
|
321
|
+
declare enum SortOrder {
|
|
342
322
|
ASC = "ASC",
|
|
343
323
|
DESC = "DESC"
|
|
344
324
|
}
|
|
345
|
-
|
|
325
|
+
interface CursorPaging {
|
|
346
326
|
/**
|
|
347
327
|
* Maximum number of items to return in the results.
|
|
348
328
|
* @max 100
|
|
@@ -357,14 +337,14 @@ export interface CursorPaging {
|
|
|
357
337
|
*/
|
|
358
338
|
cursor?: string | null;
|
|
359
339
|
}
|
|
360
|
-
|
|
340
|
+
interface BulkGetLoyaltyCouponResponse {
|
|
361
341
|
/**
|
|
362
342
|
* Retrieved loyalty coupons.
|
|
363
343
|
* @maxSize 100
|
|
364
344
|
*/
|
|
365
345
|
couponsInSite?: CouponsInSite[];
|
|
366
346
|
}
|
|
367
|
-
|
|
347
|
+
interface CouponsInSite {
|
|
368
348
|
/**
|
|
369
349
|
* Metasite id
|
|
370
350
|
* @format GUID
|
|
@@ -376,17 +356,17 @@ export interface CouponsInSite {
|
|
|
376
356
|
*/
|
|
377
357
|
loyaltyCoupons?: LoyaltyCoupon[];
|
|
378
358
|
}
|
|
379
|
-
|
|
359
|
+
interface GetCurrentMemberCouponsRequest {
|
|
380
360
|
}
|
|
381
|
-
|
|
361
|
+
interface GetCurrentMemberCouponsResponse {
|
|
382
362
|
/** Retrieved loyalty coupons. */
|
|
383
363
|
loyaltyCoupons?: LoyaltyCoupon[];
|
|
384
364
|
}
|
|
385
|
-
|
|
365
|
+
interface QueryLoyaltyCouponRequest {
|
|
386
366
|
/** Query options. */
|
|
387
367
|
query: QueryV2;
|
|
388
368
|
}
|
|
389
|
-
|
|
369
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
390
370
|
/** Paging options to limit and skip the number of items. */
|
|
391
371
|
paging?: Paging;
|
|
392
372
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
@@ -409,25 +389,25 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
409
389
|
fieldsets?: string[];
|
|
410
390
|
}
|
|
411
391
|
/** @oneof */
|
|
412
|
-
|
|
392
|
+
interface QueryV2PagingMethodOneOf {
|
|
413
393
|
/** Paging options to limit and skip the number of items. */
|
|
414
394
|
paging?: Paging;
|
|
415
395
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
416
396
|
cursorPaging?: CursorPaging;
|
|
417
397
|
}
|
|
418
|
-
|
|
398
|
+
interface Paging {
|
|
419
399
|
/** Number of items to load. */
|
|
420
400
|
limit?: number | null;
|
|
421
401
|
/** Number of items to skip in the current sort order. */
|
|
422
402
|
offset?: number | null;
|
|
423
403
|
}
|
|
424
|
-
|
|
404
|
+
interface QueryLoyaltyCouponResponse {
|
|
425
405
|
/** Retrieved loyalty coupons. */
|
|
426
406
|
loyaltyCoupons?: LoyaltyCoupon[];
|
|
427
407
|
/** Metadata. */
|
|
428
408
|
metadata?: PagingMetadataV2;
|
|
429
409
|
}
|
|
430
|
-
|
|
410
|
+
interface PagingMetadataV2 {
|
|
431
411
|
/** Number of items returned in the response. */
|
|
432
412
|
count?: number | null;
|
|
433
413
|
/** Offset that was requested. */
|
|
@@ -439,7 +419,7 @@ export interface PagingMetadataV2 {
|
|
|
439
419
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
440
420
|
cursors?: Cursors;
|
|
441
421
|
}
|
|
442
|
-
|
|
422
|
+
interface Cursors {
|
|
443
423
|
/**
|
|
444
424
|
* Cursor string pointing to the next page in the list of results.
|
|
445
425
|
* @maxLength 16000
|
|
@@ -451,7 +431,7 @@ export interface Cursors {
|
|
|
451
431
|
*/
|
|
452
432
|
prev?: string | null;
|
|
453
433
|
}
|
|
454
|
-
|
|
434
|
+
interface DeleteLoyaltyCouponRequest {
|
|
455
435
|
/**
|
|
456
436
|
* ID of the loyalty coupon to delete.
|
|
457
437
|
* @format GUID
|
|
@@ -464,202 +444,29 @@ export interface DeleteLoyaltyCouponRequest {
|
|
|
464
444
|
*/
|
|
465
445
|
revision?: string;
|
|
466
446
|
}
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
slug?: string;
|
|
490
|
-
/** ID of the entity associated with the event. */
|
|
491
|
-
entityId?: string;
|
|
492
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
493
|
-
eventTime?: Date | null;
|
|
494
|
-
/**
|
|
495
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
496
|
-
* (for example, GDPR).
|
|
497
|
-
*/
|
|
498
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
499
|
-
/** If present, indicates the action that triggered the event. */
|
|
500
|
-
originatedFrom?: string | null;
|
|
501
|
-
/**
|
|
502
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
503
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
504
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
505
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
506
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
507
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
508
|
-
*/
|
|
509
|
-
entityEventSequence?: string | null;
|
|
510
|
-
}
|
|
511
|
-
/** @oneof */
|
|
512
|
-
export interface DomainEventBodyOneOf {
|
|
513
|
-
createdEvent?: EntityCreatedEvent;
|
|
514
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
515
|
-
deletedEvent?: EntityDeletedEvent;
|
|
516
|
-
actionEvent?: ActionEvent;
|
|
517
|
-
}
|
|
518
|
-
export interface EntityCreatedEvent {
|
|
519
|
-
entityAsJson?: string;
|
|
520
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
521
|
-
restoreInfo?: RestoreInfo;
|
|
522
|
-
}
|
|
523
|
-
export interface RestoreInfo {
|
|
524
|
-
deletedDate?: Date | null;
|
|
525
|
-
}
|
|
526
|
-
export interface EntityUpdatedEvent {
|
|
527
|
-
/**
|
|
528
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
529
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
530
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
531
|
-
*/
|
|
532
|
-
currentEntityAsJson?: string;
|
|
533
|
-
}
|
|
534
|
-
export interface EntityDeletedEvent {
|
|
535
|
-
/** Entity that was deleted */
|
|
536
|
-
deletedEntityAsJson?: string | null;
|
|
537
|
-
}
|
|
538
|
-
export interface ActionEvent {
|
|
539
|
-
bodyAsJson?: string;
|
|
540
|
-
}
|
|
541
|
-
export interface Empty {
|
|
542
|
-
}
|
|
543
|
-
export interface MessageEnvelope {
|
|
544
|
-
/**
|
|
545
|
-
* App instance ID.
|
|
546
|
-
* @format GUID
|
|
547
|
-
*/
|
|
548
|
-
instanceId?: string | null;
|
|
549
|
-
/**
|
|
550
|
-
* Event type.
|
|
551
|
-
* @maxLength 150
|
|
552
|
-
*/
|
|
553
|
-
eventType?: string;
|
|
554
|
-
/** The identification type and identity data. */
|
|
555
|
-
identity?: IdentificationData;
|
|
556
|
-
/** Stringify payload. */
|
|
557
|
-
data?: string;
|
|
558
|
-
}
|
|
559
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
560
|
-
/**
|
|
561
|
-
* ID of a site visitor that has not logged in to the site.
|
|
562
|
-
* @format GUID
|
|
563
|
-
*/
|
|
564
|
-
anonymousVisitorId?: string;
|
|
565
|
-
/**
|
|
566
|
-
* ID of a site visitor that has logged in to the site.
|
|
567
|
-
* @format GUID
|
|
568
|
-
*/
|
|
569
|
-
memberId?: string;
|
|
570
|
-
/**
|
|
571
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
572
|
-
* @format GUID
|
|
573
|
-
*/
|
|
574
|
-
wixUserId?: string;
|
|
575
|
-
/**
|
|
576
|
-
* ID of an app.
|
|
577
|
-
* @format GUID
|
|
578
|
-
*/
|
|
579
|
-
appId?: string;
|
|
580
|
-
/** @readonly */
|
|
581
|
-
identityType?: WebhookIdentityType;
|
|
582
|
-
}
|
|
583
|
-
/** @oneof */
|
|
584
|
-
export interface IdentificationDataIdOneOf {
|
|
585
|
-
/**
|
|
586
|
-
* ID of a site visitor that has not logged in to the site.
|
|
587
|
-
* @format GUID
|
|
588
|
-
*/
|
|
589
|
-
anonymousVisitorId?: string;
|
|
590
|
-
/**
|
|
591
|
-
* ID of a site visitor that has logged in to the site.
|
|
592
|
-
* @format GUID
|
|
593
|
-
*/
|
|
594
|
-
memberId?: string;
|
|
595
|
-
/**
|
|
596
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
597
|
-
* @format GUID
|
|
598
|
-
*/
|
|
599
|
-
wixUserId?: string;
|
|
600
|
-
/**
|
|
601
|
-
* ID of an app.
|
|
602
|
-
* @format GUID
|
|
603
|
-
*/
|
|
604
|
-
appId?: string;
|
|
605
|
-
}
|
|
606
|
-
export declare enum WebhookIdentityType {
|
|
607
|
-
UNKNOWN = "UNKNOWN",
|
|
608
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
609
|
-
MEMBER = "MEMBER",
|
|
610
|
-
WIX_USER = "WIX_USER",
|
|
611
|
-
APP = "APP"
|
|
612
|
-
}
|
|
613
|
-
interface BuyXGetYNonNullableFields {
|
|
614
|
-
x: number;
|
|
615
|
-
y: number;
|
|
616
|
-
}
|
|
617
|
-
interface ScopeNonNullableFields {
|
|
618
|
-
namespace: string;
|
|
619
|
-
}
|
|
620
|
-
interface SpecificationNonNullableFields {
|
|
621
|
-
moneyOffAmount: number;
|
|
622
|
-
percentOffRate: number;
|
|
623
|
-
freeShipping: boolean;
|
|
624
|
-
fixedPriceAmount: number;
|
|
625
|
-
buyXGetY?: BuyXGetYNonNullableFields;
|
|
626
|
-
scope?: ScopeNonNullableFields;
|
|
627
|
-
type: Type;
|
|
628
|
-
}
|
|
629
|
-
interface CouponReferenceNonNullableFields {
|
|
630
|
-
couponId: string;
|
|
631
|
-
code: string;
|
|
632
|
-
specification?: SpecificationNonNullableFields;
|
|
633
|
-
}
|
|
634
|
-
interface LoyaltyCouponNonNullableFields {
|
|
447
|
+
interface DeleteLoyaltyCouponResponse {
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
451
|
+
getUrl: (context: any) => string;
|
|
452
|
+
httpMethod: K;
|
|
453
|
+
path: string;
|
|
454
|
+
pathParams: M;
|
|
455
|
+
__requestType: T;
|
|
456
|
+
__originalRequestType: S;
|
|
457
|
+
__responseType: Q;
|
|
458
|
+
__originalResponseType: R;
|
|
459
|
+
};
|
|
460
|
+
declare function redeemPointsForCoupon(): __PublicMethodMetaInfo<'POST', {}, RedeemPointsForCouponRequest$1, RedeemPointsForCouponRequest, RedeemPointsForCouponResponse$1, RedeemPointsForCouponResponse>;
|
|
461
|
+
declare function redeemCurrentMemberPointsForCoupon(): __PublicMethodMetaInfo<'POST', {}, RedeemCurrentMemberPointsForCouponRequest$1, RedeemCurrentMemberPointsForCouponRequest, RedeemCurrentMemberPointsForCouponResponse$1, RedeemCurrentMemberPointsForCouponResponse>;
|
|
462
|
+
declare function getLoyaltyCoupon(): __PublicMethodMetaInfo<'GET', {
|
|
463
|
+
loyaltyCouponId: string;
|
|
464
|
+
}, GetLoyaltyCouponRequest$1, GetLoyaltyCouponRequest, GetLoyaltyCouponResponse$1, GetLoyaltyCouponResponse>;
|
|
465
|
+
declare function bulkGetLoyaltyCoupon(): __PublicMethodMetaInfo<'GET', {}, BulkGetLoyaltyCouponRequest$1, BulkGetLoyaltyCouponRequest, BulkGetLoyaltyCouponResponse$1, BulkGetLoyaltyCouponResponse>;
|
|
466
|
+
declare function getCurrentMemberCoupons(): __PublicMethodMetaInfo<'GET', {}, GetCurrentMemberCouponsRequest$1, GetCurrentMemberCouponsRequest, GetCurrentMemberCouponsResponse$1, GetCurrentMemberCouponsResponse>;
|
|
467
|
+
declare function queryLoyaltyCoupons(): __PublicMethodMetaInfo<'POST', {}, QueryLoyaltyCouponRequest$1, QueryLoyaltyCouponRequest, QueryLoyaltyCouponResponse$1, QueryLoyaltyCouponResponse>;
|
|
468
|
+
declare function deleteLoyaltyCoupon(): __PublicMethodMetaInfo<'DELETE', {
|
|
635
469
|
id: string;
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
status: Status;
|
|
640
|
-
rewardName: string;
|
|
641
|
-
}
|
|
642
|
-
export interface RedeemPointsForCouponResponseNonNullableFields {
|
|
643
|
-
coupon?: LoyaltyCouponNonNullableFields;
|
|
644
|
-
}
|
|
645
|
-
export interface RedeemCurrentMemberPointsForCouponResponseNonNullableFields {
|
|
646
|
-
coupon?: LoyaltyCouponNonNullableFields;
|
|
647
|
-
transactionId: string;
|
|
648
|
-
}
|
|
649
|
-
export interface GetLoyaltyCouponResponseNonNullableFields {
|
|
650
|
-
loyaltyCoupon?: LoyaltyCouponNonNullableFields;
|
|
651
|
-
}
|
|
652
|
-
interface CouponsInSiteNonNullableFields {
|
|
653
|
-
metaSiteId: string;
|
|
654
|
-
loyaltyCoupons: LoyaltyCouponNonNullableFields[];
|
|
655
|
-
}
|
|
656
|
-
export interface BulkGetLoyaltyCouponResponseNonNullableFields {
|
|
657
|
-
couponsInSite: CouponsInSiteNonNullableFields[];
|
|
658
|
-
}
|
|
659
|
-
export interface GetCurrentMemberCouponsResponseNonNullableFields {
|
|
660
|
-
loyaltyCoupons: LoyaltyCouponNonNullableFields[];
|
|
661
|
-
}
|
|
662
|
-
export interface QueryLoyaltyCouponResponseNonNullableFields {
|
|
663
|
-
loyaltyCoupons: LoyaltyCouponNonNullableFields[];
|
|
664
|
-
}
|
|
665
|
-
export {};
|
|
470
|
+
}, DeleteLoyaltyCouponRequest$1, DeleteLoyaltyCouponRequest, DeleteLoyaltyCouponResponse$1, DeleteLoyaltyCouponResponse>;
|
|
471
|
+
|
|
472
|
+
export { type __PublicMethodMetaInfo, bulkGetLoyaltyCoupon, deleteLoyaltyCoupon, getCurrentMemberCoupons, getLoyaltyCoupon, queryLoyaltyCoupons, redeemCurrentMemberPointsForCoupon, redeemPointsForCoupon };
|