@wix/auto_sdk_ecom_abandoned-checkouts 1.0.0
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +16 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +27 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +1 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +21 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +209 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +1 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +26 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +142 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +53 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +68 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +1 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +640 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +74 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts +908 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +376 -0
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +16 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +16 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +1 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +21 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +200 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +1 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +26 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +110 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +1 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +53 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +51 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +1 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +640 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +71 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts +908 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +344 -0
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +16 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +27 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +21 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +209 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +26 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +142 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +62 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +68 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +640 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +74 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts +918 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +376 -0
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +16 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +16 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +1 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +21 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +200 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +1 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +26 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +110 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +62 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +51 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +1 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +640 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +71 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts +918 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +344 -0
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,908 @@
|
|
|
1
|
+
export interface AbandonedCheckout {
|
|
2
|
+
/** Abandoned checkout ID. */
|
|
3
|
+
_id?: string;
|
|
4
|
+
/** Date and time the abandoned checkout was created. */
|
|
5
|
+
_createdDate?: Date | null;
|
|
6
|
+
/** Date and time the abandoned checkout was updated. */
|
|
7
|
+
_updatedDate?: Date | null;
|
|
8
|
+
/** The associated checkout ID. */
|
|
9
|
+
checkoutId?: string | null;
|
|
10
|
+
/** The associated cart ID. */
|
|
11
|
+
cartId?: string | null;
|
|
12
|
+
/** Status of the abandoned checkout. */
|
|
13
|
+
status?: Status;
|
|
14
|
+
/**
|
|
15
|
+
* Language for communication with the buyer. Defaults to the site language.
|
|
16
|
+
* For a site that supports multiple languages, this is the language the buyer selected.
|
|
17
|
+
*/
|
|
18
|
+
buyerLanguage?: string | null;
|
|
19
|
+
/** Buyer information. */
|
|
20
|
+
buyerInfo?: V1BuyerInfo;
|
|
21
|
+
/** Contact details. */
|
|
22
|
+
contactDetails?: FullAddressContactDetails;
|
|
23
|
+
/** The store's currency. */
|
|
24
|
+
currency?: string;
|
|
25
|
+
/** Currency the buyer used in checkout. */
|
|
26
|
+
conversionCurrency?: string | null;
|
|
27
|
+
/** Total price after discounts, gift cards, and tax. */
|
|
28
|
+
totalPrice?: MultiCurrencyPrice;
|
|
29
|
+
/**
|
|
30
|
+
* List of all automation activities performed by [Wix Automations](https://support.wix.com/en/article/wix-automations-getting-started) regarding the abandoned checkout.
|
|
31
|
+
* Wix Automations updates the `activities` field for each actvity in the automation flow. Only relevant if you've set up [automations in the Dashboard](https://support.wix.com/en/article/wix-automations-creating-a-new-automation). Read more about `activities` in the [introduction](https://www.wix.com/velo/reference/wix-ecom-backend/abandonedcheckout/introduction).
|
|
32
|
+
*/
|
|
33
|
+
activities?: Activity[];
|
|
34
|
+
/** Date and time the abandoned checkout was recovered. */
|
|
35
|
+
checkoutRecoveredDate?: Date | null;
|
|
36
|
+
/** Checkout URL. */
|
|
37
|
+
checkoutUrl?: string;
|
|
38
|
+
/** Subtotal price of all line items, before discounts and before tax. */
|
|
39
|
+
subtotalPrice?: MultiCurrencyPrice;
|
|
40
|
+
}
|
|
41
|
+
export declare enum ActivityType {
|
|
42
|
+
/** Not implemented. */
|
|
43
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
44
|
+
/** Scheduled. */
|
|
45
|
+
SCHEDULED = "SCHEDULED",
|
|
46
|
+
/** Email sent. */
|
|
47
|
+
EMAIL_SENT = "EMAIL_SENT",
|
|
48
|
+
/** Email not sent. */
|
|
49
|
+
EMAIL_NOT_SENT = "EMAIL_NOT_SENT",
|
|
50
|
+
/** Notification sent. */
|
|
51
|
+
NOTIFICATION_SENT = "NOTIFICATION_SENT",
|
|
52
|
+
/** Task created. */
|
|
53
|
+
TASK_CREATED = "TASK_CREATED"
|
|
54
|
+
}
|
|
55
|
+
/** Status of the abandoned checkout. */
|
|
56
|
+
export declare enum Status {
|
|
57
|
+
/** Abandoned. */
|
|
58
|
+
ABANDONED = "ABANDONED",
|
|
59
|
+
/** Recovered. */
|
|
60
|
+
RECOVERED = "RECOVERED"
|
|
61
|
+
}
|
|
62
|
+
/** Buyer information. */
|
|
63
|
+
export interface V1BuyerInfo extends V1BuyerInfoIdOneOf {
|
|
64
|
+
/** Visitor ID (if the site visitor is **not** a site member). */
|
|
65
|
+
visitorId?: string;
|
|
66
|
+
/** Member ID (if the site visitor is a site member). */
|
|
67
|
+
memberId?: string;
|
|
68
|
+
/** User ID (if the site visitor is a site owner or collaborator). */
|
|
69
|
+
userId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Contact ID. For more information, see the [Contacts API](https://www.wix.com/velo/reference/wix-crm-v2/contacts).
|
|
72
|
+
* @readonly
|
|
73
|
+
*/
|
|
74
|
+
contactId?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Buyer email address.
|
|
77
|
+
* Max: `50`
|
|
78
|
+
*/
|
|
79
|
+
email?: string | null;
|
|
80
|
+
}
|
|
81
|
+
/** @oneof */
|
|
82
|
+
export interface V1BuyerInfoIdOneOf {
|
|
83
|
+
/** Visitor ID (if the site visitor is **not** a site member). */
|
|
84
|
+
visitorId?: string;
|
|
85
|
+
/** Member ID (if the site visitor is a site member). */
|
|
86
|
+
memberId?: string;
|
|
87
|
+
/** User ID (if the site visitor is a site owner or collaborator). */
|
|
88
|
+
userId?: string;
|
|
89
|
+
}
|
|
90
|
+
/** Full contact details for an address */
|
|
91
|
+
export interface FullAddressContactDetails {
|
|
92
|
+
/**
|
|
93
|
+
* First name.
|
|
94
|
+
* Max length: `100`
|
|
95
|
+
*/
|
|
96
|
+
firstName?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* Last name.
|
|
99
|
+
* Max length: `100`
|
|
100
|
+
*/
|
|
101
|
+
lastName?: string | null;
|
|
102
|
+
/** Phone number. */
|
|
103
|
+
phone?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Company name.
|
|
106
|
+
* Max length: `50`
|
|
107
|
+
*/
|
|
108
|
+
company?: string | null;
|
|
109
|
+
/** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
|
|
110
|
+
vatId?: VatId;
|
|
111
|
+
}
|
|
112
|
+
export interface VatId {
|
|
113
|
+
/** Customer's tax ID. */
|
|
114
|
+
_id?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Tax type.
|
|
117
|
+
*
|
|
118
|
+
* Supported values:
|
|
119
|
+
* + `CPF`: for individual tax payers
|
|
120
|
+
* + `CNPJ`: for corporations
|
|
121
|
+
*/
|
|
122
|
+
type?: VatType;
|
|
123
|
+
}
|
|
124
|
+
/** tax info types */
|
|
125
|
+
export declare enum VatType {
|
|
126
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
127
|
+
/** CPF - for individual tax payers. */
|
|
128
|
+
CPF = "CPF",
|
|
129
|
+
/** CNPJ - for corporations */
|
|
130
|
+
CNPJ = "CNPJ"
|
|
131
|
+
}
|
|
132
|
+
export interface MultiCurrencyPrice {
|
|
133
|
+
/** Amount. */
|
|
134
|
+
amount?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Converted amount.
|
|
137
|
+
* @readonly
|
|
138
|
+
*/
|
|
139
|
+
convertedAmount?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Amount formatted with currency symbol.
|
|
142
|
+
* @readonly
|
|
143
|
+
*/
|
|
144
|
+
formattedAmount?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Converted amount formatted with currency symbol.
|
|
147
|
+
* @readonly
|
|
148
|
+
*/
|
|
149
|
+
formattedConvertedAmount?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface Activity {
|
|
152
|
+
/** Date and time the automation activity was created. */
|
|
153
|
+
_createdDate?: Date | null;
|
|
154
|
+
/**
|
|
155
|
+
* Automation activity type.
|
|
156
|
+
*
|
|
157
|
+
* Supported properties: `UNKNOWN_TYPE`, `SCHEDULED`, `EMAIL_SENT`, `EMAIL_NOT_SENT`, `NOTIFICATION_SENT`, `TASK_CREATED`
|
|
158
|
+
*/
|
|
159
|
+
type?: ActivityType;
|
|
160
|
+
}
|
|
161
|
+
export interface CartAbandonedEvent {
|
|
162
|
+
cartId?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Time the cart was created
|
|
165
|
+
* @readonly
|
|
166
|
+
*/
|
|
167
|
+
creationTime?: Date | null;
|
|
168
|
+
/**
|
|
169
|
+
* Time the cart was abandoned
|
|
170
|
+
* @readonly
|
|
171
|
+
*/
|
|
172
|
+
abandonTime?: Date | null;
|
|
173
|
+
/** Buyer information */
|
|
174
|
+
buyerInfo?: BuyerInfo;
|
|
175
|
+
/** Amount of items in cart */
|
|
176
|
+
itemsCount?: number;
|
|
177
|
+
/** Coupon ID (if relevant) */
|
|
178
|
+
couponId?: string;
|
|
179
|
+
/** Subtotal of all line items in cart, not before shipping and taxes */
|
|
180
|
+
totals?: Totals;
|
|
181
|
+
/** Checkout URL - checkout with the abandoned cart details */
|
|
182
|
+
checkoutUrl?: string;
|
|
183
|
+
}
|
|
184
|
+
export interface BuyerInfo {
|
|
185
|
+
/** Wix customer ID */
|
|
186
|
+
_id?: string;
|
|
187
|
+
/** Customer information */
|
|
188
|
+
identityType?: Identity;
|
|
189
|
+
/** Customer's email address */
|
|
190
|
+
email?: string | null;
|
|
191
|
+
/** Customer's phone number */
|
|
192
|
+
phone?: string | null;
|
|
193
|
+
/** Customer's first name */
|
|
194
|
+
firstName?: string | null;
|
|
195
|
+
/** Customer's last name */
|
|
196
|
+
lastName?: string | null;
|
|
197
|
+
}
|
|
198
|
+
export declare enum Identity {
|
|
199
|
+
/** Customer is the site owner */
|
|
200
|
+
ADMIN = "ADMIN",
|
|
201
|
+
/** Customer is logged in */
|
|
202
|
+
MEMBER = "MEMBER",
|
|
203
|
+
/** Customer is not logged in */
|
|
204
|
+
VISITOR = "VISITOR",
|
|
205
|
+
/** Contact was created for the customer */
|
|
206
|
+
CONTACT = "CONTACT"
|
|
207
|
+
}
|
|
208
|
+
export interface Totals {
|
|
209
|
+
/** Subtotal of all line items in cart, without shipping and taxes */
|
|
210
|
+
subtotal?: number | null;
|
|
211
|
+
/** Total cart price */
|
|
212
|
+
total?: number | null;
|
|
213
|
+
/** Formatted total cart price includes currency symbol */
|
|
214
|
+
formattedTotal?: string;
|
|
215
|
+
}
|
|
216
|
+
export interface CartRecoveredEvent {
|
|
217
|
+
cartId?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Time the cart was recovered
|
|
220
|
+
* @readonly
|
|
221
|
+
*/
|
|
222
|
+
recoveredTime?: Date | null;
|
|
223
|
+
/**
|
|
224
|
+
* Time the cart was created
|
|
225
|
+
* @readonly
|
|
226
|
+
*/
|
|
227
|
+
creationTime?: Date | null;
|
|
228
|
+
/**
|
|
229
|
+
* Time the cart was abandoned
|
|
230
|
+
* @readonly
|
|
231
|
+
*/
|
|
232
|
+
abandonedTime?: Date | null;
|
|
233
|
+
}
|
|
234
|
+
export interface GetAbandonedCheckoutRequest {
|
|
235
|
+
/** Abandoned checkout ID. */
|
|
236
|
+
abandonedCheckoutId: string;
|
|
237
|
+
}
|
|
238
|
+
export interface GetAbandonedCheckoutResponse {
|
|
239
|
+
/** The requested abandoned checkout. */
|
|
240
|
+
abandonedCheckout?: AbandonedCheckout;
|
|
241
|
+
}
|
|
242
|
+
export interface DeleteAbandonedCheckoutRequest {
|
|
243
|
+
/** Id of the abandoned checkout to delete */
|
|
244
|
+
abandonedCheckoutId: string;
|
|
245
|
+
}
|
|
246
|
+
export interface DeleteAbandonedCheckoutResponse {
|
|
247
|
+
}
|
|
248
|
+
export interface QueryAbandonedCheckoutsRequest {
|
|
249
|
+
/** Query options. */
|
|
250
|
+
query: QueryV2;
|
|
251
|
+
}
|
|
252
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
253
|
+
/** Paging options to limit and skip the number of items. */
|
|
254
|
+
paging?: Paging;
|
|
255
|
+
/** 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`. */
|
|
256
|
+
cursorPaging?: CursorPaging;
|
|
257
|
+
/**
|
|
258
|
+
* Filter object.
|
|
259
|
+
*
|
|
260
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
261
|
+
*/
|
|
262
|
+
filter?: Record<string, any> | null;
|
|
263
|
+
/**
|
|
264
|
+
* Sort object.
|
|
265
|
+
*
|
|
266
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
267
|
+
*/
|
|
268
|
+
sort?: Sorting[];
|
|
269
|
+
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
270
|
+
fields?: string[];
|
|
271
|
+
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
272
|
+
fieldsets?: string[];
|
|
273
|
+
}
|
|
274
|
+
/** @oneof */
|
|
275
|
+
export interface QueryV2PagingMethodOneOf {
|
|
276
|
+
/** Paging options to limit and skip the number of items. */
|
|
277
|
+
paging?: Paging;
|
|
278
|
+
/** 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`. */
|
|
279
|
+
cursorPaging?: CursorPaging;
|
|
280
|
+
}
|
|
281
|
+
export interface Sorting {
|
|
282
|
+
/** Name of the field to sort by. */
|
|
283
|
+
fieldName?: string;
|
|
284
|
+
/** Sort order. */
|
|
285
|
+
order?: SortOrder;
|
|
286
|
+
}
|
|
287
|
+
export declare enum SortOrder {
|
|
288
|
+
ASC = "ASC",
|
|
289
|
+
DESC = "DESC"
|
|
290
|
+
}
|
|
291
|
+
export interface Paging {
|
|
292
|
+
/** Number of items to load. */
|
|
293
|
+
limit?: number | null;
|
|
294
|
+
/** Number of items to skip in the current sort order. */
|
|
295
|
+
offset?: number | null;
|
|
296
|
+
}
|
|
297
|
+
export interface CursorPaging {
|
|
298
|
+
/** Maximum number of items to return in the results. */
|
|
299
|
+
limit?: number | null;
|
|
300
|
+
/**
|
|
301
|
+
* Pointer to the next or previous page in the list of results.
|
|
302
|
+
*
|
|
303
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
304
|
+
* Not relevant for the first request.
|
|
305
|
+
*/
|
|
306
|
+
cursor?: string | null;
|
|
307
|
+
}
|
|
308
|
+
export interface QueryAbandonedCheckoutsResponse {
|
|
309
|
+
/**
|
|
310
|
+
* __Deprecated.__ Use `abandonedCheckouts` instead.
|
|
311
|
+
* @deprecated
|
|
312
|
+
*/
|
|
313
|
+
results?: AbandonedCheckout[];
|
|
314
|
+
/** List of abandoned checkouts. */
|
|
315
|
+
abandonedCheckouts?: AbandonedCheckout[];
|
|
316
|
+
/** Details on the paged set of results returned. */
|
|
317
|
+
metadata?: PagingMetadataV2;
|
|
318
|
+
}
|
|
319
|
+
export interface PagingMetadataV2 {
|
|
320
|
+
/** Number of items returned in the response. */
|
|
321
|
+
count?: number | null;
|
|
322
|
+
/** Offset that was requested. */
|
|
323
|
+
offset?: number | null;
|
|
324
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
325
|
+
total?: number | null;
|
|
326
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
327
|
+
tooManyToCount?: boolean | null;
|
|
328
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
329
|
+
cursors?: Cursors;
|
|
330
|
+
}
|
|
331
|
+
export interface Cursors {
|
|
332
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
333
|
+
next?: string | null;
|
|
334
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
335
|
+
prev?: string | null;
|
|
336
|
+
}
|
|
337
|
+
export interface SearchAbandonedCheckoutsRequest {
|
|
338
|
+
/** WQL query expression. */
|
|
339
|
+
search?: Search;
|
|
340
|
+
}
|
|
341
|
+
export interface Search extends SearchPagingMethodOneOf {
|
|
342
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
343
|
+
paging?: CommonPaging;
|
|
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' */
|
|
345
|
+
cursorPaging?: CommonCursorPaging;
|
|
346
|
+
/** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
|
|
347
|
+
filter?: Record<string, any> | null;
|
|
348
|
+
/** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
|
|
349
|
+
sort?: CommonSorting[];
|
|
350
|
+
/** free text to match in searchable fields */
|
|
351
|
+
search?: SearchDetails;
|
|
352
|
+
}
|
|
353
|
+
/** @oneof */
|
|
354
|
+
export interface SearchPagingMethodOneOf {
|
|
355
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
356
|
+
paging?: CommonPaging;
|
|
357
|
+
/** 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' */
|
|
358
|
+
cursorPaging?: CommonCursorPaging;
|
|
359
|
+
}
|
|
360
|
+
export interface CommonSorting {
|
|
361
|
+
/** Name of the field to sort by. */
|
|
362
|
+
fieldName?: string;
|
|
363
|
+
/** Sort order. */
|
|
364
|
+
order?: CommonSortOrder;
|
|
365
|
+
}
|
|
366
|
+
export declare enum CommonSortOrder {
|
|
367
|
+
/** Ascending order. */
|
|
368
|
+
ASC = "ASC",
|
|
369
|
+
/** Descending order. */
|
|
370
|
+
DESC = "DESC"
|
|
371
|
+
}
|
|
372
|
+
export interface SearchDetails {
|
|
373
|
+
/** boolean search mode */
|
|
374
|
+
mode?: Mode;
|
|
375
|
+
/** search term or expression */
|
|
376
|
+
expression?: string | null;
|
|
377
|
+
/** fields to search in. if empty - server will search in own default fields */
|
|
378
|
+
fields?: string[];
|
|
379
|
+
/** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
380
|
+
fuzzy?: boolean;
|
|
381
|
+
}
|
|
382
|
+
export declare enum Mode {
|
|
383
|
+
/** Any */
|
|
384
|
+
OR = "OR",
|
|
385
|
+
/** All */
|
|
386
|
+
AND = "AND"
|
|
387
|
+
}
|
|
388
|
+
export interface CommonPaging {
|
|
389
|
+
/** Number of items to load. */
|
|
390
|
+
limit?: number | null;
|
|
391
|
+
/** Number of items to skip in the current sort order. */
|
|
392
|
+
offset?: number | null;
|
|
393
|
+
}
|
|
394
|
+
export interface CommonCursorPaging {
|
|
395
|
+
/** Maximum number of items to return in the results. */
|
|
396
|
+
limit?: number | null;
|
|
397
|
+
/**
|
|
398
|
+
* Pointer to the next or previous page in the list of results.
|
|
399
|
+
*
|
|
400
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
401
|
+
* Not relevant for the first request.
|
|
402
|
+
*/
|
|
403
|
+
cursor?: string | null;
|
|
404
|
+
}
|
|
405
|
+
export interface SearchAbandonedCheckoutsResponse {
|
|
406
|
+
/** List of abandoned checkouts. */
|
|
407
|
+
abandonedCheckouts?: AbandonedCheckout[];
|
|
408
|
+
/** Paging metadata. Contains cursor which can be used in next query. */
|
|
409
|
+
pagingMetadata?: CommonPagingMetadataV2;
|
|
410
|
+
}
|
|
411
|
+
export interface CommonPagingMetadataV2 {
|
|
412
|
+
/** Number of items returned in the response. */
|
|
413
|
+
count?: number | null;
|
|
414
|
+
/** Offset that was requested. */
|
|
415
|
+
offset?: number | null;
|
|
416
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
417
|
+
total?: number | null;
|
|
418
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
419
|
+
tooManyToCount?: boolean | null;
|
|
420
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
421
|
+
cursors?: CommonCursors;
|
|
422
|
+
}
|
|
423
|
+
export interface CommonCursors {
|
|
424
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
425
|
+
next?: string | null;
|
|
426
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
427
|
+
prev?: string | null;
|
|
428
|
+
}
|
|
429
|
+
export interface AddAbandonedCheckoutActivityRequest {
|
|
430
|
+
/** Id of the abandoned checkout to update */
|
|
431
|
+
abandonedCheckoutId: string | null;
|
|
432
|
+
/** The type of the activity to add */
|
|
433
|
+
activityType?: ActivityType;
|
|
434
|
+
}
|
|
435
|
+
export interface AddAbandonedCheckoutActivityResponse {
|
|
436
|
+
/** The updated abandoned checkout with the added activity */
|
|
437
|
+
abandonedCheckout?: AbandonedCheckout;
|
|
438
|
+
}
|
|
439
|
+
export interface Task {
|
|
440
|
+
key?: TaskKey;
|
|
441
|
+
executeAt?: Date | null;
|
|
442
|
+
payload?: string | null;
|
|
443
|
+
}
|
|
444
|
+
export interface TaskKey {
|
|
445
|
+
appId?: string;
|
|
446
|
+
instanceId?: string;
|
|
447
|
+
subjectId?: string | null;
|
|
448
|
+
}
|
|
449
|
+
export interface TaskAction extends TaskActionActionOneOf {
|
|
450
|
+
complete?: Complete;
|
|
451
|
+
cancel?: Cancel;
|
|
452
|
+
reschedule?: Reschedule;
|
|
453
|
+
}
|
|
454
|
+
/** @oneof */
|
|
455
|
+
export interface TaskActionActionOneOf {
|
|
456
|
+
complete?: Complete;
|
|
457
|
+
cancel?: Cancel;
|
|
458
|
+
reschedule?: Reschedule;
|
|
459
|
+
}
|
|
460
|
+
export interface Complete {
|
|
461
|
+
}
|
|
462
|
+
export interface Cancel {
|
|
463
|
+
}
|
|
464
|
+
export interface Reschedule {
|
|
465
|
+
executeAt?: Date | null;
|
|
466
|
+
payload?: string | null;
|
|
467
|
+
}
|
|
468
|
+
export interface RedirectToCheckoutRequest {
|
|
469
|
+
/** abandoned checkout id */
|
|
470
|
+
abandonedCheckoutId: string;
|
|
471
|
+
/** Identifier of the metaSite this checkout uses */
|
|
472
|
+
metasiteId: string;
|
|
473
|
+
}
|
|
474
|
+
export interface RawHttpResponse {
|
|
475
|
+
body?: Uint8Array;
|
|
476
|
+
statusCode?: number | null;
|
|
477
|
+
headers?: HeadersEntry[];
|
|
478
|
+
}
|
|
479
|
+
export interface HeadersEntry {
|
|
480
|
+
key?: string;
|
|
481
|
+
value?: string;
|
|
482
|
+
}
|
|
483
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
484
|
+
createdEvent?: EntityCreatedEvent;
|
|
485
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
486
|
+
deletedEvent?: EntityDeletedEvent;
|
|
487
|
+
actionEvent?: ActionEvent;
|
|
488
|
+
/**
|
|
489
|
+
* Unique event ID.
|
|
490
|
+
* Allows clients to ignore duplicate webhooks.
|
|
491
|
+
*/
|
|
492
|
+
_id?: string;
|
|
493
|
+
/**
|
|
494
|
+
* Assumes actions are also always typed to an entity_type
|
|
495
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
496
|
+
*/
|
|
497
|
+
entityFqdn?: string;
|
|
498
|
+
/**
|
|
499
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
500
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
501
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
502
|
+
*/
|
|
503
|
+
slug?: string;
|
|
504
|
+
/** ID of the entity associated with the event. */
|
|
505
|
+
entityId?: string;
|
|
506
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
507
|
+
eventTime?: Date | null;
|
|
508
|
+
/**
|
|
509
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
510
|
+
* (for example, GDPR).
|
|
511
|
+
*/
|
|
512
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
513
|
+
/** If present, indicates the action that triggered the event. */
|
|
514
|
+
originatedFrom?: string | null;
|
|
515
|
+
/**
|
|
516
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
517
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
518
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
519
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
520
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
521
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
522
|
+
*/
|
|
523
|
+
entityEventSequence?: string | null;
|
|
524
|
+
}
|
|
525
|
+
/** @oneof */
|
|
526
|
+
export interface DomainEventBodyOneOf {
|
|
527
|
+
createdEvent?: EntityCreatedEvent;
|
|
528
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
529
|
+
deletedEvent?: EntityDeletedEvent;
|
|
530
|
+
actionEvent?: ActionEvent;
|
|
531
|
+
}
|
|
532
|
+
export interface EntityCreatedEvent {
|
|
533
|
+
entity?: string;
|
|
534
|
+
}
|
|
535
|
+
export interface RestoreInfo {
|
|
536
|
+
deletedDate?: Date | null;
|
|
537
|
+
}
|
|
538
|
+
export interface EntityUpdatedEvent {
|
|
539
|
+
/**
|
|
540
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
541
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
542
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
543
|
+
*/
|
|
544
|
+
currentEntity?: string;
|
|
545
|
+
}
|
|
546
|
+
export interface EntityDeletedEvent {
|
|
547
|
+
/** Entity that was deleted */
|
|
548
|
+
deletedEntity?: string | null;
|
|
549
|
+
}
|
|
550
|
+
export interface ActionEvent {
|
|
551
|
+
body?: string;
|
|
552
|
+
}
|
|
553
|
+
export interface Empty {
|
|
554
|
+
}
|
|
555
|
+
/** Triggered when an abandoned checkout is recovered (the customer completes the checkout). */
|
|
556
|
+
export interface AbandonedCheckoutRecovered {
|
|
557
|
+
abandonedCheckout?: AbandonedCheckout;
|
|
558
|
+
}
|
|
559
|
+
export interface MessageEnvelope {
|
|
560
|
+
/** App instance ID. */
|
|
561
|
+
instanceId?: string | null;
|
|
562
|
+
/** Event type. */
|
|
563
|
+
eventType?: string;
|
|
564
|
+
/** The identification type and identity data. */
|
|
565
|
+
identity?: IdentificationData;
|
|
566
|
+
/** Stringify payload. */
|
|
567
|
+
data?: string;
|
|
568
|
+
}
|
|
569
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
570
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
571
|
+
anonymousVisitorId?: string;
|
|
572
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
573
|
+
memberId?: string;
|
|
574
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
575
|
+
wixUserId?: string;
|
|
576
|
+
/** ID of an app. */
|
|
577
|
+
appId?: string;
|
|
578
|
+
/** @readonly */
|
|
579
|
+
identityType?: WebhookIdentityType;
|
|
580
|
+
}
|
|
581
|
+
/** @oneof */
|
|
582
|
+
export interface IdentificationDataIdOneOf {
|
|
583
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
584
|
+
anonymousVisitorId?: string;
|
|
585
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
586
|
+
memberId?: string;
|
|
587
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
588
|
+
wixUserId?: string;
|
|
589
|
+
/** ID of an app. */
|
|
590
|
+
appId?: string;
|
|
591
|
+
}
|
|
592
|
+
export declare enum WebhookIdentityType {
|
|
593
|
+
UNKNOWN = "UNKNOWN",
|
|
594
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
595
|
+
MEMBER = "MEMBER",
|
|
596
|
+
WIX_USER = "WIX_USER",
|
|
597
|
+
APP = "APP"
|
|
598
|
+
}
|
|
599
|
+
interface V1BuyerInfoNonNullableFields {
|
|
600
|
+
visitorId: string;
|
|
601
|
+
memberId: string;
|
|
602
|
+
userId: string;
|
|
603
|
+
}
|
|
604
|
+
interface VatIdNonNullableFields {
|
|
605
|
+
_id: string;
|
|
606
|
+
type: VatType;
|
|
607
|
+
}
|
|
608
|
+
interface FullAddressContactDetailsNonNullableFields {
|
|
609
|
+
vatId?: VatIdNonNullableFields;
|
|
610
|
+
}
|
|
611
|
+
interface MultiCurrencyPriceNonNullableFields {
|
|
612
|
+
amount: string;
|
|
613
|
+
convertedAmount: string;
|
|
614
|
+
formattedAmount: string;
|
|
615
|
+
formattedConvertedAmount: string;
|
|
616
|
+
}
|
|
617
|
+
interface ActivityNonNullableFields {
|
|
618
|
+
type: ActivityType;
|
|
619
|
+
}
|
|
620
|
+
export interface AbandonedCheckoutNonNullableFields {
|
|
621
|
+
_id: string;
|
|
622
|
+
status: Status;
|
|
623
|
+
buyerInfo?: V1BuyerInfoNonNullableFields;
|
|
624
|
+
contactDetails?: FullAddressContactDetailsNonNullableFields;
|
|
625
|
+
currency: string;
|
|
626
|
+
totalPrice?: MultiCurrencyPriceNonNullableFields;
|
|
627
|
+
activities: ActivityNonNullableFields[];
|
|
628
|
+
checkoutUrl: string;
|
|
629
|
+
subtotalPrice?: MultiCurrencyPriceNonNullableFields;
|
|
630
|
+
}
|
|
631
|
+
export interface GetAbandonedCheckoutResponseNonNullableFields {
|
|
632
|
+
abandonedCheckout?: AbandonedCheckoutNonNullableFields;
|
|
633
|
+
}
|
|
634
|
+
export interface QueryAbandonedCheckoutsResponseNonNullableFields {
|
|
635
|
+
results: AbandonedCheckoutNonNullableFields[];
|
|
636
|
+
abandonedCheckouts: AbandonedCheckoutNonNullableFields[];
|
|
637
|
+
}
|
|
638
|
+
export interface SearchAbandonedCheckoutsResponseNonNullableFields {
|
|
639
|
+
abandonedCheckouts: AbandonedCheckoutNonNullableFields[];
|
|
640
|
+
}
|
|
641
|
+
export interface AddAbandonedCheckoutActivityResponseNonNullableFields {
|
|
642
|
+
abandonedCheckout?: AbandonedCheckoutNonNullableFields;
|
|
643
|
+
}
|
|
644
|
+
interface HeadersEntryNonNullableFields {
|
|
645
|
+
key: string;
|
|
646
|
+
value: string;
|
|
647
|
+
}
|
|
648
|
+
export interface RawHttpResponseNonNullableFields {
|
|
649
|
+
body: Uint8Array;
|
|
650
|
+
headers: HeadersEntryNonNullableFields[];
|
|
651
|
+
}
|
|
652
|
+
export interface BaseEventMetadata {
|
|
653
|
+
/** App instance ID. */
|
|
654
|
+
instanceId?: string | null;
|
|
655
|
+
/** Event type. */
|
|
656
|
+
eventType?: string;
|
|
657
|
+
/** The identification type and identity data. */
|
|
658
|
+
identity?: IdentificationData;
|
|
659
|
+
}
|
|
660
|
+
export interface EventMetadata extends BaseEventMetadata {
|
|
661
|
+
/**
|
|
662
|
+
* Unique event ID.
|
|
663
|
+
* Allows clients to ignore duplicate webhooks.
|
|
664
|
+
*/
|
|
665
|
+
_id?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Assumes actions are also always typed to an entity_type
|
|
668
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
669
|
+
*/
|
|
670
|
+
entityFqdn?: string;
|
|
671
|
+
/**
|
|
672
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
673
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
674
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
675
|
+
*/
|
|
676
|
+
slug?: string;
|
|
677
|
+
/** ID of the entity associated with the event. */
|
|
678
|
+
entityId?: string;
|
|
679
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
680
|
+
eventTime?: Date | null;
|
|
681
|
+
/**
|
|
682
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
683
|
+
* (for example, GDPR).
|
|
684
|
+
*/
|
|
685
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
686
|
+
/** If present, indicates the action that triggered the event. */
|
|
687
|
+
originatedFrom?: string | null;
|
|
688
|
+
/**
|
|
689
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
690
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
691
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
692
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
693
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
694
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
695
|
+
*/
|
|
696
|
+
entityEventSequence?: string | null;
|
|
697
|
+
}
|
|
698
|
+
export interface AbandonedCheckoutRecoveredEnvelope {
|
|
699
|
+
data: AbandonedCheckoutRecovered;
|
|
700
|
+
metadata: EventMetadata;
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Triggered when an abandoned checkout is recovered (the customer completes the checkout).
|
|
704
|
+
* @permissionScope Manage Stores - all permissions
|
|
705
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
706
|
+
* @permissionScope Read eCommerce - all read permissions
|
|
707
|
+
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
708
|
+
* @permissionScope Read Orders
|
|
709
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
|
|
710
|
+
* @permissionScope Read Stores - all read permissions
|
|
711
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
712
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
713
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
714
|
+
* @permissionScope Manage eCommerce - all permissions
|
|
715
|
+
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
716
|
+
* @permissionScope Manage Orders
|
|
717
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
718
|
+
* @permissionId ECOM.ABANDONED_CHECKOUT_READ
|
|
719
|
+
* @webhook
|
|
720
|
+
* @eventType wix.ecom.v1.abandoned_checkout_recovered
|
|
721
|
+
* @documentationMaturity preview
|
|
722
|
+
*/
|
|
723
|
+
export declare function onAbandonedCheckoutRecovered(handler: (event: AbandonedCheckoutRecoveredEnvelope) => void | Promise<void>): void;
|
|
724
|
+
/**
|
|
725
|
+
* Retrieves an abandoned checkout.
|
|
726
|
+
* @param abandonedCheckoutId - Abandoned checkout ID.
|
|
727
|
+
* @public
|
|
728
|
+
* @documentationMaturity preview
|
|
729
|
+
* @requiredField abandonedCheckoutId
|
|
730
|
+
* @permissionId ECOM.ABANDONED_CHECKOUT_READ
|
|
731
|
+
* @permissionScope Manage Stores - all permissions
|
|
732
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
733
|
+
* @permissionScope Read eCommerce - all read permissions
|
|
734
|
+
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
735
|
+
* @permissionScope Read Orders
|
|
736
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
|
|
737
|
+
* @permissionScope Read Stores - all read permissions
|
|
738
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
739
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
740
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
741
|
+
* @permissionScope Manage eCommerce - all permissions
|
|
742
|
+
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
743
|
+
* @permissionScope Manage Orders
|
|
744
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
745
|
+
* @applicableIdentity APP
|
|
746
|
+
* @returns The requested abandoned checkout.
|
|
747
|
+
* @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.GetAbandonedCheckout
|
|
748
|
+
*/
|
|
749
|
+
export declare function getAbandonedCheckout(abandonedCheckoutId: string): Promise<AbandonedCheckout & AbandonedCheckoutNonNullableFields>;
|
|
750
|
+
/**
|
|
751
|
+
* Delete an AbandonedCheckout
|
|
752
|
+
* @param abandonedCheckoutId - Id of the abandoned checkout to delete
|
|
753
|
+
* @public
|
|
754
|
+
* @documentationMaturity preview
|
|
755
|
+
* @requiredField abandonedCheckoutId
|
|
756
|
+
* @permissionId ECOM.ABANDONED_CHECKOUT_DELETE
|
|
757
|
+
* @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.DeleteAbandonedCheckout
|
|
758
|
+
*/
|
|
759
|
+
export declare function deleteAbandonedCheckout(abandonedCheckoutId: string): Promise<void>;
|
|
760
|
+
/**
|
|
761
|
+
* Creates a query to retrieve a list of abandoned checkouts.
|
|
762
|
+
*
|
|
763
|
+
* The `queryAbandonedCheckouts()` function builds a query to retrieve a list of abandoned checkouts and returns a `ResultsQueryBuilder` object.
|
|
764
|
+
*
|
|
765
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
766
|
+
*
|
|
767
|
+
* You can refine the query by chaining `ResultsQueryBuilder` functions onto the query. `ResultsQueryBuilder` functions enable you to sort, filter, and control the results `queryAbandonedCheckouts()` returns.
|
|
768
|
+
* @public
|
|
769
|
+
* @documentationMaturity preview
|
|
770
|
+
* @permissionScope Manage Stores - all permissions
|
|
771
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
772
|
+
* @permissionScope Read eCommerce - all read permissions
|
|
773
|
+
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
774
|
+
* @permissionScope Read Orders
|
|
775
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
|
|
776
|
+
* @permissionScope Read Stores - all read permissions
|
|
777
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
778
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
779
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
780
|
+
* @permissionScope Manage eCommerce - all permissions
|
|
781
|
+
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
782
|
+
* @permissionScope Manage Orders
|
|
783
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
784
|
+
* @permissionId ECOM.ABANDONED_CHECKOUT_READ
|
|
785
|
+
* @applicableIdentity APP
|
|
786
|
+
* @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.QueryAbandonedCheckouts
|
|
787
|
+
*/
|
|
788
|
+
export declare function queryAbandonedCheckouts(): AbandonedCheckoutsQueryBuilder;
|
|
789
|
+
interface QueryCursorResult {
|
|
790
|
+
cursors: CommonCursors;
|
|
791
|
+
hasNext: () => boolean;
|
|
792
|
+
hasPrev: () => boolean;
|
|
793
|
+
length: number;
|
|
794
|
+
pageSize: number;
|
|
795
|
+
}
|
|
796
|
+
export interface AbandonedCheckoutsQueryResult extends QueryCursorResult {
|
|
797
|
+
items: AbandonedCheckout[];
|
|
798
|
+
query: AbandonedCheckoutsQueryBuilder;
|
|
799
|
+
next: () => Promise<AbandonedCheckoutsQueryResult>;
|
|
800
|
+
prev: () => Promise<AbandonedCheckoutsQueryResult>;
|
|
801
|
+
}
|
|
802
|
+
export interface AbandonedCheckoutsQueryBuilder {
|
|
803
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
804
|
+
* @param value - Value to compare against.
|
|
805
|
+
* @documentationMaturity preview
|
|
806
|
+
*/
|
|
807
|
+
eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: any) => AbandonedCheckoutsQueryBuilder;
|
|
808
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
809
|
+
* @param value - Value to compare against.
|
|
810
|
+
* @documentationMaturity preview
|
|
811
|
+
*/
|
|
812
|
+
ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: any) => AbandonedCheckoutsQueryBuilder;
|
|
813
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
814
|
+
* @param value - Value to compare against.
|
|
815
|
+
* @documentationMaturity preview
|
|
816
|
+
*/
|
|
817
|
+
ge: (propertyName: '_createdDate' | '_updatedDate', value: any) => AbandonedCheckoutsQueryBuilder;
|
|
818
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
819
|
+
* @param value - Value to compare against.
|
|
820
|
+
* @documentationMaturity preview
|
|
821
|
+
*/
|
|
822
|
+
gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => AbandonedCheckoutsQueryBuilder;
|
|
823
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
824
|
+
* @param value - Value to compare against.
|
|
825
|
+
* @documentationMaturity preview
|
|
826
|
+
*/
|
|
827
|
+
le: (propertyName: '_createdDate' | '_updatedDate', value: any) => AbandonedCheckoutsQueryBuilder;
|
|
828
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
829
|
+
* @param value - Value to compare against.
|
|
830
|
+
* @documentationMaturity preview
|
|
831
|
+
*/
|
|
832
|
+
lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => AbandonedCheckoutsQueryBuilder;
|
|
833
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
834
|
+
* @param string - String to compare against. Case-insensitive.
|
|
835
|
+
* @documentationMaturity preview
|
|
836
|
+
*/
|
|
837
|
+
startsWith: (propertyName: '_id' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: string) => AbandonedCheckoutsQueryBuilder;
|
|
838
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
839
|
+
* @param values - List of values to compare against.
|
|
840
|
+
* @documentationMaturity preview
|
|
841
|
+
*/
|
|
842
|
+
hasSome: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: any[]) => AbandonedCheckoutsQueryBuilder;
|
|
843
|
+
/** @documentationMaturity preview */
|
|
844
|
+
in: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: any) => AbandonedCheckoutsQueryBuilder;
|
|
845
|
+
/** @documentationMaturity preview */
|
|
846
|
+
exists: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: boolean) => AbandonedCheckoutsQueryBuilder;
|
|
847
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
848
|
+
* @documentationMaturity preview
|
|
849
|
+
*/
|
|
850
|
+
ascending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email'>) => AbandonedCheckoutsQueryBuilder;
|
|
851
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
852
|
+
* @documentationMaturity preview
|
|
853
|
+
*/
|
|
854
|
+
descending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email'>) => AbandonedCheckoutsQueryBuilder;
|
|
855
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
856
|
+
* @documentationMaturity preview
|
|
857
|
+
*/
|
|
858
|
+
limit: (limit: number) => AbandonedCheckoutsQueryBuilder;
|
|
859
|
+
/** @param cursor - A pointer to specific record
|
|
860
|
+
* @documentationMaturity preview
|
|
861
|
+
*/
|
|
862
|
+
skipTo: (cursor: string) => AbandonedCheckoutsQueryBuilder;
|
|
863
|
+
/** @documentationMaturity preview */
|
|
864
|
+
find: () => Promise<AbandonedCheckoutsQueryResult>;
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Retrieves a list of abandoned checkouts, given the provided paging, filtering, searchDetails and sorting. Up to 100 abandoned checkouts can be returned per request.
|
|
868
|
+
* @public
|
|
869
|
+
* @documentationMaturity preview
|
|
870
|
+
* @permissionId ECOM.ABANDONED_CHECKOUT_READ
|
|
871
|
+
* @permissionScope Manage Stores - all permissions
|
|
872
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
873
|
+
* @permissionScope Read eCommerce - all read permissions
|
|
874
|
+
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
875
|
+
* @permissionScope Read Orders
|
|
876
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
|
|
877
|
+
* @permissionScope Read Stores - all read permissions
|
|
878
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
879
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
880
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
881
|
+
* @permissionScope Manage eCommerce - all permissions
|
|
882
|
+
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
883
|
+
* @permissionScope Manage Orders
|
|
884
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
885
|
+
* @applicableIdentity APP
|
|
886
|
+
* @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.SearchAbandonedCheckouts
|
|
887
|
+
*/
|
|
888
|
+
export declare function searchAbandonedCheckouts(options?: SearchAbandonedCheckoutsOptions): Promise<SearchAbandonedCheckoutsResponse & SearchAbandonedCheckoutsResponseNonNullableFields>;
|
|
889
|
+
export interface SearchAbandonedCheckoutsOptions {
|
|
890
|
+
/** WQL query expression. */
|
|
891
|
+
search?: Search;
|
|
892
|
+
}
|
|
893
|
+
export interface AddAbandonedCheckoutActivityOptions {
|
|
894
|
+
/** The type of the activity to add */
|
|
895
|
+
activityType?: ActivityType;
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* Redirects the abandoned checkout to the checkout page.
|
|
899
|
+
* @param abandonedCheckoutId - abandoned checkout id
|
|
900
|
+
* @param metasiteId - Identifier of the metaSite this checkout uses
|
|
901
|
+
* @public
|
|
902
|
+
* @documentationMaturity preview
|
|
903
|
+
* @requiredField abandonedCheckoutId
|
|
904
|
+
* @requiredField metasiteId
|
|
905
|
+
* @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.RedirectToCheckout
|
|
906
|
+
*/
|
|
907
|
+
export declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
|
|
908
|
+
export {};
|