@wix/auto_sdk_loyalty_coupons 1.0.12 → 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} +74 -226
- package/build/internal/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.ts} +74 -226
- package/build/{es/src/loyalty-v1-coupon-coupons.types.d.ts → internal/meta.d.mts} +70 -196
- package/build/internal/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.ts} +70 -196
- 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} +74 -226
- package/build/{es/src/loyalty-v1-coupon-coupons.universal.d.ts → loyalty-v1-coupon-coupons.universal-YZSAPFpG.d.ts} +74 -226
- package/build/{cjs/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.mts} +70 -196
- package/build/{internal/es/src/loyalty-v1-coupon-coupons.types.d.ts → meta.d.ts} +70 -196
- 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
|
|
@@ -49,7 +51,7 @@ export interface LoyaltyCoupon {
|
|
|
49
51
|
* at the same time as the loyalty coupon and is included in `couponReference`.
|
|
50
52
|
* @readonly
|
|
51
53
|
*/
|
|
52
|
-
status?:
|
|
54
|
+
status?: StatusWithLiterals;
|
|
53
55
|
/**
|
|
54
56
|
* Name of reward that was redeemed to create this coupon.
|
|
55
57
|
* @minLength 1
|
|
@@ -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. */
|
|
@@ -131,7 +133,7 @@ export interface Specification extends SpecificationTypeDetailsOneOf, Specificat
|
|
|
131
133
|
minimumSubtotal?: number | null;
|
|
132
134
|
/** Name of coupon. */
|
|
133
135
|
name?: string | null;
|
|
134
|
-
type?:
|
|
136
|
+
type?: TypeWithLiterals;
|
|
135
137
|
/**
|
|
136
138
|
* Whether the coupon is limited to 1 discount per order. If true and a customer pays for multiple items
|
|
137
139
|
* that the coupon applies to, only the lowest priced item is discounted.
|
|
@@ -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,15 @@ 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
|
+
/** @enumType */
|
|
193
|
+
type TypeWithLiterals = Type | 'UNKNOWN' | 'MONEY_OFF_AMOUNT' | 'PERCENT_OFF_RATE' | 'FREE_SHIPPING' | 'FIXED_PRICE_AMOUNT' | 'BUY_X_GET_Y';
|
|
194
|
+
interface BuyXGetY {
|
|
191
195
|
/** Number of purchased items required to receive free items. */
|
|
192
196
|
x?: number;
|
|
193
197
|
/** Number of items received for free if required number of items were purchased. */
|
|
194
198
|
y?: number;
|
|
195
199
|
}
|
|
196
|
-
|
|
200
|
+
interface Scope {
|
|
197
201
|
/**
|
|
198
202
|
* Group within a `namespace` for which the coupon is applicable.
|
|
199
203
|
*
|
|
@@ -221,7 +225,7 @@ export interface Scope {
|
|
|
221
225
|
*/
|
|
222
226
|
namespace?: string;
|
|
223
227
|
}
|
|
224
|
-
|
|
228
|
+
declare enum Status {
|
|
225
229
|
/** Unknown status. */
|
|
226
230
|
UNKNOWN = "UNKNOWN",
|
|
227
231
|
/** The reference coupon was created but the loyalty points have not been redeemed yet. */
|
|
@@ -235,7 +239,9 @@ export declare enum Status {
|
|
|
235
239
|
/** The reference coupon was deleted. */
|
|
236
240
|
ARCHIVED = "ARCHIVED"
|
|
237
241
|
}
|
|
238
|
-
|
|
242
|
+
/** @enumType */
|
|
243
|
+
type StatusWithLiterals = Status | 'UNKNOWN' | 'PENDING' | 'ACTIVE' | 'APPLIED' | 'FAILED' | 'ARCHIVED';
|
|
244
|
+
interface RedeemPointsForCouponRequest {
|
|
239
245
|
/**
|
|
240
246
|
* ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
|
|
241
247
|
* @format GUID
|
|
@@ -247,59 +253,37 @@ export interface RedeemPointsForCouponRequest {
|
|
|
247
253
|
*/
|
|
248
254
|
loyaltyAccountId: string;
|
|
249
255
|
}
|
|
250
|
-
|
|
256
|
+
interface RedeemPointsForCouponResponse {
|
|
251
257
|
/** Created loyalty coupon. */
|
|
252
258
|
coupon?: LoyaltyCoupon;
|
|
253
259
|
}
|
|
254
|
-
|
|
260
|
+
interface RedeemCurrentMemberPointsForCouponRequest {
|
|
255
261
|
/**
|
|
256
262
|
* ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem.
|
|
257
263
|
* @format GUID
|
|
258
264
|
*/
|
|
259
265
|
rewardId: string;
|
|
260
266
|
}
|
|
261
|
-
|
|
267
|
+
interface RedeemCurrentMemberPointsForCouponResponse {
|
|
262
268
|
/** Created loyalty coupon. */
|
|
263
269
|
coupon?: LoyaltyCoupon;
|
|
264
270
|
}
|
|
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 {
|
|
271
|
+
interface GetLoyaltyCouponRequest {
|
|
288
272
|
/**
|
|
289
273
|
* ID of the loyalty coupon to retrieve.
|
|
290
274
|
* @format GUID
|
|
291
275
|
*/
|
|
292
276
|
loyaltyCouponId: string;
|
|
293
277
|
}
|
|
294
|
-
|
|
278
|
+
interface GetLoyaltyCouponResponse {
|
|
295
279
|
/** Retrieved loyalty coupon. */
|
|
296
280
|
loyaltyCoupon?: LoyaltyCoupon;
|
|
297
281
|
}
|
|
298
|
-
|
|
282
|
+
interface BulkGetLoyaltyCouponRequest {
|
|
299
283
|
/** Query to filter loyalty coupons. */
|
|
300
284
|
query?: CursorQuery;
|
|
301
285
|
}
|
|
302
|
-
|
|
286
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
303
287
|
/**
|
|
304
288
|
* Cursor paging options.
|
|
305
289
|
*
|
|
@@ -321,7 +305,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
321
305
|
sort?: Sorting[];
|
|
322
306
|
}
|
|
323
307
|
/** @oneof */
|
|
324
|
-
|
|
308
|
+
interface CursorQueryPagingMethodOneOf {
|
|
325
309
|
/**
|
|
326
310
|
* Cursor paging options.
|
|
327
311
|
*
|
|
@@ -329,20 +313,22 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
329
313
|
*/
|
|
330
314
|
cursorPaging?: CursorPaging;
|
|
331
315
|
}
|
|
332
|
-
|
|
316
|
+
interface Sorting {
|
|
333
317
|
/**
|
|
334
318
|
* Name of the field to sort by.
|
|
335
319
|
* @maxLength 512
|
|
336
320
|
*/
|
|
337
321
|
fieldName?: string;
|
|
338
322
|
/** Sort order. */
|
|
339
|
-
order?:
|
|
323
|
+
order?: SortOrderWithLiterals;
|
|
340
324
|
}
|
|
341
|
-
|
|
325
|
+
declare enum SortOrder {
|
|
342
326
|
ASC = "ASC",
|
|
343
327
|
DESC = "DESC"
|
|
344
328
|
}
|
|
345
|
-
|
|
329
|
+
/** @enumType */
|
|
330
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
331
|
+
interface CursorPaging {
|
|
346
332
|
/**
|
|
347
333
|
* Maximum number of items to return in the results.
|
|
348
334
|
* @max 100
|
|
@@ -357,14 +343,14 @@ export interface CursorPaging {
|
|
|
357
343
|
*/
|
|
358
344
|
cursor?: string | null;
|
|
359
345
|
}
|
|
360
|
-
|
|
346
|
+
interface BulkGetLoyaltyCouponResponse {
|
|
361
347
|
/**
|
|
362
348
|
* Retrieved loyalty coupons.
|
|
363
349
|
* @maxSize 100
|
|
364
350
|
*/
|
|
365
351
|
couponsInSite?: CouponsInSite[];
|
|
366
352
|
}
|
|
367
|
-
|
|
353
|
+
interface CouponsInSite {
|
|
368
354
|
/**
|
|
369
355
|
* Metasite id
|
|
370
356
|
* @format GUID
|
|
@@ -376,17 +362,17 @@ export interface CouponsInSite {
|
|
|
376
362
|
*/
|
|
377
363
|
loyaltyCoupons?: LoyaltyCoupon[];
|
|
378
364
|
}
|
|
379
|
-
|
|
365
|
+
interface GetCurrentMemberCouponsRequest {
|
|
380
366
|
}
|
|
381
|
-
|
|
367
|
+
interface GetCurrentMemberCouponsResponse {
|
|
382
368
|
/** Retrieved loyalty coupons. */
|
|
383
369
|
loyaltyCoupons?: LoyaltyCoupon[];
|
|
384
370
|
}
|
|
385
|
-
|
|
371
|
+
interface QueryLoyaltyCouponRequest {
|
|
386
372
|
/** Query options. */
|
|
387
373
|
query: QueryV2;
|
|
388
374
|
}
|
|
389
|
-
|
|
375
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
390
376
|
/** Paging options to limit and skip the number of items. */
|
|
391
377
|
paging?: Paging;
|
|
392
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`. */
|
|
@@ -409,25 +395,25 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
409
395
|
fieldsets?: string[];
|
|
410
396
|
}
|
|
411
397
|
/** @oneof */
|
|
412
|
-
|
|
398
|
+
interface QueryV2PagingMethodOneOf {
|
|
413
399
|
/** Paging options to limit and skip the number of items. */
|
|
414
400
|
paging?: Paging;
|
|
415
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`. */
|
|
416
402
|
cursorPaging?: CursorPaging;
|
|
417
403
|
}
|
|
418
|
-
|
|
404
|
+
interface Paging {
|
|
419
405
|
/** Number of items to load. */
|
|
420
406
|
limit?: number | null;
|
|
421
407
|
/** Number of items to skip in the current sort order. */
|
|
422
408
|
offset?: number | null;
|
|
423
409
|
}
|
|
424
|
-
|
|
410
|
+
interface QueryLoyaltyCouponResponse {
|
|
425
411
|
/** Retrieved loyalty coupons. */
|
|
426
412
|
loyaltyCoupons?: LoyaltyCoupon[];
|
|
427
413
|
/** Metadata. */
|
|
428
414
|
metadata?: PagingMetadataV2;
|
|
429
415
|
}
|
|
430
|
-
|
|
416
|
+
interface PagingMetadataV2 {
|
|
431
417
|
/** Number of items returned in the response. */
|
|
432
418
|
count?: number | null;
|
|
433
419
|
/** Offset that was requested. */
|
|
@@ -439,7 +425,7 @@ export interface PagingMetadataV2 {
|
|
|
439
425
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
440
426
|
cursors?: Cursors;
|
|
441
427
|
}
|
|
442
|
-
|
|
428
|
+
interface Cursors {
|
|
443
429
|
/**
|
|
444
430
|
* Cursor string pointing to the next page in the list of results.
|
|
445
431
|
* @maxLength 16000
|
|
@@ -451,7 +437,7 @@ export interface Cursors {
|
|
|
451
437
|
*/
|
|
452
438
|
prev?: string | null;
|
|
453
439
|
}
|
|
454
|
-
|
|
440
|
+
interface DeleteLoyaltyCouponRequest {
|
|
455
441
|
/**
|
|
456
442
|
* ID of the loyalty coupon to delete.
|
|
457
443
|
* @format GUID
|
|
@@ -464,141 +450,29 @@ export interface DeleteLoyaltyCouponRequest {
|
|
|
464
450
|
*/
|
|
465
451
|
revision?: string;
|
|
466
452
|
}
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
*/
|
|
494
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
495
|
-
/** If present, indicates the action that triggered the event. */
|
|
496
|
-
originatedFrom?: string | null;
|
|
497
|
-
/**
|
|
498
|
-
* 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.
|
|
499
|
-
* 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.
|
|
500
|
-
*/
|
|
501
|
-
entityEventSequence?: string | null;
|
|
502
|
-
}
|
|
503
|
-
/** @oneof */
|
|
504
|
-
export interface DomainEventBodyOneOf {
|
|
505
|
-
createdEvent?: EntityCreatedEvent;
|
|
506
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
507
|
-
deletedEvent?: EntityDeletedEvent;
|
|
508
|
-
actionEvent?: ActionEvent;
|
|
509
|
-
}
|
|
510
|
-
export interface EntityCreatedEvent {
|
|
511
|
-
entityAsJson?: string;
|
|
512
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
513
|
-
restoreInfo?: RestoreInfo;
|
|
514
|
-
}
|
|
515
|
-
export interface RestoreInfo {
|
|
516
|
-
deletedDate?: Date | null;
|
|
517
|
-
}
|
|
518
|
-
export interface EntityUpdatedEvent {
|
|
519
|
-
/**
|
|
520
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
521
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
522
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
523
|
-
*/
|
|
524
|
-
currentEntityAsJson?: string;
|
|
525
|
-
}
|
|
526
|
-
export interface EntityDeletedEvent {
|
|
527
|
-
/** Entity that was deleted. */
|
|
528
|
-
deletedEntityAsJson?: string | null;
|
|
529
|
-
}
|
|
530
|
-
export interface ActionEvent {
|
|
531
|
-
bodyAsJson?: string;
|
|
532
|
-
}
|
|
533
|
-
export interface Empty {
|
|
534
|
-
}
|
|
535
|
-
export interface MessageEnvelope {
|
|
536
|
-
/**
|
|
537
|
-
* App instance ID.
|
|
538
|
-
* @format GUID
|
|
539
|
-
*/
|
|
540
|
-
instanceId?: string | null;
|
|
541
|
-
/**
|
|
542
|
-
* Event type.
|
|
543
|
-
* @maxLength 150
|
|
544
|
-
*/
|
|
545
|
-
eventType?: string;
|
|
546
|
-
/** The identification type and identity data. */
|
|
547
|
-
identity?: IdentificationData;
|
|
548
|
-
/** Stringify payload. */
|
|
549
|
-
data?: string;
|
|
550
|
-
}
|
|
551
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
552
|
-
/**
|
|
553
|
-
* ID of a site visitor that has not logged in to the site.
|
|
554
|
-
* @format GUID
|
|
555
|
-
*/
|
|
556
|
-
anonymousVisitorId?: string;
|
|
557
|
-
/**
|
|
558
|
-
* ID of a site visitor that has logged in to the site.
|
|
559
|
-
* @format GUID
|
|
560
|
-
*/
|
|
561
|
-
memberId?: string;
|
|
562
|
-
/**
|
|
563
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
564
|
-
* @format GUID
|
|
565
|
-
*/
|
|
566
|
-
wixUserId?: string;
|
|
567
|
-
/**
|
|
568
|
-
* ID of an app.
|
|
569
|
-
* @format GUID
|
|
570
|
-
*/
|
|
571
|
-
appId?: string;
|
|
572
|
-
/** @readonly */
|
|
573
|
-
identityType?: WebhookIdentityType;
|
|
574
|
-
}
|
|
575
|
-
/** @oneof */
|
|
576
|
-
export interface IdentificationDataIdOneOf {
|
|
577
|
-
/**
|
|
578
|
-
* ID of a site visitor that has not logged in to the site.
|
|
579
|
-
* @format GUID
|
|
580
|
-
*/
|
|
581
|
-
anonymousVisitorId?: string;
|
|
582
|
-
/**
|
|
583
|
-
* ID of a site visitor that has logged in to the site.
|
|
584
|
-
* @format GUID
|
|
585
|
-
*/
|
|
586
|
-
memberId?: string;
|
|
587
|
-
/**
|
|
588
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
589
|
-
* @format GUID
|
|
590
|
-
*/
|
|
591
|
-
wixUserId?: string;
|
|
592
|
-
/**
|
|
593
|
-
* ID of an app.
|
|
594
|
-
* @format GUID
|
|
595
|
-
*/
|
|
596
|
-
appId?: string;
|
|
597
|
-
}
|
|
598
|
-
export declare enum WebhookIdentityType {
|
|
599
|
-
UNKNOWN = "UNKNOWN",
|
|
600
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
601
|
-
MEMBER = "MEMBER",
|
|
602
|
-
WIX_USER = "WIX_USER",
|
|
603
|
-
APP = "APP"
|
|
604
|
-
}
|
|
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 };
|