@wix/auto_sdk_ecom_abandoned-checkouts 1.0.9 → 1.0.11

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.
Files changed (133) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +30 -0
  11. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +43 -0
  12. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +21 -0
  14. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +209 -0
  15. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +26 -0
  17. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +142 -0
  18. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +56 -0
  20. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +104 -0
  21. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +1 -0
  22. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +742 -0
  23. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +74 -0
  24. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -0
  25. package/build/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-oXeJ64KH.d.mts → cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts} +272 -78
  26. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +380 -0
  27. package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +30 -0
  38. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +32 -0
  39. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +1 -0
  40. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +21 -0
  41. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +200 -0
  42. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +1 -0
  43. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +26 -0
  44. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +110 -0
  45. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +1 -0
  46. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +56 -0
  47. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +87 -0
  48. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +1 -0
  49. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +742 -0
  50. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +71 -0
  51. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -0
  52. package/build/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-oXeJ64KH.d.ts → es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts} +272 -78
  53. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +348 -0
  54. package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +32 -0
  65. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +43 -0
  66. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +1 -0
  67. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +21 -0
  68. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +209 -0
  69. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +1 -0
  70. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +26 -0
  71. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +142 -0
  72. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +1 -0
  73. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +65 -0
  74. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +104 -0
  75. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +1 -0
  76. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +742 -0
  77. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +74 -0
  78. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -0
  79. package/build/internal/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-B3pwzRZR.d.ts → cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts} +284 -78
  80. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +380 -0
  81. package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.d.ts +32 -0
  92. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js +32 -0
  93. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.js.map +1 -0
  94. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.d.ts +21 -0
  95. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js +200 -0
  96. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.js.map +1 -0
  97. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.d.ts +26 -0
  98. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js +110 -0
  99. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.js.map +1 -0
  100. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.d.ts +65 -0
  101. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js +87 -0
  102. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.js.map +1 -0
  103. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +742 -0
  104. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js +71 -0
  105. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -0
  106. package/build/internal/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-B3pwzRZR.d.mts → es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts} +284 -78
  107. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +348 -0
  108. package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -0
  109. package/package.json +13 -14
  110. package/build/index.d.mts +0 -75
  111. package/build/index.d.ts +0 -75
  112. package/build/index.js +0 -620
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -579
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -86
  117. package/build/internal/index.d.ts +0 -86
  118. package/build/internal/index.js +0 -620
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -579
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.d.mts +0 -499
  123. package/build/internal/meta.d.ts +0 -499
  124. package/build/internal/meta.js +0 -337
  125. package/build/internal/meta.js.map +0 -1
  126. package/build/internal/meta.mjs +0 -305
  127. package/build/internal/meta.mjs.map +0 -1
  128. package/build/meta.d.mts +0 -499
  129. package/build/meta.d.ts +0 -499
  130. package/build/meta.js +0 -337
  131. package/build/meta.js.map +0 -1
  132. package/build/meta.mjs +0 -305
  133. package/build/meta.mjs.map +0 -1
@@ -1,499 +0,0 @@
1
- import { G as GetAbandonedCheckoutRequest$1, p as GetAbandonedCheckoutResponse$1, D as DeleteAbandonedCheckoutRequest$1, q as DeleteAbandonedCheckoutResponse$1, Q as QueryAbandonedCheckoutsRequest$1, v as QueryAbandonedCheckoutsResponse$1, y as SearchAbandonedCheckoutsRequest$1, b as SearchAbandonedCheckoutsResponse$1, U as AddAbandonedCheckoutActivityRequest$1, d as AddAbandonedCheckoutActivityResponse$1, a2 as RedirectToCheckoutRequest$1, R as RawHttpResponse$1 } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-B3pwzRZR.mjs';
2
-
3
- interface AbandonedCheckout {
4
- /**
5
- * Abandoned checkout ID.
6
- * @format GUID
7
- */
8
- id?: string;
9
- /** Date and time the abandoned checkout was created. */
10
- createdDate?: Date | null;
11
- /** Date and time the abandoned checkout was updated. */
12
- updatedDate?: Date | null;
13
- /**
14
- * The associated checkout ID.
15
- * @format GUID
16
- */
17
- checkoutId?: string | null;
18
- /**
19
- * The associated cart ID.
20
- * @format GUID
21
- */
22
- cartId?: string | null;
23
- /** Status of the abandoned checkout. */
24
- status?: Status;
25
- /**
26
- * Language for communication with the buyer. Defaults to the site language.
27
- * For a site that supports multiple languages, this is the language the buyer selected.
28
- */
29
- buyerLanguage?: string | null;
30
- /** Buyer information. */
31
- buyerInfo?: V1BuyerInfo;
32
- /** Contact details. */
33
- contactDetails?: FullAddressContactDetails;
34
- /**
35
- * The store's currency.
36
- * @format CURRENCY
37
- */
38
- currency?: string;
39
- /**
40
- * Currency the buyer used in checkout.
41
- * @format CURRENCY
42
- */
43
- conversionCurrency?: string | null;
44
- /** Total price after discounts, gift cards, and tax. */
45
- totalPrice?: MultiCurrencyPrice;
46
- /**
47
- * List of all automation activities performed by Wix Automations ([SDK](https://dev.wix.com/docs/sdk/backend-modules/automations/) | [REST](https://dev.wix.com/docs/rest/business-management/automations/introduction)) regarding the abandoned checkout.
48
- * Wix Automations updates the `activities` field for each activity in the automation flow. Only relevant if the site owner set up
49
- * [automations in the Dashboard](https://support.wix.com/en/article/wix-automations-creating-an-automation-with-the-new-builder#step-1-create-a-new-automation). Read more about `activities` in
50
- * the Abandoned Checkouts introduction.
51
- */
52
- activities?: Activity[];
53
- /** Date and time the abandoned checkout was recovered. */
54
- checkoutRecoveredDate?: Date | null;
55
- /**
56
- * Checkout URL.
57
- * @format WEB_URL
58
- */
59
- checkoutUrl?: string;
60
- /** Subtotal price of all line items, before discounts and before tax. */
61
- subtotalPrice?: MultiCurrencyPrice;
62
- }
63
- declare enum ActivityType {
64
- /** Not implemented. */
65
- UNKNOWN_TYPE = "UNKNOWN_TYPE",
66
- /** Scheduled. */
67
- SCHEDULED = "SCHEDULED",
68
- /** Email sent. */
69
- EMAIL_SENT = "EMAIL_SENT",
70
- /** Email not sent. */
71
- EMAIL_NOT_SENT = "EMAIL_NOT_SENT",
72
- /** Notification sent. */
73
- NOTIFICATION_SENT = "NOTIFICATION_SENT",
74
- /** Task created. */
75
- TASK_CREATED = "TASK_CREATED"
76
- }
77
- /** Status of the abandoned checkout. */
78
- declare enum Status {
79
- /** Abandoned. */
80
- ABANDONED = "ABANDONED",
81
- /** Recovered. */
82
- RECOVERED = "RECOVERED"
83
- }
84
- /** Buyer information. */
85
- interface V1BuyerInfo extends V1BuyerInfoIdOneOf {
86
- /**
87
- * Visitor ID (if the site visitor is **not** a site member).
88
- * @format GUID
89
- */
90
- visitorId?: string;
91
- /**
92
- * Member ID (if the site visitor is a site member).
93
- * @format GUID
94
- */
95
- memberId?: string;
96
- /**
97
- * User ID (if the site visitor is a site owner or collaborator).
98
- * @format GUID
99
- */
100
- userId?: string;
101
- /**
102
- * Contact ID. For more information, see the Contacts API.
103
- * @format GUID
104
- * @readonly
105
- */
106
- contactId?: string | null;
107
- /**
108
- * Buyer email address.
109
- * @maxLength 50
110
- * @format EMAIL
111
- */
112
- email?: string | null;
113
- }
114
- /** @oneof */
115
- interface V1BuyerInfoIdOneOf {
116
- /**
117
- * Visitor ID (if the site visitor is **not** a site member).
118
- * @format GUID
119
- */
120
- visitorId?: string;
121
- /**
122
- * Member ID (if the site visitor is a site member).
123
- * @format GUID
124
- */
125
- memberId?: string;
126
- /**
127
- * User ID (if the site visitor is a site owner or collaborator).
128
- * @format GUID
129
- */
130
- userId?: string;
131
- }
132
- /** Full contact details for an address */
133
- interface FullAddressContactDetails {
134
- /**
135
- * First name.
136
- * @maxLength 100
137
- */
138
- firstName?: string | null;
139
- /**
140
- * Last name.
141
- * @maxLength 100
142
- */
143
- lastName?: string | null;
144
- /**
145
- * Phone number.
146
- * @format PHONE
147
- */
148
- phone?: string | null;
149
- /**
150
- * Company name.
151
- * @maxLength 1000
152
- */
153
- company?: string | null;
154
- /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
155
- vatId?: VatId;
156
- }
157
- interface VatId {
158
- /** Customer's tax ID. */
159
- id?: string;
160
- /**
161
- * Tax type.
162
- *
163
- * Supported values:
164
- * + `CPF`: for individual tax payers
165
- * + `CNPJ`: for corporations
166
- */
167
- type?: VatType;
168
- }
169
- /** tax info types */
170
- declare enum VatType {
171
- UNSPECIFIED = "UNSPECIFIED",
172
- /** CPF - for individual tax payers. */
173
- CPF = "CPF",
174
- /** CNPJ - for corporations */
175
- CNPJ = "CNPJ"
176
- }
177
- interface MultiCurrencyPrice {
178
- /**
179
- * Amount.
180
- * @decimalValue options { gte:0, lte:1000000000000000 }
181
- */
182
- amount?: string;
183
- /**
184
- * Converted amount.
185
- * @readonly
186
- * @decimalValue options { gte:0, lte:1000000000000000 }
187
- */
188
- convertedAmount?: string;
189
- /**
190
- * Amount formatted with currency symbol.
191
- * @readonly
192
- */
193
- formattedAmount?: string;
194
- /**
195
- * Converted amount formatted with currency symbol.
196
- * @readonly
197
- */
198
- formattedConvertedAmount?: string;
199
- }
200
- interface Activity {
201
- /** Date and time the automation activity was created. */
202
- createdDate?: Date | null;
203
- /** Automation activity type. */
204
- type?: ActivityType;
205
- }
206
- interface GetAbandonedCheckoutRequest {
207
- /**
208
- * Abandoned checkout ID.
209
- * @format GUID
210
- */
211
- abandonedCheckoutId: string;
212
- }
213
- interface GetAbandonedCheckoutResponse {
214
- /** The requested abandoned checkout. */
215
- abandonedCheckout?: AbandonedCheckout;
216
- }
217
- interface DeleteAbandonedCheckoutRequest {
218
- /**
219
- * Id of the abandoned checkout to delete
220
- * @format GUID
221
- */
222
- abandonedCheckoutId: string;
223
- }
224
- interface DeleteAbandonedCheckoutResponse {
225
- }
226
- interface QueryAbandonedCheckoutsRequest {
227
- /** Query options. */
228
- query: QueryV2;
229
- }
230
- interface QueryV2 extends QueryV2PagingMethodOneOf {
231
- /** Paging options to limit and skip the number of items. */
232
- paging?: Paging;
233
- /** 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`. */
234
- cursorPaging?: CursorPaging;
235
- /**
236
- * Filter object.
237
- *
238
- * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
239
- */
240
- filter?: Record<string, any> | null;
241
- /**
242
- * Sort object.
243
- *
244
- * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
245
- */
246
- sort?: Sorting[];
247
- /** 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. */
248
- fields?: string[];
249
- /** 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. */
250
- fieldsets?: string[];
251
- }
252
- /** @oneof */
253
- interface QueryV2PagingMethodOneOf {
254
- /** Paging options to limit and skip the number of items. */
255
- paging?: Paging;
256
- /** 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`. */
257
- cursorPaging?: CursorPaging;
258
- }
259
- interface Sorting {
260
- /**
261
- * Name of the field to sort by.
262
- * @maxLength 512
263
- */
264
- fieldName?: string;
265
- /** Sort order. */
266
- order?: SortOrder;
267
- }
268
- declare enum SortOrder {
269
- ASC = "ASC",
270
- DESC = "DESC"
271
- }
272
- interface Paging {
273
- /** Number of items to load. */
274
- limit?: number | null;
275
- /** Number of items to skip in the current sort order. */
276
- offset?: number | null;
277
- }
278
- interface CursorPaging {
279
- /**
280
- * Maximum number of items to return in the results.
281
- * @max 100
282
- */
283
- limit?: number | null;
284
- /**
285
- * Pointer to the next or previous page in the list of results.
286
- *
287
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
288
- * Not relevant for the first request.
289
- * @maxLength 16000
290
- */
291
- cursor?: string | null;
292
- }
293
- interface QueryAbandonedCheckoutsResponse {
294
- /**
295
- * __Deprecated.__ Use `abandonedCheckouts` instead.
296
- * @deprecated
297
- */
298
- results?: AbandonedCheckout[];
299
- /** List of abandoned checkouts. */
300
- abandonedCheckouts?: AbandonedCheckout[];
301
- /** Details on the paged set of results returned. */
302
- metadata?: PagingMetadataV2;
303
- }
304
- interface PagingMetadataV2 {
305
- /** Number of items returned in the response. */
306
- count?: number | null;
307
- /** Offset that was requested. */
308
- offset?: number | null;
309
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
310
- total?: number | null;
311
- /** Flag that indicates the server failed to calculate the `total` field. */
312
- tooManyToCount?: boolean | null;
313
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
314
- cursors?: Cursors;
315
- }
316
- interface Cursors {
317
- /**
318
- * Cursor string pointing to the next page in the list of results.
319
- * @maxLength 16000
320
- */
321
- next?: string | null;
322
- /**
323
- * Cursor pointing to the previous page in the list of results.
324
- * @maxLength 16000
325
- */
326
- prev?: string | null;
327
- }
328
- interface SearchAbandonedCheckoutsRequest {
329
- /** WQL query expression. */
330
- search?: Search;
331
- }
332
- interface Search extends SearchPagingMethodOneOf {
333
- /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
334
- paging?: CommonPaging;
335
- /** 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' */
336
- cursorPaging?: CommonCursorPaging;
337
- /** 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) */
338
- filter?: Record<string, any> | null;
339
- /**
340
- * Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
341
- * @maxSize 4
342
- */
343
- sort?: CommonSorting[];
344
- /** free text to match in searchable fields */
345
- search?: SearchDetails;
346
- }
347
- /** @oneof */
348
- interface SearchPagingMethodOneOf {
349
- /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
350
- paging?: CommonPaging;
351
- /** 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' */
352
- cursorPaging?: CommonCursorPaging;
353
- }
354
- interface CommonSorting {
355
- /**
356
- * Name of the field to sort by.
357
- * @maxLength 40
358
- */
359
- fieldName?: string;
360
- /** Sort order. */
361
- order?: CommonSortOrder;
362
- }
363
- declare enum CommonSortOrder {
364
- /** Ascending order. */
365
- ASC = "ASC",
366
- /** Descending order. */
367
- DESC = "DESC"
368
- }
369
- interface SearchDetails {
370
- /** boolean search mode */
371
- mode?: Mode;
372
- /**
373
- * search term or expression
374
- * @maxLength 100
375
- */
376
- expression?: string | null;
377
- /**
378
- * fields to search in. if empty - server will search in own default fields
379
- * @maxLength 100
380
- * @maxSize 20
381
- */
382
- fields?: string[];
383
- /** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
384
- fuzzy?: boolean;
385
- }
386
- declare enum Mode {
387
- /** Any */
388
- OR = "OR",
389
- /** All */
390
- AND = "AND"
391
- }
392
- interface CommonPaging {
393
- /**
394
- * Number of items to load.
395
- * @max 100
396
- */
397
- limit?: number | null;
398
- /** Number of items to skip in the current sort order. */
399
- offset?: number | null;
400
- }
401
- interface CommonCursorPaging {
402
- /**
403
- * Maximum number of items to return in the results.
404
- * @max 100
405
- */
406
- limit?: number | null;
407
- /**
408
- * Pointer to the next or previous page in the list of results.
409
- *
410
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
411
- * Not relevant for the first request.
412
- */
413
- cursor?: string | null;
414
- }
415
- interface SearchAbandonedCheckoutsResponse {
416
- /** List of abandoned checkouts. */
417
- abandonedCheckouts?: AbandonedCheckout[];
418
- /** Paging metadata. Contains cursor which can be used in next query. */
419
- pagingMetadata?: CommonPagingMetadataV2;
420
- }
421
- interface CommonPagingMetadataV2 {
422
- /** Number of items returned in the response. */
423
- count?: number | null;
424
- /** Offset that was requested. */
425
- offset?: number | null;
426
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
427
- total?: number | null;
428
- /** Flag that indicates the server failed to calculate the `total` field. */
429
- tooManyToCount?: boolean | null;
430
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
431
- cursors?: CommonCursors;
432
- }
433
- interface CommonCursors {
434
- /** Cursor string pointing to the next page in the list of results. */
435
- next?: string | null;
436
- /** Cursor pointing to the previous page in the list of results. */
437
- prev?: string | null;
438
- }
439
- interface AddAbandonedCheckoutActivityRequest {
440
- /**
441
- * Id of the abandoned checkout to update
442
- * @format GUID
443
- */
444
- abandonedCheckoutId: string | null;
445
- /** The type of the activity to add */
446
- activityType?: ActivityType;
447
- }
448
- interface AddAbandonedCheckoutActivityResponse {
449
- /** The updated abandoned checkout with the added activity */
450
- abandonedCheckout?: AbandonedCheckout;
451
- }
452
- interface RedirectToCheckoutRequest {
453
- /**
454
- * ID of the abandoned checkout.
455
- * @format GUID
456
- */
457
- abandonedCheckoutId: string;
458
- /**
459
- * Metasite ID of the site associated with the abandoned checkout.
460
- * @format GUID
461
- */
462
- metasiteId: string;
463
- }
464
- interface RawHttpResponse {
465
- body?: Uint8Array;
466
- statusCode?: number | null;
467
- headers?: HeadersEntry[];
468
- }
469
- interface HeadersEntry {
470
- key?: string;
471
- value?: string;
472
- }
473
-
474
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
475
- getUrl: (context: any) => string;
476
- httpMethod: K;
477
- path: string;
478
- pathParams: M;
479
- __requestType: T;
480
- __originalRequestType: S;
481
- __responseType: Q;
482
- __originalResponseType: R;
483
- };
484
- declare function getAbandonedCheckout(): __PublicMethodMetaInfo<'GET', {
485
- abandonedCheckoutId: string;
486
- }, GetAbandonedCheckoutRequest$1, GetAbandonedCheckoutRequest, GetAbandonedCheckoutResponse$1, GetAbandonedCheckoutResponse>;
487
- declare function deleteAbandonedCheckout(): __PublicMethodMetaInfo<'DELETE', {
488
- abandonedCheckoutId: string;
489
- }, DeleteAbandonedCheckoutRequest$1, DeleteAbandonedCheckoutRequest, DeleteAbandonedCheckoutResponse$1, DeleteAbandonedCheckoutResponse>;
490
- declare function queryAbandonedCheckouts(): __PublicMethodMetaInfo<'POST', {}, QueryAbandonedCheckoutsRequest$1, QueryAbandonedCheckoutsRequest, QueryAbandonedCheckoutsResponse$1, QueryAbandonedCheckoutsResponse>;
491
- declare function searchAbandonedCheckouts(): __PublicMethodMetaInfo<'POST', {}, SearchAbandonedCheckoutsRequest$1, SearchAbandonedCheckoutsRequest, SearchAbandonedCheckoutsResponse$1, SearchAbandonedCheckoutsResponse>;
492
- declare function addAbandonedCheckoutActivity(): __PublicMethodMetaInfo<'POST', {
493
- abandonedCheckoutId: string;
494
- }, AddAbandonedCheckoutActivityRequest$1, AddAbandonedCheckoutActivityRequest, AddAbandonedCheckoutActivityResponse$1, AddAbandonedCheckoutActivityResponse>;
495
- declare function redirectToCheckout(): __PublicMethodMetaInfo<'GET', {
496
- abandonedCheckoutId: string;
497
- }, RedirectToCheckoutRequest$1, RedirectToCheckoutRequest, RawHttpResponse$1, RawHttpResponse>;
498
-
499
- export { type __PublicMethodMetaInfo, addAbandonedCheckoutActivity, deleteAbandonedCheckout, getAbandonedCheckout, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };