@wix/auto_sdk_crm_pipelines 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.
Files changed (43) hide show
  1. package/build/cjs/crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.d.ts +2265 -0
  2. package/build/cjs/index.d.ts +169 -0
  3. package/build/cjs/index.js +1522 -0
  4. package/build/cjs/index.js.map +1 -0
  5. package/build/cjs/index.typings.d.ts +25 -0
  6. package/build/cjs/index.typings.js +1214 -0
  7. package/build/cjs/index.typings.js.map +1 -0
  8. package/build/cjs/meta.d.ts +1444 -0
  9. package/build/cjs/meta.js +1029 -0
  10. package/build/cjs/meta.js.map +1 -0
  11. package/build/es/crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.d.mts +2265 -0
  12. package/build/es/index.d.mts +169 -0
  13. package/build/es/index.mjs +1465 -0
  14. package/build/es/index.mjs.map +1 -0
  15. package/build/es/index.typings.d.mts +25 -0
  16. package/build/es/index.typings.mjs +1163 -0
  17. package/build/es/index.typings.mjs.map +1 -0
  18. package/build/es/meta.d.mts +1444 -0
  19. package/build/es/meta.mjs +977 -0
  20. package/build/es/meta.mjs.map +1 -0
  21. package/build/es/package.json +3 -0
  22. package/build/internal/cjs/crm-pipelines-v1-card-pipelines.universal-BHszxzqA.d.ts +2303 -0
  23. package/build/internal/cjs/index.d.ts +202 -0
  24. package/build/internal/cjs/index.js +1522 -0
  25. package/build/internal/cjs/index.js.map +1 -0
  26. package/build/internal/cjs/index.typings.d.ts +25 -0
  27. package/build/internal/cjs/index.typings.js +1214 -0
  28. package/build/internal/cjs/index.typings.js.map +1 -0
  29. package/build/internal/cjs/meta.d.ts +1444 -0
  30. package/build/internal/cjs/meta.js +1029 -0
  31. package/build/internal/cjs/meta.js.map +1 -0
  32. package/build/internal/es/crm-pipelines-v1-card-pipelines.universal-BHszxzqA.d.mts +2303 -0
  33. package/build/internal/es/index.d.mts +202 -0
  34. package/build/internal/es/index.mjs +1465 -0
  35. package/build/internal/es/index.mjs.map +1 -0
  36. package/build/internal/es/index.typings.d.mts +25 -0
  37. package/build/internal/es/index.typings.mjs +1163 -0
  38. package/build/internal/es/index.typings.mjs.map +1 -0
  39. package/build/internal/es/meta.d.mts +1444 -0
  40. package/build/internal/es/meta.mjs +977 -0
  41. package/build/internal/es/meta.mjs.map +1 -0
  42. package/meta/package.json +3 -0
  43. package/package.json +54 -0
@@ -0,0 +1,1444 @@
1
+ import { a5 as CreateCardRequest$1, a6 as CreateCardResponse$1, a8 as GetCardRequest$1, a9 as GetCardResponse$1, aa as UpdateCardRequest$1, ab as UpdateCardResponse$1, ac as MoveCardRequest$1, d as MoveCardResponse$1, ad as DeleteCardRequest$1, ae as DeleteCardResponse$1, af as QueryCardsRequest$1, ak as QueryCardsResponse$1, an as SearchCardsRequest$1, g as SearchCardsResponse$1, aY as SearchCardsByStageRequest$1, i as SearchCardsByStageResponse$1, a_ as BulkCreateCardsRequest$1, j as BulkCreateCardsResponse$1, b3 as BulkUpdateCardsRequest$1, m as BulkUpdateCardsResponse$1, b5 as BulkDeleteCardsRequest$1, n as BulkDeleteCardsResponse$1, b7 as BulkUpdateCardTagsRequest$1, p as BulkUpdateCardTagsResponse$1, b9 as BulkUpdateCardTagsByFilterRequest$1, s as BulkUpdateCardTagsByFilterResponse$1 } from './crm-pipelines-v1-card-pipelines.universal-BHszxzqA.mjs';
2
+ import '@wix/sdk-types';
3
+
4
+ /**
5
+ * A business entity representing a deal, lead, opportunity, or project that moves through pipeline stages.
6
+ *
7
+ * Cards contain comprehensive business information including contact details, monetary values,
8
+ * priorities, due dates, and outcomes. They progress through pipeline stages as work advances
9
+ * and can be assigned to team members for ownership and responsibility tracking.
10
+ */
11
+ interface Card {
12
+ /**
13
+ * Card ID.
14
+ * @format GUID
15
+ * @readonly
16
+ */
17
+ id?: string | null;
18
+ /**
19
+ * Revision number, which increments by 1 each time the card is updated.
20
+ * To prevent conflicting changes, the current revision must be passed when updating the card.
21
+ * @readonly
22
+ */
23
+ revision?: string | null;
24
+ /**
25
+ * Date and time the card was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
26
+ * @readonly
27
+ */
28
+ createdDate?: Date | null;
29
+ /**
30
+ * Date and time the card was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
31
+ * @readonly
32
+ */
33
+ updatedDate?: Date | null;
34
+ /**
35
+ * ID of the pipeline containing this card.
36
+ * @format GUID
37
+ * @readonly
38
+ */
39
+ pipelineId?: string | null;
40
+ /**
41
+ * ID of the cards' current.
42
+ * @format GUID
43
+ */
44
+ stageId?: string | null;
45
+ /**
46
+ * Date and time when the card last moved between stagesin [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
47
+ * @readonly
48
+ */
49
+ stageUpdatedDate?: Date | null;
50
+ /**
51
+ * How the card was moved to its current stage.
52
+ * @readonly
53
+ */
54
+ stageUpdateSource?: CardSource;
55
+ /**
56
+ * The Card name.
57
+ * @minLength 1
58
+ * @maxLength 100
59
+ */
60
+ name?: string | null;
61
+ /**
62
+ * Card description.
63
+ * @maxLength 1000
64
+ */
65
+ description?: string | null;
66
+ /**
67
+ * Priority level of the card for task management.
68
+ *
69
+ * Default: `P3_MEDIUM`
70
+ */
71
+ priority?: PriorityWithLiterals;
72
+ /**
73
+ * ID of the Wix user assigned to manage the card.
74
+ * @format GUID
75
+ */
76
+ assigneeId?: string | null;
77
+ /**
78
+ * Date and time when the card is expected to moved to the done stage in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
79
+ * If the card remains active past this date, it becomes overdue.
80
+ */
81
+ dueDate?: Date | null;
82
+ /**
83
+ * Date and time when the card becomes stale based on the stage's stale duration setting in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
84
+ * This date is automatically calculated and updated when the card moves to a new stage.
85
+ * @readonly
86
+ */
87
+ staleDate?: Date | null;
88
+ /** Monetary value assigned to the card. */
89
+ value?: Money;
90
+ /**
91
+ * Final outcome of the card when moved to the done stage.
92
+ *
93
+ * Default: `NONE`
94
+ */
95
+ outcome?: OutcomeWithLiterals;
96
+ /** Primary contact associated with the card. */
97
+ mainContact?: ContactInfo;
98
+ /**
99
+ * Secondary contacts associated with the card.
100
+ * @maxSize 10
101
+ */
102
+ additionalContacts?: ContactInfo[];
103
+ /**
104
+ * Other entities linked to the card.
105
+ *
106
+ * For example, orders, invoices, activities, or other relevant entities.
107
+ * @maxSize 20
108
+ */
109
+ linkedEntities?: LinkedEntity[];
110
+ /** Extended fields data. */
111
+ extendedFields?: ExtendedFields;
112
+ /** Tags for organizing and categorizing the card. */
113
+ tags?: PrivateTags;
114
+ }
115
+ interface CardSource {
116
+ /**
117
+ * ID of the Wix user who last moved the card.
118
+ * @format GUID
119
+ * @readonly
120
+ */
121
+ userId?: string | null;
122
+ /**
123
+ * ID of the app that last moved the card.
124
+ * @format GUID
125
+ * @readonly
126
+ */
127
+ appId?: string | null;
128
+ }
129
+ declare enum Priority {
130
+ /** Urgent priority. Card requires immediate attention. */
131
+ P1_URGENT = "P1_URGENT",
132
+ /** High priority. Card is important and should be addressed promptly. */
133
+ P2_HIGH = "P2_HIGH",
134
+ /** Medium priority. Card should be completed within regular workflow timelines. */
135
+ P3_MEDIUM = "P3_MEDIUM",
136
+ /** Low priority. Card can be addressed when time and resources allow. */
137
+ P4_LOW = "P4_LOW"
138
+ }
139
+ /** @enumType */
140
+ type PriorityWithLiterals = Priority | 'P1_URGENT' | 'P2_HIGH' | 'P3_MEDIUM' | 'P4_LOW';
141
+ /**
142
+ * Monetary amount with currency information.
143
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
144
+ */
145
+ interface Money {
146
+ /**
147
+ * Monetary amount. For example, `"3.99"`, or `"-4.99"` for a negative amount.
148
+ * @format DECIMAL_VALUE
149
+ * @decimalValue options { maxScale:2 }
150
+ */
151
+ value?: string;
152
+ /**
153
+ * Three-letter currency code in ISO-4217 format.
154
+ * Currency is the same as the pipeline currency and is immutable.
155
+ * @format CURRENCY
156
+ * @readonly
157
+ */
158
+ currency?: string;
159
+ }
160
+ declare enum Outcome {
161
+ /** No specific outcome. The card reached the final stage but hasn't been specified as successful or unsuccessful. */
162
+ NONE = "NONE",
163
+ /** Successful outcome. The card achieved its intended goal. */
164
+ WON = "WON",
165
+ /** Unsuccessful outcome. The card didn't achieve its intended goal. */
166
+ LOST = "LOST"
167
+ }
168
+ /** @enumType */
169
+ type OutcomeWithLiterals = Outcome | 'NONE' | 'WON' | 'LOST';
170
+ interface ContactInfo {
171
+ /**
172
+ * ID of the contact associated with the card.
173
+ * @format GUID
174
+ */
175
+ contactId?: string | null;
176
+ /**
177
+ * Contact's first name.
178
+ * @readonly
179
+ * @maxLength 50
180
+ */
181
+ firstName?: string | null;
182
+ /**
183
+ * Contact's last name.
184
+ * @readonly
185
+ * @maxLength 50
186
+ */
187
+ lastName?: string | null;
188
+ /**
189
+ * Contact's primary email.
190
+ * @format EMAIL
191
+ * @maxLength 320
192
+ * @readonly
193
+ */
194
+ email?: string | null;
195
+ /**
196
+ * Contact's primary phone.
197
+ * @minLength 1
198
+ * @maxLength 50
199
+ * @readonly
200
+ */
201
+ phone?: string | null;
202
+ }
203
+ interface LinkedEntity {
204
+ /**
205
+ * ID of the linked entity.
206
+ * @format GUID
207
+ */
208
+ entityId?: string;
209
+ /**
210
+ * Linked entity type.
211
+ *
212
+ * Identifies the type of entity associated with this card such as a contact submitted by a form, or an invoice sent to close a deal.
213
+ * You can store any value that helps identify the entity type.
214
+ * Use the item selection provider key to make the item selectable by the client.
215
+ * For example, an invoice uses "13ee94c1-b635-8505-3391-97919052c16f_InvoiceSelectionProvider".
216
+ * @minLength 1
217
+ * @maxLength 100
218
+ */
219
+ referencedEntity?: string;
220
+ /**
221
+ * Date and time the entity was linked to the card in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
222
+ * @readonly
223
+ */
224
+ linkedDate?: Date | null;
225
+ }
226
+ interface ExtendedFields {
227
+ /**
228
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
229
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
230
+ *
231
+ * You can only access fields for which you have the appropriate permissions.
232
+ *
233
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
234
+ */
235
+ namespaces?: Record<string, Record<string, any>>;
236
+ }
237
+ interface PrivateTags {
238
+ /** Tags that are exposed to anyone with access to the entity, including site members and visitors. */
239
+ privateTags?: TagList;
240
+ }
241
+ interface TagList {
242
+ /**
243
+ * List of tag IDs.
244
+ * @maxSize 100
245
+ * @maxLength 5
246
+ */
247
+ tagIds?: string[];
248
+ }
249
+ interface CardMoved {
250
+ /** The card that moved. */
251
+ card?: Card;
252
+ /**
253
+ * The ID of the stage to which the card was moved.
254
+ * @format GUID
255
+ */
256
+ targetStageId?: string;
257
+ /**
258
+ * The ID of the stage from which the card was moved.
259
+ * @format GUID
260
+ */
261
+ sourceStageId?: string;
262
+ }
263
+ interface CardAssigned {
264
+ /** The card that is assigned. */
265
+ card?: Card;
266
+ }
267
+ interface CardOverdue {
268
+ /** The card that is overdue. */
269
+ card?: Card;
270
+ }
271
+ interface CardStale {
272
+ /** The card that is stale. */
273
+ card?: Card;
274
+ }
275
+ interface CreateCardRequest {
276
+ /** Card to create. */
277
+ card?: Card;
278
+ }
279
+ interface CreateCardResponse {
280
+ /** Created card. */
281
+ card?: Card;
282
+ }
283
+ interface ContactsNotFound {
284
+ /**
285
+ * The contact IDs that were not found.
286
+ * @format GUID
287
+ * @minSize 1
288
+ * @maxSize 11
289
+ */
290
+ contactIds?: string[] | null;
291
+ }
292
+ interface GetCardRequest {
293
+ /**
294
+ * Card ID to retrieve.
295
+ * @format GUID
296
+ */
297
+ cardId: string;
298
+ }
299
+ interface GetCardResponse {
300
+ /** Retrieved card. */
301
+ card?: Card;
302
+ }
303
+ interface UpdateCardRequest {
304
+ /** Card to update, may be partial. */
305
+ card?: Card;
306
+ }
307
+ interface UpdateCardResponse {
308
+ /** Updated card. */
309
+ card?: Card;
310
+ }
311
+ interface MoveCardRequest {
312
+ /**
313
+ * Card ID to move.
314
+ * @format GUID
315
+ */
316
+ cardId: string;
317
+ /**
318
+ * ID of the stage to move the card to.
319
+ * @format GUID
320
+ */
321
+ stageId: string;
322
+ /** Revision of the card to move. Moving the card changes the `stageId` on the card and increases `revision` by 1. */
323
+ revision: string | null;
324
+ /** New card outcome. */
325
+ outcome?: OutcomeWithLiterals;
326
+ }
327
+ interface MoveCardResponse {
328
+ /** Updated card. */
329
+ card?: Card;
330
+ }
331
+ interface DeleteCardRequest {
332
+ /**
333
+ * Card ID to delete.
334
+ * @format GUID
335
+ */
336
+ cardId: string;
337
+ }
338
+ interface DeleteCardResponse {
339
+ }
340
+ interface QueryCardsRequest {
341
+ /** Query options. */
342
+ query?: CursorQuery;
343
+ }
344
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
345
+ /**
346
+ * Cursor paging options.
347
+ *
348
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
349
+ */
350
+ cursorPaging?: CursorPaging;
351
+ /**
352
+ * Filter object.
353
+ *
354
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
355
+ */
356
+ filter?: Record<string, any> | null;
357
+ /**
358
+ * Sort object.
359
+ *
360
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
361
+ * @maxSize 5
362
+ */
363
+ sort?: Sorting[];
364
+ }
365
+ /** @oneof */
366
+ interface CursorQueryPagingMethodOneOf {
367
+ /**
368
+ * Cursor paging options.
369
+ *
370
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
371
+ */
372
+ cursorPaging?: CursorPaging;
373
+ }
374
+ interface Sorting {
375
+ /**
376
+ * Name of the field to sort by.
377
+ * @maxLength 512
378
+ */
379
+ fieldName?: string;
380
+ /** Sort order. */
381
+ order?: SortOrderWithLiterals;
382
+ }
383
+ declare enum SortOrder {
384
+ ASC = "ASC",
385
+ DESC = "DESC"
386
+ }
387
+ /** @enumType */
388
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
389
+ interface CursorPaging {
390
+ /**
391
+ * Maximum number of items to return in the results. Default is 50.
392
+ * @max 100
393
+ */
394
+ limit?: number | null;
395
+ /**
396
+ * Pointer to the next or previous page in the list of results.
397
+ *
398
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
399
+ * Not relevant for the first request.
400
+ * @maxLength 16000
401
+ */
402
+ cursor?: string | null;
403
+ }
404
+ interface QueryCardsResponse {
405
+ /** List of cards. */
406
+ cards?: Card[];
407
+ /** Paging metadata. */
408
+ pagingMetadata?: CursorPagingMetadata;
409
+ }
410
+ interface CursorPagingMetadata {
411
+ /** Number of items returned in current page. */
412
+ count?: number | null;
413
+ /** Cursor strings that point to the next page, previous page, or both. */
414
+ cursors?: Cursors;
415
+ /**
416
+ * Whether there are more pages to retrieve following the current page.
417
+ *
418
+ * + `true`: Another page of results can be retrieved.
419
+ * + `false`: This is the last page.
420
+ */
421
+ hasNext?: boolean | null;
422
+ }
423
+ interface Cursors {
424
+ /**
425
+ * Cursor string pointing to the next page in the list of results.
426
+ * @maxLength 16000
427
+ */
428
+ next?: string | null;
429
+ /**
430
+ * Cursor pointing to the previous page in the list of results.
431
+ * @maxLength 16000
432
+ */
433
+ prev?: string | null;
434
+ }
435
+ interface SearchCardsRequest {
436
+ /** Search options. */
437
+ search?: CursorSearch;
438
+ /**
439
+ * Specifies how contact names should be formatted and ordered when filtering, sorting, or searching cards by contact names.
440
+ * By default, names are ordered by first name followed by last name.
441
+ * When set to `"BY_LAST_NAME"`, names are ordered by last name followed by first name.
442
+ */
443
+ nameFormat?: NameFormatWithLiterals;
444
+ }
445
+ interface CursorSearch extends CursorSearchPagingMethodOneOf {
446
+ /**
447
+ * Cursor paging options.
448
+ *
449
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
450
+ */
451
+ cursorPaging?: CursorPaging;
452
+ /**
453
+ * Filter object.
454
+ *
455
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
456
+ */
457
+ filter?: Record<string, any> | null;
458
+ /**
459
+ * List of sort objects.
460
+ *
461
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
462
+ * @maxSize 10
463
+ */
464
+ sort?: Sorting[];
465
+ /**
466
+ * Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
467
+ * @maxSize 10
468
+ */
469
+ aggregations?: Aggregation[];
470
+ /** Free text to match in searchable fields. */
471
+ search?: SearchDetails;
472
+ /**
473
+ * UTC offset or IANA time zone. Valid values are
474
+ * ISO 8601 UTC offsets, such as +02:00 or -06:00,
475
+ * and IANA time zone IDs, such as Europe/Rome.
476
+ *
477
+ * Affects all filters and aggregations returned values.
478
+ * You may override this behavior in a specific filter by providing
479
+ * timestamps including time zone. For example, `"2023-12-20T10:52:34.795Z"`.
480
+ * @maxLength 50
481
+ */
482
+ timeZone?: string | null;
483
+ }
484
+ /** @oneof */
485
+ interface CursorSearchPagingMethodOneOf {
486
+ /**
487
+ * Cursor paging options.
488
+ *
489
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
490
+ */
491
+ cursorPaging?: CursorPaging;
492
+ }
493
+ interface Aggregation extends AggregationKindOneOf {
494
+ /** Value aggregation. */
495
+ value?: ValueAggregation;
496
+ /** Range aggregation. */
497
+ range?: RangeAggregation;
498
+ /** Scalar aggregation. */
499
+ scalar?: ScalarAggregation;
500
+ /** Date histogram aggregation. */
501
+ dateHistogram?: DateHistogramAggregation;
502
+ /** Nested aggregation. */
503
+ nested?: NestedAggregation;
504
+ /**
505
+ * User-defined name of aggregation, should be unique, will appear in aggregation results.
506
+ * @maxLength 100
507
+ */
508
+ name?: string | null;
509
+ /** Type of aggregation, client must provide matching aggregation field below. */
510
+ type?: AggregationTypeWithLiterals;
511
+ /**
512
+ * Field to aggregate by, use dot notation to specify json path.
513
+ * @maxLength 200
514
+ */
515
+ fieldPath?: string;
516
+ }
517
+ /** @oneof */
518
+ interface AggregationKindOneOf {
519
+ /** Value aggregation. */
520
+ value?: ValueAggregation;
521
+ /** Range aggregation. */
522
+ range?: RangeAggregation;
523
+ /** Scalar aggregation. */
524
+ scalar?: ScalarAggregation;
525
+ /** Date histogram aggregation. */
526
+ dateHistogram?: DateHistogramAggregation;
527
+ /** Nested aggregation. */
528
+ nested?: NestedAggregation;
529
+ }
530
+ interface RangeBucket {
531
+ /** Inclusive lower bound of the range. Required if `to` is not provided. */
532
+ from?: number | null;
533
+ /** Exclusive upper bound of the range. Required if `from` is not provided. */
534
+ to?: number | null;
535
+ }
536
+ declare enum SortType {
537
+ /** Sort by number of matches. */
538
+ COUNT = "COUNT",
539
+ /** Sort by value of the field alphabetically. */
540
+ VALUE = "VALUE"
541
+ }
542
+ /** @enumType */
543
+ type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';
544
+ declare enum SortDirection {
545
+ /** Sort in descending order. */
546
+ DESC = "DESC",
547
+ /** Sort in ascending order. */
548
+ ASC = "ASC"
549
+ }
550
+ /** @enumType */
551
+ type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';
552
+ declare enum MissingValues {
553
+ /** Exclude missing values from the aggregation results. */
554
+ EXCLUDE = "EXCLUDE",
555
+ /** Include missing values in the aggregation results. */
556
+ INCLUDE = "INCLUDE"
557
+ }
558
+ /** @enumType */
559
+ type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
560
+ interface IncludeMissingValuesOptions {
561
+ /**
562
+ * Specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
563
+ * @maxLength 20
564
+ */
565
+ addToBucket?: string;
566
+ }
567
+ declare enum ScalarType {
568
+ /** Count of distinct values. */
569
+ COUNT_DISTINCT = "COUNT_DISTINCT",
570
+ /** Minimum value. */
571
+ MIN = "MIN",
572
+ /** Maximum value. */
573
+ MAX = "MAX"
574
+ }
575
+ /** @enumType */
576
+ type ScalarTypeWithLiterals = ScalarType | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
577
+ interface ValueAggregation extends ValueAggregationOptionsOneOf {
578
+ /** Options for including missing values. */
579
+ includeOptions?: IncludeMissingValuesOptions;
580
+ /** Whether to sort by number of matches or value of the field. */
581
+ sortType?: SortTypeWithLiterals;
582
+ /** Whether to sort in ascending or descending order. */
583
+ sortDirection?: SortDirectionWithLiterals;
584
+ /** How many aggregations to return. Can be between 1 and 250. 10 is the default. */
585
+ limit?: number | null;
586
+ /** Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`. */
587
+ missingValues?: MissingValuesWithLiterals;
588
+ }
589
+ /** @oneof */
590
+ interface ValueAggregationOptionsOneOf {
591
+ /** Options for including missing values. */
592
+ includeOptions?: IncludeMissingValuesOptions;
593
+ }
594
+ declare enum NestedAggregationType {
595
+ /** An aggregation where result buckets are dynamically built - one per unique value. */
596
+ VALUE = "VALUE",
597
+ /** An aggregation, where user can define set of ranges - each representing a bucket. */
598
+ RANGE = "RANGE",
599
+ /** A single-value metric aggregation. For example, min, max, sum, avg. */
600
+ SCALAR = "SCALAR",
601
+ /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */
602
+ DATE_HISTOGRAM = "DATE_HISTOGRAM"
603
+ }
604
+ /** @enumType */
605
+ type NestedAggregationTypeWithLiterals = NestedAggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
606
+ interface RangeAggregation {
607
+ /**
608
+ * List of range buckets, where during aggregation each entity will be placed in the first bucket its value falls into, based on the provided range bounds.
609
+ * @maxSize 50
610
+ */
611
+ buckets?: RangeBucket[];
612
+ }
613
+ interface ScalarAggregation {
614
+ /** Define the operator for the scalar aggregation. */
615
+ type?: ScalarTypeWithLiterals;
616
+ }
617
+ interface DateHistogramAggregation {
618
+ /** Interval for date histogram aggregation. */
619
+ interval?: IntervalWithLiterals;
620
+ }
621
+ declare enum Interval {
622
+ /** Yearly interval */
623
+ YEAR = "YEAR",
624
+ /** Monthly interval */
625
+ MONTH = "MONTH",
626
+ /** Weekly interval */
627
+ WEEK = "WEEK",
628
+ /** Daily interval */
629
+ DAY = "DAY",
630
+ /** Hourly interval */
631
+ HOUR = "HOUR",
632
+ /** Minute interval */
633
+ MINUTE = "MINUTE",
634
+ /** Second interval */
635
+ SECOND = "SECOND"
636
+ }
637
+ /** @enumType */
638
+ type IntervalWithLiterals = Interval | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
639
+ interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
640
+ /** Value aggregation. */
641
+ value?: ValueAggregation;
642
+ /** Range aggregation. */
643
+ range?: RangeAggregation;
644
+ /** Scalar aggregation. */
645
+ scalar?: ScalarAggregation;
646
+ /** Date histogram aggregation. */
647
+ dateHistogram?: DateHistogramAggregation;
648
+ /**
649
+ * User-defined name of aggregation, should be unique, will appear in aggregation results.
650
+ * @maxLength 100
651
+ */
652
+ name?: string | null;
653
+ /** Type of aggregation, client must provide matching aggregation field below. */
654
+ type?: NestedAggregationTypeWithLiterals;
655
+ /**
656
+ * Field to aggregate by, use dot notation to specify json path.
657
+ * @maxLength 200
658
+ */
659
+ fieldPath?: string;
660
+ }
661
+ /** @oneof */
662
+ interface NestedAggregationItemKindOneOf {
663
+ /** Value aggregation. */
664
+ value?: ValueAggregation;
665
+ /** Range aggregation. */
666
+ range?: RangeAggregation;
667
+ /** Scalar aggregation. */
668
+ scalar?: ScalarAggregation;
669
+ /** Date histogram aggregation. */
670
+ dateHistogram?: DateHistogramAggregation;
671
+ }
672
+ declare enum AggregationType {
673
+ /** An aggregation where result buckets are dynamically built - one per unique value. */
674
+ VALUE = "VALUE",
675
+ /** An aggregation, where user can define set of ranges - each representing a bucket. */
676
+ RANGE = "RANGE",
677
+ /** A single-value metric aggregation. For example, min, max, sum, avg. */
678
+ SCALAR = "SCALAR",
679
+ /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
680
+ DATE_HISTOGRAM = "DATE_HISTOGRAM",
681
+ /** Multi-level aggregation, where each next aggregation is nested within previous one. */
682
+ NESTED = "NESTED"
683
+ }
684
+ /** @enumType */
685
+ type AggregationTypeWithLiterals = AggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
686
+ /** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */
687
+ interface NestedAggregation {
688
+ /**
689
+ * Flattened list of aggregations, where each next aggregation is nested within previous one.
690
+ * @minSize 2
691
+ * @maxSize 3
692
+ */
693
+ nestedAggregations?: NestedAggregationItem[];
694
+ }
695
+ interface SearchDetails {
696
+ /** Defines how separate search terms in `expression` are combined. */
697
+ mode?: ModeWithLiterals;
698
+ /**
699
+ * Search term or expression.
700
+ * @maxLength 100
701
+ */
702
+ expression?: string | null;
703
+ /**
704
+ * Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.
705
+ * @maxLength 200
706
+ * @maxSize 20
707
+ */
708
+ fields?: string[];
709
+ /** Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). */
710
+ fuzzy?: boolean;
711
+ }
712
+ declare enum Mode {
713
+ /** Any of the search terms must be present. */
714
+ OR = "OR",
715
+ /** All search terms must be present. */
716
+ AND = "AND"
717
+ }
718
+ /** @enumType */
719
+ type ModeWithLiterals = Mode | 'OR' | 'AND';
720
+ /** Name format types for sorting and searching. */
721
+ declare enum NameFormat {
722
+ /** Names are ordered by first name followed by last name. */
723
+ BY_FIRST_NAME = "BY_FIRST_NAME",
724
+ /** Names are ordered by last name followed by first name. */
725
+ BY_LAST_NAME = "BY_LAST_NAME"
726
+ }
727
+ /** @enumType */
728
+ type NameFormatWithLiterals = NameFormat | 'BY_FIRST_NAME' | 'BY_LAST_NAME';
729
+ interface SearchCardsResponse {
730
+ /** List of cards. */
731
+ cards?: Card[];
732
+ /** Paging metadata. */
733
+ pagingMetadata?: CursorPagingMetadata;
734
+ /** Aggregation data. */
735
+ aggregationData?: AggregationData;
736
+ }
737
+ interface AggregationData {
738
+ /**
739
+ * key = aggregation name (as derived from search request).
740
+ * @maxSize 10000
741
+ */
742
+ results?: AggregationResults[];
743
+ }
744
+ interface ValueAggregationResult {
745
+ /**
746
+ * Value of the field.
747
+ * @maxLength 100
748
+ */
749
+ value?: string;
750
+ /** Count of entities with this value. */
751
+ count?: number;
752
+ }
753
+ interface RangeAggregationResult {
754
+ /** Inclusive lower bound of the range. */
755
+ from?: number | null;
756
+ /** Exclusive upper bound of the range. */
757
+ to?: number | null;
758
+ /** Count of entities in this range. */
759
+ count?: number;
760
+ }
761
+ interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
762
+ /** Value aggregation results. */
763
+ values?: ValueResults;
764
+ /** Range aggregation results. */
765
+ ranges?: RangeResults;
766
+ /** Scalar aggregation results. */
767
+ scalar?: AggregationResultsScalarResult;
768
+ /**
769
+ * User-defined name of aggregation, matches the one provided in request.
770
+ * @maxLength 100
771
+ */
772
+ name?: string;
773
+ /** Type of aggregation that matches result. */
774
+ type?: AggregationTypeWithLiterals;
775
+ /**
776
+ * Field to aggregate by, matches the one provided in request.
777
+ * @maxLength 200
778
+ */
779
+ fieldPath?: string;
780
+ }
781
+ /** @oneof */
782
+ interface NestedAggregationResultsResultOneOf {
783
+ /** Value aggregation results. */
784
+ values?: ValueResults;
785
+ /** Range aggregation results. */
786
+ ranges?: RangeResults;
787
+ /** Scalar aggregation results. */
788
+ scalar?: AggregationResultsScalarResult;
789
+ }
790
+ interface ValueResults {
791
+ /**
792
+ * List of value aggregations.
793
+ * @maxSize 250
794
+ */
795
+ results?: ValueAggregationResult[];
796
+ }
797
+ interface RangeResults {
798
+ /**
799
+ * List of ranges returned in same order as requested.
800
+ * @maxSize 50
801
+ */
802
+ results?: RangeAggregationResult[];
803
+ }
804
+ interface AggregationResultsScalarResult {
805
+ /** Type of scalar aggregation. */
806
+ type?: ScalarTypeWithLiterals;
807
+ /** Value of the scalar aggregation. */
808
+ value?: number;
809
+ }
810
+ interface NestedValueAggregationResult {
811
+ /**
812
+ * Value of the field.
813
+ * @maxLength 1000
814
+ */
815
+ value?: string;
816
+ /** Nested aggregations. */
817
+ nestedResults?: NestedAggregationResults;
818
+ }
819
+ interface ValueResult {
820
+ /**
821
+ * Value of the field.
822
+ * @maxLength 1000
823
+ */
824
+ value?: string;
825
+ /** Count of entities with this value. */
826
+ count?: number | null;
827
+ }
828
+ interface RangeResult {
829
+ /** Inclusive lower bound of the range. */
830
+ from?: number | null;
831
+ /** Exclusive upper bound of the range. */
832
+ to?: number | null;
833
+ /** Count of entities in this range. */
834
+ count?: number | null;
835
+ }
836
+ interface ScalarResult {
837
+ /** Value of the scalar aggregation. */
838
+ value?: number;
839
+ }
840
+ interface NestedResultValue extends NestedResultValueResultOneOf {
841
+ /** Value aggregation result. */
842
+ value?: ValueResult;
843
+ /** Range aggregation result. */
844
+ range?: RangeResult;
845
+ /** Scalar aggregation result. */
846
+ scalar?: ScalarResult;
847
+ /** Date histogram aggregation result. */
848
+ dateHistogram?: ValueResult;
849
+ }
850
+ /** @oneof */
851
+ interface NestedResultValueResultOneOf {
852
+ /** Value aggregation result. */
853
+ value?: ValueResult;
854
+ /** Range aggregation result. */
855
+ range?: RangeResult;
856
+ /** Scalar aggregation result. */
857
+ scalar?: ScalarResult;
858
+ /** Date histogram aggregation result. */
859
+ dateHistogram?: ValueResult;
860
+ }
861
+ interface Results {
862
+ /** List of nested aggregations. */
863
+ results?: Record<string, NestedResultValue>;
864
+ }
865
+ interface DateHistogramResult {
866
+ /**
867
+ * Date in ISO 8601 format.
868
+ * @maxLength 100
869
+ */
870
+ value?: string;
871
+ /** Count of documents in the bucket. */
872
+ count?: number;
873
+ }
874
+ interface GroupByValueResults {
875
+ /**
876
+ * List of value aggregations.
877
+ * @maxSize 1000
878
+ */
879
+ results?: NestedValueAggregationResult[];
880
+ }
881
+ interface DateHistogramResults {
882
+ /**
883
+ * List of date histogram aggregations.
884
+ * @maxSize 200
885
+ */
886
+ results?: DateHistogramResult[];
887
+ }
888
+ /**
889
+ * Results of `NESTED` aggregation type in a flattened form.
890
+ * Aggregations in resulting array are keyed by requested aggregation `name`.
891
+ */
892
+ interface NestedResults {
893
+ /**
894
+ * List of nested aggregations.
895
+ * @maxSize 1000
896
+ */
897
+ results?: Results[];
898
+ }
899
+ interface AggregationResults extends AggregationResultsResultOneOf {
900
+ /** Value aggregation results. */
901
+ values?: ValueResults;
902
+ /** Range aggregation results. */
903
+ ranges?: RangeResults;
904
+ /** Scalar aggregation results. */
905
+ scalar?: AggregationResultsScalarResult;
906
+ /** Group by value aggregation results. */
907
+ groupedByValue?: GroupByValueResults;
908
+ /** Date histogram aggregation results. */
909
+ dateHistogram?: DateHistogramResults;
910
+ /** Nested aggregation results. */
911
+ nested?: NestedResults;
912
+ /**
913
+ * User-defined name of aggregation as derived from search request.
914
+ * @maxLength 100
915
+ */
916
+ name?: string;
917
+ /** Type of aggregation that must match provided kind as derived from search request. */
918
+ type?: AggregationTypeWithLiterals;
919
+ /**
920
+ * Field to aggregate by as derived from search request.
921
+ * @maxLength 200
922
+ */
923
+ fieldPath?: string;
924
+ }
925
+ /** @oneof */
926
+ interface AggregationResultsResultOneOf {
927
+ /** Value aggregation results. */
928
+ values?: ValueResults;
929
+ /** Range aggregation results. */
930
+ ranges?: RangeResults;
931
+ /** Scalar aggregation results. */
932
+ scalar?: AggregationResultsScalarResult;
933
+ /** Group by value aggregation results. */
934
+ groupedByValue?: GroupByValueResults;
935
+ /** Date histogram aggregation results. */
936
+ dateHistogram?: DateHistogramResults;
937
+ /** Nested aggregation results. */
938
+ nested?: NestedResults;
939
+ }
940
+ interface SearchCardsByStageRequest {
941
+ /**
942
+ * ID of the pipeline in which to look for cards.
943
+ * @format GUID
944
+ */
945
+ pipelineId: string | null;
946
+ /**
947
+ * Stage IDs to filter by.
948
+ * @format GUID
949
+ * @minSize 1
950
+ * @maxSize 35
951
+ */
952
+ stageIds: string[];
953
+ /** Search options. `search.cursorPaging.cursor` is not supported in this request and is ignored. */
954
+ search?: CursorSearch;
955
+ /**
956
+ * Specifies how contact names should be formatted and ordered when filtering, sorting, or searching cards by contact names.
957
+ * By default, names are ordered by first name followed by last name.
958
+ * When set to `"BY_LAST_NAME"`, names are ordered by last name followed by first name.
959
+ */
960
+ nameFormat?: NameFormatWithLiterals;
961
+ }
962
+ interface SearchCardsByStageResponse {
963
+ /**
964
+ * List of card results matching the filter and search.
965
+ * @minSize 1
966
+ * @maxSize 30
967
+ */
968
+ results?: BulkSearchCardsResult[];
969
+ }
970
+ interface BulkSearchCardsResult {
971
+ /**
972
+ * ID of the pipeline containing the cards.
973
+ * @format GUID
974
+ */
975
+ pipelineId?: string | null;
976
+ /**
977
+ * ID of the stage containing the cards.
978
+ * @format GUID
979
+ */
980
+ stageId?: string | null;
981
+ /** List of cards. */
982
+ cards?: Card[];
983
+ /** Paging metadata. */
984
+ pagingMetadata?: CursorPagingMetadata;
985
+ /** Aggregation data. */
986
+ aggregationData?: AggregationData;
987
+ }
988
+ interface BulkCreateCardsRequest {
989
+ /**
990
+ * List of cards to create.
991
+ * @minSize 1
992
+ * @maxSize 100
993
+ */
994
+ cards: Card[];
995
+ /**
996
+ * Whether to return the created cards in the response.
997
+ *
998
+ * Default: `false`
999
+ */
1000
+ returnEntity?: boolean;
1001
+ }
1002
+ interface BulkCreateCardsResponse {
1003
+ /**
1004
+ * List of cards created by the bulk operation.
1005
+ * @minSize 1
1006
+ * @maxSize 100
1007
+ */
1008
+ results?: BulkCardResult[];
1009
+ /** Bulk operation metadata. */
1010
+ bulkActionMetadata?: BulkActionMetadata;
1011
+ }
1012
+ interface ItemMetadata {
1013
+ /**
1014
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
1015
+ * @format GUID
1016
+ */
1017
+ id?: string | null;
1018
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
1019
+ originalIndex?: number;
1020
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
1021
+ success?: boolean;
1022
+ /** Details about the error in case of failure. */
1023
+ error?: ApplicationError;
1024
+ }
1025
+ interface ApplicationError {
1026
+ /** Error code. */
1027
+ code?: string;
1028
+ /** Description of the error. */
1029
+ description?: string;
1030
+ /** Data related to the error. */
1031
+ data?: Record<string, any> | null;
1032
+ }
1033
+ interface BulkCardResult {
1034
+ /** Information about the card that was created. */
1035
+ itemMetadata?: ItemMetadata;
1036
+ /**
1037
+ * Created card.
1038
+ *
1039
+ * Only returned if `returnEntity` was set to `true` in the request.
1040
+ */
1041
+ item?: Card;
1042
+ }
1043
+ interface BulkActionMetadata {
1044
+ /** Number of items that were successfully processed. */
1045
+ totalSuccesses?: number;
1046
+ /** Number of items that couldn't be processed. */
1047
+ totalFailures?: number;
1048
+ /** Number of failures without details because detailed failure threshold was exceeded. */
1049
+ undetailedFailures?: number;
1050
+ }
1051
+ interface BulkUpdateCardsRequest {
1052
+ /**
1053
+ * List of cards to update.
1054
+ * @minSize 1
1055
+ * @maxSize 100
1056
+ * @readonly
1057
+ */
1058
+ cards: MaskedCard[];
1059
+ /**
1060
+ * Whether to return the updated cards in the response.
1061
+ *
1062
+ * Default: `false`
1063
+ */
1064
+ returnEntity?: boolean;
1065
+ }
1066
+ interface MaskedCard {
1067
+ /**
1068
+ * Card to update, may be partial.
1069
+ * @readonly
1070
+ */
1071
+ card?: Card;
1072
+ }
1073
+ interface BulkUpdateCardsResponse {
1074
+ /**
1075
+ * List of cards updated by the bulk operation.
1076
+ * @minSize 1
1077
+ * @maxSize 100
1078
+ */
1079
+ results?: BulkUpdateCardsResponseBulkCardResult[];
1080
+ /** Bulk operation metadata. */
1081
+ bulkActionMetadata?: BulkActionMetadata;
1082
+ }
1083
+ interface BulkUpdateCardsResponseBulkCardResult {
1084
+ /** Information about the card that was updated. */
1085
+ itemMetadata?: ItemMetadata;
1086
+ /**
1087
+ * Updated card.
1088
+ *
1089
+ * Only returned if `returnEntity` was set to `true` in the request.
1090
+ */
1091
+ item?: Card;
1092
+ }
1093
+ interface BulkDeleteCardsRequest {
1094
+ /**
1095
+ * Card IDs to delete.
1096
+ * @minSize 1
1097
+ * @maxSize 100
1098
+ * @format GUID
1099
+ */
1100
+ cardIds: string[];
1101
+ }
1102
+ interface BulkDeleteCardsResponse {
1103
+ /**
1104
+ * List of cards deleted by the bulk operation.
1105
+ * @minSize 1
1106
+ * @maxSize 100
1107
+ */
1108
+ results?: BulkDeleteCardsResponseBulkCardResult[];
1109
+ /** Bulk operation metadata. */
1110
+ bulkActionMetadata?: BulkActionMetadata;
1111
+ }
1112
+ interface BulkDeleteCardsResponseBulkCardResult {
1113
+ /** Information about the card that was deleted. */
1114
+ itemMetadata?: ItemMetadata;
1115
+ }
1116
+ interface BulkUpdateCardTagsRequest {
1117
+ /**
1118
+ * List of card IDs whose tags will be updated.
1119
+ * @minSize 1
1120
+ * @maxSize 100
1121
+ * @format GUID
1122
+ */
1123
+ cardIds: string[];
1124
+ /** List of tags to assign. */
1125
+ assignTags?: PrivateTags;
1126
+ /** List of tags to unassign. */
1127
+ unassignTags?: PrivateTags;
1128
+ /**
1129
+ * Whether to return the updated cards in the response.
1130
+ *
1131
+ * Default: `false`
1132
+ */
1133
+ returnEntity?: boolean;
1134
+ }
1135
+ interface BulkUpdateCardTagsResponse {
1136
+ /**
1137
+ * List of cards whose tags were updated.
1138
+ * @minSize 1
1139
+ * @maxSize 100
1140
+ */
1141
+ results?: BulkUpdateCardTagsResult[];
1142
+ /** Bulk operation metadata. */
1143
+ bulkActionMetadata?: BulkActionMetadata;
1144
+ }
1145
+ interface BulkUpdateCardTagsResult {
1146
+ /** Information about the card that was updated. */
1147
+ itemMetadata?: ItemMetadata;
1148
+ }
1149
+ interface BulkUpdateCardTagsByFilterRequest {
1150
+ /** Filter object. */
1151
+ filter: Record<string, any> | null;
1152
+ /** List of tags to assign. */
1153
+ assignTags?: PrivateTags;
1154
+ /** List of tags to unassign. */
1155
+ unassignTags?: PrivateTags;
1156
+ }
1157
+ interface BulkUpdateCardTagsByFilterResponse {
1158
+ /**
1159
+ * Job ID.
1160
+ * @format GUID
1161
+ */
1162
+ jobId?: string;
1163
+ }
1164
+ interface DomainEvent extends DomainEventBodyOneOf {
1165
+ createdEvent?: EntityCreatedEvent;
1166
+ updatedEvent?: EntityUpdatedEvent;
1167
+ deletedEvent?: EntityDeletedEvent;
1168
+ actionEvent?: ActionEvent;
1169
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1170
+ id?: string;
1171
+ /**
1172
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1173
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1174
+ */
1175
+ entityFqdn?: string;
1176
+ /**
1177
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1178
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1179
+ */
1180
+ slug?: string;
1181
+ /** ID of the entity associated with the event. */
1182
+ entityId?: string;
1183
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1184
+ eventTime?: Date | null;
1185
+ /**
1186
+ * Whether the event was triggered as a result of a privacy regulation application
1187
+ * (for example, GDPR).
1188
+ */
1189
+ triggeredByAnonymizeRequest?: boolean | null;
1190
+ /** If present, indicates the action that triggered the event. */
1191
+ originatedFrom?: string | null;
1192
+ /**
1193
+ * 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.
1194
+ * 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.
1195
+ */
1196
+ entityEventSequence?: string | null;
1197
+ }
1198
+ /** @oneof */
1199
+ interface DomainEventBodyOneOf {
1200
+ createdEvent?: EntityCreatedEvent;
1201
+ updatedEvent?: EntityUpdatedEvent;
1202
+ deletedEvent?: EntityDeletedEvent;
1203
+ actionEvent?: ActionEvent;
1204
+ }
1205
+ interface EntityCreatedEvent {
1206
+ entityAsJson?: string;
1207
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1208
+ restoreInfo?: RestoreInfo;
1209
+ }
1210
+ interface RestoreInfo {
1211
+ deletedDate?: Date | null;
1212
+ }
1213
+ interface EntityUpdatedEvent {
1214
+ /**
1215
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1216
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1217
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1218
+ */
1219
+ currentEntityAsJson?: string;
1220
+ }
1221
+ interface EntityDeletedEvent {
1222
+ /** Entity that was deleted. */
1223
+ deletedEntityAsJson?: string | null;
1224
+ }
1225
+ interface ActionEvent {
1226
+ bodyAsJson?: string;
1227
+ }
1228
+ interface Empty {
1229
+ }
1230
+ interface MessageEnvelope {
1231
+ /**
1232
+ * App instance ID.
1233
+ * @format GUID
1234
+ */
1235
+ instanceId?: string | null;
1236
+ /**
1237
+ * Event type.
1238
+ * @maxLength 150
1239
+ */
1240
+ eventType?: string;
1241
+ /** The identification type and identity data. */
1242
+ identity?: IdentificationData;
1243
+ /** Stringify payload. */
1244
+ data?: string;
1245
+ /** Details related to the account */
1246
+ accountInfo?: AccountInfo;
1247
+ }
1248
+ interface IdentificationData extends IdentificationDataIdOneOf {
1249
+ /**
1250
+ * ID of a site visitor that has not logged in to the site.
1251
+ * @format GUID
1252
+ */
1253
+ anonymousVisitorId?: string;
1254
+ /**
1255
+ * ID of a site visitor that has logged in to the site.
1256
+ * @format GUID
1257
+ */
1258
+ memberId?: string;
1259
+ /**
1260
+ * ID of a Wix user (site owner, contributor, etc.).
1261
+ * @format GUID
1262
+ */
1263
+ wixUserId?: string;
1264
+ /**
1265
+ * ID of an app.
1266
+ * @format GUID
1267
+ */
1268
+ appId?: string;
1269
+ /** @readonly */
1270
+ identityType?: WebhookIdentityTypeWithLiterals;
1271
+ }
1272
+ /** @oneof */
1273
+ interface IdentificationDataIdOneOf {
1274
+ /**
1275
+ * ID of a site visitor that has not logged in to the site.
1276
+ * @format GUID
1277
+ */
1278
+ anonymousVisitorId?: string;
1279
+ /**
1280
+ * ID of a site visitor that has logged in to the site.
1281
+ * @format GUID
1282
+ */
1283
+ memberId?: string;
1284
+ /**
1285
+ * ID of a Wix user (site owner, contributor, etc.).
1286
+ * @format GUID
1287
+ */
1288
+ wixUserId?: string;
1289
+ /**
1290
+ * ID of an app.
1291
+ * @format GUID
1292
+ */
1293
+ appId?: string;
1294
+ }
1295
+ declare enum WebhookIdentityType {
1296
+ UNKNOWN = "UNKNOWN",
1297
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1298
+ MEMBER = "MEMBER",
1299
+ WIX_USER = "WIX_USER",
1300
+ APP = "APP"
1301
+ }
1302
+ /** @enumType */
1303
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1304
+ interface AccountInfo {
1305
+ /**
1306
+ * ID of the Wix account associated with the event.
1307
+ * @format GUID
1308
+ */
1309
+ accountId?: string | null;
1310
+ /**
1311
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
1312
+ * @format GUID
1313
+ */
1314
+ parentAccountId?: string | null;
1315
+ /**
1316
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
1317
+ * @format GUID
1318
+ */
1319
+ siteId?: string | null;
1320
+ }
1321
+ /** @docsIgnore */
1322
+ type CreateCardApplicationErrors = {
1323
+ code?: 'PIPELINE_NOT_FOUND';
1324
+ description?: string;
1325
+ data?: Record<string, any>;
1326
+ } | {
1327
+ code?: 'STAGE_NOT_FOUND';
1328
+ description?: string;
1329
+ data?: Record<string, any>;
1330
+ } | {
1331
+ code?: 'ASSIGNEE_NOT_FOUND';
1332
+ description?: string;
1333
+ data?: Record<string, any>;
1334
+ } | {
1335
+ code?: 'CONTACTS_NOT_FOUND';
1336
+ description?: string;
1337
+ data?: ContactsNotFound;
1338
+ } | {
1339
+ code?: 'INVALID_OUTCOME';
1340
+ description?: string;
1341
+ data?: Record<string, any>;
1342
+ } | {
1343
+ code?: 'ADDITIONAL_CONTACTS_WITHOUT_MAIN_CONTACT';
1344
+ description?: string;
1345
+ data?: Record<string, any>;
1346
+ };
1347
+ /** @docsIgnore */
1348
+ type UpdateCardApplicationErrors = {
1349
+ code?: 'REVISION_MISSING';
1350
+ description?: string;
1351
+ data?: Record<string, any>;
1352
+ } | {
1353
+ code?: 'STAGE_NOT_FOUND';
1354
+ description?: string;
1355
+ data?: Record<string, any>;
1356
+ } | {
1357
+ code?: 'INVALID_OUTCOME';
1358
+ description?: string;
1359
+ data?: Record<string, any>;
1360
+ } | {
1361
+ code?: 'CANNOT_REMOVE_NAME';
1362
+ description?: string;
1363
+ data?: Record<string, any>;
1364
+ } | {
1365
+ code?: 'INVALID_ASSIGNEE_ID';
1366
+ description?: string;
1367
+ data?: Record<string, any>;
1368
+ } | {
1369
+ code?: 'INVALID_CONTACT_ID';
1370
+ description?: string;
1371
+ data?: Record<string, any>;
1372
+ } | {
1373
+ code?: 'CANNOT_CHANGE_CURRENCY';
1374
+ description?: string;
1375
+ data?: Record<string, any>;
1376
+ } | {
1377
+ code?: 'INSUFFICIENT_CARD_DATA';
1378
+ description?: string;
1379
+ data?: Record<string, any>;
1380
+ } | {
1381
+ code?: 'CONTACTS_NOT_FOUND';
1382
+ description?: string;
1383
+ data?: ContactsNotFound;
1384
+ } | {
1385
+ code?: 'ADDITIONAL_CONTACTS_WITHOUT_MAIN_CONTACT';
1386
+ description?: string;
1387
+ data?: Record<string, any>;
1388
+ };
1389
+ /** @docsIgnore */
1390
+ type MoveCardApplicationErrors = {
1391
+ code?: 'STAGE_NOT_FOUND';
1392
+ description?: string;
1393
+ data?: Record<string, any>;
1394
+ } | {
1395
+ code?: 'INVALID_OUTCOME';
1396
+ description?: string;
1397
+ data?: Record<string, any>;
1398
+ };
1399
+ /** @docsIgnore */
1400
+ type BulkUpdateCardTagsApplicationErrors = {
1401
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1402
+ description?: string;
1403
+ data?: Record<string, any>;
1404
+ };
1405
+ /** @docsIgnore */
1406
+ type BulkUpdateCardTagsByFilterApplicationErrors = {
1407
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1408
+ description?: string;
1409
+ data?: Record<string, any>;
1410
+ };
1411
+
1412
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1413
+ getUrl: (context: any) => string;
1414
+ httpMethod: K;
1415
+ path: string;
1416
+ pathParams: M;
1417
+ __requestType: T;
1418
+ __originalRequestType: S;
1419
+ __responseType: Q;
1420
+ __originalResponseType: R;
1421
+ };
1422
+ declare function createCard(): __PublicMethodMetaInfo<'POST', {}, CreateCardRequest$1, CreateCardRequest, CreateCardResponse$1, CreateCardResponse>;
1423
+ declare function getCard(): __PublicMethodMetaInfo<'GET', {
1424
+ cardId: string;
1425
+ }, GetCardRequest$1, GetCardRequest, GetCardResponse$1, GetCardResponse>;
1426
+ declare function updateCard(): __PublicMethodMetaInfo<'PATCH', {
1427
+ cardId: string;
1428
+ }, UpdateCardRequest$1, UpdateCardRequest, UpdateCardResponse$1, UpdateCardResponse>;
1429
+ declare function moveCard(): __PublicMethodMetaInfo<'PATCH', {
1430
+ cardId: string;
1431
+ }, MoveCardRequest$1, MoveCardRequest, MoveCardResponse$1, MoveCardResponse>;
1432
+ declare function deleteCard(): __PublicMethodMetaInfo<'DELETE', {
1433
+ cardId: string;
1434
+ }, DeleteCardRequest$1, DeleteCardRequest, DeleteCardResponse$1, DeleteCardResponse>;
1435
+ declare function queryCards(): __PublicMethodMetaInfo<'GET', {}, QueryCardsRequest$1, QueryCardsRequest, QueryCardsResponse$1, QueryCardsResponse>;
1436
+ declare function searchCards(): __PublicMethodMetaInfo<'GET', {}, SearchCardsRequest$1, SearchCardsRequest, SearchCardsResponse$1, SearchCardsResponse>;
1437
+ declare function searchCardsByStage(): __PublicMethodMetaInfo<'GET', {}, SearchCardsByStageRequest$1, SearchCardsByStageRequest, SearchCardsByStageResponse$1, SearchCardsByStageResponse>;
1438
+ declare function bulkCreateCards(): __PublicMethodMetaInfo<'POST', {}, BulkCreateCardsRequest$1, BulkCreateCardsRequest, BulkCreateCardsResponse$1, BulkCreateCardsResponse>;
1439
+ declare function bulkUpdateCards(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateCardsRequest$1, BulkUpdateCardsRequest, BulkUpdateCardsResponse$1, BulkUpdateCardsResponse>;
1440
+ declare function bulkDeleteCards(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteCardsRequest$1, BulkDeleteCardsRequest, BulkDeleteCardsResponse$1, BulkDeleteCardsResponse>;
1441
+ declare function bulkUpdateCardTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateCardTagsRequest$1, BulkUpdateCardTagsRequest, BulkUpdateCardTagsResponse$1, BulkUpdateCardTagsResponse>;
1442
+ declare function bulkUpdateCardTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateCardTagsByFilterRequest$1, BulkUpdateCardTagsByFilterRequest, BulkUpdateCardTagsByFilterResponse$1, BulkUpdateCardTagsByFilterResponse>;
1443
+
1444
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AggregationData as AggregationDataOriginal, type AggregationKindOneOf as AggregationKindOneOfOriginal, type Aggregation as AggregationOriginal, type AggregationResults as AggregationResultsOriginal, type AggregationResultsResultOneOf as AggregationResultsResultOneOfOriginal, type AggregationResultsScalarResult as AggregationResultsScalarResultOriginal, AggregationType as AggregationTypeOriginal, type AggregationTypeWithLiterals as AggregationTypeWithLiteralsOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCardResult as BulkCardResultOriginal, type BulkCreateCardsRequest as BulkCreateCardsRequestOriginal, type BulkCreateCardsResponse as BulkCreateCardsResponseOriginal, type BulkDeleteCardsRequest as BulkDeleteCardsRequestOriginal, type BulkDeleteCardsResponseBulkCardResult as BulkDeleteCardsResponseBulkCardResultOriginal, type BulkDeleteCardsResponse as BulkDeleteCardsResponseOriginal, type BulkSearchCardsResult as BulkSearchCardsResultOriginal, type BulkUpdateCardTagsApplicationErrors as BulkUpdateCardTagsApplicationErrorsOriginal, type BulkUpdateCardTagsByFilterApplicationErrors as BulkUpdateCardTagsByFilterApplicationErrorsOriginal, type BulkUpdateCardTagsByFilterRequest as BulkUpdateCardTagsByFilterRequestOriginal, type BulkUpdateCardTagsByFilterResponse as BulkUpdateCardTagsByFilterResponseOriginal, type BulkUpdateCardTagsRequest as BulkUpdateCardTagsRequestOriginal, type BulkUpdateCardTagsResponse as BulkUpdateCardTagsResponseOriginal, type BulkUpdateCardTagsResult as BulkUpdateCardTagsResultOriginal, type BulkUpdateCardsRequest as BulkUpdateCardsRequestOriginal, type BulkUpdateCardsResponseBulkCardResult as BulkUpdateCardsResponseBulkCardResultOriginal, type BulkUpdateCardsResponse as BulkUpdateCardsResponseOriginal, type CardAssigned as CardAssignedOriginal, type CardMoved as CardMovedOriginal, type Card as CardOriginal, type CardOverdue as CardOverdueOriginal, type CardSource as CardSourceOriginal, type CardStale as CardStaleOriginal, type ContactInfo as ContactInfoOriginal, type ContactsNotFound as ContactsNotFoundOriginal, type CreateCardApplicationErrors as CreateCardApplicationErrorsOriginal, type CreateCardRequest as CreateCardRequestOriginal, type CreateCardResponse as CreateCardResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type CursorSearch as CursorSearchOriginal, type CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DateHistogramAggregation as DateHistogramAggregationOriginal, type DateHistogramResult as DateHistogramResultOriginal, type DateHistogramResults as DateHistogramResultsOriginal, type DeleteCardRequest as DeleteCardRequestOriginal, type DeleteCardResponse as DeleteCardResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetCardRequest as GetCardRequestOriginal, type GetCardResponse as GetCardResponseOriginal, type GroupByValueResults as GroupByValueResultsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IncludeMissingValuesOptions as IncludeMissingValuesOptionsOriginal, Interval as IntervalOriginal, type IntervalWithLiterals as IntervalWithLiteralsOriginal, type ItemMetadata as ItemMetadataOriginal, type LinkedEntity as LinkedEntityOriginal, type MaskedCard as MaskedCardOriginal, type MessageEnvelope as MessageEnvelopeOriginal, MissingValues as MissingValuesOriginal, type MissingValuesWithLiterals as MissingValuesWithLiteralsOriginal, Mode as ModeOriginal, type ModeWithLiterals as ModeWithLiteralsOriginal, type Money as MoneyOriginal, type MoveCardApplicationErrors as MoveCardApplicationErrorsOriginal, type MoveCardRequest as MoveCardRequestOriginal, type MoveCardResponse as MoveCardResponseOriginal, NameFormat as NameFormatOriginal, type NameFormatWithLiterals as NameFormatWithLiteralsOriginal, type NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOfOriginal, type NestedAggregationItem as NestedAggregationItemOriginal, type NestedAggregation as NestedAggregationOriginal, type NestedAggregationResults as NestedAggregationResultsOriginal, type NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOfOriginal, NestedAggregationType as NestedAggregationTypeOriginal, type NestedAggregationTypeWithLiterals as NestedAggregationTypeWithLiteralsOriginal, type NestedResultValue as NestedResultValueOriginal, type NestedResultValueResultOneOf as NestedResultValueResultOneOfOriginal, type NestedResults as NestedResultsOriginal, type NestedValueAggregationResult as NestedValueAggregationResultOriginal, Outcome as OutcomeOriginal, type OutcomeWithLiterals as OutcomeWithLiteralsOriginal, Priority as PriorityOriginal, type PriorityWithLiterals as PriorityWithLiteralsOriginal, type PrivateTags as PrivateTagsOriginal, type QueryCardsRequest as QueryCardsRequestOriginal, type QueryCardsResponse as QueryCardsResponseOriginal, type RangeAggregation as RangeAggregationOriginal, type RangeAggregationResult as RangeAggregationResultOriginal, type RangeBucket as RangeBucketOriginal, type RangeResult as RangeResultOriginal, type RangeResults as RangeResultsOriginal, type RestoreInfo as RestoreInfoOriginal, type Results as ResultsOriginal, type ScalarAggregation as ScalarAggregationOriginal, type ScalarResult as ScalarResultOriginal, ScalarType as ScalarTypeOriginal, type ScalarTypeWithLiterals as ScalarTypeWithLiteralsOriginal, type SearchCardsByStageRequest as SearchCardsByStageRequestOriginal, type SearchCardsByStageResponse as SearchCardsByStageResponseOriginal, type SearchCardsRequest as SearchCardsRequestOriginal, type SearchCardsResponse as SearchCardsResponseOriginal, type SearchDetails as SearchDetailsOriginal, SortDirection as SortDirectionOriginal, type SortDirectionWithLiterals as SortDirectionWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, SortType as SortTypeOriginal, type SortTypeWithLiterals as SortTypeWithLiteralsOriginal, type Sorting as SortingOriginal, type TagList as TagListOriginal, type UpdateCardApplicationErrors as UpdateCardApplicationErrorsOriginal, type UpdateCardRequest as UpdateCardRequestOriginal, type UpdateCardResponse as UpdateCardResponseOriginal, type ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOfOriginal, type ValueAggregation as ValueAggregationOriginal, type ValueAggregationResult as ValueAggregationResultOriginal, type ValueResult as ValueResultOriginal, type ValueResults as ValueResultsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateCards, bulkDeleteCards, bulkUpdateCardTags, bulkUpdateCardTagsByFilter, bulkUpdateCards, createCard, deleteCard, getCard, moveCard, queryCards, searchCards, searchCardsByStage, updateCard };