@wix/workflows 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +3 -0
- package/build/cjs/index.js +26 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/src/workflows-v1-card.http.d.ts +92 -0
- package/build/cjs/src/workflows-v1-card.http.js +339 -0
- package/build/cjs/src/workflows-v1-card.http.js.map +1 -0
- package/build/cjs/src/workflows-v1-card.public.d.ts +15 -0
- package/build/cjs/src/workflows-v1-card.public.js +57 -0
- package/build/cjs/src/workflows-v1-card.public.js.map +1 -0
- package/build/cjs/src/workflows-v1-card.types.d.ts +240 -0
- package/build/cjs/src/workflows-v1-card.types.js +14 -0
- package/build/cjs/src/workflows-v1-card.types.js.map +1 -0
- package/build/cjs/src/workflows-v1-card.universal.d.ts +449 -0
- package/build/cjs/src/workflows-v1-card.universal.js +569 -0
- package/build/cjs/src/workflows-v1-card.universal.js.map +1 -0
- package/build/cjs/src/workflows-v1-phase.http.d.ts +61 -0
- package/build/cjs/src/workflows-v1-phase.http.js +288 -0
- package/build/cjs/src/workflows-v1-phase.http.js.map +1 -0
- package/build/cjs/src/workflows-v1-phase.public.d.ts +14 -0
- package/build/cjs/src/workflows-v1-phase.public.js +51 -0
- package/build/cjs/src/workflows-v1-phase.public.js.map +1 -0
- package/build/cjs/src/workflows-v1-phase.types.d.ts +234 -0
- package/build/cjs/src/workflows-v1-phase.types.js +14 -0
- package/build/cjs/src/workflows-v1-phase.types.js.map +1 -0
- package/build/cjs/src/workflows-v1-phase.universal.d.ts +388 -0
- package/build/cjs/src/workflows-v1-phase.universal.js +488 -0
- package/build/cjs/src/workflows-v1-phase.universal.js.map +1 -0
- package/build/cjs/src/workflows-v1-workflow.http.d.ts +74 -0
- package/build/cjs/src/workflows-v1-workflow.http.js +315 -0
- package/build/cjs/src/workflows-v1-workflow.http.js.map +1 -0
- package/build/cjs/src/workflows-v1-workflow.public.d.ts +14 -0
- package/build/cjs/src/workflows-v1-workflow.public.js +51 -0
- package/build/cjs/src/workflows-v1-workflow.public.js.map +1 -0
- package/build/cjs/src/workflows-v1-workflow.types.d.ts +273 -0
- package/build/cjs/src/workflows-v1-workflow.types.js +14 -0
- package/build/cjs/src/workflows-v1-workflow.types.js.map +1 -0
- package/build/cjs/src/workflows-v1-workflow.universal.d.ts +424 -0
- package/build/cjs/src/workflows-v1-workflow.universal.js +478 -0
- package/build/cjs/src/workflows-v1-workflow.universal.js.map +1 -0
- package/build/es/index.d.ts +3 -0
- package/build/es/index.js +4 -0
- package/build/es/index.js.map +1 -0
- package/build/es/src/workflows-v1-card.http.d.ts +92 -0
- package/build/es/src/workflows-v1-card.http.js +328 -0
- package/build/es/src/workflows-v1-card.http.js.map +1 -0
- package/build/es/src/workflows-v1-card.public.d.ts +15 -0
- package/build/es/src/workflows-v1-card.public.js +44 -0
- package/build/es/src/workflows-v1-card.public.js.map +1 -0
- package/build/es/src/workflows-v1-card.types.d.ts +240 -0
- package/build/es/src/workflows-v1-card.types.js +11 -0
- package/build/es/src/workflows-v1-card.types.js.map +1 -0
- package/build/es/src/workflows-v1-card.universal.d.ts +449 -0
- package/build/es/src/workflows-v1-card.universal.js +539 -0
- package/build/es/src/workflows-v1-card.universal.js.map +1 -0
- package/build/es/src/workflows-v1-phase.http.d.ts +61 -0
- package/build/es/src/workflows-v1-phase.http.js +278 -0
- package/build/es/src/workflows-v1-phase.http.js.map +1 -0
- package/build/es/src/workflows-v1-phase.public.d.ts +14 -0
- package/build/es/src/workflows-v1-phase.public.js +39 -0
- package/build/es/src/workflows-v1-phase.public.js.map +1 -0
- package/build/es/src/workflows-v1-phase.types.d.ts +234 -0
- package/build/es/src/workflows-v1-phase.types.js +11 -0
- package/build/es/src/workflows-v1-phase.types.js.map +1 -0
- package/build/es/src/workflows-v1-phase.universal.d.ts +388 -0
- package/build/es/src/workflows-v1-phase.universal.js +459 -0
- package/build/es/src/workflows-v1-phase.universal.js.map +1 -0
- package/build/es/src/workflows-v1-workflow.http.d.ts +74 -0
- package/build/es/src/workflows-v1-workflow.http.js +305 -0
- package/build/es/src/workflows-v1-workflow.http.js.map +1 -0
- package/build/es/src/workflows-v1-workflow.public.d.ts +14 -0
- package/build/es/src/workflows-v1-workflow.public.js +39 -0
- package/build/es/src/workflows-v1-workflow.public.js.map +1 -0
- package/build/es/src/workflows-v1-workflow.types.d.ts +273 -0
- package/build/es/src/workflows-v1-workflow.types.js +11 -0
- package/build/es/src/workflows-v1-workflow.types.js.map +1 -0
- package/build/es/src/workflows-v1-workflow.universal.d.ts +424 -0
- package/build/es/src/workflows-v1-workflow.universal.js +449 -0
- package/build/es/src/workflows-v1-workflow.universal.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export interface Phase {
|
|
8
|
+
/** Phase information. */
|
|
9
|
+
info?: PhaseInfo;
|
|
10
|
+
/** Cards contained in the phase. */
|
|
11
|
+
cardsList?: CardsList;
|
|
12
|
+
}
|
|
13
|
+
export interface PhaseInfo {
|
|
14
|
+
/**
|
|
15
|
+
* Phase ID.
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
_id?: string | null;
|
|
19
|
+
/** Display name shown at the top of the phase. */
|
|
20
|
+
name?: string | null;
|
|
21
|
+
}
|
|
22
|
+
/** a list of cards (a page) along with the total number */
|
|
23
|
+
export interface CardsList {
|
|
24
|
+
/** Total number of cards in the phase. */
|
|
25
|
+
total?: number;
|
|
26
|
+
/**
|
|
27
|
+
* List of cards in the phase.
|
|
28
|
+
* Sorted according to the card display order, from top to bottom.
|
|
29
|
+
*/
|
|
30
|
+
cards?: Card[];
|
|
31
|
+
}
|
|
32
|
+
export interface Card {
|
|
33
|
+
/** Card details. */
|
|
34
|
+
info?: CardInfo;
|
|
35
|
+
}
|
|
36
|
+
/** entity representing a card-info */
|
|
37
|
+
export interface CardInfo {
|
|
38
|
+
/**
|
|
39
|
+
* Card ID.
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
_id?: string | null;
|
|
43
|
+
/** Display name shown at the top of the card. */
|
|
44
|
+
name?: string | null;
|
|
45
|
+
/** Card description. */
|
|
46
|
+
description?: string | null;
|
|
47
|
+
/** Details about the contact attached to the card. */
|
|
48
|
+
primaryAttachment?: Attachment;
|
|
49
|
+
/** Due date. */
|
|
50
|
+
dueDate?: Date;
|
|
51
|
+
/** Name of the app or service that created the contact. */
|
|
52
|
+
source?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Deprecated. Use `createdDate` instead.
|
|
55
|
+
* @readonly
|
|
56
|
+
*/
|
|
57
|
+
createdAt?: Date;
|
|
58
|
+
/**
|
|
59
|
+
* Deprecated. Use `updatedDate` instead.
|
|
60
|
+
* @readonly
|
|
61
|
+
*/
|
|
62
|
+
updatedAt?: Date;
|
|
63
|
+
/**
|
|
64
|
+
* ID of the phase that currently holds the card.
|
|
65
|
+
* @readonly
|
|
66
|
+
*/
|
|
67
|
+
phaseId?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Date and time the card was created.
|
|
70
|
+
* @readonly
|
|
71
|
+
*/
|
|
72
|
+
_createdDate?: Date;
|
|
73
|
+
/**
|
|
74
|
+
* Date and time the card was updated.
|
|
75
|
+
* @readonly
|
|
76
|
+
*/
|
|
77
|
+
_updatedDate?: Date;
|
|
78
|
+
}
|
|
79
|
+
export interface Attachment {
|
|
80
|
+
/**
|
|
81
|
+
* Attachment ID. For internal use.
|
|
82
|
+
* @readonly
|
|
83
|
+
*/
|
|
84
|
+
attachmentId?: string;
|
|
85
|
+
/** Deprecated. Use `contactId` instead. */
|
|
86
|
+
value?: string;
|
|
87
|
+
/** Deprecated. For internal use. */
|
|
88
|
+
attachmentType?: AttachmentType;
|
|
89
|
+
/** ID of the contact attached to the card. */
|
|
90
|
+
contactId?: string;
|
|
91
|
+
}
|
|
92
|
+
/** describes the supported types of attachments (currently only supports Contact which is the default type) */
|
|
93
|
+
export declare enum AttachmentType {
|
|
94
|
+
ContactType = "ContactType"
|
|
95
|
+
}
|
|
96
|
+
export interface QueryPhasesRequest {
|
|
97
|
+
/** Query, sort, and paging options. */
|
|
98
|
+
query?: Query;
|
|
99
|
+
}
|
|
100
|
+
export interface Query {
|
|
101
|
+
/**
|
|
102
|
+
* Filter object in the following format:
|
|
103
|
+
* `"filter" : {
|
|
104
|
+
* "fieldName1": "value1",
|
|
105
|
+
* "fieldName2":{"$operator":"value2"}
|
|
106
|
+
* }`
|
|
107
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
108
|
+
*/
|
|
109
|
+
filter?: any;
|
|
110
|
+
/**
|
|
111
|
+
* Sort object in the following format:
|
|
112
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
113
|
+
*/
|
|
114
|
+
sort?: Sorting[];
|
|
115
|
+
/** Paging options to limit and skip the number of items. */
|
|
116
|
+
paging?: Paging;
|
|
117
|
+
/** 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. */
|
|
118
|
+
fields?: string[];
|
|
119
|
+
/** 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. */
|
|
120
|
+
fieldsets?: string[];
|
|
121
|
+
}
|
|
122
|
+
export interface Sorting {
|
|
123
|
+
/** Name of the field to sort by. */
|
|
124
|
+
fieldName?: string;
|
|
125
|
+
/** Sort order. */
|
|
126
|
+
order?: SortOrder;
|
|
127
|
+
}
|
|
128
|
+
export declare enum SortOrder {
|
|
129
|
+
ASC = "ASC",
|
|
130
|
+
DESC = "DESC"
|
|
131
|
+
}
|
|
132
|
+
export interface Paging {
|
|
133
|
+
/** Number of items to load. */
|
|
134
|
+
limit?: number | null;
|
|
135
|
+
/** Number of items to skip in the current sort order. */
|
|
136
|
+
offset?: number | null;
|
|
137
|
+
}
|
|
138
|
+
export interface QueryPhasesResponse {
|
|
139
|
+
/** List of phases that matched the query criteria. */
|
|
140
|
+
phases?: Phase[];
|
|
141
|
+
/** Metadata for the page of results. */
|
|
142
|
+
pagination?: PaginationResponse;
|
|
143
|
+
}
|
|
144
|
+
export interface PaginationResponse {
|
|
145
|
+
/** Number of items that were skipped in the current sort order. */
|
|
146
|
+
offset?: number;
|
|
147
|
+
/** Total number of items that matched the filter. */
|
|
148
|
+
total?: number;
|
|
149
|
+
/** Number of returned items. */
|
|
150
|
+
count?: number;
|
|
151
|
+
}
|
|
152
|
+
export interface ListPhasesRequest {
|
|
153
|
+
/** ID of the workflow whose phases will be listed. */
|
|
154
|
+
workflowId: string;
|
|
155
|
+
/** Number of items to return. */
|
|
156
|
+
limit?: number | null;
|
|
157
|
+
/**
|
|
158
|
+
* Number of items to skip in the current sort order.
|
|
159
|
+
*
|
|
160
|
+
* Defaults to `0`.
|
|
161
|
+
*/
|
|
162
|
+
offset?: number | null;
|
|
163
|
+
/**
|
|
164
|
+
* Supported fields:
|
|
165
|
+
* `id`, `name`
|
|
166
|
+
*
|
|
167
|
+
* List of fields to sort by.
|
|
168
|
+
* Formatted as `field:direction`,
|
|
169
|
+
* where field is the field name
|
|
170
|
+
* and direction is `asc` (ascending) or `desc` (descending).
|
|
171
|
+
*
|
|
172
|
+
* Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
|
|
173
|
+
*/
|
|
174
|
+
sort?: string[];
|
|
175
|
+
}
|
|
176
|
+
export interface ListPhasesResponse {
|
|
177
|
+
/** List of phases. */
|
|
178
|
+
phases?: Phase[];
|
|
179
|
+
/** Metadata for the page of results. */
|
|
180
|
+
pagination?: PaginationResponse;
|
|
181
|
+
}
|
|
182
|
+
export interface GetPhaseRequest {
|
|
183
|
+
/** ID of the phase to retrieve. */
|
|
184
|
+
_id: string;
|
|
185
|
+
}
|
|
186
|
+
export interface GetPhaseResponse {
|
|
187
|
+
/** Requested phase. */
|
|
188
|
+
phase?: Phase;
|
|
189
|
+
}
|
|
190
|
+
export interface UpdatePhaseRequest {
|
|
191
|
+
/** ID of the phase to update. */
|
|
192
|
+
_id: string;
|
|
193
|
+
/** Phase details to update. */
|
|
194
|
+
phase?: PhaseInfo;
|
|
195
|
+
}
|
|
196
|
+
export interface UpdatePhaseResponse {
|
|
197
|
+
}
|
|
198
|
+
export interface CreatePhaseRequest {
|
|
199
|
+
/** ID of the workflow to create the phase in. */
|
|
200
|
+
workflowId: string;
|
|
201
|
+
/** Phase details. */
|
|
202
|
+
phase?: PhaseInfo;
|
|
203
|
+
/**
|
|
204
|
+
* Phase position, where the first phase is `0`.
|
|
205
|
+
*
|
|
206
|
+
* If a phase already occupies the specified position,
|
|
207
|
+
* that phase and any subsequent phases
|
|
208
|
+
* are shifted to the right by 1.
|
|
209
|
+
*
|
|
210
|
+
* Defaults to the last position,
|
|
211
|
+
* which is displayed before the win phase.
|
|
212
|
+
*/
|
|
213
|
+
position?: number | null;
|
|
214
|
+
}
|
|
215
|
+
export interface CreatePhaseResponse {
|
|
216
|
+
/** ID of the newly created phase. */
|
|
217
|
+
_id?: string | null;
|
|
218
|
+
}
|
|
219
|
+
export interface DeletePhaseRequest {
|
|
220
|
+
/** ID of the phase to delete. */
|
|
221
|
+
_id: string;
|
|
222
|
+
}
|
|
223
|
+
export interface DeletePhaseResponse {
|
|
224
|
+
}
|
|
225
|
+
export interface MovePhaseRequest {
|
|
226
|
+
/** ID of the workflow that contains the phase to move. */
|
|
227
|
+
workflowId: string;
|
|
228
|
+
/** ID of the phase to move. */
|
|
229
|
+
_id: string;
|
|
230
|
+
/**
|
|
231
|
+
* New phase position, where the first phase is `0`.
|
|
232
|
+
*
|
|
233
|
+
* If a phase already occupies the specified position,
|
|
234
|
+
* that phase and any subsequent phases
|
|
235
|
+
* are shifted to the right by 1.
|
|
236
|
+
*/
|
|
237
|
+
newPosition: number | null;
|
|
238
|
+
}
|
|
239
|
+
export interface MovePhaseResponse {
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Returns a list of phases according to:
|
|
243
|
+
* * paging: offset, limit
|
|
244
|
+
* * order: by some of the following fields: id, name, position
|
|
245
|
+
* * filter: by the following fields of PhaseInfo
|
|
246
|
+
* ** phaseInfo.id - Guid
|
|
247
|
+
* ** phaseInfo.name - Text
|
|
248
|
+
* ** phaseInfo.visibility - Text (Visible / Archived)
|
|
249
|
+
* @public
|
|
250
|
+
* @documentationMaturity preview
|
|
251
|
+
*/
|
|
252
|
+
export declare function queryPhases(options?: QueryPhasesOptions): Promise<QueryPhasesResponse>;
|
|
253
|
+
export interface QueryPhasesOptions {
|
|
254
|
+
/** Query, sort, and paging options. */
|
|
255
|
+
query?: Query;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Retrieves a list of active phases in the specified workflow.
|
|
259
|
+
*
|
|
260
|
+
* By default, the returned phases are sorted by their display order.
|
|
261
|
+
*
|
|
262
|
+
* The win phase is not an active phase
|
|
263
|
+
* and is therefore not returned with this endpoint.
|
|
264
|
+
* To get the win phase ID, use
|
|
265
|
+
* [Get Workflow](https://dev.wix.com/api/rest/workflows/workflows/workflows/get-workflow?branch=workflows).
|
|
266
|
+
* @param workflowId - ID of the workflow whose phases will be listed.
|
|
267
|
+
* @public
|
|
268
|
+
* @documentationMaturity preview
|
|
269
|
+
* @requiredField workflowId
|
|
270
|
+
*/
|
|
271
|
+
export declare function listPhases(workflowId: string, options?: ListPhasesOptions): Promise<ListPhasesResponse>;
|
|
272
|
+
export interface ListPhasesOptions {
|
|
273
|
+
/** Number of items to return. */
|
|
274
|
+
limit?: number | null;
|
|
275
|
+
/**
|
|
276
|
+
* Number of items to skip in the current sort order.
|
|
277
|
+
*
|
|
278
|
+
* Defaults to `0`.
|
|
279
|
+
*/
|
|
280
|
+
offset?: number | null;
|
|
281
|
+
/**
|
|
282
|
+
* Supported fields:
|
|
283
|
+
* `id`, `name`
|
|
284
|
+
*
|
|
285
|
+
* List of fields to sort by.
|
|
286
|
+
* Formatted as `field:direction`,
|
|
287
|
+
* where field is the field name
|
|
288
|
+
* and direction is `asc` (ascending) or `desc` (descending).
|
|
289
|
+
*
|
|
290
|
+
* Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`.
|
|
291
|
+
*/
|
|
292
|
+
sort?: string[];
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Retrieves a phase and its cards.
|
|
296
|
+
* @param _id - ID of the phase to retrieve.
|
|
297
|
+
* @public
|
|
298
|
+
* @documentationMaturity preview
|
|
299
|
+
* @requiredField _id
|
|
300
|
+
*/
|
|
301
|
+
export declare function getPhase(_id: string): Promise<GetPhaseResponse>;
|
|
302
|
+
/**
|
|
303
|
+
* Updates a phase's name.
|
|
304
|
+
*
|
|
305
|
+
* To reorder phases, use
|
|
306
|
+
* [Move Phase](https://dev.wix.com/api/rest/workflows/workflows/phases/move-phase).
|
|
307
|
+
* To reorder or rename cards, use the
|
|
308
|
+
* [Cards API](https://dev.wix.com/api/rest/workflows/workflows/cards).
|
|
309
|
+
* @param _id - ID of the phase to update.
|
|
310
|
+
* @public
|
|
311
|
+
* @documentationMaturity preview
|
|
312
|
+
* @requiredField _id
|
|
313
|
+
*/
|
|
314
|
+
export declare function updatePhase(_id: string, options?: UpdatePhaseOptions): Promise<void>;
|
|
315
|
+
export interface UpdatePhaseOptions {
|
|
316
|
+
/** Phase details to update. */
|
|
317
|
+
phase?: PhaseInfo;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Creates a new phase in the specified workflow.
|
|
321
|
+
*
|
|
322
|
+
* When creating a phase, you provide a `name` and an optional `position`.
|
|
323
|
+
*
|
|
324
|
+
* Phases are displayed according to their position from left to right,
|
|
325
|
+
* starting from `0` and incrementing by 1.
|
|
326
|
+
* If you create or move a phase to an existing position,
|
|
327
|
+
* the phase in that position and any subsequent phases
|
|
328
|
+
* are shifted to the right by 1.
|
|
329
|
+
*
|
|
330
|
+
* If `position` is not specified,
|
|
331
|
+
* the new phase is given the rightmost position.
|
|
332
|
+
* @param workflowId - ID of the workflow to create the phase in.
|
|
333
|
+
* @public
|
|
334
|
+
* @documentationMaturity preview
|
|
335
|
+
* @requiredField options.phase.name
|
|
336
|
+
* @requiredField workflowId
|
|
337
|
+
*/
|
|
338
|
+
export declare function createPhase(workflowId: string, options?: CreatePhaseOptions): Promise<CreatePhaseResponse>;
|
|
339
|
+
export interface CreatePhaseOptions {
|
|
340
|
+
/** Phase details. */
|
|
341
|
+
phase?: PhaseInfo;
|
|
342
|
+
/**
|
|
343
|
+
* Phase position, where the first phase is `0`.
|
|
344
|
+
*
|
|
345
|
+
* If a phase already occupies the specified position,
|
|
346
|
+
* that phase and any subsequent phases
|
|
347
|
+
* are shifted to the right by 1.
|
|
348
|
+
*
|
|
349
|
+
* Defaults to the last position,
|
|
350
|
+
* which is displayed before the win phase.
|
|
351
|
+
*/
|
|
352
|
+
position?: number | null;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Deletes a phase and its cards.
|
|
356
|
+
* @param _id - ID of the phase to delete.
|
|
357
|
+
* @public
|
|
358
|
+
* @documentationMaturity preview
|
|
359
|
+
* @requiredField _id
|
|
360
|
+
*/
|
|
361
|
+
export declare function deletePhase(_id: string): Promise<void>;
|
|
362
|
+
/**
|
|
363
|
+
* Moves a phase to a new position in its workflow.
|
|
364
|
+
*
|
|
365
|
+
* Phases are displayed according to their position from left to right,
|
|
366
|
+
* starting from `0` and incrementing by 1.
|
|
367
|
+
* If you create or move a phase to an existing position,
|
|
368
|
+
* the phase in that position and any subsequent phases
|
|
369
|
+
* are shifted to the right by 1.
|
|
370
|
+
* @param newPosition - New phase position, where the first phase is `0`.
|
|
371
|
+
*
|
|
372
|
+
* If a phase already occupies the specified position,
|
|
373
|
+
* that phase and any subsequent phases
|
|
374
|
+
* are shifted to the right by 1.
|
|
375
|
+
* @public
|
|
376
|
+
* @documentationMaturity preview
|
|
377
|
+
* @requiredField identifiers
|
|
378
|
+
* @requiredField identifiers.id
|
|
379
|
+
* @requiredField identifiers.workflowId
|
|
380
|
+
* @requiredField newPosition
|
|
381
|
+
*/
|
|
382
|
+
export declare function movePhase(identifiers: MovePhaseIdentifiers, newPosition: number | null): Promise<void>;
|
|
383
|
+
export interface MovePhaseIdentifiers {
|
|
384
|
+
/** ID of the workflow that contains the phase to move. */
|
|
385
|
+
workflowId: string;
|
|
386
|
+
/** ID of the phase to move. */
|
|
387
|
+
_id: string;
|
|
388
|
+
}
|