@wix/workflows 1.0.4 → 1.0.6

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 (49) hide show
  1. package/build/cjs/src/workflows-v1-card.http.d.ts +8 -8
  2. package/build/cjs/src/workflows-v1-card.http.js +8 -8
  3. package/build/cjs/src/workflows-v1-card.public.d.ts +3 -3
  4. package/build/cjs/src/workflows-v1-card.public.js +1 -1
  5. package/build/cjs/src/workflows-v1-card.public.js.map +1 -1
  6. package/build/cjs/src/workflows-v1-card.universal.d.ts +21 -17
  7. package/build/cjs/src/workflows-v1-card.universal.js +14 -12
  8. package/build/cjs/src/workflows-v1-card.universal.js.map +1 -1
  9. package/build/cjs/src/workflows-v1-phase.http.d.ts +6 -6
  10. package/build/cjs/src/workflows-v1-phase.http.js +6 -6
  11. package/build/cjs/src/workflows-v1-phase.public.d.ts +4 -4
  12. package/build/cjs/src/workflows-v1-phase.public.js +2 -2
  13. package/build/cjs/src/workflows-v1-phase.public.js.map +1 -1
  14. package/build/cjs/src/workflows-v1-phase.universal.d.ts +34 -24
  15. package/build/cjs/src/workflows-v1-phase.universal.js +23 -22
  16. package/build/cjs/src/workflows-v1-phase.universal.js.map +1 -1
  17. package/build/cjs/src/workflows-v1-workflow.http.d.ts +2 -2
  18. package/build/cjs/src/workflows-v1-workflow.http.js +2 -2
  19. package/build/cjs/src/workflows-v1-workflow.public.d.ts +5 -5
  20. package/build/cjs/src/workflows-v1-workflow.public.js +3 -3
  21. package/build/cjs/src/workflows-v1-workflow.public.js.map +1 -1
  22. package/build/cjs/src/workflows-v1-workflow.universal.d.ts +30 -29
  23. package/build/cjs/src/workflows-v1-workflow.universal.js +27 -19
  24. package/build/cjs/src/workflows-v1-workflow.universal.js.map +1 -1
  25. package/build/es/src/workflows-v1-card.http.d.ts +8 -8
  26. package/build/es/src/workflows-v1-card.http.js +8 -8
  27. package/build/es/src/workflows-v1-card.public.d.ts +3 -3
  28. package/build/es/src/workflows-v1-card.public.js +1 -1
  29. package/build/es/src/workflows-v1-card.public.js.map +1 -1
  30. package/build/es/src/workflows-v1-card.universal.d.ts +21 -17
  31. package/build/es/src/workflows-v1-card.universal.js +14 -12
  32. package/build/es/src/workflows-v1-card.universal.js.map +1 -1
  33. package/build/es/src/workflows-v1-phase.http.d.ts +6 -6
  34. package/build/es/src/workflows-v1-phase.http.js +6 -6
  35. package/build/es/src/workflows-v1-phase.public.d.ts +4 -4
  36. package/build/es/src/workflows-v1-phase.public.js +2 -2
  37. package/build/es/src/workflows-v1-phase.public.js.map +1 -1
  38. package/build/es/src/workflows-v1-phase.universal.d.ts +34 -24
  39. package/build/es/src/workflows-v1-phase.universal.js +23 -22
  40. package/build/es/src/workflows-v1-phase.universal.js.map +1 -1
  41. package/build/es/src/workflows-v1-workflow.http.d.ts +2 -2
  42. package/build/es/src/workflows-v1-workflow.http.js +2 -2
  43. package/build/es/src/workflows-v1-workflow.public.d.ts +5 -5
  44. package/build/es/src/workflows-v1-workflow.public.js +3 -3
  45. package/build/es/src/workflows-v1-workflow.public.js.map +1 -1
  46. package/build/es/src/workflows-v1-workflow.universal.d.ts +30 -29
  47. package/build/es/src/workflows-v1-workflow.universal.js +27 -19
  48. package/build/es/src/workflows-v1-workflow.universal.js.map +1 -1
  49. package/package.json +2 -2
@@ -201,21 +201,23 @@ 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 Workflow API, see [Retrieving IDs](#retrieving-ids).
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.
208
+ * @param cardsPerPhase - Maximum number of cards to return per phase.
209
+ * To retrieve additional pages of cards, use
210
+ * [List Cards](../cards/listCards)
211
+ * (in the Cards API).
208
212
  * @public
209
213
  * @requiredField _id
214
+ * @requiredField cardsPerPhase
210
215
  * @param options - Options to use when retrieving a workflow.
211
216
  */
212
- function getWorkflow(_id, options) {
217
+ function getWorkflow(_id, cardsPerPhase) {
213
218
  var _a, _b, _c;
214
219
  return __awaiter(this, arguments, void 0, function* () {
215
- const requestTransformation = {
216
- id: '$[0]',
217
- cardsPerPhase: '$[1].cardsPerPhase',
218
- };
220
+ const requestTransformation = { id: '$[0]', cardsPerPhase: '$[1]' };
219
221
  const responseTransformation = '$';
220
222
  // @ts-ignore
221
223
  const { httpClient, sideEffects } = arguments[2];
@@ -237,7 +239,7 @@ function getWorkflow(_id, options) {
237
239
  },
238
240
  customTransformation: responseTransformation,
239
241
  });
240
- const payload = toAmbassadorRequest([_id, options]);
242
+ const payload = toAmbassadorRequest([_id, cardsPerPhase]);
241
243
  const reqOpts = ambassadorWixWorkflowsV1Workflow.getWorkflow(payload);
242
244
  __log(`"GetWorkflow" sending request with: ${__inspect(reqOpts)}`);
243
245
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
@@ -249,7 +251,7 @@ function getWorkflow(_id, options) {
249
251
  catch (err) {
250
252
  const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
251
253
  '_id',
252
- 'options',
254
+ 'cardsPerPhase',
253
255
  ]);
254
256
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
255
257
  throw transformedError;
@@ -271,14 +273,16 @@ exports.getWorkflow = getWorkflow;
271
273
  *
272
274
  * This function is not a universal function and runs only on the backend.
273
275
  * @param _id - ID of the workflow to update.
276
+ * @param workflow - Workflow info.
274
277
  * @public
275
278
  * @requiredField _id
279
+ * @requiredField workflow
276
280
  * @param options - Options to use when updating a workflow.
277
281
  */
278
- function updateWorkflow(_id, options) {
282
+ function updateWorkflow(_id, workflow) {
279
283
  var _a, _b, _c;
280
284
  return __awaiter(this, arguments, void 0, function* () {
281
- const requestTransformation = { id: '$[0]', workflow: '$[1].workflow' };
285
+ const requestTransformation = { id: '$[0]', workflow: '$[1]' };
282
286
  const responseTransformation = '$';
283
287
  // @ts-ignore
284
288
  const { httpClient, sideEffects } = arguments[2];
@@ -300,7 +304,7 @@ function updateWorkflow(_id, options) {
300
304
  },
301
305
  customTransformation: responseTransformation,
302
306
  });
303
- const payload = toAmbassadorRequest([_id, options]);
307
+ const payload = toAmbassadorRequest([_id, workflow]);
304
308
  const reqOpts = ambassadorWixWorkflowsV1Workflow.updateWorkflow(payload);
305
309
  __log(`"UpdateWorkflow" sending request with: ${__inspect(reqOpts)}`);
306
310
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
@@ -312,7 +316,7 @@ function updateWorkflow(_id, options) {
312
316
  catch (err) {
313
317
  const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
314
318
  '_id',
315
- 'options',
319
+ 'workflow',
316
320
  ]);
317
321
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
318
322
  throw transformedError;
@@ -327,14 +331,16 @@ exports.updateWorkflow = updateWorkflow;
327
331
  * The `createWorkflow()` function returns a Promise that resolves to the created workflow ID.
328
332
  *
329
333
  * This function is not a universal function and runs only on the backend.
334
+ * @param workflow - Workflow details.
330
335
  * @public
331
- * @requiredField options.workflow.name
336
+ * @requiredField workflow
337
+ * @requiredField workflow.name
332
338
  * @param options - Options to use when creating a workflow.
333
339
  */
334
- function createWorkflow(options) {
340
+ function createWorkflow(workflow) {
335
341
  var _a, _b, _c;
336
342
  return __awaiter(this, arguments, void 0, function* () {
337
- const requestTransformation = { workflow: '$[0].workflow' };
343
+ const requestTransformation = { workflow: '$[0]' };
338
344
  const responseTransformation = '$';
339
345
  // @ts-ignore
340
346
  const { httpClient, sideEffects } = arguments[1];
@@ -356,7 +362,7 @@ function createWorkflow(options) {
356
362
  },
357
363
  customTransformation: responseTransformation,
358
364
  });
359
- const payload = toAmbassadorRequest([options]);
365
+ const payload = toAmbassadorRequest([workflow]);
360
366
  const reqOpts = ambassadorWixWorkflowsV1Workflow.createWorkflow(payload);
361
367
  __log(`"CreateWorkflow" sending request with: ${__inspect(reqOpts)}`);
362
368
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
@@ -367,7 +373,7 @@ function createWorkflow(options) {
367
373
  }
368
374
  catch (err) {
369
375
  const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
370
- 'options',
376
+ 'workflow',
371
377
  ]);
372
378
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
373
379
  throw transformedError;
@@ -382,7 +388,7 @@ exports.createWorkflow = createWorkflow;
382
388
  * The `deleteWorkflow()` function returns a Promise when the specified workflow has been deleted.
383
389
  *
384
390
  *
385
- * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
391
+ * 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).
386
392
  *
387
393
  * This function is not a universal function and runs only on the backend.
388
394
  * @param _id - ID of the workflow to delete.
@@ -437,7 +443,9 @@ exports.deleteWorkflow = deleteWorkflow;
437
443
  * Sets up the default workflow.
438
444
  *
439
445
  * This function is not a universal function and runs only on the backend.
440
- * @public */
446
+ * @public
447
+ * @documentationMaturity preview
448
+ */
441
449
  function setupWorkflow() {
442
450
  var _a, _b, _c;
443
451
  return __awaiter(this, arguments, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"workflows-v1-workflow.universal.js","sourceRoot":"","sources":["../../../src/work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K,EAAE,EAAE;gBACT,cAAc,EAAE,eAAe;aAChC;YACD,oBAAoB,EAAE,qBAAqB;SAC5C,CAAC,CAAC;QAEH,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,iBAAU,EAAC;YAC9B,UAAU,EAAE,sBAAsB;YAClC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EAAE;gBACT,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;QAExC,MAAM,OAAO,GAAG,gCAAgC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAExE,KAAK,CAAC,yCAAyC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAErE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;YACxE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAhDD,sCAgDC"}
@@ -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 Workflow API, see [Retrieving IDs](#retrieving-ids).
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 Workflow API, see [Retrieving IDs](#retrieving-ids).
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 Workflow API, see [Retrieving IDs](#retrieving-ids).
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 Workflow API, see [Retrieving IDs](#retrieving-ids).
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 Workflow API, see [Retrieving IDs](#retrieving-ids).
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 Workflow API, see [Retrieving IDs](#retrieving-ids).
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 Workflow API, see [Retrieving IDs](#retrieving-ids).
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 Workflow API, see [Retrieving IDs](#retrieving-ids).
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>;
@@ -107,7 +107,7 @@ export function queryCards(payload) {
107
107
  * Sort order defaults to by `"phaseId"` and then by `"position"` ascending.
108
108
  *
109
109
  *
110
- * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
110
+ * 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).
111
111
  */
112
112
  export function listCards(payload) {
113
113
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_listCardsRequest, {});
@@ -141,7 +141,7 @@ export function listCards(payload) {
141
141
  * The `getCard()` function returns a Promise that resolves to the card with the specified ID.
142
142
  *
143
143
  *
144
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
144
+ * 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).
145
145
  */
146
146
  export function getCard(payload) {
147
147
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_getCardRequest, {});
@@ -178,7 +178,7 @@ export function getCard(payload) {
178
178
  * `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.
179
179
  *
180
180
  *
181
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
181
+ * 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).
182
182
  */
183
183
  export function updateCard(payload) {
184
184
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateCardRequest, {
@@ -215,7 +215,7 @@ export function updateCard(payload) {
215
215
  * When omitted, the newly created card is added to the specified phase as the top card within the phase.
216
216
  *
217
217
  *
218
- * This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
218
+ * 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).
219
219
  *
220
220
  * > **Note:**
221
221
  * > Each workflow is limited to 5,000 cards.
@@ -253,7 +253,7 @@ export function createCard(payload) {
253
253
  *
254
254
  * The `deleteCard()` function returns a Promise when the specified card has been deleted.
255
255
  *
256
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
256
+ * 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).
257
257
  */
258
258
  export function deleteCard(payload) {
259
259
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_deleteCardRequest, {});
@@ -285,7 +285,7 @@ export function deleteCard(payload) {
285
285
  *
286
286
  * 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`.
287
287
  *
288
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
288
+ * 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).
289
289
  */
290
290
  export function moveCard(payload) {
291
291
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_moveCardRequest, {});
@@ -316,7 +316,7 @@ export function moveCard(payload) {
316
316
  * The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.
317
317
  *
318
318
  *
319
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
319
+ * 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).
320
320
  *
321
321
  *
322
322
  * > **Note:**
@@ -354,7 +354,7 @@ export function restoreCard(payload) {
354
354
  * The `archiveCard()` function returns a Promise that resolves when the card has been archived.
355
355
  *
356
356
  *
357
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
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
  export function archiveCard(payload) {
360
360
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_archiveCardRequest, {});
@@ -1,16 +1,16 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { CreateCardIdentifiers, CreateCardOptions, ListCardsOptions, MoveCardOptions, QueryCardsOptions, RestoreCardOptions, UpdateCardOptions } from './workflows-v1-card.universal';
2
+ import { CardInfo, CreateCardIdentifiers, CreateCardOptions, ListCardsOptions, MoveCardOptions, QueryCardsOptions, RestoreCardOptions } from './workflows-v1-card.universal';
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
6
6
  export declare function queryCards(httpClient: HttpClient): (options?: QueryCardsOptions | undefined) => Promise<import("./workflows-v1-card.universal").QueryCardsResponse>;
7
7
  export declare function listCards(httpClient: HttpClient): (workflowId: string, options?: ListCardsOptions | undefined) => Promise<import("./workflows-v1-card.universal").ListCardsResponse>;
8
8
  export declare function getCard(httpClient: HttpClient): (_id: string) => Promise<import("./workflows-v1-card.universal").GetCardResponse>;
9
- export declare function updateCard(httpClient: HttpClient): (_id: string, options?: UpdateCardOptions | undefined) => Promise<void>;
9
+ export declare function updateCard(httpClient: HttpClient): (_id: string, cardInfo: CardInfo) => Promise<void>;
10
10
  export declare function createCard(httpClient: HttpClient): (identifiers: CreateCardIdentifiers, options?: CreateCardOptions | undefined) => Promise<import("./workflows-v1-card.universal").CreateCardResponse>;
11
11
  export declare function deleteCard(httpClient: HttpClient): (_id: string) => Promise<void>;
12
12
  export declare function moveCard(httpClient: HttpClient): (_id: string, options?: MoveCardOptions | undefined) => Promise<void>;
13
13
  export declare function restoreCard(httpClient: HttpClient): (_id: string, newPhaseId: string, options?: RestoreCardOptions | undefined) => Promise<void>;
14
14
  export declare function archiveCard(httpClient: HttpClient): (_id: string) => Promise<void>;
15
15
  export { AttachmentType, SortOrder } from './workflows-v1-card.universal';
16
- export { Card, CardInfo, Attachment, QueryCardsRequest, Query, Sorting, Paging, QueryCardsResponse, PaginationResponse, ListCardsRequest, ListCardsResponse, GetCardRequest, GetCardResponse, UpdateCardRequest, UpdateCardResponse, CreateCardRequest, CreateCardResponse, DeleteCardRequest, DeleteCardResponse, MoveCardRequest, MoveCardResponse, RestoreCardRequest, RestoreCardResponse, ArchiveCardRequest, ArchiveCardResponse, QueryCardsOptions, ListCardsOptions, UpdateCardOptions, CreateCardIdentifiers, CreateCardOptions, MoveCardOptions, RestoreCardOptions, } from './workflows-v1-card.universal';
16
+ export { Card, CardInfo, Attachment, QueryCardsRequest, Query, Sorting, Paging, QueryCardsResponse, PaginationResponse, ListCardsRequest, ListCardsResponse, GetCardRequest, GetCardResponse, UpdateCardRequest, UpdateCardResponse, CreateCardRequest, CreateCardResponse, DeleteCardRequest, DeleteCardResponse, MoveCardRequest, MoveCardResponse, RestoreCardRequest, RestoreCardResponse, ArchiveCardRequest, ArchiveCardResponse, QueryCardsOptions, ListCardsOptions, CreateCardIdentifiers, CreateCardOptions, MoveCardOptions, RestoreCardOptions, } from './workflows-v1-card.universal';
@@ -16,7 +16,7 @@ export function getCard(httpClient) {
16
16
  { httpClient });
17
17
  }
18
18
  export function updateCard(httpClient) {
19
- return (_id, options) => universalUpdateCard(_id, options,
19
+ return (_id, cardInfo) => universalUpdateCard(_id, cardInfo,
20
20
  // @ts-ignore
21
21
  { httpClient });
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"workflows-v1-card.public.js","sourceRo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E,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,mBAAmB,CACjB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,GAAW,EAAE,OAAyB,EAAE,EAAE,CAChD,iBAAiB,CACf,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,UAAkB,EAAE,OAA4B,EAAE,EAAE,CACvE,oBAAoB,CAClB,GAAG,EACH,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,oBAAoB,CAClB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"workflows-v1-card.public.js","sourceRoot":"","sources":["../../../src/workflows-v1-card.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,IAAI,mBAAmB,EACjC,SAAS,IAAI,kBAAkB,EAC/B,OAAO,IAAI,gBAAgB,EAC3B,UAAU,IAAI,mBAAmB,EACjC,UAAU,IAAI,mBAAmB,EACjC,UAAU,IAAI,mBAAmB,EACjC,QAAQ,IAAI,iBAAiB,EAC7B,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,GAQpC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAE7D,MAAM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AAW,EAAE,UAAkB,EAAE,OAA4B,EAAE,EAAE,CACvE,oBAAoB,CAClB,GAAG,EACH,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,oBAAoB,CAClB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC"}
@@ -26,12 +26,14 @@ export interface CardInfo {
26
26
  /** Name of the app or service that created the contact. */
27
27
  source?: string | null;
28
28
  /**
29
- * Deprecated. Use `createdDate` instead.
29
+ * @internal
30
+ * @internal
30
31
  * @readonly
31
32
  */
32
33
  createdAt?: Date;
33
34
  /**
34
- * Deprecated. Use `updatedDate` instead.
35
+ * @internal
36
+ * @internal
35
37
  * @readonly
36
38
  */
37
39
  updatedAt?: Date;
@@ -57,9 +59,13 @@ export interface Attachment {
57
59
  * @readonly
58
60
  */
59
61
  attachmentId?: string;
60
- /** Deprecated. Use `contactId` instead. */
62
+ /**
63
+ * @internal
64
+ * @internal */
61
65
  value?: string;
62
- /** Deprecated. For internal use. */
66
+ /**
67
+ * @internal
68
+ * @internal */
63
69
  attachmentType?: AttachmentType;
64
70
  /** ID of the contact attached to the card. */
65
71
  contactId?: string;
@@ -280,7 +286,7 @@ export interface QueryCardsOptions {
280
286
  * Sort order defaults to by `"phaseId"` and then by `"position"` ascending.
281
287
  *
282
288
  *
283
- * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
289
+ * 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
290
  *
285
291
  * This function is not a universal function and runs only on the backend.
286
292
  * @param workflowId - ID of the workflow whose cards will be listed.
@@ -336,7 +342,7 @@ export interface ListCardsOptions {
336
342
  * The `getCard()` function returns a Promise that resolves to the card with the specified ID.
337
343
  *
338
344
  *
339
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
345
+ * 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
346
  *
341
347
  * This function is not a universal function and runs only on the backend.
342
348
  * @param _id - ID of the card to retrieve.
@@ -354,19 +360,17 @@ export declare function getCard(_id: string): Promise<GetCardResponse>;
354
360
  * `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
361
  *
356
362
  *
357
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
363
+ * 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
364
  *
359
365
  * This function is not a universal function and runs only on the backend.
360
366
  * @param _id - ID of the card to update.
367
+ * @param cardInfo - Card details.
361
368
  * @public
362
369
  * @requiredField _id
370
+ * @requiredField cardInfo
363
371
  * @param options - Options to use when updating a card.
364
372
  */
365
- export declare function updateCard(_id: string, options?: UpdateCardOptions): Promise<void>;
366
- export interface UpdateCardOptions {
367
- /** Card details. */
368
- cardInfo?: CardInfo;
369
- }
373
+ export declare function updateCard(_id: string, cardInfo: CardInfo): Promise<void>;
370
374
  /**
371
375
  * Creates a new workflow card.
372
376
  *
@@ -378,7 +382,7 @@ export interface UpdateCardOptions {
378
382
  * When omitted, the newly created card is added to the specified phase as the top card within the phase.
379
383
  *
380
384
  *
381
- * This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
385
+ * 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
386
  *
383
387
  * > **Note:**
384
388
  * > Each workflow is limited to 5,000 cards.
@@ -419,7 +423,7 @@ export interface CreateCardOptions {
419
423
  *
420
424
  * The `deleteCard()` function returns a Promise when the specified card has been deleted.
421
425
  *
422
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
426
+ * 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
427
  *
424
428
  * This function is not a universal function and runs only on the backend.
425
429
  * @param _id - ID of the card to delete.
@@ -435,7 +439,7 @@ export declare function deleteCard(_id: string): Promise<void>;
435
439
  *
436
440
  * 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
441
  *
438
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
442
+ * 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
443
  *
440
444
  * This function is not a universal function and runs only on the backend.
441
445
  * @param _id - ID of the card to move.
@@ -457,7 +461,7 @@ export interface MoveCardOptions {
457
461
  * The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.
458
462
  *
459
463
  *
460
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
464
+ * 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
465
  *
462
466
  *
463
467
  * > **Note:**
@@ -489,7 +493,7 @@ export interface RestoreCardOptions {
489
493
  * The `archiveCard()` function returns a Promise that resolves when the card has been archived.
490
494
  *
491
495
  *
492
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
496
+ * 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
497
  *
494
498
  * This function is not a universal function and runs only on the backend.
495
499
  * @param _id - ID of the card to archive.
@@ -126,7 +126,7 @@ export function queryCards(options) {
126
126
  * Sort order defaults to by `"phaseId"` and then by `"position"` ascending.
127
127
  *
128
128
  *
129
- * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
129
+ * 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).
130
130
  *
131
131
  * This function is not a universal function and runs only on the backend.
132
132
  * @param workflowId - ID of the workflow whose cards will be listed.
@@ -193,7 +193,7 @@ export function listCards(workflowId, options) {
193
193
  * The `getCard()` function returns a Promise that resolves to the card with the specified ID.
194
194
  *
195
195
  *
196
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
196
+ * 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).
197
197
  *
198
198
  * This function is not a universal function and runs only on the backend.
199
199
  * @param _id - ID of the card to retrieve.
@@ -253,18 +253,20 @@ export function getCard(_id) {
253
253
  * `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.
254
254
  *
255
255
  *
256
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
256
+ * 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).
257
257
  *
258
258
  * This function is not a universal function and runs only on the backend.
259
259
  * @param _id - ID of the card to update.
260
+ * @param cardInfo - Card details.
260
261
  * @public
261
262
  * @requiredField _id
263
+ * @requiredField cardInfo
262
264
  * @param options - Options to use when updating a card.
263
265
  */
264
- export function updateCard(_id, options) {
266
+ export function updateCard(_id, cardInfo) {
265
267
  var _a, _b, _c;
266
268
  return __awaiter(this, arguments, void 0, function* () {
267
- const requestTransformation = { id: '$[0]', cardInfo: '$[1].cardInfo' };
269
+ const requestTransformation = { id: '$[0]', cardInfo: '$[1]' };
268
270
  const responseTransformation = '$';
269
271
  // @ts-ignore
270
272
  const { httpClient, sideEffects } = arguments[2];
@@ -286,7 +288,7 @@ export function updateCard(_id, options) {
286
288
  },
287
289
  customTransformation: responseTransformation,
288
290
  });
289
- const payload = toAmbassadorRequest([_id, options]);
291
+ const payload = toAmbassadorRequest([_id, cardInfo]);
290
292
  const reqOpts = ambassadorWixWorkflowsV1Card.updateCard(payload);
291
293
  __log(`"UpdateCard" sending request with: ${__inspect(reqOpts)}`);
292
294
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
@@ -298,7 +300,7 @@ export function updateCard(_id, options) {
298
300
  catch (err) {
299
301
  const transformedError = transformError(err, requestTransformation, [
300
302
  '_id',
301
- 'options',
303
+ 'cardInfo',
302
304
  ]);
303
305
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
304
306
  throw transformedError;
@@ -316,7 +318,7 @@ export function updateCard(_id, options) {
316
318
  * When omitted, the newly created card is added to the specified phase as the top card within the phase.
317
319
  *
318
320
  *
319
- * This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
321
+ * 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).
320
322
  *
321
323
  * > **Note:**
322
324
  * > Each workflow is limited to 5,000 cards.
@@ -386,7 +388,7 @@ export function createCard(identifiers, options) {
386
388
  *
387
389
  * The `deleteCard()` function returns a Promise when the specified card has been deleted.
388
390
  *
389
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
391
+ * 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).
390
392
  *
391
393
  * This function is not a universal function and runs only on the backend.
392
394
  * @param _id - ID of the card to delete.
@@ -444,7 +446,7 @@ export function deleteCard(_id) {
444
446
  *
445
447
  * 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`.
446
448
  *
447
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
449
+ * 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).
448
450
  *
449
451
  * This function is not a universal function and runs only on the backend.
450
452
  * @param _id - ID of the card to move.
@@ -507,7 +509,7 @@ export function moveCard(_id, options) {
507
509
  * The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.
508
510
  *
509
511
  *
510
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
512
+ * 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).
511
513
  *
512
514
  *
513
515
  * > **Note:**
@@ -580,7 +582,7 @@ export function restoreCard(_id, newPhaseId, options) {
580
582
  * The `archiveCard()` function returns a Promise that resolves when the card has been archived.
581
583
  *
582
584
  *
583
- * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).
585
+ * 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).
584
586
  *
585
587
  * This function is not a universal function and runs only on the backend.
586
588
  * @param _id - ID of the card to archive.