@wix/workflows 1.0.3 → 1.0.5
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/src/workflows-v1-card.http.d.ts +8 -8
- package/build/cjs/src/workflows-v1-card.http.js +8 -8
- package/build/cjs/src/workflows-v1-card.universal.d.ts +8 -8
- package/build/cjs/src/workflows-v1-card.universal.js +8 -8
- package/build/cjs/src/workflows-v1-phase.http.d.ts +6 -6
- package/build/cjs/src/workflows-v1-phase.http.js +6 -6
- package/build/cjs/src/workflows-v1-phase.universal.d.ts +6 -6
- package/build/cjs/src/workflows-v1-phase.universal.js +6 -6
- package/build/cjs/src/workflows-v1-workflow.http.d.ts +2 -2
- package/build/cjs/src/workflows-v1-workflow.http.js +2 -2
- package/build/cjs/src/workflows-v1-workflow.universal.d.ts +4 -2
- package/build/cjs/src/workflows-v1-workflow.universal.js +4 -2
- package/build/cjs/src/workflows-v1-workflow.universal.js.map +1 -1
- package/build/es/src/workflows-v1-card.http.d.ts +8 -8
- package/build/es/src/workflows-v1-card.http.js +8 -8
- package/build/es/src/workflows-v1-card.universal.d.ts +8 -8
- package/build/es/src/workflows-v1-card.universal.js +8 -8
- package/build/es/src/workflows-v1-phase.http.d.ts +6 -6
- package/build/es/src/workflows-v1-phase.http.js +6 -6
- package/build/es/src/workflows-v1-phase.universal.d.ts +6 -6
- package/build/es/src/workflows-v1-phase.universal.js +6 -6
- package/build/es/src/workflows-v1-workflow.http.d.ts +2 -2
- package/build/es/src/workflows-v1-workflow.http.js +2 -2
- package/build/es/src/workflows-v1-workflow.universal.d.ts +4 -2
- package/build/es/src/workflows-v1-workflow.universal.js +4 -2
- package/build/es/src/workflows-v1-workflow.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -27,7 +27,7 @@ export declare function queryCards(payload: QueryCardsRequest): RequestOptionsFa
|
|
|
27
27
|
* Sort order defaults to by `"phaseId"` and then by `"position"` ascending.
|
|
28
28
|
*
|
|
29
29
|
*
|
|
30
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
30
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
31
31
|
*/
|
|
32
32
|
export declare function listCards(payload: ListCardsRequest): RequestOptionsFactory<ListCardsResponse>;
|
|
33
33
|
/**
|
|
@@ -37,7 +37,7 @@ export declare function listCards(payload: ListCardsRequest): RequestOptionsFact
|
|
|
37
37
|
* The `getCard()` function returns a Promise that resolves to the card with the specified ID.
|
|
38
38
|
*
|
|
39
39
|
*
|
|
40
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
40
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
41
41
|
*/
|
|
42
42
|
export declare function getCard(payload: GetCardRequest): RequestOptionsFactory<GetCardResponse>;
|
|
43
43
|
/**
|
|
@@ -50,7 +50,7 @@ export declare function getCard(payload: GetCardRequest): RequestOptionsFactory<
|
|
|
50
50
|
* `contactId` is not a required field, but if the parameter is not passed, the field will default to empty and the card will not be associated with any contact.
|
|
51
51
|
*
|
|
52
52
|
*
|
|
53
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
53
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
54
54
|
*/
|
|
55
55
|
export declare function updateCard(payload: UpdateCardRequest): RequestOptionsFactory<UpdateCardResponse>;
|
|
56
56
|
/**
|
|
@@ -64,7 +64,7 @@ export declare function updateCard(payload: UpdateCardRequest): RequestOptionsFa
|
|
|
64
64
|
* When omitted, the newly created card is added to the specified phase as the top card within the phase.
|
|
65
65
|
*
|
|
66
66
|
*
|
|
67
|
-
* This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the
|
|
67
|
+
* This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
68
68
|
*
|
|
69
69
|
* > **Note:**
|
|
70
70
|
* > Each workflow is limited to 5,000 cards.
|
|
@@ -79,7 +79,7 @@ export declare function createCard(payload: CreateCardRequest): RequestOptionsFa
|
|
|
79
79
|
*
|
|
80
80
|
* The `deleteCard()` function returns a Promise when the specified card has been deleted.
|
|
81
81
|
*
|
|
82
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
82
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
83
83
|
*/
|
|
84
84
|
export declare function deleteCard(payload: DeleteCardRequest): RequestOptionsFactory<DeleteCardResponse>;
|
|
85
85
|
/**
|
|
@@ -90,7 +90,7 @@ export declare function deleteCard(payload: DeleteCardRequest): RequestOptionsFa
|
|
|
90
90
|
*
|
|
91
91
|
* Use the `options` parameter to specify the phase and position within that phase to move the card to. Positions are zero-based, meaning the first position is `0`.
|
|
92
92
|
*
|
|
93
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
93
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
94
94
|
*/
|
|
95
95
|
export declare function moveCard(payload: MoveCardRequest): RequestOptionsFactory<MoveCardResponse>;
|
|
96
96
|
/**
|
|
@@ -100,7 +100,7 @@ export declare function moveCard(payload: MoveCardRequest): RequestOptionsFactor
|
|
|
100
100
|
* The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.
|
|
101
101
|
*
|
|
102
102
|
*
|
|
103
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
103
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
104
104
|
*
|
|
105
105
|
*
|
|
106
106
|
* > **Note:**
|
|
@@ -117,6 +117,6 @@ export declare function restoreCard(payload: RestoreCardRequest): RequestOptions
|
|
|
117
117
|
* The `archiveCard()` function returns a Promise that resolves when the card has been archived.
|
|
118
118
|
*
|
|
119
119
|
*
|
|
120
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
120
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
121
121
|
*/
|
|
122
122
|
export declare function archiveCard(payload: ArchiveCardRequest): RequestOptionsFactory<ArchiveCardResponse>;
|
|
@@ -111,7 +111,7 @@ exports.queryCards = queryCards;
|
|
|
111
111
|
* Sort order defaults to by `"phaseId"` and then by `"position"` ascending.
|
|
112
112
|
*
|
|
113
113
|
*
|
|
114
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
114
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
115
115
|
*/
|
|
116
116
|
function listCards(payload) {
|
|
117
117
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_listCardsRequest, {});
|
|
@@ -146,7 +146,7 @@ exports.listCards = listCards;
|
|
|
146
146
|
* The `getCard()` function returns a Promise that resolves to the card with the specified ID.
|
|
147
147
|
*
|
|
148
148
|
*
|
|
149
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
149
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
150
150
|
*/
|
|
151
151
|
function getCard(payload) {
|
|
152
152
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getCardRequest, {});
|
|
@@ -184,7 +184,7 @@ exports.getCard = getCard;
|
|
|
184
184
|
* `contactId` is not a required field, but if the parameter is not passed, the field will default to empty and the card will not be associated with any contact.
|
|
185
185
|
*
|
|
186
186
|
*
|
|
187
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
187
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
188
188
|
*/
|
|
189
189
|
function updateCard(payload) {
|
|
190
190
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateCardRequest, {
|
|
@@ -222,7 +222,7 @@ exports.updateCard = updateCard;
|
|
|
222
222
|
* When omitted, the newly created card is added to the specified phase as the top card within the phase.
|
|
223
223
|
*
|
|
224
224
|
*
|
|
225
|
-
* This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the
|
|
225
|
+
* This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
226
226
|
*
|
|
227
227
|
* > **Note:**
|
|
228
228
|
* > Each workflow is limited to 5,000 cards.
|
|
@@ -261,7 +261,7 @@ exports.createCard = createCard;
|
|
|
261
261
|
*
|
|
262
262
|
* The `deleteCard()` function returns a Promise when the specified card has been deleted.
|
|
263
263
|
*
|
|
264
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
264
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
265
265
|
*/
|
|
266
266
|
function deleteCard(payload) {
|
|
267
267
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deleteCardRequest, {});
|
|
@@ -294,7 +294,7 @@ exports.deleteCard = deleteCard;
|
|
|
294
294
|
*
|
|
295
295
|
* Use the `options` parameter to specify the phase and position within that phase to move the card to. Positions are zero-based, meaning the first position is `0`.
|
|
296
296
|
*
|
|
297
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
297
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
298
298
|
*/
|
|
299
299
|
function moveCard(payload) {
|
|
300
300
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_moveCardRequest, {});
|
|
@@ -326,7 +326,7 @@ exports.moveCard = moveCard;
|
|
|
326
326
|
* The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.
|
|
327
327
|
*
|
|
328
328
|
*
|
|
329
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
329
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
330
330
|
*
|
|
331
331
|
*
|
|
332
332
|
* > **Note:**
|
|
@@ -365,7 +365,7 @@ exports.restoreCard = restoreCard;
|
|
|
365
365
|
* The `archiveCard()` function returns a Promise that resolves when the card has been archived.
|
|
366
366
|
*
|
|
367
367
|
*
|
|
368
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
368
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
369
369
|
*/
|
|
370
370
|
function archiveCard(payload) {
|
|
371
371
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_archiveCardRequest, {});
|
|
@@ -280,7 +280,7 @@ export interface QueryCardsOptions {
|
|
|
280
280
|
* Sort order defaults to by `"phaseId"` and then by `"position"` ascending.
|
|
281
281
|
*
|
|
282
282
|
*
|
|
283
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
283
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
284
284
|
*
|
|
285
285
|
* This function is not a universal function and runs only on the backend.
|
|
286
286
|
* @param workflowId - ID of the workflow whose cards will be listed.
|
|
@@ -336,7 +336,7 @@ export interface ListCardsOptions {
|
|
|
336
336
|
* The `getCard()` function returns a Promise that resolves to the card with the specified ID.
|
|
337
337
|
*
|
|
338
338
|
*
|
|
339
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
339
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
340
340
|
*
|
|
341
341
|
* This function is not a universal function and runs only on the backend.
|
|
342
342
|
* @param _id - ID of the card to retrieve.
|
|
@@ -354,7 +354,7 @@ export declare function getCard(_id: string): Promise<GetCardResponse>;
|
|
|
354
354
|
* `contactId` is not a required field, but if the parameter is not passed, the field will default to empty and the card will not be associated with any contact.
|
|
355
355
|
*
|
|
356
356
|
*
|
|
357
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
357
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
358
358
|
*
|
|
359
359
|
* This function is not a universal function and runs only on the backend.
|
|
360
360
|
* @param _id - ID of the card to update.
|
|
@@ -378,7 +378,7 @@ export interface UpdateCardOptions {
|
|
|
378
378
|
* When omitted, the newly created card is added to the specified phase as the top card within the phase.
|
|
379
379
|
*
|
|
380
380
|
*
|
|
381
|
-
* This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the
|
|
381
|
+
* This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
382
382
|
*
|
|
383
383
|
* > **Note:**
|
|
384
384
|
* > Each workflow is limited to 5,000 cards.
|
|
@@ -419,7 +419,7 @@ export interface CreateCardOptions {
|
|
|
419
419
|
*
|
|
420
420
|
* The `deleteCard()` function returns a Promise when the specified card has been deleted.
|
|
421
421
|
*
|
|
422
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
422
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
423
423
|
*
|
|
424
424
|
* This function is not a universal function and runs only on the backend.
|
|
425
425
|
* @param _id - ID of the card to delete.
|
|
@@ -435,7 +435,7 @@ export declare function deleteCard(_id: string): Promise<void>;
|
|
|
435
435
|
*
|
|
436
436
|
* Use the `options` parameter to specify the phase and position within that phase to move the card to. Positions are zero-based, meaning the first position is `0`.
|
|
437
437
|
*
|
|
438
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
438
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
439
439
|
*
|
|
440
440
|
* This function is not a universal function and runs only on the backend.
|
|
441
441
|
* @param _id - ID of the card to move.
|
|
@@ -457,7 +457,7 @@ export interface MoveCardOptions {
|
|
|
457
457
|
* The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.
|
|
458
458
|
*
|
|
459
459
|
*
|
|
460
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
460
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
461
461
|
*
|
|
462
462
|
*
|
|
463
463
|
* > **Note:**
|
|
@@ -489,7 +489,7 @@ export interface RestoreCardOptions {
|
|
|
489
489
|
* The `archiveCard()` function returns a Promise that resolves when the card has been archived.
|
|
490
490
|
*
|
|
491
491
|
*
|
|
492
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
492
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
493
493
|
*
|
|
494
494
|
* This function is not a universal function and runs only on the backend.
|
|
495
495
|
* @param _id - ID of the card to archive.
|
|
@@ -149,7 +149,7 @@ exports.queryCards = queryCards;
|
|
|
149
149
|
* Sort order defaults to by `"phaseId"` and then by `"position"` ascending.
|
|
150
150
|
*
|
|
151
151
|
*
|
|
152
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
152
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
153
153
|
*
|
|
154
154
|
* This function is not a universal function and runs only on the backend.
|
|
155
155
|
* @param workflowId - ID of the workflow whose cards will be listed.
|
|
@@ -217,7 +217,7 @@ exports.listCards = listCards;
|
|
|
217
217
|
* The `getCard()` function returns a Promise that resolves to the card with the specified ID.
|
|
218
218
|
*
|
|
219
219
|
*
|
|
220
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
220
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
221
221
|
*
|
|
222
222
|
* This function is not a universal function and runs only on the backend.
|
|
223
223
|
* @param _id - ID of the card to retrieve.
|
|
@@ -278,7 +278,7 @@ exports.getCard = getCard;
|
|
|
278
278
|
* `contactId` is not a required field, but if the parameter is not passed, the field will default to empty and the card will not be associated with any contact.
|
|
279
279
|
*
|
|
280
280
|
*
|
|
281
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
281
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
282
282
|
*
|
|
283
283
|
* This function is not a universal function and runs only on the backend.
|
|
284
284
|
* @param _id - ID of the card to update.
|
|
@@ -342,7 +342,7 @@ exports.updateCard = updateCard;
|
|
|
342
342
|
* When omitted, the newly created card is added to the specified phase as the top card within the phase.
|
|
343
343
|
*
|
|
344
344
|
*
|
|
345
|
-
* This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the
|
|
345
|
+
* This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
346
346
|
*
|
|
347
347
|
* > **Note:**
|
|
348
348
|
* > Each workflow is limited to 5,000 cards.
|
|
@@ -413,7 +413,7 @@ exports.createCard = createCard;
|
|
|
413
413
|
*
|
|
414
414
|
* The `deleteCard()` function returns a Promise when the specified card has been deleted.
|
|
415
415
|
*
|
|
416
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
416
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
417
417
|
*
|
|
418
418
|
* This function is not a universal function and runs only on the backend.
|
|
419
419
|
* @param _id - ID of the card to delete.
|
|
@@ -472,7 +472,7 @@ exports.deleteCard = deleteCard;
|
|
|
472
472
|
*
|
|
473
473
|
* Use the `options` parameter to specify the phase and position within that phase to move the card to. Positions are zero-based, meaning the first position is `0`.
|
|
474
474
|
*
|
|
475
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
475
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
476
476
|
*
|
|
477
477
|
* This function is not a universal function and runs only on the backend.
|
|
478
478
|
* @param _id - ID of the card to move.
|
|
@@ -536,7 +536,7 @@ exports.moveCard = moveCard;
|
|
|
536
536
|
* The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.
|
|
537
537
|
*
|
|
538
538
|
*
|
|
539
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
539
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
540
540
|
*
|
|
541
541
|
*
|
|
542
542
|
* > **Note:**
|
|
@@ -610,7 +610,7 @@ exports.restoreCard = restoreCard;
|
|
|
610
610
|
* The `archiveCard()` function returns a Promise that resolves when the card has been archived.
|
|
611
611
|
*
|
|
612
612
|
*
|
|
613
|
-
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the
|
|
613
|
+
* This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
614
614
|
*
|
|
615
615
|
* This function is not a universal function and runs only on the backend.
|
|
616
616
|
* @param _id - ID of the card to archive.
|
|
@@ -20,7 +20,7 @@ export declare function queryPhases(payload: QueryPhasesRequest): RequestOptions
|
|
|
20
20
|
* Use the `options` parameter to specify which phases to retrieve and in which order to retrieve them. Phases can be sorted based on their `"id"`, `"name"`, and `"position"`. If no `limit` parameter is passed, the first 50 cards are returned. Sort order defaults to by `"position"` ascending.
|
|
21
21
|
*
|
|
22
22
|
*
|
|
23
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
23
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
24
24
|
*/
|
|
25
25
|
export declare function listPhases(payload: ListPhasesRequest): RequestOptionsFactory<ListPhasesResponse>;
|
|
26
26
|
/**
|
|
@@ -29,7 +29,7 @@ export declare function listPhases(payload: ListPhasesRequest): RequestOptionsFa
|
|
|
29
29
|
*
|
|
30
30
|
* The `getPhaseInfo()` function returns a Promise that resolves to the phase with the specified ID.
|
|
31
31
|
*
|
|
32
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
32
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
33
33
|
*/
|
|
34
34
|
export declare function getPhase(payload: GetPhaseRequest): RequestOptionsFactory<GetPhaseResponse>;
|
|
35
35
|
/**
|
|
@@ -42,7 +42,7 @@ export declare function getPhase(payload: GetPhaseRequest): RequestOptionsFactor
|
|
|
42
42
|
* Only the properties passed in the `Phase` object will be updated. All other properties will remain the same.
|
|
43
43
|
*
|
|
44
44
|
*
|
|
45
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
45
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
46
46
|
*/
|
|
47
47
|
export declare function updatePhase(payload: UpdatePhaseRequest): RequestOptionsFactory<UpdatePhaseResponse>;
|
|
48
48
|
/**
|
|
@@ -58,7 +58,7 @@ export declare function updatePhase(payload: UpdatePhaseRequest): RequestOptions
|
|
|
58
58
|
* When omitted, the newly created phase is added as the last non-win phase.
|
|
59
59
|
*
|
|
60
60
|
*
|
|
61
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
61
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
62
62
|
*/
|
|
63
63
|
export declare function createPhase(payload: CreatePhaseRequest): RequestOptionsFactory<CreatePhaseResponse>;
|
|
64
64
|
/**
|
|
@@ -68,7 +68,7 @@ export declare function createPhase(payload: CreatePhaseRequest): RequestOptions
|
|
|
68
68
|
* The `deletePhase()` function returns a Promise when the specified phase has been deleted.
|
|
69
69
|
*
|
|
70
70
|
*
|
|
71
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
71
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
72
72
|
*/
|
|
73
73
|
export declare function deletePhase(payload: DeletePhaseRequest): RequestOptionsFactory<DeletePhaseResponse>;
|
|
74
74
|
/**
|
|
@@ -81,6 +81,6 @@ export declare function deletePhase(payload: DeletePhaseRequest): RequestOptions
|
|
|
81
81
|
* Use the `options` parameter to specify the new phase position within the workflow. Any non-win phase can be moved to any non-win position. The win phase cannot be moved. Positions are zero-based, meaning the first position is `0`.
|
|
82
82
|
*
|
|
83
83
|
*
|
|
84
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
84
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
85
85
|
*/
|
|
86
86
|
export declare function movePhase(payload: MovePhaseRequest): RequestOptionsFactory<MovePhaseResponse>;
|
|
@@ -104,7 +104,7 @@ exports.queryPhases = queryPhases;
|
|
|
104
104
|
* Use the `options` parameter to specify which phases to retrieve and in which order to retrieve them. Phases can be sorted based on their `"id"`, `"name"`, and `"position"`. If no `limit` parameter is passed, the first 50 cards are returned. Sort order defaults to by `"position"` ascending.
|
|
105
105
|
*
|
|
106
106
|
*
|
|
107
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
107
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
108
108
|
*/
|
|
109
109
|
function listPhases(payload) {
|
|
110
110
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_listPhasesRequest, {});
|
|
@@ -140,7 +140,7 @@ exports.listPhases = listPhases;
|
|
|
140
140
|
*
|
|
141
141
|
* The `getPhaseInfo()` function returns a Promise that resolves to the phase with the specified ID.
|
|
142
142
|
*
|
|
143
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
143
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
144
144
|
*/
|
|
145
145
|
function getPhase(payload) {
|
|
146
146
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getPhaseRequest, {});
|
|
@@ -180,7 +180,7 @@ exports.getPhase = getPhase;
|
|
|
180
180
|
* Only the properties passed in the `Phase` object will be updated. All other properties will remain the same.
|
|
181
181
|
*
|
|
182
182
|
*
|
|
183
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
183
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
184
184
|
*/
|
|
185
185
|
function updatePhase(payload) {
|
|
186
186
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updatePhaseRequest, {});
|
|
@@ -218,7 +218,7 @@ exports.updatePhase = updatePhase;
|
|
|
218
218
|
* When omitted, the newly created phase is added as the last non-win phase.
|
|
219
219
|
*
|
|
220
220
|
*
|
|
221
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
221
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
222
222
|
*/
|
|
223
223
|
function createPhase(payload) {
|
|
224
224
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createPhaseRequest, {});
|
|
@@ -250,7 +250,7 @@ exports.createPhase = createPhase;
|
|
|
250
250
|
* The `deletePhase()` function returns a Promise when the specified phase has been deleted.
|
|
251
251
|
*
|
|
252
252
|
*
|
|
253
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
253
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
254
254
|
*/
|
|
255
255
|
function deletePhase(payload) {
|
|
256
256
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deletePhaseRequest, {});
|
|
@@ -285,7 +285,7 @@ exports.deletePhase = deletePhase;
|
|
|
285
285
|
* Use the `options` parameter to specify the new phase position within the workflow. Any non-win phase can be moved to any non-win position. The win phase cannot be moved. Positions are zero-based, meaning the first position is `0`.
|
|
286
286
|
*
|
|
287
287
|
*
|
|
288
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
288
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
289
289
|
*/
|
|
290
290
|
function movePhase(payload) {
|
|
291
291
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_movePhaseRequest, {});
|
|
@@ -266,7 +266,7 @@ export interface QueryPhasesOptions {
|
|
|
266
266
|
* Use the `options` parameter to specify which phases to retrieve and in which order to retrieve them. Phases can be sorted based on their `"id"`, `"name"`, and `"position"`. If no `limit` parameter is passed, the first 50 cards are returned. Sort order defaults to by `"position"` ascending.
|
|
267
267
|
*
|
|
268
268
|
*
|
|
269
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
269
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
270
270
|
*
|
|
271
271
|
* This function is not a universal function and runs only on the backend.
|
|
272
272
|
* @param workflowId - ID of the workflow whose phases will be listed.
|
|
@@ -303,7 +303,7 @@ export interface ListPhasesOptions {
|
|
|
303
303
|
*
|
|
304
304
|
* The `getPhaseInfo()` function returns a Promise that resolves to the phase with the specified ID.
|
|
305
305
|
*
|
|
306
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
306
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
307
307
|
*
|
|
308
308
|
* This function is not a universal function and runs only on the backend.
|
|
309
309
|
* @param _id - ID of the phase to retrieve.
|
|
@@ -321,7 +321,7 @@ export declare function getPhase(_id: string): Promise<GetPhaseResponse>;
|
|
|
321
321
|
* Only the properties passed in the `Phase` object will be updated. All other properties will remain the same.
|
|
322
322
|
*
|
|
323
323
|
*
|
|
324
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
324
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
325
325
|
*
|
|
326
326
|
* This function is not a universal function and runs only on the backend.
|
|
327
327
|
* @param _id - ID of the phase to update.
|
|
@@ -347,7 +347,7 @@ export interface UpdatePhaseOptions {
|
|
|
347
347
|
* When omitted, the newly created phase is added as the last non-win phase.
|
|
348
348
|
*
|
|
349
349
|
*
|
|
350
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
350
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
351
351
|
*
|
|
352
352
|
* This function is not a universal function and runs only on the backend.
|
|
353
353
|
* @param workflowId - ID of the workflow to create the phase in.
|
|
@@ -379,7 +379,7 @@ export interface CreatePhaseOptions {
|
|
|
379
379
|
* The `deletePhase()` function returns a Promise when the specified phase has been deleted.
|
|
380
380
|
*
|
|
381
381
|
*
|
|
382
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
382
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
383
383
|
*
|
|
384
384
|
* This function is not a universal function and runs only on the backend.
|
|
385
385
|
* @param _id - ID of the phase to delete.
|
|
@@ -397,7 +397,7 @@ export declare function deletePhase(_id: string): Promise<void>;
|
|
|
397
397
|
* Use the `options` parameter to specify the new phase position within the workflow. Any non-win phase can be moved to any non-win position. The win phase cannot be moved. Positions are zero-based, meaning the first position is `0`.
|
|
398
398
|
*
|
|
399
399
|
*
|
|
400
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
400
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
401
401
|
*
|
|
402
402
|
* This function is not a universal function and runs only on the backend.
|
|
403
403
|
* @param newPosition - New phase position, where the first phase is `0`.
|
|
@@ -137,7 +137,7 @@ exports.queryPhases = queryPhases;
|
|
|
137
137
|
* Use the `options` parameter to specify which phases to retrieve and in which order to retrieve them. Phases can be sorted based on their `"id"`, `"name"`, and `"position"`. If no `limit` parameter is passed, the first 50 cards are returned. Sort order defaults to by `"position"` ascending.
|
|
138
138
|
*
|
|
139
139
|
*
|
|
140
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
140
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
141
141
|
*
|
|
142
142
|
* This function is not a universal function and runs only on the backend.
|
|
143
143
|
* @param workflowId - ID of the workflow whose phases will be listed.
|
|
@@ -201,7 +201,7 @@ exports.listPhases = listPhases;
|
|
|
201
201
|
*
|
|
202
202
|
* The `getPhaseInfo()` function returns a Promise that resolves to the phase with the specified ID.
|
|
203
203
|
*
|
|
204
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
204
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
205
205
|
*
|
|
206
206
|
* This function is not a universal function and runs only on the backend.
|
|
207
207
|
* @param _id - ID of the phase to retrieve.
|
|
@@ -262,7 +262,7 @@ exports.getPhase = getPhase;
|
|
|
262
262
|
* Only the properties passed in the `Phase` object will be updated. All other properties will remain the same.
|
|
263
263
|
*
|
|
264
264
|
*
|
|
265
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
265
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
266
266
|
*
|
|
267
267
|
* This function is not a universal function and runs only on the backend.
|
|
268
268
|
* @param _id - ID of the phase to update.
|
|
@@ -328,7 +328,7 @@ exports.updatePhase = updatePhase;
|
|
|
328
328
|
* When omitted, the newly created phase is added as the last non-win phase.
|
|
329
329
|
*
|
|
330
330
|
*
|
|
331
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
331
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
332
332
|
*
|
|
333
333
|
* This function is not a universal function and runs only on the backend.
|
|
334
334
|
* @param workflowId - ID of the workflow to create the phase in.
|
|
@@ -393,7 +393,7 @@ exports.createPhase = createPhase;
|
|
|
393
393
|
* The `deletePhase()` function returns a Promise when the specified phase has been deleted.
|
|
394
394
|
*
|
|
395
395
|
*
|
|
396
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
396
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
397
397
|
*
|
|
398
398
|
* This function is not a universal function and runs only on the backend.
|
|
399
399
|
* @param _id - ID of the phase to delete.
|
|
@@ -454,7 +454,7 @@ exports.deletePhase = deletePhase;
|
|
|
454
454
|
* Use the `options` parameter to specify the new phase position within the workflow. Any non-win phase can be moved to any non-win position. The win phase cannot be moved. Positions are zero-based, meaning the first position is `0`.
|
|
455
455
|
*
|
|
456
456
|
*
|
|
457
|
-
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the
|
|
457
|
+
* This function requires you to specify the ID of a phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
458
458
|
*
|
|
459
459
|
* This function is not a universal function and runs only on the backend.
|
|
460
460
|
* @param newPosition - New phase position, where the first phase is `0`.
|
|
@@ -32,7 +32,7 @@ export declare function queryWorkflows(payload: QueryWorkflowsRequest): RequestO
|
|
|
32
32
|
* The `getWorkflowInfo()` function returns a Promise that resolves to the workflow info with the specified ID.
|
|
33
33
|
*
|
|
34
34
|
*
|
|
35
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
35
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
36
36
|
*/
|
|
37
37
|
export declare function getWorkflow(payload: GetWorkflowRequest): RequestOptionsFactory<GetWorkflowResponse>;
|
|
38
38
|
/**
|
|
@@ -62,7 +62,7 @@ export declare function createWorkflow(payload: CreateWorkflowRequest): RequestO
|
|
|
62
62
|
* The `deleteWorkflow()` function returns a Promise when the specified workflow has been deleted.
|
|
63
63
|
*
|
|
64
64
|
*
|
|
65
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
65
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
66
66
|
*/
|
|
67
67
|
export declare function deleteWorkflow(payload: DeleteWorkflowRequest): RequestOptionsFactory<DeleteWorkflowResponse>;
|
|
68
68
|
/** Sets up the default workflow. */
|
|
@@ -154,7 +154,7 @@ exports.queryWorkflows = queryWorkflows;
|
|
|
154
154
|
* The `getWorkflowInfo()` function returns a Promise that resolves to the workflow info with the specified ID.
|
|
155
155
|
*
|
|
156
156
|
*
|
|
157
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
157
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
158
158
|
*/
|
|
159
159
|
function getWorkflow(payload) {
|
|
160
160
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getWorkflowRequest, {});
|
|
@@ -258,7 +258,7 @@ exports.createWorkflow = createWorkflow;
|
|
|
258
258
|
* The `deleteWorkflow()` function returns a Promise when the specified workflow has been deleted.
|
|
259
259
|
*
|
|
260
260
|
*
|
|
261
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
261
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
262
262
|
*/
|
|
263
263
|
function deleteWorkflow(payload) {
|
|
264
264
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deleteWorkflowRequest, {});
|
|
@@ -345,7 +345,7 @@ export interface QueryWorkflowsOptions {
|
|
|
345
345
|
* The `getWorkflowInfo()` function returns a Promise that resolves to the workflow info with the specified ID.
|
|
346
346
|
*
|
|
347
347
|
*
|
|
348
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
348
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
349
349
|
*
|
|
350
350
|
* This function is not a universal function and runs only on the backend.
|
|
351
351
|
* @param _id - ID of the workflow to retrieve.
|
|
@@ -379,6 +379,7 @@ export interface GetWorkflowOptions {
|
|
|
379
379
|
* @param _id - ID of the workflow to update.
|
|
380
380
|
* @public
|
|
381
381
|
* @requiredField _id
|
|
382
|
+
* @param options - Options to use when updating a workflow.
|
|
382
383
|
*/
|
|
383
384
|
export declare function updateWorkflow(_id: string, options?: UpdateWorkflowOptions): Promise<void>;
|
|
384
385
|
export interface UpdateWorkflowOptions {
|
|
@@ -394,6 +395,7 @@ export interface UpdateWorkflowOptions {
|
|
|
394
395
|
* This function is not a universal function and runs only on the backend.
|
|
395
396
|
* @public
|
|
396
397
|
* @requiredField options.workflow.name
|
|
398
|
+
* @param options - Options to use when creating a workflow.
|
|
397
399
|
*/
|
|
398
400
|
export declare function createWorkflow(options?: CreateWorkflowOptions): Promise<CreateWorkflowResponse>;
|
|
399
401
|
export interface CreateWorkflowOptions {
|
|
@@ -407,7 +409,7 @@ export interface CreateWorkflowOptions {
|
|
|
407
409
|
* The `deleteWorkflow()` function returns a Promise when the specified workflow has been deleted.
|
|
408
410
|
*
|
|
409
411
|
*
|
|
410
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
412
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
411
413
|
*
|
|
412
414
|
* This function is not a universal function and runs only on the backend.
|
|
413
415
|
* @param _id - ID of the workflow to delete.
|
|
@@ -201,7 +201,7 @@ exports.queryWorkflows = queryWorkflows;
|
|
|
201
201
|
* The `getWorkflowInfo()` function returns a Promise that resolves to the workflow info with the specified ID.
|
|
202
202
|
*
|
|
203
203
|
*
|
|
204
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
204
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
205
205
|
*
|
|
206
206
|
* This function is not a universal function and runs only on the backend.
|
|
207
207
|
* @param _id - ID of the workflow to retrieve.
|
|
@@ -273,6 +273,7 @@ exports.getWorkflow = getWorkflow;
|
|
|
273
273
|
* @param _id - ID of the workflow to update.
|
|
274
274
|
* @public
|
|
275
275
|
* @requiredField _id
|
|
276
|
+
* @param options - Options to use when updating a workflow.
|
|
276
277
|
*/
|
|
277
278
|
function updateWorkflow(_id, options) {
|
|
278
279
|
var _a, _b, _c;
|
|
@@ -328,6 +329,7 @@ exports.updateWorkflow = updateWorkflow;
|
|
|
328
329
|
* This function is not a universal function and runs only on the backend.
|
|
329
330
|
* @public
|
|
330
331
|
* @requiredField options.workflow.name
|
|
332
|
+
* @param options - Options to use when creating a workflow.
|
|
331
333
|
*/
|
|
332
334
|
function createWorkflow(options) {
|
|
333
335
|
var _a, _b, _c;
|
|
@@ -380,7 +382,7 @@ exports.createWorkflow = createWorkflow;
|
|
|
380
382
|
* The `deleteWorkflow()` function returns a Promise when the specified workflow has been deleted.
|
|
381
383
|
*
|
|
382
384
|
*
|
|
383
|
-
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the
|
|
385
|
+
* This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).
|
|
384
386
|
*
|
|
385
387
|
* This function is not a universal function and runs only on the backend.
|
|
386
388
|
* @param _id - ID of the workflow to delete.
|