@wix/workflows 1.0.36 → 1.0.37

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.
@@ -1,1580 +0,0 @@
1
- interface Card$5 {
2
- /** Card details. */
3
- info?: CardInfo$5;
4
- }
5
- /** entity representing a card-info */
6
- interface CardInfo$5 {
7
- /**
8
- * Card ID.
9
- * @readonly
10
- */
11
- id?: string | null;
12
- /** Display name shown at the top of the card. */
13
- name?: string | null;
14
- /** Card description. */
15
- description?: string | null;
16
- /** Details about the contact attached to the card. */
17
- primaryAttachment?: Attachment$5;
18
- /** Due date. */
19
- dueDate?: Date | null;
20
- /** Name of the app or service that created the contact. */
21
- source?: string | null;
22
- /**
23
- * Deprecated. Use `createdDate` instead.
24
- * @readonly
25
- * @deprecated
26
- */
27
- createdAt?: Date | null;
28
- /**
29
- * Deprecated. Use `updatedDate` instead.
30
- * @readonly
31
- * @deprecated
32
- */
33
- updatedAt?: Date | null;
34
- /**
35
- * ID of the phase that currently holds the card.
36
- * @readonly
37
- */
38
- phaseId?: string | null;
39
- /**
40
- * Date and time the card was created.
41
- * @readonly
42
- */
43
- createdDate?: Date | null;
44
- /**
45
- * Date and time the card was updated.
46
- * @readonly
47
- */
48
- updatedDate?: Date | null;
49
- }
50
- interface Attachment$5 {
51
- /**
52
- * Attachment ID. For internal use.
53
- * @readonly
54
- */
55
- attachmentId?: string;
56
- /**
57
- * Deprecated. Use `contactId` instead.
58
- * @deprecated
59
- */
60
- value?: string;
61
- /**
62
- * Deprecated. For internal use.
63
- * @deprecated
64
- */
65
- attachmentType?: AttachmentType$5;
66
- /** ID of the contact attached to the card. */
67
- contactId?: string;
68
- }
69
- /** describes the supported types of attachments (currently only supports Contact which is the default type) */
70
- declare enum AttachmentType$5 {
71
- ContactType = "ContactType"
72
- }
73
- interface PaginationResponse$5 {
74
- /** Number of items that were skipped in the current sort order. */
75
- offset?: number;
76
- /** Total number of items that matched the filter. */
77
- total?: number;
78
- /** Number of returned items. */
79
- count?: number;
80
- }
81
- interface ListCardsRequest$1 {
82
- /** ID of the workflow whose cards will be listed. */
83
- workflowId: string;
84
- /** Filters for cards in the specified phase. */
85
- phaseId?: string | null;
86
- /**
87
- * Number of items to return.
88
- *
89
- * Defaults to `50`.
90
- */
91
- limit?: number | null;
92
- /**
93
- * Number of items to skip in the current sort order.
94
- *
95
- * Defaults to `0`.
96
- */
97
- offset?: number | null;
98
- /** Filters for cards with the specified contact ID. */
99
- attachmentValue?: string | null;
100
- /**
101
- * Filters for archived cards.
102
- * If set to `true`,
103
- * only archived cards are returned.
104
- * If set to `false`,
105
- * only cards that are not archived are returned.
106
- *
107
- * Defaults to `false`.
108
- */
109
- fetchArchived?: boolean | null;
110
- /**
111
- * Supported fields:
112
- * `id`, `name`, `createdDate`, `updatedDate`, `phaseId`
113
- *
114
- * List of fields to sort by.
115
- * Formatted as `field:direction`,
116
- * where field is the field name
117
- * and direction is `asc` (ascending) or `desc` (descending).
118
- *
119
- * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
120
- */
121
- sort?: string[];
122
- }
123
- interface ListCardsResponse$1 {
124
- /** List of cards. */
125
- cards?: Card$5[];
126
- /** Metadata for the page of results. */
127
- pagination?: PaginationResponse$5;
128
- }
129
- interface GetCardRequest$1 {
130
- /** ID of the card to retrieve. */
131
- id: string;
132
- }
133
- interface GetCardResponse$1 {
134
- /** Requested card. */
135
- card?: Card$5;
136
- }
137
- interface UpdateCardRequest$1 {
138
- /** ID of the card to update. */
139
- id: string;
140
- /** Card details. */
141
- cardInfo?: CardInfo$5;
142
- }
143
- interface UpdateCardResponse$1 {
144
- }
145
- interface CreateCardRequest$1 {
146
- /** ID of the workflow to create the card in. */
147
- workflowId: string;
148
- /** ID of the phase to create the card in. */
149
- phaseId: string;
150
- /** Card details. */
151
- card?: CardInfo$5;
152
- /**
153
- * Card position, where the first card is `0`.
154
- *
155
- * If a card already occupies the specified position,
156
- * that card and any subsequent cards are shifted to the right by 1.
157
- *
158
- * Defaults to the last position.
159
- */
160
- position?: number | null;
161
- }
162
- interface CreateCardResponse$1 {
163
- /** ID of the newly created card. */
164
- id?: string | null;
165
- }
166
- interface DeleteCardRequest$1 {
167
- /** ID of the card to delete. */
168
- id: string;
169
- }
170
- interface DeleteCardResponse$1 {
171
- }
172
- interface MoveCardRequest$1 {
173
- /** ID of the card to move. */
174
- id: string;
175
- /** ID of the phase to move the card to. */
176
- newPhaseId?: string | null;
177
- /** Position of the card in the phase, where the first card is `0`. */
178
- newPosition?: number | null;
179
- }
180
- interface MoveCardResponse$1 {
181
- }
182
- interface RestoreCardRequest$1 {
183
- /** ID of the card to restore. */
184
- id: string;
185
- /** ID of the phase to restore the card to. */
186
- newPhaseId: string;
187
- /**
188
- * Position of the restored card in the phase,
189
- * where the first card is `0`.
190
- */
191
- newPosition?: number | null;
192
- }
193
- interface RestoreCardResponse$1 {
194
- }
195
- interface ArchiveCardRequest$1 {
196
- /** ID of the card to archive. */
197
- id: string;
198
- }
199
- interface ArchiveCardResponse$1 {
200
- }
201
- interface AttachmentNonNullableFields$5 {
202
- attachmentId: string;
203
- value: string;
204
- attachmentType: AttachmentType$5;
205
- contactId: string;
206
- }
207
- interface CardInfoNonNullableFields$5 {
208
- primaryAttachment?: AttachmentNonNullableFields$5;
209
- }
210
- interface CardNonNullableFields$5 {
211
- info?: CardInfoNonNullableFields$5;
212
- }
213
- interface PaginationResponseNonNullableFields$5 {
214
- offset: number;
215
- limit: number;
216
- total: number;
217
- count: number;
218
- }
219
- interface ListCardsResponseNonNullableFields$1 {
220
- cards: CardNonNullableFields$5[];
221
- pagination?: PaginationResponseNonNullableFields$5;
222
- }
223
- interface GetCardResponseNonNullableFields$1 {
224
- card?: CardNonNullableFields$5;
225
- }
226
-
227
- interface Card$4 {
228
- /** Card details. */
229
- info?: CardInfo$4;
230
- }
231
- /** entity representing a card-info */
232
- interface CardInfo$4 {
233
- /**
234
- * Card ID.
235
- * @readonly
236
- */
237
- _id?: string | null;
238
- /** Display name shown at the top of the card. */
239
- name?: string | null;
240
- /** Card description. */
241
- description?: string | null;
242
- /** Details about the contact attached to the card. */
243
- primaryAttachment?: Attachment$4;
244
- /** Due date. */
245
- dueDate?: Date | null;
246
- /** Name of the app or service that created the contact. */
247
- source?: string | null;
248
- /**
249
- * @internal
250
- * @internal
251
- * @readonly
252
- * @deprecated
253
- */
254
- createdAt?: Date | null;
255
- /**
256
- * @internal
257
- * @internal
258
- * @readonly
259
- * @deprecated
260
- */
261
- updatedAt?: Date | null;
262
- /**
263
- * ID of the phase that currently holds the card.
264
- * @readonly
265
- */
266
- phaseId?: string | null;
267
- /**
268
- * Date and time the card was created.
269
- * @readonly
270
- */
271
- _createdDate?: Date | null;
272
- /**
273
- * Date and time the card was updated.
274
- * @readonly
275
- */
276
- _updatedDate?: Date | null;
277
- }
278
- interface Attachment$4 {
279
- /**
280
- * Attachment ID. For internal use.
281
- * @readonly
282
- */
283
- attachmentId?: string;
284
- /**
285
- * @internal
286
- * @internal
287
- * @deprecated
288
- */
289
- value?: string;
290
- /**
291
- * @internal
292
- * @internal
293
- * @deprecated
294
- */
295
- attachmentType?: AttachmentType$4;
296
- /** ID of the contact attached to the card. */
297
- contactId?: string;
298
- }
299
- /** describes the supported types of attachments (currently only supports Contact which is the default type) */
300
- declare enum AttachmentType$4 {
301
- ContactType = "ContactType"
302
- }
303
- interface PaginationResponse$4 {
304
- /** Number of items that were skipped in the current sort order. */
305
- offset?: number;
306
- /** Total number of items that matched the filter. */
307
- total?: number;
308
- /** Number of returned items. */
309
- count?: number;
310
- }
311
- interface ListCardsRequest {
312
- /** ID of the workflow whose cards will be listed. */
313
- workflowId: string;
314
- /** Filters for cards in the specified phase. */
315
- phaseId?: string | null;
316
- /**
317
- * Number of items to return.
318
- *
319
- * Defaults to `50`.
320
- */
321
- limit?: number | null;
322
- /**
323
- * Number of items to skip in the current sort order.
324
- *
325
- * Defaults to `0`.
326
- */
327
- offset?: number | null;
328
- /** Filters for cards with the specified contact ID. */
329
- attachmentValue?: string | null;
330
- /**
331
- * Filters for archived cards.
332
- * If set to `true`,
333
- * only archived cards are returned.
334
- * If set to `false`,
335
- * only cards that are not archived are returned.
336
- *
337
- * Defaults to `false`.
338
- */
339
- fetchArchived?: boolean | null;
340
- /**
341
- * Supported fields:
342
- * `id`, `name`, `createdDate`, `updatedDate`, `phaseId`
343
- *
344
- * List of fields to sort by.
345
- * Formatted as `field:direction`,
346
- * where field is the field name
347
- * and direction is `asc` (ascending) or `desc` (descending).
348
- *
349
- * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
350
- */
351
- sort?: string[];
352
- }
353
- interface ListCardsResponse {
354
- /** List of cards. */
355
- cards?: Card$4[];
356
- /** Metadata for the page of results. */
357
- pagination?: PaginationResponse$4;
358
- }
359
- interface GetCardRequest {
360
- /** ID of the card to retrieve. */
361
- _id: string;
362
- }
363
- interface GetCardResponse {
364
- /** Requested card. */
365
- card?: Card$4;
366
- }
367
- interface UpdateCardRequest {
368
- /** ID of the card to update. */
369
- _id: string;
370
- /** Card details. */
371
- cardInfo?: CardInfo$4;
372
- }
373
- interface UpdateCardResponse {
374
- }
375
- interface CreateCardRequest {
376
- /** ID of the workflow to create the card in. */
377
- workflowId: string;
378
- /** ID of the phase to create the card in. */
379
- phaseId: string;
380
- /** Card details. */
381
- card?: CardInfo$4;
382
- /**
383
- * Card position, where the first card is `0`.
384
- *
385
- * If a card already occupies the specified position,
386
- * that card and any subsequent cards are shifted to the right by 1.
387
- *
388
- * Defaults to the last position.
389
- */
390
- position?: number | null;
391
- }
392
- interface CreateCardResponse {
393
- /** ID of the newly created card. */
394
- _id?: string | null;
395
- }
396
- interface DeleteCardRequest {
397
- /** ID of the card to delete. */
398
- _id: string;
399
- }
400
- interface DeleteCardResponse {
401
- }
402
- interface MoveCardRequest {
403
- /** ID of the card to move. */
404
- _id: string;
405
- /** ID of the phase to move the card to. */
406
- newPhaseId?: string | null;
407
- /** Position of the card in the phase, where the first card is `0`. */
408
- newPosition?: number | null;
409
- }
410
- interface MoveCardResponse {
411
- }
412
- interface RestoreCardRequest {
413
- /** ID of the card to restore. */
414
- _id: string;
415
- /** ID of the phase to restore the card to. */
416
- newPhaseId: string;
417
- /**
418
- * Position of the restored card in the phase,
419
- * where the first card is `0`.
420
- */
421
- newPosition?: number | null;
422
- }
423
- interface RestoreCardResponse {
424
- }
425
- interface ArchiveCardRequest {
426
- /** ID of the card to archive. */
427
- _id: string;
428
- }
429
- interface ArchiveCardResponse {
430
- }
431
- interface AttachmentNonNullableFields$4 {
432
- attachmentId: string;
433
- value: string;
434
- attachmentType: AttachmentType$4;
435
- contactId: string;
436
- }
437
- interface CardInfoNonNullableFields$4 {
438
- primaryAttachment?: AttachmentNonNullableFields$4;
439
- }
440
- interface CardNonNullableFields$4 {
441
- info?: CardInfoNonNullableFields$4;
442
- }
443
- interface PaginationResponseNonNullableFields$4 {
444
- offset: number;
445
- limit: number;
446
- total: number;
447
- count: number;
448
- }
449
- interface ListCardsResponseNonNullableFields {
450
- cards: CardNonNullableFields$4[];
451
- pagination?: PaginationResponseNonNullableFields$4;
452
- }
453
- interface GetCardResponseNonNullableFields {
454
- card?: CardNonNullableFields$4;
455
- }
456
-
457
- type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
458
- getUrl: (context: any) => string;
459
- httpMethod: K;
460
- path: string;
461
- pathParams: M;
462
- __requestType: T;
463
- __originalRequestType: S;
464
- __responseType: Q;
465
- __originalResponseType: R;
466
- };
467
- declare function listCards(): __PublicMethodMetaInfo$2<'GET', {
468
- workflowId: string;
469
- }, ListCardsRequest, ListCardsRequest$1, ListCardsResponse & ListCardsResponseNonNullableFields, ListCardsResponse$1 & ListCardsResponseNonNullableFields$1>;
470
- declare function getCard(): __PublicMethodMetaInfo$2<'GET', {
471
- id: string;
472
- }, GetCardRequest, GetCardRequest$1, GetCardResponse & GetCardResponseNonNullableFields, GetCardResponse$1 & GetCardResponseNonNullableFields$1>;
473
- declare function updateCard(): __PublicMethodMetaInfo$2<'PATCH', {
474
- id: string;
475
- }, UpdateCardRequest, UpdateCardRequest$1, UpdateCardResponse, UpdateCardResponse$1>;
476
- declare function createCard(): __PublicMethodMetaInfo$2<'POST', {
477
- workflowId: string;
478
- phaseId: string;
479
- }, CreateCardRequest, CreateCardRequest$1, CreateCardResponse, CreateCardResponse$1>;
480
- declare function deleteCard(): __PublicMethodMetaInfo$2<'DELETE', {
481
- id: string;
482
- }, DeleteCardRequest, DeleteCardRequest$1, DeleteCardResponse, DeleteCardResponse$1>;
483
- declare function moveCard(): __PublicMethodMetaInfo$2<'POST', {
484
- id: string;
485
- }, MoveCardRequest, MoveCardRequest$1, MoveCardResponse, MoveCardResponse$1>;
486
- declare function restoreCard(): __PublicMethodMetaInfo$2<'POST', {
487
- id: string;
488
- }, RestoreCardRequest, RestoreCardRequest$1, RestoreCardResponse, RestoreCardResponse$1>;
489
- declare function archiveCard(): __PublicMethodMetaInfo$2<'POST', {
490
- id: string;
491
- }, ArchiveCardRequest, ArchiveCardRequest$1, ArchiveCardResponse, ArchiveCardResponse$1>;
492
-
493
- declare const meta$2_archiveCard: typeof archiveCard;
494
- declare const meta$2_createCard: typeof createCard;
495
- declare const meta$2_deleteCard: typeof deleteCard;
496
- declare const meta$2_getCard: typeof getCard;
497
- declare const meta$2_listCards: typeof listCards;
498
- declare const meta$2_moveCard: typeof moveCard;
499
- declare const meta$2_restoreCard: typeof restoreCard;
500
- declare const meta$2_updateCard: typeof updateCard;
501
- declare namespace meta$2 {
502
- export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_archiveCard as archiveCard, meta$2_createCard as createCard, meta$2_deleteCard as deleteCard, meta$2_getCard as getCard, meta$2_listCards as listCards, meta$2_moveCard as moveCard, meta$2_restoreCard as restoreCard, meta$2_updateCard as updateCard };
503
- }
504
-
505
- interface Phase$3 {
506
- /** Phase information. */
507
- info?: PhaseInfo$3;
508
- /** Cards contained in the phase. */
509
- cardsList?: CardsList$3;
510
- }
511
- interface PhaseInfo$3 {
512
- /**
513
- * Phase ID.
514
- * @readonly
515
- */
516
- id?: string | null;
517
- /** Display name shown at the top of the phase. */
518
- name?: string | null;
519
- }
520
- /** a list of cards (a page) along with the total number */
521
- interface CardsList$3 {
522
- /** Total number of cards in the phase. */
523
- total?: number;
524
- /**
525
- * List of cards in the phase.
526
- * Sorted according to the card display order, from top to bottom.
527
- */
528
- cards?: Card$3[];
529
- }
530
- interface Card$3 {
531
- /** Card details. */
532
- info?: CardInfo$3;
533
- }
534
- /** entity representing a card-info */
535
- interface CardInfo$3 {
536
- /**
537
- * Card ID.
538
- * @readonly
539
- */
540
- id?: string | null;
541
- /** Display name shown at the top of the card. */
542
- name?: string | null;
543
- /** Card description. */
544
- description?: string | null;
545
- /** Details about the contact attached to the card. */
546
- primaryAttachment?: Attachment$3;
547
- /** Due date. */
548
- dueDate?: Date | null;
549
- /** Name of the app or service that created the contact. */
550
- source?: string | null;
551
- /**
552
- * Deprecated. Use `createdDate` instead.
553
- * @readonly
554
- * @deprecated
555
- */
556
- createdAt?: Date | null;
557
- /**
558
- * Deprecated. Use `updatedDate` instead.
559
- * @readonly
560
- * @deprecated
561
- */
562
- updatedAt?: Date | null;
563
- /**
564
- * ID of the phase that currently holds the card.
565
- * @readonly
566
- */
567
- phaseId?: string | null;
568
- /**
569
- * Date and time the card was created.
570
- * @readonly
571
- */
572
- createdDate?: Date | null;
573
- /**
574
- * Date and time the card was updated.
575
- * @readonly
576
- */
577
- updatedDate?: Date | null;
578
- }
579
- interface Attachment$3 {
580
- /**
581
- * Attachment ID. For internal use.
582
- * @readonly
583
- */
584
- attachmentId?: string;
585
- /**
586
- * Deprecated. Use `contactId` instead.
587
- * @deprecated
588
- */
589
- value?: string;
590
- /**
591
- * Deprecated. For internal use.
592
- * @deprecated
593
- */
594
- attachmentType?: AttachmentType$3;
595
- /** ID of the contact attached to the card. */
596
- contactId?: string;
597
- }
598
- /** describes the supported types of attachments (currently only supports Contact which is the default type) */
599
- declare enum AttachmentType$3 {
600
- ContactType = "ContactType"
601
- }
602
- interface PaginationResponse$3 {
603
- /** Number of items that were skipped in the current sort order. */
604
- offset?: number;
605
- /** Total number of items that matched the filter. */
606
- total?: number;
607
- /** Number of returned items. */
608
- count?: number;
609
- }
610
- interface ListPhasesRequest$1 {
611
- /** ID of the workflow whose phases will be listed. */
612
- workflowId: string;
613
- /** Number of items to return. */
614
- limit?: number | null;
615
- /**
616
- * Number of items to skip in the current sort order.
617
- *
618
- * Defaults to `0`.
619
- */
620
- offset?: number | null;
621
- /**
622
- * Supported fields:
623
- * `id`, `name`
624
- *
625
- * List of fields to sort by.
626
- * Formatted as `field:direction`,
627
- * where field is the field name
628
- * and direction is `asc` (ascending) or `desc` (descending).
629
- *
630
- * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
631
- */
632
- sort?: string[];
633
- }
634
- interface ListPhasesResponse$1 {
635
- /** List of phases. */
636
- phases?: Phase$3[];
637
- /** Metadata for the page of results. */
638
- pagination?: PaginationResponse$3;
639
- }
640
- interface GetPhaseRequest$1 {
641
- /** ID of the phase to retrieve. */
642
- id: string;
643
- }
644
- interface GetPhaseResponse$1 {
645
- /** Requested phase. */
646
- phase?: Phase$3;
647
- }
648
- interface UpdatePhaseRequest$1 {
649
- /** ID of the phase to update. */
650
- id: string;
651
- /** Phase details to update. */
652
- phase?: PhaseInfo$3;
653
- }
654
- interface UpdatePhaseResponse$1 {
655
- }
656
- interface CreatePhaseRequest$1 {
657
- /** ID of the workflow to create the phase in. */
658
- workflowId: string;
659
- /** Phase details. */
660
- phase?: PhaseInfo$3;
661
- /**
662
- * Phase position, where the first phase is `0`.
663
- *
664
- * If a phase already occupies the specified position,
665
- * that phase and any subsequent phases
666
- * are shifted to the right by 1.
667
- *
668
- * Defaults to the last position,
669
- * which is displayed before the win phase.
670
- */
671
- position?: number | null;
672
- }
673
- interface CreatePhaseResponse$1 {
674
- /** ID of the newly created phase. */
675
- id?: string | null;
676
- }
677
- interface DeletePhaseRequest$1 {
678
- /** ID of the phase to delete. */
679
- id: string;
680
- }
681
- interface DeletePhaseResponse$1 {
682
- }
683
- interface MovePhaseRequest$1 {
684
- /** ID of the workflow that contains the phase to move. */
685
- workflowId: string;
686
- /** ID of the phase to move. */
687
- id: string;
688
- /**
689
- * New phase position, where the first phase is `0`.
690
- *
691
- * If a phase already occupies the specified position,
692
- * that phase and any subsequent phases
693
- * are shifted to the right by 1.
694
- */
695
- newPosition: number | null;
696
- }
697
- interface MovePhaseResponse$1 {
698
- }
699
- interface AttachmentNonNullableFields$3 {
700
- attachmentId: string;
701
- value: string;
702
- attachmentType: AttachmentType$3;
703
- contactId: string;
704
- }
705
- interface CardInfoNonNullableFields$3 {
706
- primaryAttachment?: AttachmentNonNullableFields$3;
707
- }
708
- interface CardNonNullableFields$3 {
709
- info?: CardInfoNonNullableFields$3;
710
- }
711
- interface CardsListNonNullableFields$3 {
712
- total: number;
713
- cards: CardNonNullableFields$3[];
714
- }
715
- interface PhaseNonNullableFields$3 {
716
- cardsList?: CardsListNonNullableFields$3;
717
- }
718
- interface PaginationResponseNonNullableFields$3 {
719
- offset: number;
720
- limit: number;
721
- total: number;
722
- count: number;
723
- }
724
- interface ListPhasesResponseNonNullableFields$1 {
725
- phases: PhaseNonNullableFields$3[];
726
- pagination?: PaginationResponseNonNullableFields$3;
727
- }
728
- interface GetPhaseResponseNonNullableFields$1 {
729
- phase?: PhaseNonNullableFields$3;
730
- }
731
-
732
- interface Phase$2 {
733
- /** Phase information. */
734
- info?: PhaseInfo$2;
735
- /** Cards contained in the phase. */
736
- cardsList?: CardsList$2;
737
- }
738
- interface PhaseInfo$2 {
739
- /**
740
- * Phase ID.
741
- * @readonly
742
- */
743
- _id?: string | null;
744
- /** Display name shown at the top of the phase. */
745
- name?: string | null;
746
- }
747
- /** a list of cards (a page) along with the total number */
748
- interface CardsList$2 {
749
- /** Total number of cards in the phase. */
750
- total?: number;
751
- /**
752
- * List of cards in the phase.
753
- * Sorted according to the card display order, from top to bottom.
754
- */
755
- cards?: Card$2[];
756
- }
757
- interface Card$2 {
758
- /** Card details. */
759
- info?: CardInfo$2;
760
- }
761
- /** entity representing a card-info */
762
- interface CardInfo$2 {
763
- /**
764
- * Card ID.
765
- * @readonly
766
- */
767
- _id?: string | null;
768
- /** Display name shown at the top of the card. */
769
- name?: string | null;
770
- /** Card description. */
771
- description?: string | null;
772
- /** Details about the contact attached to the card. */
773
- primaryAttachment?: Attachment$2;
774
- /** Due date. */
775
- dueDate?: Date | null;
776
- /** Name of the app or service that created the contact. */
777
- source?: string | null;
778
- /**
779
- * @internal
780
- * @internal
781
- * @readonly
782
- * @deprecated
783
- */
784
- createdAt?: Date | null;
785
- /**
786
- * @internal
787
- * @internal
788
- * @readonly
789
- * @deprecated
790
- */
791
- updatedAt?: Date | null;
792
- /**
793
- * ID of the phase that currently holds the card.
794
- * @readonly
795
- */
796
- phaseId?: string | null;
797
- /**
798
- * Date and time the card was created.
799
- * @readonly
800
- */
801
- _createdDate?: Date | null;
802
- /**
803
- * Date and time the card was updated.
804
- * @readonly
805
- */
806
- _updatedDate?: Date | null;
807
- }
808
- interface Attachment$2 {
809
- /**
810
- * Attachment ID. For internal use.
811
- * @readonly
812
- */
813
- attachmentId?: string;
814
- /**
815
- * @internal
816
- * @internal
817
- * @deprecated
818
- */
819
- value?: string;
820
- /**
821
- * @internal
822
- * @internal
823
- * @deprecated
824
- */
825
- attachmentType?: AttachmentType$2;
826
- /** ID of the contact attached to the card. */
827
- contactId?: string;
828
- }
829
- /** describes the supported types of attachments (currently only supports Contact which is the default type) */
830
- declare enum AttachmentType$2 {
831
- ContactType = "ContactType"
832
- }
833
- interface PaginationResponse$2 {
834
- /** Number of items that were skipped in the current sort order. */
835
- offset?: number;
836
- /** Total number of items that matched the filter. */
837
- total?: number;
838
- /** Number of returned items. */
839
- count?: number;
840
- }
841
- interface ListPhasesRequest {
842
- /** ID of the workflow whose phases will be listed. */
843
- workflowId: string;
844
- /** Number of items to return. */
845
- limit?: number | null;
846
- /**
847
- * Number of items to skip in the current sort order.
848
- *
849
- * Defaults to `0`.
850
- */
851
- offset?: number | null;
852
- /**
853
- * Supported fields:
854
- * `id`, `name`
855
- *
856
- * List of fields to sort by.
857
- * Formatted as `field:direction`,
858
- * where field is the field name
859
- * and direction is `asc` (ascending) or `desc` (descending).
860
- *
861
- * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
862
- */
863
- sort?: string[];
864
- }
865
- interface ListPhasesResponse {
866
- /** List of phases. */
867
- phases?: Phase$2[];
868
- /** Metadata for the page of results. */
869
- pagination?: PaginationResponse$2;
870
- }
871
- interface GetPhaseRequest {
872
- /** ID of the phase to retrieve. */
873
- _id: string;
874
- }
875
- interface GetPhaseResponse {
876
- /** Requested phase. */
877
- phase?: Phase$2;
878
- }
879
- interface UpdatePhaseRequest {
880
- /** ID of the phase to update. */
881
- _id: string;
882
- /** Phase details to update. */
883
- phase?: PhaseInfo$2;
884
- }
885
- interface UpdatePhaseResponse {
886
- }
887
- interface CreatePhaseRequest {
888
- /** ID of the workflow to create the phase in. */
889
- workflowId: string;
890
- /** Phase details. */
891
- phase?: PhaseInfo$2;
892
- /**
893
- * Phase position, where the first phase is `0`.
894
- *
895
- * If a phase already occupies the specified position,
896
- * that phase and any subsequent phases
897
- * are shifted to the right by 1.
898
- *
899
- * Defaults to the last position,
900
- * which is displayed before the win phase.
901
- */
902
- position?: number | null;
903
- }
904
- interface CreatePhaseResponse {
905
- /** ID of the newly created phase. */
906
- _id?: string | null;
907
- }
908
- interface DeletePhaseRequest {
909
- /** ID of the phase to delete. */
910
- _id: string;
911
- }
912
- interface DeletePhaseResponse {
913
- }
914
- interface MovePhaseRequest {
915
- /** ID of the workflow that contains the phase to move. */
916
- workflowId: string;
917
- /** ID of the phase to move. */
918
- _id: string;
919
- /**
920
- * New phase position, where the first phase is `0`.
921
- *
922
- * If a phase already occupies the specified position,
923
- * that phase and any subsequent phases
924
- * are shifted to the right by 1.
925
- */
926
- newPosition: number | null;
927
- }
928
- interface MovePhaseResponse {
929
- }
930
- interface AttachmentNonNullableFields$2 {
931
- attachmentId: string;
932
- value: string;
933
- attachmentType: AttachmentType$2;
934
- contactId: string;
935
- }
936
- interface CardInfoNonNullableFields$2 {
937
- primaryAttachment?: AttachmentNonNullableFields$2;
938
- }
939
- interface CardNonNullableFields$2 {
940
- info?: CardInfoNonNullableFields$2;
941
- }
942
- interface CardsListNonNullableFields$2 {
943
- total: number;
944
- cards: CardNonNullableFields$2[];
945
- }
946
- interface PhaseNonNullableFields$2 {
947
- cardsList?: CardsListNonNullableFields$2;
948
- }
949
- interface PaginationResponseNonNullableFields$2 {
950
- offset: number;
951
- limit: number;
952
- total: number;
953
- count: number;
954
- }
955
- interface ListPhasesResponseNonNullableFields {
956
- phases: PhaseNonNullableFields$2[];
957
- pagination?: PaginationResponseNonNullableFields$2;
958
- }
959
- interface GetPhaseResponseNonNullableFields {
960
- phase?: PhaseNonNullableFields$2;
961
- }
962
-
963
- type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
964
- getUrl: (context: any) => string;
965
- httpMethod: K;
966
- path: string;
967
- pathParams: M;
968
- __requestType: T;
969
- __originalRequestType: S;
970
- __responseType: Q;
971
- __originalResponseType: R;
972
- };
973
- declare function listPhases(): __PublicMethodMetaInfo$1<'GET', {
974
- workflowId: string;
975
- }, ListPhasesRequest, ListPhasesRequest$1, ListPhasesResponse & ListPhasesResponseNonNullableFields, ListPhasesResponse$1 & ListPhasesResponseNonNullableFields$1>;
976
- declare function getPhase(): __PublicMethodMetaInfo$1<'GET', {
977
- id: string;
978
- }, GetPhaseRequest, GetPhaseRequest$1, GetPhaseResponse & GetPhaseResponseNonNullableFields, GetPhaseResponse$1 & GetPhaseResponseNonNullableFields$1>;
979
- declare function updatePhase(): __PublicMethodMetaInfo$1<'PATCH', {
980
- id: string;
981
- }, UpdatePhaseRequest, UpdatePhaseRequest$1, UpdatePhaseResponse, UpdatePhaseResponse$1>;
982
- declare function createPhase(): __PublicMethodMetaInfo$1<'POST', {
983
- workflowId: string;
984
- }, CreatePhaseRequest, CreatePhaseRequest$1, CreatePhaseResponse, CreatePhaseResponse$1>;
985
- declare function deletePhase(): __PublicMethodMetaInfo$1<'DELETE', {
986
- id: string;
987
- }, DeletePhaseRequest, DeletePhaseRequest$1, DeletePhaseResponse, DeletePhaseResponse$1>;
988
- declare function movePhase(): __PublicMethodMetaInfo$1<'POST', {
989
- workflowId: string;
990
- id: string;
991
- }, MovePhaseRequest, MovePhaseRequest$1, MovePhaseResponse, MovePhaseResponse$1>;
992
-
993
- declare const meta$1_createPhase: typeof createPhase;
994
- declare const meta$1_deletePhase: typeof deletePhase;
995
- declare const meta$1_getPhase: typeof getPhase;
996
- declare const meta$1_listPhases: typeof listPhases;
997
- declare const meta$1_movePhase: typeof movePhase;
998
- declare const meta$1_updatePhase: typeof updatePhase;
999
- declare namespace meta$1 {
1000
- export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_createPhase as createPhase, meta$1_deletePhase as deletePhase, meta$1_getPhase as getPhase, meta$1_listPhases as listPhases, meta$1_movePhase as movePhase, meta$1_updatePhase as updatePhase };
1001
- }
1002
-
1003
- interface Workflow$1 {
1004
- /** Workflow information and metadata. */
1005
- info?: WorkflowInfo$1;
1006
- /**
1007
- * Final phase of the workflow.
1008
- * Cards in `winPhase` are treated as if they are not part of the workflow.
1009
- *
1010
- * Normally, a contact can be attached to only 1 card in the workflow.
1011
- * Moving a contact's card to `winPhase`
1012
- * frees up the contact to be attached to another card in the workflow.
1013
- */
1014
- winPhase?: Phase$1;
1015
- /** Phases that make up the workflow. */
1016
- phasesList?: PhasesList$1;
1017
- }
1018
- interface WorkflowInfo$1 {
1019
- /**
1020
- * Workflow ID.
1021
- * @readonly
1022
- */
1023
- id?: string | null;
1024
- /** Display name for the workflow. */
1025
- name?: string | null;
1026
- /**
1027
- * Workflow description,
1028
- * shown below the workflow's display name in the dashboard.
1029
- */
1030
- description?: string | null;
1031
- /**
1032
- * Deprecated. Use `createdDate` instead.
1033
- * @readonly
1034
- * @deprecated
1035
- */
1036
- createdAt?: Date | null;
1037
- /**
1038
- * Indicates whether the workflow can be deleted.
1039
- * @readonly
1040
- * @deprecated
1041
- */
1042
- isDeletable?: boolean | null;
1043
- /**
1044
- * Date and time the workflow was created.
1045
- * @readonly
1046
- */
1047
- createdDate?: Date | null;
1048
- }
1049
- interface Phase$1 {
1050
- /** Phase information. */
1051
- info?: PhaseInfo$1;
1052
- /** Cards contained in the phase. */
1053
- cardsList?: CardsList$1;
1054
- }
1055
- interface PhaseInfo$1 {
1056
- /**
1057
- * Phase ID.
1058
- * @readonly
1059
- */
1060
- id?: string | null;
1061
- /** Display name shown at the top of the phase. */
1062
- name?: string | null;
1063
- }
1064
- /** a list of cards (a page) along with the total number */
1065
- interface CardsList$1 {
1066
- /** Total number of cards in the phase. */
1067
- total?: number;
1068
- /**
1069
- * List of cards in the phase.
1070
- * Sorted according to the card display order, from top to bottom.
1071
- */
1072
- cards?: Card$1[];
1073
- }
1074
- interface Card$1 {
1075
- /** Card details. */
1076
- info?: CardInfo$1;
1077
- }
1078
- /** entity representing a card-info */
1079
- interface CardInfo$1 {
1080
- /**
1081
- * Card ID.
1082
- * @readonly
1083
- */
1084
- id?: string | null;
1085
- /** Display name shown at the top of the card. */
1086
- name?: string | null;
1087
- /** Card description. */
1088
- description?: string | null;
1089
- /** Details about the contact attached to the card. */
1090
- primaryAttachment?: Attachment$1;
1091
- /** Due date. */
1092
- dueDate?: Date | null;
1093
- /** Name of the app or service that created the contact. */
1094
- source?: string | null;
1095
- /**
1096
- * Deprecated. Use `createdDate` instead.
1097
- * @readonly
1098
- * @deprecated
1099
- */
1100
- createdAt?: Date | null;
1101
- /**
1102
- * Deprecated. Use `updatedDate` instead.
1103
- * @readonly
1104
- * @deprecated
1105
- */
1106
- updatedAt?: Date | null;
1107
- /**
1108
- * ID of the phase that currently holds the card.
1109
- * @readonly
1110
- */
1111
- phaseId?: string | null;
1112
- /**
1113
- * Date and time the card was created.
1114
- * @readonly
1115
- */
1116
- createdDate?: Date | null;
1117
- /**
1118
- * Date and time the card was updated.
1119
- * @readonly
1120
- */
1121
- updatedDate?: Date | null;
1122
- }
1123
- interface Attachment$1 {
1124
- /**
1125
- * Attachment ID. For internal use.
1126
- * @readonly
1127
- */
1128
- attachmentId?: string;
1129
- /**
1130
- * Deprecated. Use `contactId` instead.
1131
- * @deprecated
1132
- */
1133
- value?: string;
1134
- /**
1135
- * Deprecated. For internal use.
1136
- * @deprecated
1137
- */
1138
- attachmentType?: AttachmentType$1;
1139
- /** ID of the contact attached to the card. */
1140
- contactId?: string;
1141
- }
1142
- /** describes the supported types of attachments (currently only supports Contact which is the default type) */
1143
- declare enum AttachmentType$1 {
1144
- ContactType = "ContactType"
1145
- }
1146
- /** a list of phases (a page) along with the total number */
1147
- interface PhasesList$1 {
1148
- /** Total number of phases in the workflow, excluding `winPhase`. */
1149
- total?: number;
1150
- /**
1151
- * List of phases in the workflow.
1152
- * Sorted according to the phase display order, from left to right.
1153
- */
1154
- phases?: Phase$1[];
1155
- }
1156
- interface ListWorkflowsRequest$1 {
1157
- /**
1158
- * Number of workflows to return.
1159
- * If omitted, all results are returned.
1160
- */
1161
- limit?: number | null;
1162
- /**
1163
- * Number of items to skip in the current sort order.
1164
- *
1165
- * Defaults to `0`.
1166
- */
1167
- offset?: number | null;
1168
- /**
1169
- * Supported fields:
1170
- * `id`, `name`, `description`, `createdDate`
1171
- *
1172
- * List of fields to sort by.
1173
- * Formatted as `field:direction`,
1174
- * where field is the field name
1175
- * and direction is `asc` (ascending) or `desc` (descending).
1176
- *
1177
- * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
1178
- */
1179
- sort?: string[];
1180
- }
1181
- interface ListWorkflowsResponse$1 {
1182
- /** Retrieved list of workflows. */
1183
- workflows?: WorkflowInfo$1[];
1184
- /** Metadata for the page of results. */
1185
- pagination?: PaginationResponse$1;
1186
- }
1187
- interface PaginationResponse$1 {
1188
- /** Number of items that were skipped in the current sort order. */
1189
- offset?: number;
1190
- /** Total number of items that matched the filter. */
1191
- total?: number;
1192
- /** Number of returned items. */
1193
- count?: number;
1194
- }
1195
- interface GetWorkflowRequest$1 {
1196
- /** ID of the workflow to retrieve. */
1197
- id: string;
1198
- /**
1199
- * Maximum number of cards to return per phase.
1200
- * To retrieve additional pages of cards, use
1201
- * [List Cards](https://dev.wix.com/api/rest/workflows/workflows/cards/list-cards)
1202
- * (in the Cards API).
1203
- *
1204
- * Defaults to `10`.
1205
- */
1206
- cardsPerPhase?: number | null;
1207
- }
1208
- interface GetWorkflowResponse$1 {
1209
- /** Requested workflow. */
1210
- workflow?: Workflow$1;
1211
- }
1212
- interface UpdateWorkflowRequest$1 {
1213
- /** ID of the workflow to update. */
1214
- id: string;
1215
- /** Workflow info. */
1216
- workflow?: WorkflowInfo$1;
1217
- }
1218
- interface UpdateWorkflowResponse$1 {
1219
- }
1220
- interface CreateWorkflowRequest$1 {
1221
- /** Workflow details. */
1222
- workflow?: WorkflowInfo$1;
1223
- }
1224
- interface CreateWorkflowResponse$1 {
1225
- /** ID of the new workflow. */
1226
- id?: string | null;
1227
- }
1228
- interface DeleteWorkflowRequest$1 {
1229
- /** ID of the workflow to delete. */
1230
- id: string;
1231
- }
1232
- interface DeleteWorkflowResponse$1 {
1233
- }
1234
- interface PaginationResponseNonNullableFields$1 {
1235
- offset: number;
1236
- limit: number;
1237
- total: number;
1238
- count: number;
1239
- }
1240
- interface ListWorkflowsResponseNonNullableFields$1 {
1241
- pagination?: PaginationResponseNonNullableFields$1;
1242
- }
1243
- interface AttachmentNonNullableFields$1 {
1244
- attachmentId: string;
1245
- value: string;
1246
- attachmentType: AttachmentType$1;
1247
- contactId: string;
1248
- }
1249
- interface CardInfoNonNullableFields$1 {
1250
- primaryAttachment?: AttachmentNonNullableFields$1;
1251
- }
1252
- interface CardNonNullableFields$1 {
1253
- info?: CardInfoNonNullableFields$1;
1254
- }
1255
- interface CardsListNonNullableFields$1 {
1256
- total: number;
1257
- cards: CardNonNullableFields$1[];
1258
- }
1259
- interface PhaseNonNullableFields$1 {
1260
- cardsList?: CardsListNonNullableFields$1;
1261
- }
1262
- interface PhasesListNonNullableFields$1 {
1263
- total: number;
1264
- phases: PhaseNonNullableFields$1[];
1265
- }
1266
- interface WorkflowNonNullableFields$1 {
1267
- winPhase?: PhaseNonNullableFields$1;
1268
- phasesList?: PhasesListNonNullableFields$1;
1269
- }
1270
- interface GetWorkflowResponseNonNullableFields$1 {
1271
- workflow?: WorkflowNonNullableFields$1;
1272
- }
1273
-
1274
- interface Workflow {
1275
- /** Workflow information and metadata. */
1276
- info?: WorkflowInfo;
1277
- /**
1278
- * Final phase of the workflow.
1279
- * Cards in `winPhase` are treated as if they are not part of the workflow.
1280
- *
1281
- * Normally, a contact can be attached to only 1 card in the workflow.
1282
- * Moving a contact's card to `winPhase`
1283
- * frees up the contact to be attached to another card in the workflow.
1284
- */
1285
- winPhase?: Phase;
1286
- /** Phases that make up the workflow. */
1287
- phasesList?: PhasesList;
1288
- }
1289
- interface WorkflowInfo {
1290
- /**
1291
- * Workflow ID.
1292
- * @readonly
1293
- */
1294
- _id?: string | null;
1295
- /** Display name for the workflow. */
1296
- name?: string | null;
1297
- /**
1298
- * Workflow description,
1299
- * shown below the workflow's display name in the dashboard.
1300
- */
1301
- description?: string | null;
1302
- /**
1303
- * @internal
1304
- * @internal
1305
- * @readonly
1306
- * @deprecated
1307
- */
1308
- createdAt?: Date | null;
1309
- /**
1310
- * Indicates whether the workflow can be deleted.
1311
- * @readonly
1312
- * @deprecated
1313
- */
1314
- isDeletable?: boolean | null;
1315
- /**
1316
- * Date and time the workflow was created.
1317
- * @readonly
1318
- */
1319
- _createdDate?: Date | null;
1320
- }
1321
- interface Phase {
1322
- /** Phase information. */
1323
- info?: PhaseInfo;
1324
- /** Cards contained in the phase. */
1325
- cardsList?: CardsList;
1326
- }
1327
- interface PhaseInfo {
1328
- /**
1329
- * Phase ID.
1330
- * @readonly
1331
- */
1332
- _id?: string | null;
1333
- /** Display name shown at the top of the phase. */
1334
- name?: string | null;
1335
- }
1336
- /** a list of cards (a page) along with the total number */
1337
- interface CardsList {
1338
- /** Total number of cards in the phase. */
1339
- total?: number;
1340
- /**
1341
- * List of cards in the phase.
1342
- * Sorted according to the card display order, from top to bottom.
1343
- */
1344
- cards?: Card[];
1345
- }
1346
- interface Card {
1347
- /** Card details. */
1348
- info?: CardInfo;
1349
- }
1350
- /** entity representing a card-info */
1351
- interface CardInfo {
1352
- /**
1353
- * Card ID.
1354
- * @readonly
1355
- */
1356
- _id?: string | null;
1357
- /** Display name shown at the top of the card. */
1358
- name?: string | null;
1359
- /** Card description. */
1360
- description?: string | null;
1361
- /** Details about the contact attached to the card. */
1362
- primaryAttachment?: Attachment;
1363
- /** Due date. */
1364
- dueDate?: Date | null;
1365
- /** Name of the app or service that created the contact. */
1366
- source?: string | null;
1367
- /**
1368
- * @internal
1369
- * @internal
1370
- * @readonly
1371
- * @deprecated
1372
- */
1373
- createdAt?: Date | null;
1374
- /**
1375
- * @internal
1376
- * @internal
1377
- * @readonly
1378
- * @deprecated
1379
- */
1380
- updatedAt?: Date | null;
1381
- /**
1382
- * ID of the phase that currently holds the card.
1383
- * @readonly
1384
- */
1385
- phaseId?: string | null;
1386
- /**
1387
- * Date and time the card was created.
1388
- * @readonly
1389
- */
1390
- _createdDate?: Date | null;
1391
- /**
1392
- * Date and time the card was updated.
1393
- * @readonly
1394
- */
1395
- _updatedDate?: Date | null;
1396
- }
1397
- interface Attachment {
1398
- /**
1399
- * Attachment ID. For internal use.
1400
- * @readonly
1401
- */
1402
- attachmentId?: string;
1403
- /**
1404
- * @internal
1405
- * @internal
1406
- * @deprecated
1407
- */
1408
- value?: string;
1409
- /**
1410
- * @internal
1411
- * @internal
1412
- * @deprecated
1413
- */
1414
- attachmentType?: AttachmentType;
1415
- /** ID of the contact attached to the card. */
1416
- contactId?: string;
1417
- }
1418
- /** describes the supported types of attachments (currently only supports Contact which is the default type) */
1419
- declare enum AttachmentType {
1420
- ContactType = "ContactType"
1421
- }
1422
- /** a list of phases (a page) along with the total number */
1423
- interface PhasesList {
1424
- /** Total number of phases in the workflow, excluding `winPhase`. */
1425
- total?: number;
1426
- /**
1427
- * List of phases in the workflow.
1428
- * Sorted according to the phase display order, from left to right.
1429
- */
1430
- phases?: Phase[];
1431
- }
1432
- interface ListWorkflowsRequest {
1433
- /**
1434
- * Number of workflows to return.
1435
- * If omitted, all results are returned.
1436
- */
1437
- limit?: number | null;
1438
- /**
1439
- * Number of items to skip in the current sort order.
1440
- *
1441
- * Defaults to `0`.
1442
- */
1443
- offset?: number | null;
1444
- /**
1445
- * Supported fields:
1446
- * `id`, `name`, `description`, `createdDate`
1447
- *
1448
- * List of fields to sort by.
1449
- * Formatted as `field:direction`,
1450
- * where field is the field name
1451
- * and direction is `asc` (ascending) or `desc` (descending).
1452
- *
1453
- * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
1454
- */
1455
- sort?: string[];
1456
- }
1457
- interface ListWorkflowsResponse {
1458
- /** Retrieved list of workflows. */
1459
- workflows?: WorkflowInfo[];
1460
- /** Metadata for the page of results. */
1461
- pagination?: PaginationResponse;
1462
- }
1463
- interface PaginationResponse {
1464
- /** Number of items that were skipped in the current sort order. */
1465
- offset?: number;
1466
- /** Total number of items that matched the filter. */
1467
- total?: number;
1468
- /** Number of returned items. */
1469
- count?: number;
1470
- }
1471
- interface GetWorkflowRequest {
1472
- /** ID of the workflow to retrieve. */
1473
- _id: string;
1474
- /**
1475
- * Maximum number of cards to return per phase.
1476
- * To retrieve additional pages of cards, use
1477
- * [List Cards](../cards/listCards)
1478
- * (in the Cards API).
1479
- */
1480
- cardsPerPhase?: number | null;
1481
- }
1482
- interface GetWorkflowResponse {
1483
- /** Requested workflow. */
1484
- workflow?: Workflow;
1485
- }
1486
- interface UpdateWorkflowRequest {
1487
- /** ID of the workflow to update. */
1488
- _id: string;
1489
- /** Workflow info. */
1490
- workflow?: WorkflowInfo;
1491
- }
1492
- interface UpdateWorkflowResponse {
1493
- }
1494
- interface CreateWorkflowRequest {
1495
- /** Workflow details. */
1496
- workflow?: WorkflowInfo;
1497
- }
1498
- interface CreateWorkflowResponse {
1499
- /** ID of the new workflow. */
1500
- _id?: string | null;
1501
- }
1502
- interface DeleteWorkflowRequest {
1503
- /** ID of the workflow to delete. */
1504
- _id: string;
1505
- }
1506
- interface DeleteWorkflowResponse {
1507
- }
1508
- interface PaginationResponseNonNullableFields {
1509
- offset: number;
1510
- limit: number;
1511
- total: number;
1512
- count: number;
1513
- }
1514
- interface ListWorkflowsResponseNonNullableFields {
1515
- pagination?: PaginationResponseNonNullableFields;
1516
- }
1517
- interface AttachmentNonNullableFields {
1518
- attachmentId: string;
1519
- value: string;
1520
- attachmentType: AttachmentType;
1521
- contactId: string;
1522
- }
1523
- interface CardInfoNonNullableFields {
1524
- primaryAttachment?: AttachmentNonNullableFields;
1525
- }
1526
- interface CardNonNullableFields {
1527
- info?: CardInfoNonNullableFields;
1528
- }
1529
- interface CardsListNonNullableFields {
1530
- total: number;
1531
- cards: CardNonNullableFields[];
1532
- }
1533
- interface PhaseNonNullableFields {
1534
- cardsList?: CardsListNonNullableFields;
1535
- }
1536
- interface PhasesListNonNullableFields {
1537
- total: number;
1538
- phases: PhaseNonNullableFields[];
1539
- }
1540
- interface WorkflowNonNullableFields {
1541
- winPhase?: PhaseNonNullableFields;
1542
- phasesList?: PhasesListNonNullableFields;
1543
- }
1544
- interface GetWorkflowResponseNonNullableFields {
1545
- workflow?: WorkflowNonNullableFields;
1546
- }
1547
-
1548
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1549
- getUrl: (context: any) => string;
1550
- httpMethod: K;
1551
- path: string;
1552
- pathParams: M;
1553
- __requestType: T;
1554
- __originalRequestType: S;
1555
- __responseType: Q;
1556
- __originalResponseType: R;
1557
- };
1558
- declare function listWorkflows(): __PublicMethodMetaInfo<'GET', {}, ListWorkflowsRequest, ListWorkflowsRequest$1, ListWorkflowsResponse & ListWorkflowsResponseNonNullableFields, ListWorkflowsResponse$1 & ListWorkflowsResponseNonNullableFields$1>;
1559
- declare function getWorkflow(): __PublicMethodMetaInfo<'GET', {
1560
- id: string;
1561
- }, GetWorkflowRequest, GetWorkflowRequest$1, GetWorkflowResponse & GetWorkflowResponseNonNullableFields, GetWorkflowResponse$1 & GetWorkflowResponseNonNullableFields$1>;
1562
- declare function updateWorkflow(): __PublicMethodMetaInfo<'PATCH', {
1563
- id: string;
1564
- }, UpdateWorkflowRequest, UpdateWorkflowRequest$1, UpdateWorkflowResponse, UpdateWorkflowResponse$1>;
1565
- declare function createWorkflow(): __PublicMethodMetaInfo<'POST', {}, CreateWorkflowRequest, CreateWorkflowRequest$1, CreateWorkflowResponse, CreateWorkflowResponse$1>;
1566
- declare function deleteWorkflow(): __PublicMethodMetaInfo<'DELETE', {
1567
- id: string;
1568
- }, DeleteWorkflowRequest, DeleteWorkflowRequest$1, DeleteWorkflowResponse, DeleteWorkflowResponse$1>;
1569
-
1570
- type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
1571
- declare const meta_createWorkflow: typeof createWorkflow;
1572
- declare const meta_deleteWorkflow: typeof deleteWorkflow;
1573
- declare const meta_getWorkflow: typeof getWorkflow;
1574
- declare const meta_listWorkflows: typeof listWorkflows;
1575
- declare const meta_updateWorkflow: typeof updateWorkflow;
1576
- declare namespace meta {
1577
- export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_createWorkflow as createWorkflow, meta_deleteWorkflow as deleteWorkflow, meta_getWorkflow as getWorkflow, meta_listWorkflows as listWorkflows, meta_updateWorkflow as updateWorkflow };
1578
- }
1579
-
1580
- export { meta$2 as cards, meta$1 as phases, meta as workflows };