@wix/workflows 1.0.19 → 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 (133) hide show
  1. package/build/cjs/context.d.ts +3 -3
  2. package/build/cjs/context.js +3 -3
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +3 -3
  5. package/build/cjs/index.js +3 -3
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +3 -3
  8. package/build/cjs/meta.js +3 -3
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +3 -3
  11. package/build/es/context.js +3 -3
  12. package/build/es/context.js.map +1 -1
  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/package.json +13 -9
  20. package/build/cjs/index.typings.d.ts +0 -3
  21. package/build/cjs/index.typings.js +0 -30
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/workflows-v1-card.context.d.ts +0 -10
  24. package/build/cjs/src/workflows-v1-card.context.js +0 -93
  25. package/build/cjs/src/workflows-v1-card.context.js.map +0 -1
  26. package/build/cjs/src/workflows-v1-card.http.d.ts +0 -114
  27. package/build/cjs/src/workflows-v1-card.http.js +0 -356
  28. package/build/cjs/src/workflows-v1-card.http.js.map +0 -1
  29. package/build/cjs/src/workflows-v1-card.meta.d.ts +0 -37
  30. package/build/cjs/src/workflows-v1-card.meta.js +0 -180
  31. package/build/cjs/src/workflows-v1-card.meta.js.map +0 -1
  32. package/build/cjs/src/workflows-v1-card.public.d.ts +0 -24
  33. package/build/cjs/src/workflows-v1-card.public.js +0 -57
  34. package/build/cjs/src/workflows-v1-card.public.js.map +0 -1
  35. package/build/cjs/src/workflows-v1-card.types.d.ts +0 -337
  36. package/build/cjs/src/workflows-v1-card.types.js +0 -14
  37. package/build/cjs/src/workflows-v1-card.types.js.map +0 -1
  38. package/build/cjs/src/workflows-v1-card.universal.d.ts +0 -569
  39. package/build/cjs/src/workflows-v1-card.universal.js +0 -605
  40. package/build/cjs/src/workflows-v1-card.universal.js.map +0 -1
  41. package/build/cjs/src/workflows-v1-phase.context.d.ts +0 -8
  42. package/build/cjs/src/workflows-v1-phase.context.js +0 -71
  43. package/build/cjs/src/workflows-v1-phase.context.js.map +0 -1
  44. package/build/cjs/src/workflows-v1-phase.http.d.ts +0 -76
  45. package/build/cjs/src/workflows-v1-phase.http.js +0 -259
  46. package/build/cjs/src/workflows-v1-phase.http.js.map +0 -1
  47. package/build/cjs/src/workflows-v1-phase.meta.d.ts +0 -31
  48. package/build/cjs/src/workflows-v1-phase.meta.js +0 -142
  49. package/build/cjs/src/workflows-v1-phase.meta.js.map +0 -1
  50. package/build/cjs/src/workflows-v1-phase.public.d.ts +0 -27
  51. package/build/cjs/src/workflows-v1-phase.public.js +0 -45
  52. package/build/cjs/src/workflows-v1-phase.public.js.map +0 -1
  53. package/build/cjs/src/workflows-v1-phase.types.d.ts +0 -274
  54. package/build/cjs/src/workflows-v1-phase.types.js +0 -14
  55. package/build/cjs/src/workflows-v1-phase.types.js.map +0 -1
  56. package/build/cjs/src/workflows-v1-phase.universal.d.ts +0 -429
  57. package/build/cjs/src/workflows-v1-phase.universal.js +0 -459
  58. package/build/cjs/src/workflows-v1-phase.universal.js.map +0 -1
  59. package/build/cjs/src/workflows-v1-workflow.context.d.ts +0 -7
  60. package/build/cjs/src/workflows-v1-workflow.context.js +0 -60
  61. package/build/cjs/src/workflows-v1-workflow.context.js.map +0 -1
  62. package/build/cjs/src/workflows-v1-workflow.http.d.ts +0 -55
  63. package/build/cjs/src/workflows-v1-workflow.http.js +0 -258
  64. package/build/cjs/src/workflows-v1-workflow.http.js.map +0 -1
  65. package/build/cjs/src/workflows-v1-workflow.meta.d.ts +0 -23
  66. package/build/cjs/src/workflows-v1-workflow.meta.js +0 -123
  67. package/build/cjs/src/workflows-v1-workflow.meta.js.map +0 -1
  68. package/build/cjs/src/workflows-v1-workflow.public.d.ts +0 -46
  69. package/build/cjs/src/workflows-v1-workflow.public.js +0 -39
  70. package/build/cjs/src/workflows-v1-workflow.public.js.map +0 -1
  71. package/build/cjs/src/workflows-v1-workflow.types.d.ts +0 -319
  72. package/build/cjs/src/workflows-v1-workflow.types.js +0 -14
  73. package/build/cjs/src/workflows-v1-workflow.types.js.map +0 -1
  74. package/build/cjs/src/workflows-v1-workflow.universal.d.ts +0 -427
  75. package/build/cjs/src/workflows-v1-workflow.universal.js +0 -366
  76. package/build/cjs/src/workflows-v1-workflow.universal.js.map +0 -1
  77. package/build/es/index.typings.d.ts +0 -3
  78. package/build/es/index.typings.js +0 -4
  79. package/build/es/index.typings.js.map +0 -1
  80. package/build/es/src/workflows-v1-card.context.d.ts +0 -10
  81. package/build/es/src/workflows-v1-card.context.js +0 -82
  82. package/build/es/src/workflows-v1-card.context.js.map +0 -1
  83. package/build/es/src/workflows-v1-card.http.d.ts +0 -114
  84. package/build/es/src/workflows-v1-card.http.js +0 -345
  85. package/build/es/src/workflows-v1-card.http.js.map +0 -1
  86. package/build/es/src/workflows-v1-card.meta.d.ts +0 -37
  87. package/build/es/src/workflows-v1-card.meta.js +0 -146
  88. package/build/es/src/workflows-v1-card.meta.js.map +0 -1
  89. package/build/es/src/workflows-v1-card.public.d.ts +0 -24
  90. package/build/es/src/workflows-v1-card.public.js +0 -44
  91. package/build/es/src/workflows-v1-card.public.js.map +0 -1
  92. package/build/es/src/workflows-v1-card.types.d.ts +0 -337
  93. package/build/es/src/workflows-v1-card.types.js +0 -11
  94. package/build/es/src/workflows-v1-card.types.js.map +0 -1
  95. package/build/es/src/workflows-v1-card.universal.d.ts +0 -569
  96. package/build/es/src/workflows-v1-card.universal.js +0 -571
  97. package/build/es/src/workflows-v1-card.universal.js.map +0 -1
  98. package/build/es/src/workflows-v1-phase.context.d.ts +0 -8
  99. package/build/es/src/workflows-v1-phase.context.js +0 -62
  100. package/build/es/src/workflows-v1-phase.context.js.map +0 -1
  101. package/build/es/src/workflows-v1-phase.http.d.ts +0 -76
  102. package/build/es/src/workflows-v1-phase.http.js +0 -250
  103. package/build/es/src/workflows-v1-phase.http.js.map +0 -1
  104. package/build/es/src/workflows-v1-phase.meta.d.ts +0 -31
  105. package/build/es/src/workflows-v1-phase.meta.js +0 -110
  106. package/build/es/src/workflows-v1-phase.meta.js.map +0 -1
  107. package/build/es/src/workflows-v1-phase.public.d.ts +0 -27
  108. package/build/es/src/workflows-v1-phase.public.js +0 -34
  109. package/build/es/src/workflows-v1-phase.public.js.map +0 -1
  110. package/build/es/src/workflows-v1-phase.types.d.ts +0 -274
  111. package/build/es/src/workflows-v1-phase.types.js +0 -11
  112. package/build/es/src/workflows-v1-phase.types.js.map +0 -1
  113. package/build/es/src/workflows-v1-phase.universal.d.ts +0 -429
  114. package/build/es/src/workflows-v1-phase.universal.js +0 -427
  115. package/build/es/src/workflows-v1-phase.universal.js.map +0 -1
  116. package/build/es/src/workflows-v1-workflow.context.d.ts +0 -7
  117. package/build/es/src/workflows-v1-workflow.context.js +0 -52
  118. package/build/es/src/workflows-v1-workflow.context.js.map +0 -1
  119. package/build/es/src/workflows-v1-workflow.http.d.ts +0 -55
  120. package/build/es/src/workflows-v1-workflow.http.js +0 -250
  121. package/build/es/src/workflows-v1-workflow.http.js.map +0 -1
  122. package/build/es/src/workflows-v1-workflow.meta.d.ts +0 -23
  123. package/build/es/src/workflows-v1-workflow.meta.js +0 -92
  124. package/build/es/src/workflows-v1-workflow.meta.js.map +0 -1
  125. package/build/es/src/workflows-v1-workflow.public.d.ts +0 -46
  126. package/build/es/src/workflows-v1-workflow.public.js +0 -29
  127. package/build/es/src/workflows-v1-workflow.public.js.map +0 -1
  128. package/build/es/src/workflows-v1-workflow.types.d.ts +0 -319
  129. package/build/es/src/workflows-v1-workflow.types.js +0 -11
  130. package/build/es/src/workflows-v1-workflow.types.js.map +0 -1
  131. package/build/es/src/workflows-v1-workflow.universal.d.ts +0 -427
  132. package/build/es/src/workflows-v1-workflow.universal.js +0 -335
  133. package/build/es/src/workflows-v1-workflow.universal.js.map +0 -1
@@ -1,274 +0,0 @@
1
- export interface Phase {
2
- /** Phase information. */
3
- info?: PhaseInfo;
4
- /** Cards contained in the phase. */
5
- cardsList?: CardsList;
6
- }
7
- export interface PhaseInfo {
8
- /**
9
- * Phase ID.
10
- * @readonly
11
- */
12
- id?: string | null;
13
- /** Display name shown at the top of the phase. */
14
- name?: string | null;
15
- }
16
- /** a list of cards (a page) along with the total number */
17
- export interface CardsList {
18
- /** Total number of cards in the phase. */
19
- total?: number;
20
- /**
21
- * List of cards in the phase.
22
- * Sorted according to the card display order, from top to bottom.
23
- */
24
- cards?: Card[];
25
- }
26
- export interface Card {
27
- /** Card details. */
28
- info?: CardInfo;
29
- }
30
- /** entity representing a card-info */
31
- export interface CardInfo {
32
- /**
33
- * Card ID.
34
- * @readonly
35
- */
36
- id?: string | null;
37
- /** Display name shown at the top of the card. */
38
- name?: string | null;
39
- /** Card description. */
40
- description?: string | null;
41
- /** Details about the contact attached to the card. */
42
- primaryAttachment?: Attachment;
43
- /** Due date. */
44
- dueDate?: Date;
45
- /** Name of the app or service that created the contact. */
46
- source?: string | null;
47
- /**
48
- * Deprecated. Use `createdDate` instead.
49
- * @readonly
50
- */
51
- createdAt?: Date;
52
- /**
53
- * Deprecated. Use `updatedDate` instead.
54
- * @readonly
55
- */
56
- updatedAt?: Date;
57
- /**
58
- * ID of the phase that currently holds the card.
59
- * @readonly
60
- */
61
- phaseId?: string | null;
62
- /**
63
- * Date and time the card was created.
64
- * @readonly
65
- */
66
- createdDate?: Date;
67
- /**
68
- * Date and time the card was updated.
69
- * @readonly
70
- */
71
- updatedDate?: Date;
72
- }
73
- export interface Attachment {
74
- /**
75
- * Attachment ID. For internal use.
76
- * @readonly
77
- */
78
- attachmentId?: string;
79
- /** Deprecated. Use `contactId` instead. */
80
- value?: string;
81
- /** Deprecated. For internal use. */
82
- attachmentType?: AttachmentType;
83
- /** ID of the contact attached to the card. */
84
- contactId?: string;
85
- }
86
- /** describes the supported types of attachments (currently only supports Contact which is the default type) */
87
- export declare enum AttachmentType {
88
- ContactType = "ContactType"
89
- }
90
- export interface QueryPhasesRequest {
91
- /** Query, sort, and paging options. */
92
- query?: Query;
93
- }
94
- export interface Query {
95
- /**
96
- * Filter object in the following format:
97
- * `"filter" : {
98
- * "fieldName1": "value1",
99
- * "fieldName2":{"$operator":"value2"}
100
- * }`
101
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
102
- */
103
- filter?: any;
104
- /**
105
- * Sort object in the following format:
106
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
107
- */
108
- sort?: Sorting[];
109
- /** Paging options to limit and skip the number of items. */
110
- paging?: Paging;
111
- /** 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. */
112
- fields?: string[];
113
- /** 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. */
114
- fieldsets?: string[];
115
- }
116
- export interface Sorting {
117
- /** Name of the field to sort by. */
118
- fieldName?: string;
119
- /** Sort order. */
120
- order?: SortOrder;
121
- }
122
- export declare enum SortOrder {
123
- ASC = "ASC",
124
- DESC = "DESC"
125
- }
126
- export interface Paging {
127
- /** Number of items to load. */
128
- limit?: number | null;
129
- /** Number of items to skip in the current sort order. */
130
- offset?: number | null;
131
- }
132
- export interface QueryPhasesResponse {
133
- /** List of phases that matched the query criteria. */
134
- phases?: Phase[];
135
- /** Metadata for the page of results. */
136
- pagination?: PaginationResponse;
137
- }
138
- export interface PaginationResponse {
139
- /** Number of items that were skipped in the current sort order. */
140
- offset?: number;
141
- /** Total number of items that matched the filter. */
142
- total?: number;
143
- /** Number of returned items. */
144
- count?: number;
145
- }
146
- export interface ListPhasesRequest {
147
- /** ID of the workflow whose phases will be listed. */
148
- workflowId: string;
149
- /** Number of items to return. */
150
- limit?: number | null;
151
- /**
152
- * Number of items to skip in the current sort order.
153
- *
154
- * Defaults to `0`.
155
- */
156
- offset?: number | null;
157
- /**
158
- * Supported fields:
159
- * `id`, `name`
160
- *
161
- * List of fields to sort by.
162
- * Formatted as `field:direction`,
163
- * where field is the field name
164
- * and direction is `asc` (ascending) or `desc` (descending).
165
- *
166
- * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
167
- */
168
- sort?: string[];
169
- }
170
- export interface ListPhasesResponse {
171
- /** List of phases. */
172
- phases?: Phase[];
173
- /** Metadata for the page of results. */
174
- pagination?: PaginationResponse;
175
- }
176
- export interface GetPhaseRequest {
177
- /** ID of the phase to retrieve. */
178
- id: string;
179
- }
180
- export interface GetPhaseResponse {
181
- /** Requested phase. */
182
- phase?: Phase;
183
- }
184
- export interface UpdatePhaseRequest {
185
- /** ID of the phase to update. */
186
- id: string;
187
- /** Phase details to update. */
188
- phase?: PhaseInfo;
189
- }
190
- export interface UpdatePhaseResponse {
191
- }
192
- export interface CreatePhaseRequest {
193
- /** ID of the workflow to create the phase in. */
194
- workflowId: string;
195
- /** Phase details. */
196
- phase?: PhaseInfo;
197
- /**
198
- * Phase position, where the first phase is `0`.
199
- *
200
- * If a phase already occupies the specified position,
201
- * that phase and any subsequent phases
202
- * are shifted to the right by 1.
203
- *
204
- * Defaults to the last position,
205
- * which is displayed before the win phase.
206
- */
207
- position?: number | null;
208
- }
209
- export interface CreatePhaseResponse {
210
- /** ID of the newly created phase. */
211
- id?: string | null;
212
- }
213
- export interface DeletePhaseRequest {
214
- /** ID of the phase to delete. */
215
- id: string;
216
- }
217
- export interface DeletePhaseResponse {
218
- }
219
- export interface MovePhaseRequest {
220
- /** ID of the workflow that contains the phase to move. */
221
- workflowId: string;
222
- /** ID of the phase to move. */
223
- id: string;
224
- /**
225
- * New phase position, where the first phase is `0`.
226
- *
227
- * If a phase already occupies the specified position,
228
- * that phase and any subsequent phases
229
- * are shifted to the right by 1.
230
- */
231
- newPosition: number | null;
232
- }
233
- export interface MovePhaseResponse {
234
- }
235
- export interface ListPhasesResponseNonNullableFields {
236
- phases: {
237
- cardsList?: {
238
- total: number;
239
- cards: {
240
- info?: {
241
- primaryAttachment?: {
242
- attachmentId: string;
243
- value: string;
244
- attachmentType: AttachmentType;
245
- contactId: string;
246
- };
247
- };
248
- }[];
249
- };
250
- }[];
251
- pagination?: {
252
- offset: number;
253
- limit: number;
254
- total: number;
255
- count: number;
256
- };
257
- }
258
- export interface GetPhaseResponseNonNullableFields {
259
- phase?: {
260
- cardsList?: {
261
- total: number;
262
- cards: {
263
- info?: {
264
- primaryAttachment?: {
265
- attachmentId: string;
266
- value: string;
267
- attachmentType: AttachmentType;
268
- contactId: string;
269
- };
270
- };
271
- }[];
272
- };
273
- };
274
- }
@@ -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-phase.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflows-v1-phase.types.js","sourceRoot":"","sources":["../../../src/workflows-v1-phase.types.ts"],"names":[],"mappings":"AA2FA,+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"}