@wix/auto_sdk_loyalty_coupons 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.mts +101 -0
- package/build/index.d.ts +101 -0
- package/build/index.js +756 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +720 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +101 -0
- package/build/internal/index.d.ts +101 -0
- package/build/internal/index.js +756 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +720 -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-YZSAPFpG.d.mts} +62 -222
- package/build/internal/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.ts} +62 -222
- package/build/internal/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.mts} +64 -198
- package/build/{es/src/loyalty-v1-coupon-coupons.types.d.ts → internal/meta.d.ts} +64 -198
- 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-YZSAPFpG.d.mts} +62 -222
- package/build/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.ts} +62 -222
- package/build/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.mts} +64 -198
- package/build/{internal/es/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.ts} +64 -198
- 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 -372
- 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/package.json +0 -3
- 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 -339
- 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 -372
- 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 -339
- package/build/internal/es/src/loyalty-v1-coupon-coupons.universal.js.map +0 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { m as RedeemPointsForCouponRequest$1, a as RedeemPointsForCouponResponse$1, n as RedeemCurrentMemberPointsForCouponRequest$1, b as RedeemCurrentMemberPointsForCouponResponse$1, q as GetLoyaltyCouponRequest$1, r as GetLoyaltyCouponResponse$1, s as BulkGetLoyaltyCouponRequest$1, c as BulkGetLoyaltyCouponResponse$1, y as GetCurrentMemberCouponsRequest$1, G as GetCurrentMemberCouponsResponse$1, Q as QueryLoyaltyCouponRequest$1, D as QueryLoyaltyCouponResponse$1, H as DeleteLoyaltyCouponRequest$1, I as DeleteLoyaltyCouponResponse$1 } from './loyalty-v1-coupon-coupons.universal-YZSAPFpG.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",
|
|
@@ -188,14 +190,14 @@ export declare enum Type {
|
|
|
188
190
|
BUY_X_GET_Y = "BUY_X_GET_Y"
|
|
189
191
|
}
|
|
190
192
|
/** @enumType */
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
type TypeWithLiterals = Type | 'UNKNOWN' | 'MONEY_OFF_AMOUNT' | 'PERCENT_OFF_RATE' | 'FREE_SHIPPING' | 'FIXED_PRICE_AMOUNT' | 'BUY_X_GET_Y';
|
|
194
|
+
interface BuyXGetY {
|
|
193
195
|
/** Number of purchased items required to receive free items. */
|
|
194
196
|
x?: number;
|
|
195
197
|
/** Number of items received for free if required number of items were purchased. */
|
|
196
198
|
y?: number;
|
|
197
199
|
}
|
|
198
|
-
|
|
200
|
+
interface Scope {
|
|
199
201
|
/**
|
|
200
202
|
* Group within a `namespace` for which the coupon is applicable.
|
|
201
203
|
*
|
|
@@ -223,7 +225,7 @@ export interface Scope {
|
|
|
223
225
|
*/
|
|
224
226
|
namespace?: string;
|
|
225
227
|
}
|
|
226
|
-
|
|
228
|
+
declare enum Status {
|
|
227
229
|
/** Unknown status. */
|
|
228
230
|
UNKNOWN = "UNKNOWN",
|
|
229
231
|
/** The reference coupon was created but the loyalty points have not been redeemed yet. */
|
|
@@ -238,8 +240,8 @@ export declare enum Status {
|
|
|
238
240
|
ARCHIVED = "ARCHIVED"
|
|
239
241
|
}
|
|
240
242
|
/** @enumType */
|
|
241
|
-
|
|
242
|
-
|
|
243
|
+
type StatusWithLiterals = Status | 'UNKNOWN' | 'PENDING' | 'ACTIVE' | 'APPLIED' | 'FAILED' | 'ARCHIVED';
|
|
244
|
+
interface RedeemPointsForCouponRequest {
|
|
243
245
|
/**
|
|
244
246
|
* ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
|
|
245
247
|
* @format GUID
|
|
@@ -251,59 +253,37 @@ export interface RedeemPointsForCouponRequest {
|
|
|
251
253
|
*/
|
|
252
254
|
loyaltyAccountId: string;
|
|
253
255
|
}
|
|
254
|
-
|
|
256
|
+
interface RedeemPointsForCouponResponse {
|
|
255
257
|
/** Created loyalty coupon. */
|
|
256
258
|
coupon?: LoyaltyCoupon;
|
|
257
259
|
}
|
|
258
|
-
|
|
260
|
+
interface RedeemCurrentMemberPointsForCouponRequest {
|
|
259
261
|
/**
|
|
260
262
|
* ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
|
|
261
263
|
* @format GUID
|
|
262
264
|
*/
|
|
263
265
|
rewardId: string;
|
|
264
266
|
}
|
|
265
|
-
|
|
267
|
+
interface RedeemCurrentMemberPointsForCouponResponse {
|
|
266
268
|
/** Created loyalty coupon. */
|
|
267
269
|
coupon?: LoyaltyCoupon;
|
|
268
270
|
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* ID of the [loyalty reward](https://dev.wix.com/api/rest/wix-loyalty-program/rewards) to redeem.
|
|
272
|
-
* @format GUID
|
|
273
|
-
*/
|
|
274
|
-
rewardId?: string;
|
|
275
|
-
/**
|
|
276
|
-
* Loyalty account id.
|
|
277
|
-
* @format GUID
|
|
278
|
-
*/
|
|
279
|
-
loyaltyAccountId?: string;
|
|
280
|
-
/** Number of points to redeem. */
|
|
281
|
-
pointsToRedeem?: number;
|
|
282
|
-
/** Coupon specification. */
|
|
283
|
-
specification?: Specification;
|
|
284
|
-
}
|
|
285
|
-
export interface RedeemMemberPointsForDiscountAmountCouponResponse {
|
|
286
|
-
/** Created loyalty coupon. */
|
|
287
|
-
coupon?: LoyaltyCoupon;
|
|
288
|
-
/** Transaction id of the coupon redemption */
|
|
289
|
-
transactionId?: string;
|
|
290
|
-
}
|
|
291
|
-
export interface GetLoyaltyCouponRequest {
|
|
271
|
+
interface GetLoyaltyCouponRequest {
|
|
292
272
|
/**
|
|
293
273
|
* ID of the loyalty coupon to retrieve.
|
|
294
274
|
* @format GUID
|
|
295
275
|
*/
|
|
296
276
|
loyaltyCouponId: string;
|
|
297
277
|
}
|
|
298
|
-
|
|
278
|
+
interface GetLoyaltyCouponResponse {
|
|
299
279
|
/** Retrieved loyalty coupon. */
|
|
300
280
|
loyaltyCoupon?: LoyaltyCoupon;
|
|
301
281
|
}
|
|
302
|
-
|
|
282
|
+
interface BulkGetLoyaltyCouponRequest {
|
|
303
283
|
/** Query to filter loyalty coupons. */
|
|
304
284
|
query?: CursorQuery;
|
|
305
285
|
}
|
|
306
|
-
|
|
286
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
307
287
|
/**
|
|
308
288
|
* Cursor paging options.
|
|
309
289
|
*
|
|
@@ -325,7 +305,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
325
305
|
sort?: Sorting[];
|
|
326
306
|
}
|
|
327
307
|
/** @oneof */
|
|
328
|
-
|
|
308
|
+
interface CursorQueryPagingMethodOneOf {
|
|
329
309
|
/**
|
|
330
310
|
* Cursor paging options.
|
|
331
311
|
*
|
|
@@ -333,7 +313,7 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
333
313
|
*/
|
|
334
314
|
cursorPaging?: CursorPaging;
|
|
335
315
|
}
|
|
336
|
-
|
|
316
|
+
interface Sorting {
|
|
337
317
|
/**
|
|
338
318
|
* Name of the field to sort by.
|
|
339
319
|
* @maxLength 512
|
|
@@ -342,13 +322,13 @@ export interface Sorting {
|
|
|
342
322
|
/** Sort order. */
|
|
343
323
|
order?: SortOrderWithLiterals;
|
|
344
324
|
}
|
|
345
|
-
|
|
325
|
+
declare enum SortOrder {
|
|
346
326
|
ASC = "ASC",
|
|
347
327
|
DESC = "DESC"
|
|
348
328
|
}
|
|
349
329
|
/** @enumType */
|
|
350
|
-
|
|
351
|
-
|
|
330
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
331
|
+
interface CursorPaging {
|
|
352
332
|
/**
|
|
353
333
|
* Maximum number of items to return in the results.
|
|
354
334
|
* @max 100
|
|
@@ -363,14 +343,14 @@ export interface CursorPaging {
|
|
|
363
343
|
*/
|
|
364
344
|
cursor?: string | null;
|
|
365
345
|
}
|
|
366
|
-
|
|
346
|
+
interface BulkGetLoyaltyCouponResponse {
|
|
367
347
|
/**
|
|
368
348
|
* Retrieved loyalty coupons.
|
|
369
349
|
* @maxSize 100
|
|
370
350
|
*/
|
|
371
351
|
couponsInSite?: CouponsInSite[];
|
|
372
352
|
}
|
|
373
|
-
|
|
353
|
+
interface CouponsInSite {
|
|
374
354
|
/**
|
|
375
355
|
* Metasite id
|
|
376
356
|
* @format GUID
|
|
@@ -382,17 +362,17 @@ export interface CouponsInSite {
|
|
|
382
362
|
*/
|
|
383
363
|
loyaltyCoupons?: LoyaltyCoupon[];
|
|
384
364
|
}
|
|
385
|
-
|
|
365
|
+
interface GetCurrentMemberCouponsRequest {
|
|
386
366
|
}
|
|
387
|
-
|
|
367
|
+
interface GetCurrentMemberCouponsResponse {
|
|
388
368
|
/** Retrieved loyalty coupons. */
|
|
389
369
|
loyaltyCoupons?: LoyaltyCoupon[];
|
|
390
370
|
}
|
|
391
|
-
|
|
371
|
+
interface QueryLoyaltyCouponRequest {
|
|
392
372
|
/** Query options. */
|
|
393
373
|
query: QueryV2;
|
|
394
374
|
}
|
|
395
|
-
|
|
375
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
396
376
|
/** Paging options to limit and skip the number of items. */
|
|
397
377
|
paging?: Paging;
|
|
398
378
|
/** 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`. */
|
|
@@ -415,25 +395,25 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
415
395
|
fieldsets?: string[];
|
|
416
396
|
}
|
|
417
397
|
/** @oneof */
|
|
418
|
-
|
|
398
|
+
interface QueryV2PagingMethodOneOf {
|
|
419
399
|
/** Paging options to limit and skip the number of items. */
|
|
420
400
|
paging?: Paging;
|
|
421
401
|
/** 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`. */
|
|
422
402
|
cursorPaging?: CursorPaging;
|
|
423
403
|
}
|
|
424
|
-
|
|
404
|
+
interface Paging {
|
|
425
405
|
/** Number of items to load. */
|
|
426
406
|
limit?: number | null;
|
|
427
407
|
/** Number of items to skip in the current sort order. */
|
|
428
408
|
offset?: number | null;
|
|
429
409
|
}
|
|
430
|
-
|
|
410
|
+
interface QueryLoyaltyCouponResponse {
|
|
431
411
|
/** Retrieved loyalty coupons. */
|
|
432
412
|
loyaltyCoupons?: LoyaltyCoupon[];
|
|
433
413
|
/** Metadata. */
|
|
434
414
|
metadata?: PagingMetadataV2;
|
|
435
415
|
}
|
|
436
|
-
|
|
416
|
+
interface PagingMetadataV2 {
|
|
437
417
|
/** Number of items returned in the response. */
|
|
438
418
|
count?: number | null;
|
|
439
419
|
/** Offset that was requested. */
|
|
@@ -445,7 +425,7 @@ export interface PagingMetadataV2 {
|
|
|
445
425
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
446
426
|
cursors?: Cursors;
|
|
447
427
|
}
|
|
448
|
-
|
|
428
|
+
interface Cursors {
|
|
449
429
|
/**
|
|
450
430
|
* Cursor string pointing to the next page in the list of results.
|
|
451
431
|
* @maxLength 16000
|
|
@@ -457,7 +437,7 @@ export interface Cursors {
|
|
|
457
437
|
*/
|
|
458
438
|
prev?: string | null;
|
|
459
439
|
}
|
|
460
|
-
|
|
440
|
+
interface DeleteLoyaltyCouponRequest {
|
|
461
441
|
/**
|
|
462
442
|
* ID of the loyalty coupon to delete.
|
|
463
443
|
* @format GUID
|
|
@@ -470,143 +450,29 @@ export interface DeleteLoyaltyCouponRequest {
|
|
|
470
450
|
*/
|
|
471
451
|
revision?: string;
|
|
472
452
|
}
|
|
473
|
-
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
*/
|
|
500
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
501
|
-
/** If present, indicates the action that triggered the event. */
|
|
502
|
-
originatedFrom?: string | null;
|
|
503
|
-
/**
|
|
504
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
505
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
506
|
-
*/
|
|
507
|
-
entityEventSequence?: string | null;
|
|
508
|
-
}
|
|
509
|
-
/** @oneof */
|
|
510
|
-
export interface DomainEventBodyOneOf {
|
|
511
|
-
createdEvent?: EntityCreatedEvent;
|
|
512
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
513
|
-
deletedEvent?: EntityDeletedEvent;
|
|
514
|
-
actionEvent?: ActionEvent;
|
|
515
|
-
}
|
|
516
|
-
export interface EntityCreatedEvent {
|
|
517
|
-
entityAsJson?: string;
|
|
518
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
519
|
-
restoreInfo?: RestoreInfo;
|
|
520
|
-
}
|
|
521
|
-
export interface RestoreInfo {
|
|
522
|
-
deletedDate?: Date | null;
|
|
523
|
-
}
|
|
524
|
-
export interface EntityUpdatedEvent {
|
|
525
|
-
/**
|
|
526
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
527
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
528
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
529
|
-
*/
|
|
530
|
-
currentEntityAsJson?: string;
|
|
531
|
-
}
|
|
532
|
-
export interface EntityDeletedEvent {
|
|
533
|
-
/** Entity that was deleted. */
|
|
534
|
-
deletedEntityAsJson?: string | null;
|
|
535
|
-
}
|
|
536
|
-
export interface ActionEvent {
|
|
537
|
-
bodyAsJson?: string;
|
|
538
|
-
}
|
|
539
|
-
export interface Empty {
|
|
540
|
-
}
|
|
541
|
-
export interface MessageEnvelope {
|
|
542
|
-
/**
|
|
543
|
-
* App instance ID.
|
|
544
|
-
* @format GUID
|
|
545
|
-
*/
|
|
546
|
-
instanceId?: string | null;
|
|
547
|
-
/**
|
|
548
|
-
* Event type.
|
|
549
|
-
* @maxLength 150
|
|
550
|
-
*/
|
|
551
|
-
eventType?: string;
|
|
552
|
-
/** The identification type and identity data. */
|
|
553
|
-
identity?: IdentificationData;
|
|
554
|
-
/** Stringify payload. */
|
|
555
|
-
data?: string;
|
|
556
|
-
}
|
|
557
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
558
|
-
/**
|
|
559
|
-
* ID of a site visitor that has not logged in to the site.
|
|
560
|
-
* @format GUID
|
|
561
|
-
*/
|
|
562
|
-
anonymousVisitorId?: string;
|
|
563
|
-
/**
|
|
564
|
-
* ID of a site visitor that has logged in to the site.
|
|
565
|
-
* @format GUID
|
|
566
|
-
*/
|
|
567
|
-
memberId?: string;
|
|
568
|
-
/**
|
|
569
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
570
|
-
* @format GUID
|
|
571
|
-
*/
|
|
572
|
-
wixUserId?: string;
|
|
573
|
-
/**
|
|
574
|
-
* ID of an app.
|
|
575
|
-
* @format GUID
|
|
576
|
-
*/
|
|
577
|
-
appId?: string;
|
|
578
|
-
/** @readonly */
|
|
579
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
580
|
-
}
|
|
581
|
-
/** @oneof */
|
|
582
|
-
export interface IdentificationDataIdOneOf {
|
|
583
|
-
/**
|
|
584
|
-
* ID of a site visitor that has not logged in to the site.
|
|
585
|
-
* @format GUID
|
|
586
|
-
*/
|
|
587
|
-
anonymousVisitorId?: string;
|
|
588
|
-
/**
|
|
589
|
-
* ID of a site visitor that has logged in to the site.
|
|
590
|
-
* @format GUID
|
|
591
|
-
*/
|
|
592
|
-
memberId?: string;
|
|
593
|
-
/**
|
|
594
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
595
|
-
* @format GUID
|
|
596
|
-
*/
|
|
597
|
-
wixUserId?: string;
|
|
598
|
-
/**
|
|
599
|
-
* ID of an app.
|
|
600
|
-
* @format GUID
|
|
601
|
-
*/
|
|
602
|
-
appId?: string;
|
|
603
|
-
}
|
|
604
|
-
export declare enum WebhookIdentityType {
|
|
605
|
-
UNKNOWN = "UNKNOWN",
|
|
606
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
607
|
-
MEMBER = "MEMBER",
|
|
608
|
-
WIX_USER = "WIX_USER",
|
|
609
|
-
APP = "APP"
|
|
610
|
-
}
|
|
611
|
-
/** @enumType */
|
|
612
|
-
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
453
|
+
interface DeleteLoyaltyCouponResponse {
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
457
|
+
getUrl: (context: any) => string;
|
|
458
|
+
httpMethod: K;
|
|
459
|
+
path: string;
|
|
460
|
+
pathParams: M;
|
|
461
|
+
__requestType: T;
|
|
462
|
+
__originalRequestType: S;
|
|
463
|
+
__responseType: Q;
|
|
464
|
+
__originalResponseType: R;
|
|
465
|
+
};
|
|
466
|
+
declare function redeemPointsForCoupon(): __PublicMethodMetaInfo<'POST', {}, RedeemPointsForCouponRequest$1, RedeemPointsForCouponRequest, RedeemPointsForCouponResponse$1, RedeemPointsForCouponResponse>;
|
|
467
|
+
declare function redeemCurrentMemberPointsForCoupon(): __PublicMethodMetaInfo<'POST', {}, RedeemCurrentMemberPointsForCouponRequest$1, RedeemCurrentMemberPointsForCouponRequest, RedeemCurrentMemberPointsForCouponResponse$1, RedeemCurrentMemberPointsForCouponResponse>;
|
|
468
|
+
declare function getLoyaltyCoupon(): __PublicMethodMetaInfo<'GET', {
|
|
469
|
+
loyaltyCouponId: string;
|
|
470
|
+
}, GetLoyaltyCouponRequest$1, GetLoyaltyCouponRequest, GetLoyaltyCouponResponse$1, GetLoyaltyCouponResponse>;
|
|
471
|
+
declare function bulkGetLoyaltyCoupon(): __PublicMethodMetaInfo<'GET', {}, BulkGetLoyaltyCouponRequest$1, BulkGetLoyaltyCouponRequest, BulkGetLoyaltyCouponResponse$1, BulkGetLoyaltyCouponResponse>;
|
|
472
|
+
declare function getCurrentMemberCoupons(): __PublicMethodMetaInfo<'GET', {}, GetCurrentMemberCouponsRequest$1, GetCurrentMemberCouponsRequest, GetCurrentMemberCouponsResponse$1, GetCurrentMemberCouponsResponse>;
|
|
473
|
+
declare function queryLoyaltyCoupons(): __PublicMethodMetaInfo<'POST', {}, QueryLoyaltyCouponRequest$1, QueryLoyaltyCouponRequest, QueryLoyaltyCouponResponse$1, QueryLoyaltyCouponResponse>;
|
|
474
|
+
declare function deleteLoyaltyCoupon(): __PublicMethodMetaInfo<'DELETE', {
|
|
475
|
+
id: string;
|
|
476
|
+
}, DeleteLoyaltyCouponRequest$1, DeleteLoyaltyCouponRequest, DeleteLoyaltyCouponResponse$1, DeleteLoyaltyCouponResponse>;
|
|
477
|
+
|
|
478
|
+
export { type __PublicMethodMetaInfo, bulkGetLoyaltyCoupon, deleteLoyaltyCoupon, getCurrentMemberCoupons, getLoyaltyCoupon, queryLoyaltyCoupons, redeemCurrentMemberPointsForCoupon, redeemPointsForCoupon };
|