@wix/auto_sdk_ecom_abandoned-checkouts 1.0.19 → 1.0.21
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/{cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-_Og7xJYi.d.mts} +90 -300
- package/build/{es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-_Og7xJYi.d.ts} +90 -300
- package/build/index.d.mts +79 -0
- package/build/index.d.ts +79 -0
- package/build/index.js +621 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +580 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BO6qI_7l.d.mts} +90 -315
- package/build/internal/{es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BO6qI_7l.d.ts} +90 -315
- package/build/internal/index.d.mts +90 -0
- package/build/internal/index.d.ts +90 -0
- package/build/internal/index.js +621 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +580 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/{cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts → meta.d.mts} +77 -315
- package/build/{es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts → internal/meta.d.ts} +77 -315
- package/build/internal/meta.js +337 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +305 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts → meta.d.mts} +77 -315
- package/build/{internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts → meta.d.ts} +77 -315
- package/build/meta.js +337 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +305 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- 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 -30
- 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/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +0 -30
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +0 -43
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +0 -21
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +0 -209
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +0 -26
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +0 -142
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +0 -57
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +0 -104
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +0 -74
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +0 -393
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.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 -30
- 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/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +0 -30
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +0 -32
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +0 -21
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +0 -200
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +0 -26
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +0 -110
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +0 -57
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +0 -87
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +0 -71
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +0 -361
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.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 -30
- 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/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +0 -32
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +0 -43
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +0 -21
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +0 -209
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +0 -26
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +0 -142
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +0 -66
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +0 -104
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +0 -74
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +0 -393
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.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 -30
- 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/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +0 -32
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +0 -32
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +0 -21
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +0 -200
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +0 -26
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +0 -110
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +0 -66
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +0 -87
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +0 -71
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +0 -361
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +0 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { G as GetAbandonedCheckoutRequest$1, t as GetAbandonedCheckoutResponse$1, D as DeleteAbandonedCheckoutRequest$1, u as DeleteAbandonedCheckoutResponse$1, Q as QueryAbandonedCheckoutsRequest$1, z as QueryAbandonedCheckoutsResponse$1, J as SearchAbandonedCheckoutsRequest$1, S as SearchAbandonedCheckoutsResponse$1, _ as AddAbandonedCheckoutActivityRequest$1, d as AddAbandonedCheckoutActivityResponse$1, a6 as RedirectToCheckoutRequest$1, R as RawHttpResponse$1 } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BO6qI_7l.js';
|
|
2
|
+
import '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
interface AbandonedCheckout {
|
|
2
5
|
/**
|
|
3
6
|
* Abandoned checkout ID.
|
|
4
7
|
* @format GUID
|
|
@@ -58,7 +61,7 @@ export interface AbandonedCheckout {
|
|
|
58
61
|
/** Subtotal price of all line items, before discounts and before tax. */
|
|
59
62
|
subtotalPrice?: MultiCurrencyPrice;
|
|
60
63
|
}
|
|
61
|
-
|
|
64
|
+
declare enum ActivityType {
|
|
62
65
|
/** Not implemented. */
|
|
63
66
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
64
67
|
/** Scheduled. */
|
|
@@ -73,18 +76,18 @@ export declare enum ActivityType {
|
|
|
73
76
|
TASK_CREATED = "TASK_CREATED"
|
|
74
77
|
}
|
|
75
78
|
/** @enumType */
|
|
76
|
-
|
|
79
|
+
type ActivityTypeWithLiterals = ActivityType | 'UNKNOWN_TYPE' | 'SCHEDULED' | 'EMAIL_SENT' | 'EMAIL_NOT_SENT' | 'NOTIFICATION_SENT' | 'TASK_CREATED';
|
|
77
80
|
/** Status of the abandoned checkout. */
|
|
78
|
-
|
|
81
|
+
declare enum Status {
|
|
79
82
|
/** Abandoned. */
|
|
80
83
|
ABANDONED = "ABANDONED",
|
|
81
84
|
/** Recovered. */
|
|
82
85
|
RECOVERED = "RECOVERED"
|
|
83
86
|
}
|
|
84
87
|
/** @enumType */
|
|
85
|
-
|
|
88
|
+
type StatusWithLiterals = Status | 'ABANDONED' | 'RECOVERED';
|
|
86
89
|
/** Buyer information. */
|
|
87
|
-
|
|
90
|
+
interface V1BuyerInfo extends V1BuyerInfoIdOneOf {
|
|
88
91
|
/**
|
|
89
92
|
* Visitor ID (if the site visitor is **not** a site member).
|
|
90
93
|
* @format GUID
|
|
@@ -114,7 +117,7 @@ export interface V1BuyerInfo extends V1BuyerInfoIdOneOf {
|
|
|
114
117
|
email?: string | null;
|
|
115
118
|
}
|
|
116
119
|
/** @oneof */
|
|
117
|
-
|
|
120
|
+
interface V1BuyerInfoIdOneOf {
|
|
118
121
|
/**
|
|
119
122
|
* Visitor ID (if the site visitor is **not** a site member).
|
|
120
123
|
* @format GUID
|
|
@@ -132,7 +135,7 @@ export interface V1BuyerInfoIdOneOf {
|
|
|
132
135
|
userId?: string;
|
|
133
136
|
}
|
|
134
137
|
/** Full contact details for an address */
|
|
135
|
-
|
|
138
|
+
interface FullAddressContactDetails {
|
|
136
139
|
/**
|
|
137
140
|
* First name.
|
|
138
141
|
* @maxLength 100
|
|
@@ -156,7 +159,7 @@ export interface FullAddressContactDetails {
|
|
|
156
159
|
/** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
|
|
157
160
|
vatId?: VatId;
|
|
158
161
|
}
|
|
159
|
-
|
|
162
|
+
interface VatId {
|
|
160
163
|
/** Customer's tax ID. */
|
|
161
164
|
id?: string;
|
|
162
165
|
/**
|
|
@@ -169,7 +172,7 @@ export interface VatId {
|
|
|
169
172
|
type?: VatTypeWithLiterals;
|
|
170
173
|
}
|
|
171
174
|
/** tax info types */
|
|
172
|
-
|
|
175
|
+
declare enum VatType {
|
|
173
176
|
UNSPECIFIED = "UNSPECIFIED",
|
|
174
177
|
/** CPF - for individual tax payers. */
|
|
175
178
|
CPF = "CPF",
|
|
@@ -177,8 +180,8 @@ export declare enum VatType {
|
|
|
177
180
|
CNPJ = "CNPJ"
|
|
178
181
|
}
|
|
179
182
|
/** @enumType */
|
|
180
|
-
|
|
181
|
-
|
|
183
|
+
type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
|
|
184
|
+
interface MultiCurrencyPrice {
|
|
182
185
|
/**
|
|
183
186
|
* Amount.
|
|
184
187
|
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
@@ -201,138 +204,37 @@ export interface MultiCurrencyPrice {
|
|
|
201
204
|
*/
|
|
202
205
|
formattedConvertedAmount?: string;
|
|
203
206
|
}
|
|
204
|
-
|
|
207
|
+
interface Activity {
|
|
205
208
|
/** Date and time the automation activity was created. */
|
|
206
209
|
createdDate?: Date | null;
|
|
207
210
|
/** Automation activity type. */
|
|
208
211
|
type?: ActivityTypeWithLiterals;
|
|
209
212
|
}
|
|
210
|
-
|
|
211
|
-
/** @format GUID */
|
|
212
|
-
cartId?: string;
|
|
213
|
-
/**
|
|
214
|
-
* Time the cart was created
|
|
215
|
-
* @readonly
|
|
216
|
-
*/
|
|
217
|
-
creationTime?: Date | null;
|
|
218
|
-
/**
|
|
219
|
-
* Time the cart was abandoned
|
|
220
|
-
* @readonly
|
|
221
|
-
*/
|
|
222
|
-
abandonTime?: Date | null;
|
|
223
|
-
/** Buyer information */
|
|
224
|
-
buyerInfo?: BuyerInfo;
|
|
225
|
-
/** Amount of items in cart */
|
|
226
|
-
itemsCount?: number;
|
|
227
|
-
/** Coupon ID (if relevant) */
|
|
228
|
-
couponId?: string;
|
|
229
|
-
/** Subtotal of all line items in cart, not before shipping and taxes */
|
|
230
|
-
totals?: Totals;
|
|
231
|
-
/**
|
|
232
|
-
* Checkout URL - checkout with the abandoned cart details
|
|
233
|
-
* @format WEB_URL
|
|
234
|
-
*/
|
|
235
|
-
checkoutUrl?: string;
|
|
236
|
-
}
|
|
237
|
-
export interface BuyerInfo {
|
|
238
|
-
/**
|
|
239
|
-
* Wix customer ID
|
|
240
|
-
* @format GUID
|
|
241
|
-
*/
|
|
242
|
-
id?: string;
|
|
243
|
-
/** Customer information */
|
|
244
|
-
identityType?: IdentityWithLiterals;
|
|
245
|
-
/**
|
|
246
|
-
* Customer's email address
|
|
247
|
-
* @maxLength 50
|
|
248
|
-
* @format EMAIL
|
|
249
|
-
*/
|
|
250
|
-
email?: string | null;
|
|
251
|
-
/**
|
|
252
|
-
* Customer's phone number
|
|
253
|
-
* @format PHONE
|
|
254
|
-
*/
|
|
255
|
-
phone?: string | null;
|
|
256
|
-
/** Customer's first name */
|
|
257
|
-
firstName?: string | null;
|
|
258
|
-
/** Customer's last name */
|
|
259
|
-
lastName?: string | null;
|
|
260
|
-
}
|
|
261
|
-
export declare enum Identity {
|
|
262
|
-
/** Customer is the site owner */
|
|
263
|
-
ADMIN = "ADMIN",
|
|
264
|
-
/** Customer is logged in */
|
|
265
|
-
MEMBER = "MEMBER",
|
|
266
|
-
/** Customer is not logged in */
|
|
267
|
-
VISITOR = "VISITOR",
|
|
268
|
-
/** Contact was created for the customer */
|
|
269
|
-
CONTACT = "CONTACT"
|
|
270
|
-
}
|
|
271
|
-
/** @enumType */
|
|
272
|
-
export type IdentityWithLiterals = Identity | 'ADMIN' | 'MEMBER' | 'VISITOR' | 'CONTACT';
|
|
273
|
-
export interface Totals {
|
|
274
|
-
/**
|
|
275
|
-
* Subtotal of all line items in cart, without shipping and taxes
|
|
276
|
-
* @max 999999999.99
|
|
277
|
-
*/
|
|
278
|
-
subtotal?: number | null;
|
|
279
|
-
/**
|
|
280
|
-
* Total cart price
|
|
281
|
-
* @max 999999999.99
|
|
282
|
-
*/
|
|
283
|
-
total?: number | null;
|
|
284
|
-
/** Formatted total cart price includes currency symbol */
|
|
285
|
-
formattedTotal?: string;
|
|
286
|
-
}
|
|
287
|
-
export interface CartRecoveredEvent {
|
|
288
|
-
/** @format GUID */
|
|
289
|
-
cartId?: string;
|
|
290
|
-
/**
|
|
291
|
-
* Time the cart was recovered
|
|
292
|
-
* @readonly
|
|
293
|
-
*/
|
|
294
|
-
recoveredTime?: Date | null;
|
|
295
|
-
/**
|
|
296
|
-
* Time the cart was created
|
|
297
|
-
* @readonly
|
|
298
|
-
*/
|
|
299
|
-
creationTime?: Date | null;
|
|
300
|
-
/**
|
|
301
|
-
* Time the cart was abandoned
|
|
302
|
-
* @readonly
|
|
303
|
-
*/
|
|
304
|
-
abandonedTime?: Date | null;
|
|
305
|
-
}
|
|
306
|
-
/** Triggered when an abandoned checkout is recovered (the customer completes the checkout). */
|
|
307
|
-
export interface AbandonedCheckoutRecovered {
|
|
308
|
-
/** The abandoned checkout that was recovered. */
|
|
309
|
-
abandonedCheckout?: AbandonedCheckout;
|
|
310
|
-
}
|
|
311
|
-
export interface GetAbandonedCheckoutRequest {
|
|
213
|
+
interface GetAbandonedCheckoutRequest {
|
|
312
214
|
/**
|
|
313
215
|
* Abandoned checkout ID.
|
|
314
216
|
* @format GUID
|
|
315
217
|
*/
|
|
316
218
|
abandonedCheckoutId: string;
|
|
317
219
|
}
|
|
318
|
-
|
|
220
|
+
interface GetAbandonedCheckoutResponse {
|
|
319
221
|
/** The requested abandoned checkout. */
|
|
320
222
|
abandonedCheckout?: AbandonedCheckout;
|
|
321
223
|
}
|
|
322
|
-
|
|
224
|
+
interface DeleteAbandonedCheckoutRequest {
|
|
323
225
|
/**
|
|
324
226
|
* Id of the abandoned checkout to delete
|
|
325
227
|
* @format GUID
|
|
326
228
|
*/
|
|
327
229
|
abandonedCheckoutId: string;
|
|
328
230
|
}
|
|
329
|
-
|
|
231
|
+
interface DeleteAbandonedCheckoutResponse {
|
|
330
232
|
}
|
|
331
|
-
|
|
233
|
+
interface QueryAbandonedCheckoutsRequest {
|
|
332
234
|
/** Query options. */
|
|
333
235
|
query: QueryV2;
|
|
334
236
|
}
|
|
335
|
-
|
|
237
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
336
238
|
/** Paging options to limit and skip the number of items. */
|
|
337
239
|
paging?: Paging;
|
|
338
240
|
/** 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`. */
|
|
@@ -355,13 +257,13 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
355
257
|
fieldsets?: string[];
|
|
356
258
|
}
|
|
357
259
|
/** @oneof */
|
|
358
|
-
|
|
260
|
+
interface QueryV2PagingMethodOneOf {
|
|
359
261
|
/** Paging options to limit and skip the number of items. */
|
|
360
262
|
paging?: Paging;
|
|
361
263
|
/** 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`. */
|
|
362
264
|
cursorPaging?: CursorPaging;
|
|
363
265
|
}
|
|
364
|
-
|
|
266
|
+
interface Sorting {
|
|
365
267
|
/**
|
|
366
268
|
* Name of the field to sort by.
|
|
367
269
|
* @maxLength 512
|
|
@@ -370,19 +272,19 @@ export interface Sorting {
|
|
|
370
272
|
/** Sort order. */
|
|
371
273
|
order?: SortOrderWithLiterals;
|
|
372
274
|
}
|
|
373
|
-
|
|
275
|
+
declare enum SortOrder {
|
|
374
276
|
ASC = "ASC",
|
|
375
277
|
DESC = "DESC"
|
|
376
278
|
}
|
|
377
279
|
/** @enumType */
|
|
378
|
-
|
|
379
|
-
|
|
280
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
281
|
+
interface Paging {
|
|
380
282
|
/** Number of items to load. */
|
|
381
283
|
limit?: number | null;
|
|
382
284
|
/** Number of items to skip in the current sort order. */
|
|
383
285
|
offset?: number | null;
|
|
384
286
|
}
|
|
385
|
-
|
|
287
|
+
interface CursorPaging {
|
|
386
288
|
/**
|
|
387
289
|
* Maximum number of items to return in the results.
|
|
388
290
|
* @max 100
|
|
@@ -397,7 +299,7 @@ export interface CursorPaging {
|
|
|
397
299
|
*/
|
|
398
300
|
cursor?: string | null;
|
|
399
301
|
}
|
|
400
|
-
|
|
302
|
+
interface QueryAbandonedCheckoutsResponse {
|
|
401
303
|
/**
|
|
402
304
|
* __Deprecated.__ Use `abandonedCheckouts` instead.
|
|
403
305
|
* @deprecated
|
|
@@ -408,7 +310,7 @@ export interface QueryAbandonedCheckoutsResponse {
|
|
|
408
310
|
/** Details on the paged set of results returned. */
|
|
409
311
|
metadata?: PagingMetadataV2;
|
|
410
312
|
}
|
|
411
|
-
|
|
313
|
+
interface PagingMetadataV2 {
|
|
412
314
|
/** Number of items returned in the response. */
|
|
413
315
|
count?: number | null;
|
|
414
316
|
/** Offset that was requested. */
|
|
@@ -420,7 +322,7 @@ export interface PagingMetadataV2 {
|
|
|
420
322
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
421
323
|
cursors?: Cursors;
|
|
422
324
|
}
|
|
423
|
-
|
|
325
|
+
interface Cursors {
|
|
424
326
|
/**
|
|
425
327
|
* Cursor string pointing to the next page in the list of results.
|
|
426
328
|
* @maxLength 16000
|
|
@@ -432,11 +334,11 @@ export interface Cursors {
|
|
|
432
334
|
*/
|
|
433
335
|
prev?: string | null;
|
|
434
336
|
}
|
|
435
|
-
|
|
337
|
+
interface SearchAbandonedCheckoutsRequest {
|
|
436
338
|
/** WQL query expression. */
|
|
437
339
|
search?: Search;
|
|
438
340
|
}
|
|
439
|
-
|
|
341
|
+
interface Search extends SearchPagingMethodOneOf {
|
|
440
342
|
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
441
343
|
paging?: CommonPaging;
|
|
442
344
|
/** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
|
|
@@ -452,13 +354,13 @@ export interface Search extends SearchPagingMethodOneOf {
|
|
|
452
354
|
search?: SearchDetails;
|
|
453
355
|
}
|
|
454
356
|
/** @oneof */
|
|
455
|
-
|
|
357
|
+
interface SearchPagingMethodOneOf {
|
|
456
358
|
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
457
359
|
paging?: CommonPaging;
|
|
458
360
|
/** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
|
|
459
361
|
cursorPaging?: CommonCursorPaging;
|
|
460
362
|
}
|
|
461
|
-
|
|
363
|
+
interface CommonSorting {
|
|
462
364
|
/**
|
|
463
365
|
* Name of the field to sort by.
|
|
464
366
|
* @maxLength 40
|
|
@@ -467,15 +369,15 @@ export interface CommonSorting {
|
|
|
467
369
|
/** Sort order. */
|
|
468
370
|
order?: CommonSortOrderWithLiterals;
|
|
469
371
|
}
|
|
470
|
-
|
|
372
|
+
declare enum CommonSortOrder {
|
|
471
373
|
/** Ascending order. */
|
|
472
374
|
ASC = "ASC",
|
|
473
375
|
/** Descending order. */
|
|
474
376
|
DESC = "DESC"
|
|
475
377
|
}
|
|
476
378
|
/** @enumType */
|
|
477
|
-
|
|
478
|
-
|
|
379
|
+
type CommonSortOrderWithLiterals = CommonSortOrder | 'ASC' | 'DESC';
|
|
380
|
+
interface SearchDetails {
|
|
479
381
|
/** boolean search mode */
|
|
480
382
|
mode?: ModeWithLiterals;
|
|
481
383
|
/**
|
|
@@ -492,15 +394,15 @@ export interface SearchDetails {
|
|
|
492
394
|
/** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
493
395
|
fuzzy?: boolean;
|
|
494
396
|
}
|
|
495
|
-
|
|
397
|
+
declare enum Mode {
|
|
496
398
|
/** Any */
|
|
497
399
|
OR = "OR",
|
|
498
400
|
/** All */
|
|
499
401
|
AND = "AND"
|
|
500
402
|
}
|
|
501
403
|
/** @enumType */
|
|
502
|
-
|
|
503
|
-
|
|
404
|
+
type ModeWithLiterals = Mode | 'OR' | 'AND';
|
|
405
|
+
interface CommonPaging {
|
|
504
406
|
/**
|
|
505
407
|
* Number of items to load.
|
|
506
408
|
* @max 100
|
|
@@ -509,7 +411,7 @@ export interface CommonPaging {
|
|
|
509
411
|
/** Number of items to skip in the current sort order. */
|
|
510
412
|
offset?: number | null;
|
|
511
413
|
}
|
|
512
|
-
|
|
414
|
+
interface CommonCursorPaging {
|
|
513
415
|
/**
|
|
514
416
|
* Maximum number of items to return in the results.
|
|
515
417
|
* @max 100
|
|
@@ -523,13 +425,13 @@ export interface CommonCursorPaging {
|
|
|
523
425
|
*/
|
|
524
426
|
cursor?: string | null;
|
|
525
427
|
}
|
|
526
|
-
|
|
428
|
+
interface SearchAbandonedCheckoutsResponse {
|
|
527
429
|
/** List of abandoned checkouts. */
|
|
528
430
|
abandonedCheckouts?: AbandonedCheckout[];
|
|
529
431
|
/** Paging metadata. Contains cursor which can be used in next query. */
|
|
530
432
|
pagingMetadata?: CommonPagingMetadataV2;
|
|
531
433
|
}
|
|
532
|
-
|
|
434
|
+
interface CommonPagingMetadataV2 {
|
|
533
435
|
/** Number of items returned in the response. */
|
|
534
436
|
count?: number | null;
|
|
535
437
|
/** Offset that was requested. */
|
|
@@ -541,13 +443,13 @@ export interface CommonPagingMetadataV2 {
|
|
|
541
443
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
542
444
|
cursors?: CommonCursors;
|
|
543
445
|
}
|
|
544
|
-
|
|
446
|
+
interface CommonCursors {
|
|
545
447
|
/** Cursor string pointing to the next page in the list of results. */
|
|
546
448
|
next?: string | null;
|
|
547
449
|
/** Cursor pointing to the previous page in the list of results. */
|
|
548
450
|
prev?: string | null;
|
|
549
451
|
}
|
|
550
|
-
|
|
452
|
+
interface AddAbandonedCheckoutActivityRequest {
|
|
551
453
|
/**
|
|
552
454
|
* Id of the abandoned checkout to update
|
|
553
455
|
* @format GUID
|
|
@@ -556,40 +458,11 @@ export interface AddAbandonedCheckoutActivityRequest {
|
|
|
556
458
|
/** The type of the activity to add */
|
|
557
459
|
activityType?: ActivityTypeWithLiterals;
|
|
558
460
|
}
|
|
559
|
-
|
|
461
|
+
interface AddAbandonedCheckoutActivityResponse {
|
|
560
462
|
/** The updated abandoned checkout with the added activity */
|
|
561
463
|
abandonedCheckout?: AbandonedCheckout;
|
|
562
464
|
}
|
|
563
|
-
|
|
564
|
-
key?: TaskKey;
|
|
565
|
-
executeAt?: Date | null;
|
|
566
|
-
payload?: string | null;
|
|
567
|
-
}
|
|
568
|
-
export interface TaskKey {
|
|
569
|
-
appId?: string;
|
|
570
|
-
instanceId?: string;
|
|
571
|
-
subjectId?: string | null;
|
|
572
|
-
}
|
|
573
|
-
export interface TaskAction extends TaskActionActionOneOf {
|
|
574
|
-
complete?: Complete;
|
|
575
|
-
cancel?: Cancel;
|
|
576
|
-
reschedule?: Reschedule;
|
|
577
|
-
}
|
|
578
|
-
/** @oneof */
|
|
579
|
-
export interface TaskActionActionOneOf {
|
|
580
|
-
complete?: Complete;
|
|
581
|
-
cancel?: Cancel;
|
|
582
|
-
reschedule?: Reschedule;
|
|
583
|
-
}
|
|
584
|
-
export interface Complete {
|
|
585
|
-
}
|
|
586
|
-
export interface Cancel {
|
|
587
|
-
}
|
|
588
|
-
export interface Reschedule {
|
|
589
|
-
executeAt?: Date | null;
|
|
590
|
-
payload?: string | null;
|
|
591
|
-
}
|
|
592
|
-
export interface RedirectToCheckoutRequest {
|
|
465
|
+
interface RedirectToCheckoutRequest {
|
|
593
466
|
/**
|
|
594
467
|
* ID of the abandoned checkout.
|
|
595
468
|
* @format GUID
|
|
@@ -601,150 +474,39 @@ export interface RedirectToCheckoutRequest {
|
|
|
601
474
|
*/
|
|
602
475
|
metasiteId: string;
|
|
603
476
|
}
|
|
604
|
-
|
|
477
|
+
interface RawHttpResponse {
|
|
605
478
|
body?: Uint8Array;
|
|
606
479
|
statusCode?: number | null;
|
|
607
480
|
headers?: HeadersEntry[];
|
|
608
481
|
}
|
|
609
|
-
|
|
482
|
+
interface HeadersEntry {
|
|
610
483
|
key?: string;
|
|
611
484
|
value?: string;
|
|
612
485
|
}
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
originatedFrom?: string | null;
|
|
641
|
-
/**
|
|
642
|
-
* 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.
|
|
643
|
-
* 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.
|
|
644
|
-
*/
|
|
645
|
-
entityEventSequence?: string | null;
|
|
646
|
-
}
|
|
647
|
-
/** @oneof */
|
|
648
|
-
export interface DomainEventBodyOneOf {
|
|
649
|
-
createdEvent?: EntityCreatedEvent;
|
|
650
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
651
|
-
deletedEvent?: EntityDeletedEvent;
|
|
652
|
-
actionEvent?: ActionEvent;
|
|
653
|
-
}
|
|
654
|
-
export interface EntityCreatedEvent {
|
|
655
|
-
entityAsJson?: string;
|
|
656
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
657
|
-
restoreInfo?: RestoreInfo;
|
|
658
|
-
}
|
|
659
|
-
export interface RestoreInfo {
|
|
660
|
-
deletedDate?: Date | null;
|
|
661
|
-
}
|
|
662
|
-
export interface EntityUpdatedEvent {
|
|
663
|
-
/**
|
|
664
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
665
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
666
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
667
|
-
*/
|
|
668
|
-
currentEntityAsJson?: string;
|
|
669
|
-
}
|
|
670
|
-
export interface EntityDeletedEvent {
|
|
671
|
-
/** Entity that was deleted. */
|
|
672
|
-
deletedEntityAsJson?: string | null;
|
|
673
|
-
}
|
|
674
|
-
export interface ActionEvent {
|
|
675
|
-
bodyAsJson?: string;
|
|
676
|
-
}
|
|
677
|
-
export interface Empty {
|
|
678
|
-
}
|
|
679
|
-
export interface MessageEnvelope {
|
|
680
|
-
/**
|
|
681
|
-
* App instance ID.
|
|
682
|
-
* @format GUID
|
|
683
|
-
*/
|
|
684
|
-
instanceId?: string | null;
|
|
685
|
-
/**
|
|
686
|
-
* Event type.
|
|
687
|
-
* @maxLength 150
|
|
688
|
-
*/
|
|
689
|
-
eventType?: string;
|
|
690
|
-
/** The identification type and identity data. */
|
|
691
|
-
identity?: IdentificationData;
|
|
692
|
-
/** Stringify payload. */
|
|
693
|
-
data?: string;
|
|
694
|
-
}
|
|
695
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
696
|
-
/**
|
|
697
|
-
* ID of a site visitor that has not logged in to the site.
|
|
698
|
-
* @format GUID
|
|
699
|
-
*/
|
|
700
|
-
anonymousVisitorId?: string;
|
|
701
|
-
/**
|
|
702
|
-
* ID of a site visitor that has logged in to the site.
|
|
703
|
-
* @format GUID
|
|
704
|
-
*/
|
|
705
|
-
memberId?: string;
|
|
706
|
-
/**
|
|
707
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
708
|
-
* @format GUID
|
|
709
|
-
*/
|
|
710
|
-
wixUserId?: string;
|
|
711
|
-
/**
|
|
712
|
-
* ID of an app.
|
|
713
|
-
* @format GUID
|
|
714
|
-
*/
|
|
715
|
-
appId?: string;
|
|
716
|
-
/** @readonly */
|
|
717
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
718
|
-
}
|
|
719
|
-
/** @oneof */
|
|
720
|
-
export interface IdentificationDataIdOneOf {
|
|
721
|
-
/**
|
|
722
|
-
* ID of a site visitor that has not logged in to the site.
|
|
723
|
-
* @format GUID
|
|
724
|
-
*/
|
|
725
|
-
anonymousVisitorId?: string;
|
|
726
|
-
/**
|
|
727
|
-
* ID of a site visitor that has logged in to the site.
|
|
728
|
-
* @format GUID
|
|
729
|
-
*/
|
|
730
|
-
memberId?: string;
|
|
731
|
-
/**
|
|
732
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
733
|
-
* @format GUID
|
|
734
|
-
*/
|
|
735
|
-
wixUserId?: string;
|
|
736
|
-
/**
|
|
737
|
-
* ID of an app.
|
|
738
|
-
* @format GUID
|
|
739
|
-
*/
|
|
740
|
-
appId?: string;
|
|
741
|
-
}
|
|
742
|
-
export declare enum WebhookIdentityType {
|
|
743
|
-
UNKNOWN = "UNKNOWN",
|
|
744
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
745
|
-
MEMBER = "MEMBER",
|
|
746
|
-
WIX_USER = "WIX_USER",
|
|
747
|
-
APP = "APP"
|
|
748
|
-
}
|
|
749
|
-
/** @enumType */
|
|
750
|
-
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
486
|
+
|
|
487
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
488
|
+
getUrl: (context: any) => string;
|
|
489
|
+
httpMethod: K;
|
|
490
|
+
path: string;
|
|
491
|
+
pathParams: M;
|
|
492
|
+
__requestType: T;
|
|
493
|
+
__originalRequestType: S;
|
|
494
|
+
__responseType: Q;
|
|
495
|
+
__originalResponseType: R;
|
|
496
|
+
};
|
|
497
|
+
declare function getAbandonedCheckout(): __PublicMethodMetaInfo<'GET', {
|
|
498
|
+
abandonedCheckoutId: string;
|
|
499
|
+
}, GetAbandonedCheckoutRequest$1, GetAbandonedCheckoutRequest, GetAbandonedCheckoutResponse$1, GetAbandonedCheckoutResponse>;
|
|
500
|
+
declare function deleteAbandonedCheckout(): __PublicMethodMetaInfo<'DELETE', {
|
|
501
|
+
abandonedCheckoutId: string;
|
|
502
|
+
}, DeleteAbandonedCheckoutRequest$1, DeleteAbandonedCheckoutRequest, DeleteAbandonedCheckoutResponse$1, DeleteAbandonedCheckoutResponse>;
|
|
503
|
+
declare function queryAbandonedCheckouts(): __PublicMethodMetaInfo<'POST', {}, QueryAbandonedCheckoutsRequest$1, QueryAbandonedCheckoutsRequest, QueryAbandonedCheckoutsResponse$1, QueryAbandonedCheckoutsResponse>;
|
|
504
|
+
declare function searchAbandonedCheckouts(): __PublicMethodMetaInfo<'POST', {}, SearchAbandonedCheckoutsRequest$1, SearchAbandonedCheckoutsRequest, SearchAbandonedCheckoutsResponse$1, SearchAbandonedCheckoutsResponse>;
|
|
505
|
+
declare function addAbandonedCheckoutActivity(): __PublicMethodMetaInfo<'POST', {
|
|
506
|
+
abandonedCheckoutId: string;
|
|
507
|
+
}, AddAbandonedCheckoutActivityRequest$1, AddAbandonedCheckoutActivityRequest, AddAbandonedCheckoutActivityResponse$1, AddAbandonedCheckoutActivityResponse>;
|
|
508
|
+
declare function redirectToCheckout(): __PublicMethodMetaInfo<'GET', {
|
|
509
|
+
abandonedCheckoutId: string;
|
|
510
|
+
}, RedirectToCheckoutRequest$1, RedirectToCheckoutRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
511
|
+
|
|
512
|
+
export { type __PublicMethodMetaInfo, addAbandonedCheckoutActivity, deleteAbandonedCheckout, getAbandonedCheckout, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };
|