@wix/workflows 1.0.18 → 1.0.20

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 (115) hide show
  1. package/build/cjs/context.d.ts +3 -0
  2. package/build/cjs/{index.typings.js → context.js} +9 -5
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.d.ts +3 -3
  5. package/build/cjs/index.js +8 -4
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +3 -3
  8. package/build/cjs/meta.js +8 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +3 -0
  11. package/build/es/context.js +4 -0
  12. package/build/es/context.js.map +1 -0
  13. package/build/es/index.d.ts +3 -3
  14. package/build/es/index.js +3 -3
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +3 -3
  17. package/build/es/meta.js +3 -3
  18. package/build/es/meta.js.map +1 -1
  19. package/context/package.json +6 -0
  20. package/package.json +17 -7
  21. package/build/cjs/index.typings.d.ts +0 -3
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/workflows-v1-card.http.d.ts +0 -114
  24. package/build/cjs/src/workflows-v1-card.http.js +0 -380
  25. package/build/cjs/src/workflows-v1-card.http.js.map +0 -1
  26. package/build/cjs/src/workflows-v1-card.meta.d.ts +0 -37
  27. package/build/cjs/src/workflows-v1-card.meta.js +0 -176
  28. package/build/cjs/src/workflows-v1-card.meta.js.map +0 -1
  29. package/build/cjs/src/workflows-v1-card.public.d.ts +0 -24
  30. package/build/cjs/src/workflows-v1-card.public.js +0 -57
  31. package/build/cjs/src/workflows-v1-card.public.js.map +0 -1
  32. package/build/cjs/src/workflows-v1-card.types.d.ts +0 -270
  33. package/build/cjs/src/workflows-v1-card.types.js +0 -14
  34. package/build/cjs/src/workflows-v1-card.types.js.map +0 -1
  35. package/build/cjs/src/workflows-v1-card.universal.d.ts +0 -500
  36. package/build/cjs/src/workflows-v1-card.universal.js +0 -596
  37. package/build/cjs/src/workflows-v1-card.universal.js.map +0 -1
  38. package/build/cjs/src/workflows-v1-phase.http.d.ts +0 -76
  39. package/build/cjs/src/workflows-v1-phase.http.js +0 -296
  40. package/build/cjs/src/workflows-v1-phase.http.js.map +0 -1
  41. package/build/cjs/src/workflows-v1-phase.meta.d.ts +0 -31
  42. package/build/cjs/src/workflows-v1-phase.meta.js +0 -138
  43. package/build/cjs/src/workflows-v1-phase.meta.js.map +0 -1
  44. package/build/cjs/src/workflows-v1-phase.public.d.ts +0 -27
  45. package/build/cjs/src/workflows-v1-phase.public.js +0 -45
  46. package/build/cjs/src/workflows-v1-phase.public.js.map +0 -1
  47. package/build/cjs/src/workflows-v1-phase.types.d.ts +0 -274
  48. package/build/cjs/src/workflows-v1-phase.types.js +0 -14
  49. package/build/cjs/src/workflows-v1-phase.types.js.map +0 -1
  50. package/build/cjs/src/workflows-v1-phase.universal.d.ts +0 -435
  51. package/build/cjs/src/workflows-v1-phase.universal.js +0 -456
  52. package/build/cjs/src/workflows-v1-phase.universal.js.map +0 -1
  53. package/build/cjs/src/workflows-v1-workflow.http.d.ts +0 -55
  54. package/build/cjs/src/workflows-v1-workflow.http.js +0 -262
  55. package/build/cjs/src/workflows-v1-workflow.http.js.map +0 -1
  56. package/build/cjs/src/workflows-v1-workflow.meta.d.ts +0 -23
  57. package/build/cjs/src/workflows-v1-workflow.meta.js +0 -119
  58. package/build/cjs/src/workflows-v1-workflow.meta.js.map +0 -1
  59. package/build/cjs/src/workflows-v1-workflow.public.d.ts +0 -46
  60. package/build/cjs/src/workflows-v1-workflow.public.js +0 -39
  61. package/build/cjs/src/workflows-v1-workflow.public.js.map +0 -1
  62. package/build/cjs/src/workflows-v1-workflow.types.d.ts +0 -319
  63. package/build/cjs/src/workflows-v1-workflow.types.js +0 -14
  64. package/build/cjs/src/workflows-v1-workflow.types.js.map +0 -1
  65. package/build/cjs/src/workflows-v1-workflow.universal.d.ts +0 -433
  66. package/build/cjs/src/workflows-v1-workflow.universal.js +0 -369
  67. package/build/cjs/src/workflows-v1-workflow.universal.js.map +0 -1
  68. package/build/es/index.typings.d.ts +0 -3
  69. package/build/es/index.typings.js +0 -4
  70. package/build/es/index.typings.js.map +0 -1
  71. package/build/es/src/workflows-v1-card.http.d.ts +0 -114
  72. package/build/es/src/workflows-v1-card.http.js +0 -369
  73. package/build/es/src/workflows-v1-card.http.js.map +0 -1
  74. package/build/es/src/workflows-v1-card.meta.d.ts +0 -37
  75. package/build/es/src/workflows-v1-card.meta.js +0 -146
  76. package/build/es/src/workflows-v1-card.meta.js.map +0 -1
  77. package/build/es/src/workflows-v1-card.public.d.ts +0 -24
  78. package/build/es/src/workflows-v1-card.public.js +0 -44
  79. package/build/es/src/workflows-v1-card.public.js.map +0 -1
  80. package/build/es/src/workflows-v1-card.types.d.ts +0 -270
  81. package/build/es/src/workflows-v1-card.types.js +0 -11
  82. package/build/es/src/workflows-v1-card.types.js.map +0 -1
  83. package/build/es/src/workflows-v1-card.universal.d.ts +0 -500
  84. package/build/es/src/workflows-v1-card.universal.js +0 -566
  85. package/build/es/src/workflows-v1-card.universal.js.map +0 -1
  86. package/build/es/src/workflows-v1-phase.http.d.ts +0 -76
  87. package/build/es/src/workflows-v1-phase.http.js +0 -287
  88. package/build/es/src/workflows-v1-phase.http.js.map +0 -1
  89. package/build/es/src/workflows-v1-phase.meta.d.ts +0 -31
  90. package/build/es/src/workflows-v1-phase.meta.js +0 -110
  91. package/build/es/src/workflows-v1-phase.meta.js.map +0 -1
  92. package/build/es/src/workflows-v1-phase.public.d.ts +0 -27
  93. package/build/es/src/workflows-v1-phase.public.js +0 -34
  94. package/build/es/src/workflows-v1-phase.public.js.map +0 -1
  95. package/build/es/src/workflows-v1-phase.types.d.ts +0 -274
  96. package/build/es/src/workflows-v1-phase.types.js +0 -11
  97. package/build/es/src/workflows-v1-phase.types.js.map +0 -1
  98. package/build/es/src/workflows-v1-phase.universal.d.ts +0 -435
  99. package/build/es/src/workflows-v1-phase.universal.js +0 -428
  100. package/build/es/src/workflows-v1-phase.universal.js.map +0 -1
  101. package/build/es/src/workflows-v1-workflow.http.d.ts +0 -55
  102. package/build/es/src/workflows-v1-workflow.http.js +0 -254
  103. package/build/es/src/workflows-v1-workflow.http.js.map +0 -1
  104. package/build/es/src/workflows-v1-workflow.meta.d.ts +0 -23
  105. package/build/es/src/workflows-v1-workflow.meta.js +0 -92
  106. package/build/es/src/workflows-v1-workflow.meta.js.map +0 -1
  107. package/build/es/src/workflows-v1-workflow.public.d.ts +0 -46
  108. package/build/es/src/workflows-v1-workflow.public.js +0 -29
  109. package/build/es/src/workflows-v1-workflow.public.js.map +0 -1
  110. package/build/es/src/workflows-v1-workflow.types.d.ts +0 -319
  111. package/build/es/src/workflows-v1-workflow.types.js +0 -11
  112. package/build/es/src/workflows-v1-workflow.types.js.map +0 -1
  113. package/build/es/src/workflows-v1-workflow.universal.d.ts +0 -433
  114. package/build/es/src/workflows-v1-workflow.universal.js +0 -342
  115. package/build/es/src/workflows-v1-workflow.universal.js.map +0 -1
@@ -1,270 +0,0 @@
1
- export interface Card {
2
- /** Card details. */
3
- info?: CardInfo;
4
- }
5
- /** entity representing a card-info */
6
- export interface CardInfo {
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;
18
- /** Due date. */
19
- dueDate?: Date;
20
- /** Name of the app or service that created the contact. */
21
- source?: string | null;
22
- /**
23
- * Deprecated. Use `createdDate` instead.
24
- * @readonly
25
- */
26
- createdAt?: Date;
27
- /**
28
- * Deprecated. Use `updatedDate` instead.
29
- * @readonly
30
- */
31
- updatedAt?: Date;
32
- /**
33
- * ID of the phase that currently holds the card.
34
- * @readonly
35
- */
36
- phaseId?: string | null;
37
- /**
38
- * Date and time the card was created.
39
- * @readonly
40
- */
41
- createdDate?: Date;
42
- /**
43
- * Date and time the card was updated.
44
- * @readonly
45
- */
46
- updatedDate?: Date;
47
- }
48
- export interface Attachment {
49
- /**
50
- * Attachment ID. For internal use.
51
- * @readonly
52
- */
53
- attachmentId?: string;
54
- /** Deprecated. Use `contactId` instead. */
55
- value?: string;
56
- /** Deprecated. For internal use. */
57
- attachmentType?: AttachmentType;
58
- /** ID of the contact attached to the card. */
59
- contactId?: string;
60
- }
61
- /** describes the supported types of attachments (currently only supports Contact which is the default type) */
62
- export declare enum AttachmentType {
63
- ContactType = "ContactType"
64
- }
65
- export interface QueryCardsRequest {
66
- /** Query, sort, and paging options. */
67
- query?: Query;
68
- }
69
- export interface Query {
70
- /**
71
- * Filter object in the following format:
72
- * `"filter" : {
73
- * "fieldName1": "value1",
74
- * "fieldName2":{"$operator":"value2"}
75
- * }`
76
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
77
- */
78
- filter?: any;
79
- /**
80
- * Sort object in the following format:
81
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
82
- */
83
- sort?: Sorting[];
84
- /** Paging options to limit and skip the number of items. */
85
- paging?: Paging;
86
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
87
- fields?: string[];
88
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
89
- fieldsets?: string[];
90
- }
91
- export interface Sorting {
92
- /** Name of the field to sort by. */
93
- fieldName?: string;
94
- /** Sort order. */
95
- order?: SortOrder;
96
- }
97
- export declare enum SortOrder {
98
- ASC = "ASC",
99
- DESC = "DESC"
100
- }
101
- export interface Paging {
102
- /** Number of items to load. */
103
- limit?: number | null;
104
- /** Number of items to skip in the current sort order. */
105
- offset?: number | null;
106
- }
107
- export interface QueryCardsResponse {
108
- /** List of cards that matched the query criteria. */
109
- cards?: Card[];
110
- /** Metadata for the page of results. */
111
- pagination?: PaginationResponse;
112
- }
113
- export interface PaginationResponse {
114
- /** Number of items that were skipped in the current sort order. */
115
- offset?: number;
116
- /** Total number of items that matched the filter. */
117
- total?: number;
118
- /** Number of returned items. */
119
- count?: number;
120
- }
121
- export interface ListCardsRequest {
122
- /** ID of the workflow whose cards will be listed. */
123
- workflowId: string;
124
- /** Filters for cards in the specified phase. */
125
- phaseId?: string | null;
126
- /**
127
- * Number of items to return.
128
- *
129
- * Defaults to `50`.
130
- */
131
- limit?: number | null;
132
- /**
133
- * Number of items to skip in the current sort order.
134
- *
135
- * Defaults to `0`.
136
- */
137
- offset?: number | null;
138
- /** Filters for cards with the specified contact ID. */
139
- attachmentValue?: string | null;
140
- /**
141
- * Filters for archived cards.
142
- * If set to `true`,
143
- * only archived cards are returned.
144
- * If set to `false`,
145
- * only cards that are not archived are returned.
146
- *
147
- * Defaults to `false`.
148
- */
149
- fetchArchived?: boolean | null;
150
- /**
151
- * Supported fields:
152
- * `id`, `name`, `createdDate`, `updatedDate`, `phaseId`
153
- *
154
- * List of fields to sort by.
155
- * Formatted as `field:direction`,
156
- * where field is the field name
157
- * and direction is `asc` (ascending) or `desc` (descending).
158
- *
159
- * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
160
- */
161
- sort?: string[];
162
- }
163
- export interface ListCardsResponse {
164
- /** List of cards. */
165
- cards?: Card[];
166
- /** Metadata for the page of results. */
167
- pagination?: PaginationResponse;
168
- }
169
- export interface GetCardRequest {
170
- /** ID of the card to retrieve. */
171
- id: string;
172
- }
173
- export interface GetCardResponse {
174
- /** Requested card. */
175
- card?: Card;
176
- }
177
- export interface UpdateCardRequest {
178
- /** ID of the card to update. */
179
- id: string;
180
- /** Card details. */
181
- cardInfo?: CardInfo;
182
- }
183
- export interface UpdateCardResponse {
184
- }
185
- export interface CreateCardRequest {
186
- /** ID of the workflow to create the card in. */
187
- workflowId: string;
188
- /** ID of the phase to create the card in. */
189
- phaseId: string;
190
- /** Card details. */
191
- card?: CardInfo;
192
- /**
193
- * Card position, where the first card is `0`.
194
- *
195
- * If a card already occupies the specified position,
196
- * that card and any subsequent cards are shifted to the right by 1.
197
- *
198
- * Defaults to the last position.
199
- */
200
- position?: number | null;
201
- }
202
- export interface CreateCardResponse {
203
- /** ID of the newly created card. */
204
- id?: string | null;
205
- }
206
- export interface DeleteCardRequest {
207
- /** ID of the card to delete. */
208
- id: string;
209
- }
210
- export interface DeleteCardResponse {
211
- }
212
- export interface MoveCardRequest {
213
- /** ID of the card to move. */
214
- id: string;
215
- /** ID of the phase to move the card to. */
216
- newPhaseId?: string | null;
217
- /** Position of the card in the phase, where the first card is `0`. */
218
- newPosition?: number | null;
219
- }
220
- export interface MoveCardResponse {
221
- }
222
- export interface RestoreCardRequest {
223
- /** ID of the card to restore. */
224
- id: string;
225
- /** ID of the phase to restore the card to. */
226
- newPhaseId: string;
227
- /**
228
- * Position of the restored card in the phase,
229
- * where the first card is `0`.
230
- */
231
- newPosition?: number | null;
232
- }
233
- export interface RestoreCardResponse {
234
- }
235
- export interface ArchiveCardRequest {
236
- /** ID of the card to archive. */
237
- id: string;
238
- }
239
- export interface ArchiveCardResponse {
240
- }
241
- export interface ListCardsResponseNonNullableFields {
242
- cards: {
243
- info?: {
244
- primaryAttachment?: {
245
- attachmentId: string;
246
- value: string;
247
- attachmentType: AttachmentType;
248
- contactId: string;
249
- };
250
- };
251
- }[];
252
- pagination?: {
253
- offset: number;
254
- limit: number;
255
- total: number;
256
- count: number;
257
- };
258
- }
259
- export interface GetCardResponseNonNullableFields {
260
- card?: {
261
- info?: {
262
- primaryAttachment?: {
263
- attachmentId: string;
264
- value: string;
265
- attachmentType: AttachmentType;
266
- contactId: string;
267
- };
268
- };
269
- };
270
- }
@@ -1,11 +0,0 @@
1
- /** describes the supported types of attachments (currently only supports Contact which is the default type) */
2
- export var AttachmentType;
3
- (function (AttachmentType) {
4
- AttachmentType["ContactType"] = "ContactType";
5
- })(AttachmentType || (AttachmentType = {}));
6
- export var SortOrder;
7
- (function (SortOrder) {
8
- SortOrder["ASC"] = "ASC";
9
- SortOrder["DESC"] = "DESC";
10
- })(SortOrder || (SortOrder = {}));
11
- //# sourceMappingURL=workflows-v1-card.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflows-v1-card.types.js","sourceRoot":"","sources":["../../../src/workflows-v1-card.types.ts"],"names":[],"mappings":"AA+DA,+GAA+G;AAC/G,MAAM,CAAN,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,6CAA2B,CAAA;AAC7B,CAAC,EAFW,cAAc,KAAd,cAAc,QAEzB;AAqCD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}