@wix/auto_sdk_crm_pipelines 1.0.0 → 1.0.2

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 (41) hide show
  1. package/build/cjs/index.d.ts +76 -130
  2. package/build/cjs/index.js +194 -977
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +998 -15
  5. package/build/cjs/index.typings.js +146 -767
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +133 -1005
  8. package/build/cjs/meta.js +128 -682
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +76 -130
  11. package/build/es/index.mjs +184 -947
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +998 -15
  14. package/build/es/index.typings.mjs +138 -743
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +133 -1005
  17. package/build/es/meta.mjs +121 -659
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +76 -163
  20. package/build/internal/cjs/index.js +194 -977
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +998 -15
  23. package/build/internal/cjs/index.typings.js +146 -767
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +133 -1005
  26. package/build/internal/cjs/meta.js +128 -682
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +76 -163
  29. package/build/internal/es/index.mjs +184 -947
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +998 -15
  32. package/build/internal/es/index.typings.mjs +138 -743
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +133 -1005
  35. package/build/internal/es/meta.mjs +121 -659
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
  38. package/build/cjs/crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.d.ts +0 -2265
  39. package/build/es/crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.d.mts +0 -2265
  40. package/build/internal/cjs/crm-pipelines-v1-card-pipelines.universal-BHszxzqA.d.ts +0 -2303
  41. package/build/internal/es/crm-pipelines-v1-card-pipelines.universal-BHszxzqA.d.mts +0 -2303
@@ -1,25 +1,1008 @@
1
- import { ai as CursorSearch, S as SearchCardsOptions, g as SearchCardsResponse } from './crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.js';
2
- export { bj as AccountInfo, bm as AccountInfoMetadata, be as ActionEvent, ak as Aggregation, ax as AggregationData, al as AggregationKindOneOf, aQ as AggregationResults, aR as AggregationResultsResultOneOf, aE as AggregationResultsScalarResult, F as AggregationType, bC as AggregationTypeWithLiterals, aX as ApplicationError, bk as BaseEventMetadata, aZ as BulkActionMetadata, aY as BulkCardResult, bq as BulkCreateCardsOptions, aU as BulkCreateCardsRequest, aV as BulkCreateCardsResponse, b2 as BulkDeleteCardsRequest, b3 as BulkDeleteCardsResponse, b4 as BulkDeleteCardsResponseBulkCardResult, aT as BulkSearchCardsResult, k as BulkUpdateCardTagsApplicationErrors, n as BulkUpdateCardTagsByFilterApplicationErrors, l as BulkUpdateCardTagsByFilterOptions, b7 as BulkUpdateCardTagsByFilterRequest, m as BulkUpdateCardTagsByFilterResponse, B as BulkUpdateCardTagsOptions, b5 as BulkUpdateCardTagsRequest, j as BulkUpdateCardTagsResponse, b6 as BulkUpdateCardTagsResult, br as BulkUpdateCardsOptions, a_ as BulkUpdateCardsRequest, b0 as BulkUpdateCardsResponse, b1 as BulkUpdateCardsResponseBulkCardResult, a as Card, Y as CardAssigned, o as CardAssignedEnvelope, p as CardCreatedEnvelope, q as CardDeletedEnvelope, X as CardMoved, r as CardMovedEnvelope, Z as CardOverdue, s as CardOverdueEnvelope, w as CardQuery, bo as CardQuerySpec, bp as CardSearchSpec, J as CardSource, _ as CardStale, t as CardStaleEnvelope, u as CardUpdatedEnvelope, v as CardsQueryBuilder, bn as CardsQueryResult, bG as CommonQueryWithEntityContext, bH as CommonSearchWithEntityContext, L as ContactInfo, a1 as ContactsNotFound, b as CreateCardApplicationErrors, C as CreateCardOptions, $ as CreateCardRequest, a0 as CreateCardResponse, ad as CursorPaging, af as CursorPagingMetadata, aa as CursorQuery, ab as CursorQueryPagingMethodOneOf, aj as CursorSearchPagingMethodOneOf, ag as Cursors, as as DateHistogramAggregation, aM as DateHistogramResult, aO as DateHistogramResults, a7 as DeleteCardRequest, a8 as DeleteCardResponse, b8 as DomainEvent, b9 as DomainEventBodyOneOf, bf as Empty, ba as EntityCreatedEvent, bd as EntityDeletedEvent, bc as EntityUpdatedEvent, bl as EventMetadata, R as ExtendedFields, a2 as GetCardRequest, a3 as GetCardResponse, aN as GroupByValueResults, bh as IdentificationData, bi as IdentificationDataIdOneOf, an as IncludeMissingValuesOptions, I as Interval, bB as IntervalWithLiterals, aW as ItemMetadata, Q as LinkedEntity, a$ as MaskedCard, bg as MessageEnvelope, D as MissingValues, by as MissingValuesWithLiterals, G as Mode, bD as ModeWithLiterals, K as Money, e as MoveCardApplicationErrors, M as MoveCardOptions, a6 as MoveCardRequest, d as MoveCardResponse, H as NameFormat, bE as NameFormatWithLiterals, av as NestedAggregation, at as NestedAggregationItem, au as NestedAggregationItemKindOneOf, aA as NestedAggregationResults, aB as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bA as NestedAggregationTypeWithLiterals, aJ as NestedResultValue, aK as NestedResultValueResultOneOf, aP as NestedResults, aF as NestedValueAggregationResult, O as Outcome, bu as OutcomeWithLiterals, P as Priority, bt as PriorityWithLiterals, T as PrivateTags, a9 as QueryCardsRequest, ae as QueryCardsResponse, aq as RangeAggregation, az as RangeAggregationResult, am as RangeBucket, aH as RangeResult, aD as RangeResults, bb as RestoreInfo, aL as Results, ar as ScalarAggregation, aI as ScalarResult, E as ScalarType, bz as ScalarTypeWithLiterals, h as SearchCardsByStageOptions, aS as SearchCardsByStageRequest, i as SearchCardsByStageResponse, ah as SearchCardsRequest, aw as SearchDetails, A as SortDirection, bx as SortDirectionWithLiterals, y as SortOrder, bv as SortOrderWithLiterals, z as SortType, bw as SortTypeWithLiterals, ac as Sorting, V as TagList, c as UpdateCardApplicationErrors, U as UpdateCardOptions, a4 as UpdateCardRequest, a5 as UpdateCardResponse, ao as ValueAggregation, ap as ValueAggregationOptionsOneOf, ay as ValueAggregationResult, aG as ValueResult, aC as ValueResults, W as WebhookIdentityType, bF as WebhookIdentityTypeWithLiterals, bW as bulkUpdateCardTags, bX as bulkUpdateCardTagsByFilter, bP as createCard, bT as deleteCard, bQ as getCard, bS as moveCard, bI as onCardAssigned, bJ as onCardCreated, bK as onCardDeleted, bL as onCardMoved, bM as onCardOverdue, bN as onCardStale, bO as onCardUpdated, bU as queryCards, bV as searchCardsByStage, x as typedQueryCards, bR as updateCard, bs as utils } from './crm-pipelines-v1-card-pipelines.universal-DGtqU_Zb.js';
3
- import '@wix/sdk-types';
1
+ import * as _wix_sdk_types from '@wix/sdk-types';
2
+ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
4
3
 
5
- /** @hidden */
6
- type CardSearch = {};
7
4
  /**
8
- * Retrieves a list of cards given the provided free-text search expression, filtering, and sorting.
5
+ * A structured business process workflow consisting of multiple ordered stages and a final stage.
9
6
  *
10
- * By default, cards are sorted by `updatedDate` in descending order.
7
+ * Pipelines define the path that cards (deals, leads, projects, etc.) follow from start to completion.
8
+ * Each pipeline has a currency setting that applies to all monetary values within that pipeline.
9
+ * Pipeline stages can be configured with stale duration settings to identify workflow delays.
10
+ */
11
+ interface Pipeline {
12
+ /**
13
+ * Pipeline ID.
14
+ * @format GUID
15
+ * @readonly
16
+ */
17
+ _id?: string | null;
18
+ /**
19
+ * Revision number, which increments by 1 each time the pipeline is updated.
20
+ * To prevent conflicting changes, the current revision must be passed when updating the pipeline.
21
+ *
22
+ * Ignored when creating a pipeline.
23
+ * @readonly
24
+ */
25
+ revision?: string | null;
26
+ /**
27
+ * Date and time the pipeline was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
28
+ * @readonly
29
+ */
30
+ _createdDate?: Date | null;
31
+ /**
32
+ * Date and time the pipeline was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
33
+ * @readonly
34
+ */
35
+ _updatedDate?: Date | null;
36
+ /**
37
+ * Pipeline name.
38
+ * @minLength 1
39
+ * @maxLength 60
40
+ */
41
+ name?: string | null;
42
+ /**
43
+ * Currency code for monetary values in this pipeline. Must be a valid ISO 4217 currency code. For example, `USD`.
44
+ *
45
+ * Default: Based on the site's currency settings.
46
+ * @format CURRENCY
47
+ * @immutable
48
+ */
49
+ currency?: string | null;
50
+ /**
51
+ * Pipeline stages in order.
52
+ * Cards move through these stages as they progress through the business process.
53
+ * @minSize 1
54
+ * @maxSize 30
55
+ */
56
+ stages?: Stage[];
57
+ /** The final pipeline stage where cards receive a final outcome. */
58
+ doneStage?: DoneStage;
59
+ /** Extended fields data. */
60
+ extendedFields?: ExtendedFields;
61
+ /** Tags for organizing and categorizing pipelines. */
62
+ tags?: PrivateTags;
63
+ }
64
+ interface Stage {
65
+ /**
66
+ * Stage ID.
67
+ * @format GUID
68
+ * @readonly
69
+ */
70
+ _id?: string | null;
71
+ /**
72
+ * Stage name.
73
+ * @minLength 1
74
+ * @maxLength 40
75
+ */
76
+ name?: string | null;
77
+ /**
78
+ * The duration (in hours) a card can remain in this stage before becoming stale.
79
+ * When a card exceeds this duration, it's marked as stale to indicate potential workflow delays.
80
+ * @min 1
81
+ * @max 100000
82
+ */
83
+ staleDurationInHours?: number | null;
84
+ }
85
+ interface DoneStage {
86
+ /**
87
+ * Done stage ID.
88
+ * @format GUID
89
+ * @readonly
90
+ */
91
+ _id?: string | null;
92
+ /**
93
+ * Done stage name.
94
+ * @minLength 1
95
+ * @maxLength 40
96
+ */
97
+ name?: string | null;
98
+ /**
99
+ * Outcomes that cards can have when moved to the done stage.
100
+ * @minSize 1
101
+ * @maxSize 3
102
+ */
103
+ allowedOutcomes?: OutcomeWithLiterals[];
104
+ }
105
+ declare enum Outcome {
106
+ /** No specific outcome. The process reached the final stage but has not been specified as successful or unsuccessful. */
107
+ NONE = "NONE",
108
+ /** Successful outcome. The process achieved its intended goal. */
109
+ WON = "WON",
110
+ /** Unsuccessful outcome. The process didn't achieve its intended goal. */
111
+ LOST = "LOST"
112
+ }
113
+ /** @enumType */
114
+ type OutcomeWithLiterals = Outcome | 'NONE' | 'WON' | 'LOST';
115
+ interface ExtendedFields {
116
+ /**
117
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
118
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
119
+ *
120
+ * You can only access fields for which you have the appropriate permissions.
121
+ *
122
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
123
+ */
124
+ namespaces?: Record<string, Record<string, any>>;
125
+ }
126
+ interface PrivateTags {
127
+ /** Tags that are exposed to anyone with access to the entity, including site members and visitors. */
128
+ privateTags?: TagList;
129
+ }
130
+ interface TagList {
131
+ /**
132
+ * List of tag IDs.
133
+ * @maxSize 100
134
+ * @maxLength 5
135
+ */
136
+ tagIds?: string[];
137
+ }
138
+ interface CreatePipelineRequest {
139
+ /** Pipeline to create. */
140
+ pipeline: Pipeline;
141
+ }
142
+ interface CreatePipelineResponse {
143
+ /** Created pipeline. */
144
+ pipeline?: Pipeline;
145
+ }
146
+ interface GetPipelineRequest {
147
+ /**
148
+ * Pipeline ID to retrieve.
149
+ * @format GUID
150
+ */
151
+ pipelineId: string;
152
+ }
153
+ interface GetPipelineResponse {
154
+ /** Retrieved pipeline. */
155
+ pipeline?: Pipeline;
156
+ }
157
+ interface UpdatePipelineRequest {
158
+ /** Pipeline to update, may be partial. */
159
+ pipeline: Pipeline;
160
+ }
161
+ interface UpdatePipelineResponse {
162
+ /** Updated pipeline. */
163
+ pipeline?: Pipeline;
164
+ }
165
+ interface DeletePipelineRequest {
166
+ /**
167
+ * Pipeline ID.
168
+ * @format GUID
169
+ */
170
+ pipelineId: string;
171
+ }
172
+ interface DeletePipelineResponse {
173
+ }
174
+ interface QueryPipelinesRequest {
175
+ /** Query options. */
176
+ query?: CursorQuery;
177
+ }
178
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
179
+ /**
180
+ * Cursor paging options.
181
+ *
182
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
183
+ */
184
+ cursorPaging?: CursorPaging;
185
+ /**
186
+ * Filter object.
187
+ *
188
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
189
+ */
190
+ filter?: Record<string, any> | null;
191
+ /**
192
+ * Sort object.
193
+ *
194
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
195
+ * @maxSize 5
196
+ */
197
+ sort?: Sorting[];
198
+ }
199
+ /** @oneof */
200
+ interface CursorQueryPagingMethodOneOf {
201
+ /**
202
+ * Cursor paging options.
203
+ *
204
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
205
+ */
206
+ cursorPaging?: CursorPaging;
207
+ }
208
+ interface Sorting {
209
+ /**
210
+ * Name of the field to sort by.
211
+ * @maxLength 512
212
+ */
213
+ fieldName?: string;
214
+ /** Sort order. */
215
+ order?: SortOrderWithLiterals;
216
+ }
217
+ declare enum SortOrder {
218
+ ASC = "ASC",
219
+ DESC = "DESC"
220
+ }
221
+ /** @enumType */
222
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
223
+ interface CursorPaging {
224
+ /**
225
+ * Maximum number of items to return.
226
+ * @max 100
227
+ */
228
+ limit?: number | null;
229
+ /**
230
+ * Pointer to the next or previous page in the list of results.
231
+ *
232
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
233
+ * Not relevant for the first request.
234
+ * @maxLength 16000
235
+ */
236
+ cursor?: string | null;
237
+ }
238
+ interface QueryPipelinesResponse {
239
+ /** Retrieved pipelines. */
240
+ pipelines?: Pipeline[];
241
+ /** Paging metadata. */
242
+ pagingMetadata?: CursorPagingMetadata;
243
+ }
244
+ interface CursorPagingMetadata {
245
+ /** Number of items returned in current page. */
246
+ count?: number | null;
247
+ /** Cursor strings that point to the next page, previous page, or both. */
248
+ cursors?: Cursors;
249
+ /**
250
+ * Whether there are more pages to retrieve following the current page.
251
+ *
252
+ * + `true`: Another page of results can be retrieved.
253
+ * + `false`: This is the last page.
254
+ */
255
+ hasNext?: boolean | null;
256
+ }
257
+ interface Cursors {
258
+ /**
259
+ * Cursor string pointing to the next page in the list of results.
260
+ * @maxLength 16000
261
+ */
262
+ next?: string | null;
263
+ /**
264
+ * Cursor pointing to the previous page in the list of results.
265
+ * @maxLength 16000
266
+ */
267
+ prev?: string | null;
268
+ }
269
+ interface BulkUpdatePipelineTagsRequest {
270
+ /**
271
+ * List of pipeline IDs to update.
272
+ * @minSize 1
273
+ * @maxSize 100
274
+ * @format GUID
275
+ */
276
+ pipelineIds: string[];
277
+ /** List of tags to assign. */
278
+ assignTags?: PrivateTags;
279
+ /** List of tags to unassign. */
280
+ unassignTags?: PrivateTags;
281
+ /**
282
+ * Whether to return the updated pipelines in the response.
283
+ *
284
+ * Default: `false`
285
+ */
286
+ returnEntity?: boolean;
287
+ }
288
+ interface BulkUpdatePipelineTagsResponse {
289
+ /**
290
+ * Results for each updated pipeline.
291
+ * @minSize 1
292
+ * @maxSize 100
293
+ */
294
+ results?: BulkUpdatePipelineTagsResult[];
295
+ /** Metadata about the bulk update. */
296
+ bulkActionMetadata?: BulkActionMetadata;
297
+ }
298
+ interface ItemMetadata {
299
+ /**
300
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
301
+ * @format GUID
302
+ */
303
+ _id?: string | null;
304
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
305
+ originalIndex?: number;
306
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
307
+ success?: boolean;
308
+ /** Details about the error in case of failure. */
309
+ error?: ApplicationError;
310
+ }
311
+ interface ApplicationError {
312
+ /** Error code. */
313
+ code?: string;
314
+ /** Description of the error. */
315
+ description?: string;
316
+ /** Data related to the error. */
317
+ data?: Record<string, any> | null;
318
+ }
319
+ interface BulkUpdatePipelineTagsResult {
320
+ /** Metadata about the individual updated pipeline. */
321
+ itemMetadata?: ItemMetadata;
322
+ }
323
+ interface BulkActionMetadata {
324
+ /** Number of items that were successfully processed. */
325
+ totalSuccesses?: number;
326
+ /** Number of items that couldn't be processed. */
327
+ totalFailures?: number;
328
+ /** Number of failures without details because detailed failure threshold was exceeded. */
329
+ undetailedFailures?: number;
330
+ }
331
+ interface BulkUpdatePipelineTagsByFilterRequest {
332
+ /** Filter to select which pipelines to update. */
333
+ filter: Record<string, any> | null;
334
+ /** List of tags to assign. */
335
+ assignTags?: PrivateTags;
336
+ /** List of tags to unassign. */
337
+ unassignTags?: PrivateTags;
338
+ /**
339
+ * Whether to return the updated pipelines in the response.
340
+ *
341
+ * Default: `false`
342
+ */
343
+ returnEntity?: boolean;
344
+ }
345
+ interface BulkUpdatePipelineTagsByFilterResponse {
346
+ /**
347
+ * Job ID for tracking the asynchronous tag updates.
348
+ * @format GUID
349
+ */
350
+ jobId?: string;
351
+ }
352
+ interface DomainEvent extends DomainEventBodyOneOf {
353
+ createdEvent?: EntityCreatedEvent;
354
+ updatedEvent?: EntityUpdatedEvent;
355
+ deletedEvent?: EntityDeletedEvent;
356
+ actionEvent?: ActionEvent;
357
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
358
+ _id?: string;
359
+ /**
360
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
361
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
362
+ */
363
+ entityFqdn?: string;
364
+ /**
365
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
366
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
367
+ */
368
+ slug?: string;
369
+ /** ID of the entity associated with the event. */
370
+ entityId?: string;
371
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
372
+ eventTime?: Date | null;
373
+ /**
374
+ * Whether the event was triggered as a result of a privacy regulation application
375
+ * (for example, GDPR).
376
+ */
377
+ triggeredByAnonymizeRequest?: boolean | null;
378
+ /** If present, indicates the action that triggered the event. */
379
+ originatedFrom?: string | null;
380
+ /**
381
+ * 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.
382
+ * 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.
383
+ */
384
+ entityEventSequence?: string | null;
385
+ }
386
+ /** @oneof */
387
+ interface DomainEventBodyOneOf {
388
+ createdEvent?: EntityCreatedEvent;
389
+ updatedEvent?: EntityUpdatedEvent;
390
+ deletedEvent?: EntityDeletedEvent;
391
+ actionEvent?: ActionEvent;
392
+ }
393
+ interface EntityCreatedEvent {
394
+ entity?: string;
395
+ }
396
+ interface RestoreInfo {
397
+ deletedDate?: Date | null;
398
+ }
399
+ interface EntityUpdatedEvent {
400
+ /**
401
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
402
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
403
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
404
+ */
405
+ currentEntity?: string;
406
+ }
407
+ interface EntityDeletedEvent {
408
+ /** Entity that was deleted. */
409
+ deletedEntity?: string | null;
410
+ }
411
+ interface ActionEvent {
412
+ body?: string;
413
+ }
414
+ interface MessageEnvelope {
415
+ /**
416
+ * App instance ID.
417
+ * @format GUID
418
+ */
419
+ instanceId?: string | null;
420
+ /**
421
+ * Event type.
422
+ * @maxLength 150
423
+ */
424
+ eventType?: string;
425
+ /** The identification type and identity data. */
426
+ identity?: IdentificationData;
427
+ /** Stringify payload. */
428
+ data?: string;
429
+ /** Details related to the account */
430
+ accountInfo?: AccountInfo;
431
+ }
432
+ interface IdentificationData extends IdentificationDataIdOneOf {
433
+ /**
434
+ * ID of a site visitor that has not logged in to the site.
435
+ * @format GUID
436
+ */
437
+ anonymousVisitorId?: string;
438
+ /**
439
+ * ID of a site visitor that has logged in to the site.
440
+ * @format GUID
441
+ */
442
+ memberId?: string;
443
+ /**
444
+ * ID of a Wix user (site owner, contributor, etc.).
445
+ * @format GUID
446
+ */
447
+ wixUserId?: string;
448
+ /**
449
+ * ID of an app.
450
+ * @format GUID
451
+ */
452
+ appId?: string;
453
+ /** @readonly */
454
+ identityType?: WebhookIdentityTypeWithLiterals;
455
+ }
456
+ /** @oneof */
457
+ interface IdentificationDataIdOneOf {
458
+ /**
459
+ * ID of a site visitor that has not logged in to the site.
460
+ * @format GUID
461
+ */
462
+ anonymousVisitorId?: string;
463
+ /**
464
+ * ID of a site visitor that has logged in to the site.
465
+ * @format GUID
466
+ */
467
+ memberId?: string;
468
+ /**
469
+ * ID of a Wix user (site owner, contributor, etc.).
470
+ * @format GUID
471
+ */
472
+ wixUserId?: string;
473
+ /**
474
+ * ID of an app.
475
+ * @format GUID
476
+ */
477
+ appId?: string;
478
+ }
479
+ declare enum WebhookIdentityType {
480
+ UNKNOWN = "UNKNOWN",
481
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
482
+ MEMBER = "MEMBER",
483
+ WIX_USER = "WIX_USER",
484
+ APP = "APP"
485
+ }
486
+ /** @enumType */
487
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
488
+ interface AccountInfo {
489
+ /**
490
+ * ID of the Wix account associated with the event.
491
+ * @format GUID
492
+ */
493
+ accountId?: string | null;
494
+ /**
495
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
496
+ * @format GUID
497
+ */
498
+ parentAccountId?: string | null;
499
+ /**
500
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
501
+ * @format GUID
502
+ */
503
+ siteId?: string | null;
504
+ }
505
+ /** @docsIgnore */
506
+ type UpdatePipelineApplicationErrors = {
507
+ code?: 'CANNOT_CHANGE_DURATION_ON_STAGE_WITH_CARDS';
508
+ description?: string;
509
+ data?: Record<string, any>;
510
+ } | {
511
+ code?: 'CANNOT_DELETE_STAGE_WITH_CARDS';
512
+ description?: string;
513
+ data?: Record<string, any>;
514
+ } | {
515
+ code?: 'CANNOT_DELETE_PIPELINE_DONE_STAGE';
516
+ description?: string;
517
+ data?: Record<string, any>;
518
+ } | {
519
+ code?: 'INSUFFICIENT_PIPELINE_DATA';
520
+ description?: string;
521
+ data?: Record<string, any>;
522
+ } | {
523
+ code?: 'STAGE_IDS_MUST_BE_UNIQUE';
524
+ description?: string;
525
+ data?: Record<string, any>;
526
+ };
527
+ /** @docsIgnore */
528
+ type DeletePipelineApplicationErrors = {
529
+ code?: 'CANNOT_DELETE_NON_EMPTY_PIPELINE';
530
+ description?: string;
531
+ data?: Record<string, any>;
532
+ };
533
+ /** @docsIgnore */
534
+ type BulkUpdatePipelineTagsApplicationErrors = {
535
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
536
+ description?: string;
537
+ data?: Record<string, any>;
538
+ };
539
+ /** @docsIgnore */
540
+ type BulkUpdatePipelineTagsByFilterApplicationErrors = {
541
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
542
+ description?: string;
543
+ data?: Record<string, any>;
544
+ };
545
+ interface BaseEventMetadata {
546
+ /**
547
+ * App instance ID.
548
+ * @format GUID
549
+ */
550
+ instanceId?: string | null;
551
+ /**
552
+ * Event type.
553
+ * @maxLength 150
554
+ */
555
+ eventType?: string;
556
+ /** The identification type and identity data. */
557
+ identity?: IdentificationData;
558
+ /** Details related to the account */
559
+ accountInfo?: AccountInfo;
560
+ }
561
+ interface EventMetadata extends BaseEventMetadata {
562
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
563
+ _id?: string;
564
+ /**
565
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
566
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
567
+ */
568
+ entityFqdn?: string;
569
+ /**
570
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
571
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
572
+ */
573
+ slug?: string;
574
+ /** ID of the entity associated with the event. */
575
+ entityId?: string;
576
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
577
+ eventTime?: Date | null;
578
+ /**
579
+ * Whether the event was triggered as a result of a privacy regulation application
580
+ * (for example, GDPR).
581
+ */
582
+ triggeredByAnonymizeRequest?: boolean | null;
583
+ /** If present, indicates the action that triggered the event. */
584
+ originatedFrom?: string | null;
585
+ /**
586
+ * 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.
587
+ * 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.
588
+ */
589
+ entityEventSequence?: string | null;
590
+ accountInfo?: AccountInfoMetadata;
591
+ }
592
+ interface AccountInfoMetadata {
593
+ /** ID of the Wix account associated with the event */
594
+ accountId: string;
595
+ /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
596
+ siteId?: string;
597
+ /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
598
+ parentAccountId?: string;
599
+ }
600
+ interface PipelineCreatedEnvelope {
601
+ entity: Pipeline;
602
+ metadata: EventMetadata;
603
+ }
604
+ /**
605
+ * Triggered when a pipeline is created.
606
+ * @permissionScope Manage Pipelines
607
+ * @permissionScopeId SCOPE.DC-CRM.MANAGE-PIPELINES
608
+ * @permissionScope Read Pipelines
609
+ * @permissionScopeId SCOPE.DC-CRM.READ-PIPELINES
610
+ * @permissionId PIPELINES.PIPELINE_READ
611
+ * @webhook
612
+ * @eventType wix.crm.pipelines.v1.pipeline_created
613
+ * @slug created
614
+ * @documentationMaturity preview
615
+ */
616
+ declare function onPipelineCreated(handler: (event: PipelineCreatedEnvelope) => void | Promise<void>): void;
617
+ interface PipelineDeletedEnvelope {
618
+ entity: Pipeline;
619
+ metadata: EventMetadata;
620
+ }
621
+ /**
622
+ * Triggered when a pipeline is deleted.
623
+ * @permissionScope Manage Pipelines
624
+ * @permissionScopeId SCOPE.DC-CRM.MANAGE-PIPELINES
625
+ * @permissionScope Read Pipelines
626
+ * @permissionScopeId SCOPE.DC-CRM.READ-PIPELINES
627
+ * @permissionId PIPELINES.PIPELINE_READ
628
+ * @webhook
629
+ * @eventType wix.crm.pipelines.v1.pipeline_deleted
630
+ * @slug deleted
631
+ * @documentationMaturity preview
632
+ */
633
+ declare function onPipelineDeleted(handler: (event: PipelineDeletedEnvelope) => void | Promise<void>): void;
634
+ interface PipelineUpdatedEnvelope {
635
+ entity: Pipeline;
636
+ metadata: EventMetadata;
637
+ /** @hidden */
638
+ modifiedFields: Record<string, any>;
639
+ }
640
+ /**
641
+ * Triggered when a pipeline is updated.
642
+ * @permissionScope Manage Pipelines
643
+ * @permissionScopeId SCOPE.DC-CRM.MANAGE-PIPELINES
644
+ * @permissionScope Read Pipelines
645
+ * @permissionScopeId SCOPE.DC-CRM.READ-PIPELINES
646
+ * @permissionId PIPELINES.PIPELINE_READ
647
+ * @webhook
648
+ * @eventType wix.crm.pipelines.v1.pipeline_updated
649
+ * @slug updated
650
+ * @documentationMaturity preview
651
+ */
652
+ declare function onPipelineUpdated(handler: (event: PipelineUpdatedEnvelope) => void | Promise<void>): void;
653
+ /**
654
+ * Creates a pipeline with defined stages and a final stage.
655
+ *
656
+ * Pipelines must have at least one stage in addition to the `doneStage`.
657
+ * You must specify allowed outcomes that cards can have when moved to the final stage.
658
+ * @param pipeline - Pipeline to create.
659
+ * @public
660
+ * @documentationMaturity preview
661
+ * @requiredField pipeline
662
+ * @requiredField pipeline.doneStage
663
+ * @requiredField pipeline.doneStage.allowedOutcomes
664
+ * @requiredField pipeline.doneStage.name
665
+ * @requiredField pipeline.name
666
+ * @requiredField pipeline.stages
667
+ * @requiredField pipeline.stages.name
668
+ * @permissionId PIPELINES.PIPELINE_CREATE
669
+ * @applicableIdentity APP
670
+ * @returns Created pipeline.
671
+ * @fqn wix.crm.pipelines.pipelines.v1.Pipelines.CreatePipeline
672
+ */
673
+ declare function createPipeline(pipeline: NonNullablePaths<Pipeline, `doneStage` | `doneStage.allowedOutcomes` | `doneStage.name` | `name` | `stages` | `stages.${number}.name`, 4>): Promise<NonNullablePaths<Pipeline, `stages` | `doneStage.allowedOutcomes` | `tags.privateTags.tagIds`, 4>>;
674
+ /**
675
+ * Retrieves a pipeline by ID.
676
+ * @param pipelineId - Pipeline ID to retrieve.
677
+ * @public
678
+ * @documentationMaturity preview
679
+ * @requiredField pipelineId
680
+ * @permissionId PIPELINES.PIPELINE_READ
681
+ * @applicableIdentity APP
682
+ * @returns Retrieved pipeline.
683
+ * @fqn wix.crm.pipelines.pipelines.v1.Pipelines.GetPipeline
684
+ */
685
+ declare function getPipeline(pipelineId: string): Promise<NonNullablePaths<Pipeline, `stages` | `doneStage.allowedOutcomes` | `tags.privateTags.tagIds`, 4>>;
686
+ /**
687
+ * Updates a pipeline.
688
+ *
689
+ * Each time the pipeline is updated, `revision` increments by 1. The current `revision` must be specified when updating the pipeline. This ensures you're working with the latest pipeline and prevents unintended overwrites.
690
+ *
691
+ * >**Note:**
692
+ * > You can add and remove stages by calling this method. However, the done stage and any stages that contain cards can't be removed.
693
+ *
694
+ * </blockquote>
695
+ * @param _id - Pipeline ID.
696
+ * @public
697
+ * @documentationMaturity preview
698
+ * @requiredField _id
699
+ * @requiredField pipeline
700
+ * @requiredField pipeline.revision
701
+ * @permissionId PIPELINES.PIPELINE_UPDATE
702
+ * @applicableIdentity APP
703
+ * @returns Updated pipeline.
704
+ * @fqn wix.crm.pipelines.pipelines.v1.Pipelines.UpdatePipeline
705
+ */
706
+ declare function updatePipeline(_id: string, pipeline: NonNullablePaths<UpdatePipeline, `revision`, 2>): Promise<NonNullablePaths<Pipeline, `stages` | `doneStage.allowedOutcomes` | `tags.privateTags.tagIds`, 4> & {
707
+ __applicationErrorsType?: UpdatePipelineApplicationErrors;
708
+ }>;
709
+ interface UpdatePipeline {
710
+ /**
711
+ * Pipeline ID.
712
+ * @format GUID
713
+ * @readonly
714
+ */
715
+ _id?: string | null;
716
+ /**
717
+ * Revision number, which increments by 1 each time the pipeline is updated.
718
+ * To prevent conflicting changes, the current revision must be passed when updating the pipeline.
719
+ *
720
+ * Ignored when creating a pipeline.
721
+ * @readonly
722
+ */
723
+ revision?: string | null;
724
+ /**
725
+ * Date and time the pipeline was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
726
+ * @readonly
727
+ */
728
+ _createdDate?: Date | null;
729
+ /**
730
+ * Date and time the pipeline was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
731
+ * @readonly
732
+ */
733
+ _updatedDate?: Date | null;
734
+ /**
735
+ * Pipeline name.
736
+ * @minLength 1
737
+ * @maxLength 60
738
+ */
739
+ name?: string | null;
740
+ /**
741
+ * Currency code for monetary values in this pipeline. Must be a valid ISO 4217 currency code. For example, `USD`.
742
+ *
743
+ * Default: Based on the site's currency settings.
744
+ * @format CURRENCY
745
+ * @immutable
746
+ */
747
+ currency?: string | null;
748
+ /**
749
+ * Pipeline stages in order.
750
+ * Cards move through these stages as they progress through the business process.
751
+ * @minSize 1
752
+ * @maxSize 30
753
+ */
754
+ stages?: Stage[];
755
+ /** The final pipeline stage where cards receive a final outcome. */
756
+ doneStage?: DoneStage;
757
+ /** Extended fields data. */
758
+ extendedFields?: ExtendedFields;
759
+ /** Tags for organizing and categorizing pipelines. */
760
+ tags?: PrivateTags;
761
+ }
762
+ /**
763
+ * Deletes a pipeline.
764
+ *
765
+ * >**Notes:**
766
+ * > - You can't delete a pipeline that contains cards. Make sure to remove all cards in the pipeline before calling this method.
767
+ * > - Deleting a pipeline permanently removes it from a site.
768
+ * @param pipelineId - Pipeline ID.
769
+ * @public
770
+ * @documentationMaturity preview
771
+ * @requiredField pipelineId
772
+ * @permissionId PIPELINES.PIPELINE_DELETE
773
+ * @applicableIdentity APP
774
+ * @fqn wix.crm.pipelines.pipelines.v1.Pipelines.DeletePipeline
775
+ */
776
+ declare function deletePipeline(pipelineId: string): Promise<void & {
777
+ __applicationErrorsType?: DeletePipelineApplicationErrors;
778
+ }>;
779
+ /**
780
+ * Retrieves a list of up to 100 pipelines, given the provided paging, filtering, and sorting.
781
+ *
782
+ * By default, 50 pipelines are returned and sorted by `updatedDate` in descending order.
783
+ *
784
+ * For a detailed list of supported operations, see [Pipelines: Supported Filters and Sorting](https://dev.wix.com/docs/api-reference/crm/crm/pipelines-management/pipelines/supported-filters-and-sorting).
785
+ *
786
+ * To learn more about querying pipelines, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging).
787
+ * @public
788
+ * @documentationMaturity preview
789
+ * @permissionId PIPELINES.PIPELINE_READ
790
+ * @applicableIdentity APP
791
+ * @fqn wix.crm.pipelines.pipelines.v1.Pipelines.QueryPipelines
792
+ */
793
+ declare function queryPipelines(): PipelinesQueryBuilder;
794
+ interface QueryCursorResult {
795
+ cursors: Cursors;
796
+ hasNext: () => boolean;
797
+ hasPrev: () => boolean;
798
+ length: number;
799
+ pageSize: number;
800
+ }
801
+ interface PipelinesQueryResult extends QueryCursorResult {
802
+ items: Pipeline[];
803
+ query: PipelinesQueryBuilder;
804
+ next: () => Promise<PipelinesQueryResult>;
805
+ prev: () => Promise<PipelinesQueryResult>;
806
+ }
807
+ interface PipelinesQueryBuilder {
808
+ /** @param propertyName - Property whose value is compared with `value`.
809
+ * @param value - Value to compare against.
810
+ * @documentationMaturity preview
811
+ */
812
+ eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => PipelinesQueryBuilder;
813
+ /** @param propertyName - Property whose value is compared with `value`.
814
+ * @param value - Value to compare against.
815
+ * @documentationMaturity preview
816
+ */
817
+ ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => PipelinesQueryBuilder;
818
+ /** @param propertyName - Property whose value is compared with `value`.
819
+ * @param value - Value to compare against.
820
+ * @documentationMaturity preview
821
+ */
822
+ ge: (propertyName: '_createdDate' | '_updatedDate', value: any) => PipelinesQueryBuilder;
823
+ /** @param propertyName - Property whose value is compared with `value`.
824
+ * @param value - Value to compare against.
825
+ * @documentationMaturity preview
826
+ */
827
+ gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => PipelinesQueryBuilder;
828
+ /** @param propertyName - Property whose value is compared with `value`.
829
+ * @param value - Value to compare against.
830
+ * @documentationMaturity preview
831
+ */
832
+ le: (propertyName: '_createdDate' | '_updatedDate', value: any) => PipelinesQueryBuilder;
833
+ /** @param propertyName - Property whose value is compared with `value`.
834
+ * @param value - Value to compare against.
835
+ * @documentationMaturity preview
836
+ */
837
+ lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => PipelinesQueryBuilder;
838
+ /** @param propertyName - Property whose value is compared with `string`.
839
+ * @param string - String to compare against. Case-insensitive.
840
+ * @documentationMaturity preview
841
+ */
842
+ startsWith: (propertyName: 'name', value: string) => PipelinesQueryBuilder;
843
+ /** @documentationMaturity preview */
844
+ in: (propertyName: '_id' | 'name', value: any) => PipelinesQueryBuilder;
845
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
846
+ * @documentationMaturity preview
847
+ */
848
+ ascending: (...propertyNames: Array<'_createdDate' | 'name'>) => PipelinesQueryBuilder;
849
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
850
+ * @documentationMaturity preview
851
+ */
852
+ descending: (...propertyNames: Array<'_updatedDate'>) => PipelinesQueryBuilder;
853
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
854
+ * @documentationMaturity preview
855
+ */
856
+ limit: (limit: number) => PipelinesQueryBuilder;
857
+ /** @param cursor - A pointer to specific record
858
+ * @documentationMaturity preview
859
+ */
860
+ skipTo: (cursor: string) => PipelinesQueryBuilder;
861
+ /** @documentationMaturity preview */
862
+ find: () => Promise<PipelinesQueryResult>;
863
+ }
864
+ /**
865
+ * @hidden
866
+ * @fqn wix.crm.pipelines.pipelines.v1.Pipelines.QueryPipelines
867
+ * @requiredField query
868
+ */
869
+ declare function typedQueryPipelines(query: PipelineQuery): Promise<NonNullablePaths<QueryPipelinesResponse, `pipelines`, 2>>;
870
+ interface PipelineQuerySpec extends QuerySpec {
871
+ paging: 'cursor';
872
+ wql: [
873
+ {
874
+ fields: ['_id'];
875
+ operators: ['$eq', '$in', '$ne', '$nin'];
876
+ sort: 'NONE';
877
+ },
878
+ {
879
+ fields: ['_createdDate'];
880
+ operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
881
+ sort: 'ASC';
882
+ },
883
+ {
884
+ fields: ['_updatedDate'];
885
+ operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
886
+ sort: 'DESC';
887
+ },
888
+ {
889
+ fields: ['name'];
890
+ operators: ['$eq', '$in', '$ne', '$nin', '$startsWith'];
891
+ sort: 'ASC';
892
+ }
893
+ ];
894
+ }
895
+ type CommonQueryWithEntityContext = Query<Pipeline, PipelineQuerySpec>;
896
+ type PipelineQuery = {
897
+ /**
898
+ Cursor paging options.
899
+
900
+ Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
901
+ */
902
+ cursorPaging?: {
903
+ /**
904
+ Maximum number of items to return.
905
+ @max: 100
906
+ */
907
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
908
+ /**
909
+ Pointer to the next or previous page in the list of results.
910
+
911
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
912
+ Not relevant for the first request.
913
+ @maxLength: 16000
914
+ */
915
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
916
+ };
917
+ /**
918
+ Filter object.
919
+
920
+ Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
921
+ */
922
+ filter?: CommonQueryWithEntityContext['filter'] | null;
923
+ /**
924
+ Sort object.
925
+
926
+ Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
927
+ @maxSize: 5
928
+ */
929
+ sort?: {
930
+ /**
931
+ Name of the field to sort by.
932
+ @maxLength: 512
933
+ */
934
+ fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
935
+ /**
936
+ Sort order.
937
+ */
938
+ order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
939
+ }[];
940
+ };
941
+ declare const utils: {
942
+ query: {
943
+ QueryBuilder: () => _wix_sdk_types.QueryBuilder<Pipeline, PipelineQuerySpec, PipelineQuery>;
944
+ Filter: _wix_sdk_types.FilterFactory<Pipeline, PipelineQuerySpec>;
945
+ Sort: _wix_sdk_types.SortFactory<PipelineQuerySpec>;
946
+ };
947
+ };
948
+ /**
949
+ * Updates tags on multiple pipelines by specified pipeline IDs.
950
+ *
951
+ * If you specify a tag in both `assignTags` and `unassignTags`, the tag is assigned to the pipelines.
952
+ * @param pipelineIds - List of pipeline IDs to update.
953
+ * @public
954
+ * @documentationMaturity preview
955
+ * @requiredField pipelineIds
956
+ * @permissionId PIPELINES.PIPELINE_UPDATE_TAGS
957
+ * @applicableIdentity APP
958
+ * @fqn wix.crm.pipelines.pipelines.v1.Pipelines.BulkUpdatePipelineTags
959
+ */
960
+ declare function bulkUpdatePipelineTags(pipelineIds: string[], options?: BulkUpdatePipelineTagsOptions): Promise<NonNullablePaths<BulkUpdatePipelineTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
961
+ __applicationErrorsType?: BulkUpdatePipelineTagsApplicationErrors;
962
+ }>;
963
+ interface BulkUpdatePipelineTagsOptions {
964
+ /** List of tags to assign. */
965
+ assignTags?: PrivateTags;
966
+ /** List of tags to unassign. */
967
+ unassignTags?: PrivateTags;
968
+ /**
969
+ * Whether to return the updated pipelines in the response.
970
+ *
971
+ * Default: `false`
972
+ */
973
+ returnEntity?: boolean;
974
+ }
975
+ /**
976
+ * Updates tags on multiple pipelines, using a filter to select which pipelines to update.
11
977
  *
12
- * For a detailed list of supported filters, sorting options, and search capabilities, see [Cards: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/api-reference/crm/crm/pipelines-wip/card-v1/sort-filter-and-search).
978
+ * If you don't specify a filter, all pipelines on the site are updated.
979
+ * If you specify a tag in both `assignTags` and `unassignTags`, the tag is assigned to the pipelines.
13
980
  *
14
- * To learn more about working with _Search_ methods, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging).
15
- * @param search - Search options.
981
+ * > **Note:**
982
+ * > This is an asynchronous method that returns a job ID for tracking progress.
983
+ * To get the status of the job, call [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job).
984
+ * @param filter - Filter to select which pipelines to update.
16
985
  * @public
17
986
  * @documentationMaturity preview
18
- * @requiredField search
19
- * @permissionId PIPELINE_CARDS.CARD_READ
987
+ * @requiredField filter
988
+ * @permissionId PIPELINES.PIPELINE_UPDATE_TAGS
20
989
  * @applicableIdentity APP
21
- * @fqn wix.crm.pipelines.cards.v1.Cards.SearchCards
990
+ * @fqn wix.crm.pipelines.pipelines.v1.Pipelines.BulkUpdatePipelineTagsByFilter
22
991
  */
23
- declare function searchCards(search: CursorSearch, options: SearchCardsOptions): Promise<SearchCardsResponse>;
992
+ declare function bulkUpdatePipelineTagsByFilter(filter: Record<string, any>, options?: BulkUpdatePipelineTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdatePipelineTagsByFilterResponse, `jobId`, 2> & {
993
+ __applicationErrorsType?: BulkUpdatePipelineTagsByFilterApplicationErrors;
994
+ }>;
995
+ interface BulkUpdatePipelineTagsByFilterOptions {
996
+ /** List of tags to assign. */
997
+ assignTags?: PrivateTags;
998
+ /** List of tags to unassign. */
999
+ unassignTags?: PrivateTags;
1000
+ /**
1001
+ * Whether to return the updated pipelines in the response.
1002
+ *
1003
+ * Default: `false`
1004
+ */
1005
+ returnEntity?: boolean;
1006
+ }
24
1007
 
25
- export { type CardSearch, CursorSearch, SearchCardsOptions, SearchCardsResponse, searchCards };
1008
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkUpdatePipelineTagsApplicationErrors, type BulkUpdatePipelineTagsByFilterApplicationErrors, type BulkUpdatePipelineTagsByFilterOptions, type BulkUpdatePipelineTagsByFilterRequest, type BulkUpdatePipelineTagsByFilterResponse, type BulkUpdatePipelineTagsOptions, type BulkUpdatePipelineTagsRequest, type BulkUpdatePipelineTagsResponse, type BulkUpdatePipelineTagsResult, type CommonQueryWithEntityContext, type CreatePipelineRequest, type CreatePipelineResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeletePipelineApplicationErrors, type DeletePipelineRequest, type DeletePipelineResponse, type DomainEvent, type DomainEventBodyOneOf, type DoneStage, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetPipelineRequest, type GetPipelineResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, Outcome, type OutcomeWithLiterals, type Pipeline, type PipelineCreatedEnvelope, type PipelineDeletedEnvelope, type PipelineQuery, type PipelineQuerySpec, type PipelineUpdatedEnvelope, type PipelinesQueryBuilder, type PipelinesQueryResult, type PrivateTags, type QueryPipelinesRequest, type QueryPipelinesResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type Stage, type TagList, type UpdatePipeline, type UpdatePipelineApplicationErrors, type UpdatePipelineRequest, type UpdatePipelineResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkUpdatePipelineTags, bulkUpdatePipelineTagsByFilter, createPipeline, deletePipeline, getPipeline, onPipelineCreated, onPipelineDeleted, onPipelineUpdated, queryPipelines, typedQueryPipelines, updatePipeline, utils };