@wix/workflows 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/build/cjs/context.d.ts +3 -0
  2. package/build/cjs/{index.typings.js → context.js} +9 -5
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.d.ts +3 -3
  5. package/build/cjs/index.js +8 -4
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +3 -3
  8. package/build/cjs/meta.js +8 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +3 -0
  11. package/build/es/context.js +4 -0
  12. package/build/es/context.js.map +1 -0
  13. package/build/es/index.d.ts +3 -3
  14. package/build/es/index.js +3 -3
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +3 -3
  17. package/build/es/meta.js +3 -3
  18. package/build/es/meta.js.map +1 -1
  19. package/context/package.json +6 -0
  20. package/package.json +17 -7
  21. package/build/cjs/index.typings.d.ts +0 -3
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/workflows-v1-card.http.d.ts +0 -114
  24. package/build/cjs/src/workflows-v1-card.http.js +0 -380
  25. package/build/cjs/src/workflows-v1-card.http.js.map +0 -1
  26. package/build/cjs/src/workflows-v1-card.meta.d.ts +0 -37
  27. package/build/cjs/src/workflows-v1-card.meta.js +0 -176
  28. package/build/cjs/src/workflows-v1-card.meta.js.map +0 -1
  29. package/build/cjs/src/workflows-v1-card.public.d.ts +0 -24
  30. package/build/cjs/src/workflows-v1-card.public.js +0 -57
  31. package/build/cjs/src/workflows-v1-card.public.js.map +0 -1
  32. package/build/cjs/src/workflows-v1-card.types.d.ts +0 -270
  33. package/build/cjs/src/workflows-v1-card.types.js +0 -14
  34. package/build/cjs/src/workflows-v1-card.types.js.map +0 -1
  35. package/build/cjs/src/workflows-v1-card.universal.d.ts +0 -500
  36. package/build/cjs/src/workflows-v1-card.universal.js +0 -596
  37. package/build/cjs/src/workflows-v1-card.universal.js.map +0 -1
  38. package/build/cjs/src/workflows-v1-phase.http.d.ts +0 -76
  39. package/build/cjs/src/workflows-v1-phase.http.js +0 -296
  40. package/build/cjs/src/workflows-v1-phase.http.js.map +0 -1
  41. package/build/cjs/src/workflows-v1-phase.meta.d.ts +0 -31
  42. package/build/cjs/src/workflows-v1-phase.meta.js +0 -138
  43. package/build/cjs/src/workflows-v1-phase.meta.js.map +0 -1
  44. package/build/cjs/src/workflows-v1-phase.public.d.ts +0 -27
  45. package/build/cjs/src/workflows-v1-phase.public.js +0 -45
  46. package/build/cjs/src/workflows-v1-phase.public.js.map +0 -1
  47. package/build/cjs/src/workflows-v1-phase.types.d.ts +0 -274
  48. package/build/cjs/src/workflows-v1-phase.types.js +0 -14
  49. package/build/cjs/src/workflows-v1-phase.types.js.map +0 -1
  50. package/build/cjs/src/workflows-v1-phase.universal.d.ts +0 -435
  51. package/build/cjs/src/workflows-v1-phase.universal.js +0 -456
  52. package/build/cjs/src/workflows-v1-phase.universal.js.map +0 -1
  53. package/build/cjs/src/workflows-v1-workflow.http.d.ts +0 -55
  54. package/build/cjs/src/workflows-v1-workflow.http.js +0 -262
  55. package/build/cjs/src/workflows-v1-workflow.http.js.map +0 -1
  56. package/build/cjs/src/workflows-v1-workflow.meta.d.ts +0 -23
  57. package/build/cjs/src/workflows-v1-workflow.meta.js +0 -119
  58. package/build/cjs/src/workflows-v1-workflow.meta.js.map +0 -1
  59. package/build/cjs/src/workflows-v1-workflow.public.d.ts +0 -46
  60. package/build/cjs/src/workflows-v1-workflow.public.js +0 -39
  61. package/build/cjs/src/workflows-v1-workflow.public.js.map +0 -1
  62. package/build/cjs/src/workflows-v1-workflow.types.d.ts +0 -319
  63. package/build/cjs/src/workflows-v1-workflow.types.js +0 -14
  64. package/build/cjs/src/workflows-v1-workflow.types.js.map +0 -1
  65. package/build/cjs/src/workflows-v1-workflow.universal.d.ts +0 -433
  66. package/build/cjs/src/workflows-v1-workflow.universal.js +0 -369
  67. package/build/cjs/src/workflows-v1-workflow.universal.js.map +0 -1
  68. package/build/es/index.typings.d.ts +0 -3
  69. package/build/es/index.typings.js +0 -4
  70. package/build/es/index.typings.js.map +0 -1
  71. package/build/es/src/workflows-v1-card.http.d.ts +0 -114
  72. package/build/es/src/workflows-v1-card.http.js +0 -369
  73. package/build/es/src/workflows-v1-card.http.js.map +0 -1
  74. package/build/es/src/workflows-v1-card.meta.d.ts +0 -37
  75. package/build/es/src/workflows-v1-card.meta.js +0 -146
  76. package/build/es/src/workflows-v1-card.meta.js.map +0 -1
  77. package/build/es/src/workflows-v1-card.public.d.ts +0 -24
  78. package/build/es/src/workflows-v1-card.public.js +0 -44
  79. package/build/es/src/workflows-v1-card.public.js.map +0 -1
  80. package/build/es/src/workflows-v1-card.types.d.ts +0 -270
  81. package/build/es/src/workflows-v1-card.types.js +0 -11
  82. package/build/es/src/workflows-v1-card.types.js.map +0 -1
  83. package/build/es/src/workflows-v1-card.universal.d.ts +0 -500
  84. package/build/es/src/workflows-v1-card.universal.js +0 -566
  85. package/build/es/src/workflows-v1-card.universal.js.map +0 -1
  86. package/build/es/src/workflows-v1-phase.http.d.ts +0 -76
  87. package/build/es/src/workflows-v1-phase.http.js +0 -287
  88. package/build/es/src/workflows-v1-phase.http.js.map +0 -1
  89. package/build/es/src/workflows-v1-phase.meta.d.ts +0 -31
  90. package/build/es/src/workflows-v1-phase.meta.js +0 -110
  91. package/build/es/src/workflows-v1-phase.meta.js.map +0 -1
  92. package/build/es/src/workflows-v1-phase.public.d.ts +0 -27
  93. package/build/es/src/workflows-v1-phase.public.js +0 -34
  94. package/build/es/src/workflows-v1-phase.public.js.map +0 -1
  95. package/build/es/src/workflows-v1-phase.types.d.ts +0 -274
  96. package/build/es/src/workflows-v1-phase.types.js +0 -11
  97. package/build/es/src/workflows-v1-phase.types.js.map +0 -1
  98. package/build/es/src/workflows-v1-phase.universal.d.ts +0 -435
  99. package/build/es/src/workflows-v1-phase.universal.js +0 -428
  100. package/build/es/src/workflows-v1-phase.universal.js.map +0 -1
  101. package/build/es/src/workflows-v1-workflow.http.d.ts +0 -55
  102. package/build/es/src/workflows-v1-workflow.http.js +0 -254
  103. package/build/es/src/workflows-v1-workflow.http.js.map +0 -1
  104. package/build/es/src/workflows-v1-workflow.meta.d.ts +0 -23
  105. package/build/es/src/workflows-v1-workflow.meta.js +0 -92
  106. package/build/es/src/workflows-v1-workflow.meta.js.map +0 -1
  107. package/build/es/src/workflows-v1-workflow.public.d.ts +0 -46
  108. package/build/es/src/workflows-v1-workflow.public.js +0 -29
  109. package/build/es/src/workflows-v1-workflow.public.js.map +0 -1
  110. package/build/es/src/workflows-v1-workflow.types.d.ts +0 -319
  111. package/build/es/src/workflows-v1-workflow.types.js +0 -11
  112. package/build/es/src/workflows-v1-workflow.types.js.map +0 -1
  113. package/build/es/src/workflows-v1-workflow.universal.d.ts +0 -433
  114. package/build/es/src/workflows-v1-workflow.universal.js +0 -342
  115. package/build/es/src/workflows-v1-workflow.universal.js.map +0 -1
@@ -1,76 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { CreatePhaseRequest, CreatePhaseResponse, DeletePhaseRequest, DeletePhaseResponse, GetPhaseRequest, GetPhaseResponse, ListPhasesRequest, ListPhasesResponse, MovePhaseRequest, MovePhaseResponse, UpdatePhaseRequest, UpdatePhaseResponse, ListPhasesResponseNonNullableFields, GetPhaseResponseNonNullableFields } from './workflows-v1-phase.types';
3
- /**
4
- * Retrieves a list of a workflow's phases.
5
- *
6
- *
7
- * The `listPhases()` function returns a Promise that resolves to a list containing information about the specified workflow's phases.
8
- *
9
- *
10
- * 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.
11
- *
12
- *
13
- * 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).
14
- */
15
- export declare function listPhases(payload: ListPhasesRequest): RequestOptionsFactory<ListPhasesResponse & ListPhasesResponseNonNullableFields>;
16
- /**
17
- * Retrieves a phase by ID.
18
- *
19
- *
20
- * The `getPhase()` function returns a Promise that resolves to the phase with the specified ID.
21
- *
22
- * 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).
23
- */
24
- export declare function getPhase(payload: GetPhaseRequest): RequestOptionsFactory<GetPhaseResponse & GetPhaseResponseNonNullableFields>;
25
- /**
26
- * Updates an existing workflow phase.
27
- *
28
- *
29
- * The `updatePhase()` function returns a Promise that resolves when the phase has been updated with the specified values.
30
- *
31
- *
32
- * Only the properties passed in the `phase` object will be updated. All other properties will remain the same.
33
- *
34
- *
35
- * 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).
36
- */
37
- export declare function updatePhase(payload: UpdatePhaseRequest): RequestOptionsFactory<UpdatePhaseResponse>;
38
- /**
39
- * Creates a new workflow phase.
40
- *
41
- *
42
- * The `createPhase()` function returns a Promise that resolves to the created phase ID when the phase is created in the specified workflow.
43
- *
44
- *
45
- * Pass a value for the `position` parameter to specify the newly created phase's position within the specified workflow. Positions are zero-based, meaning the first position is `0`.
46
- *
47
- *
48
- * When omitted, the newly created phase is added as the last non-win phase.
49
- *
50
- *
51
- * 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).
52
- */
53
- export declare function createPhase(payload: CreatePhaseRequest): RequestOptionsFactory<CreatePhaseResponse>;
54
- /**
55
- * Deletes a workflow phase.
56
- *
57
- *
58
- * The `deletePhase()` function returns a Promise when the specified phase has been deleted.
59
- *
60
- *
61
- * 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).
62
- */
63
- export declare function deletePhase(payload: DeletePhaseRequest): RequestOptionsFactory<DeletePhaseResponse>;
64
- /**
65
- * Moves a phase to a new position with a workflow.
66
- *
67
- *
68
- * The `movePhase()` function returns a Promise when the specified phase has been moved to the new position.
69
- *
70
- *
71
- * Use the `newPosition` 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`.
72
- *
73
- *
74
- * 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).
75
- */
76
- export declare function movePhase(payload: MovePhaseRequest): RequestOptionsFactory<MovePhaseResponse>;
@@ -1,296 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.movePhase = exports.deletePhase = exports.createPhase = exports.updatePhase = exports.getPhase = exports.listPhases = void 0;
4
- const metro_runtime_1 = require("@wix/metro-runtime");
5
- const ambassador_1 = require("@wix/metro-runtime/ambassador");
6
- const metro_runtime_2 = require("@wix/metro-runtime");
7
- const _card = { info: '_cardInfo' };
8
- const _cardInfo = {
9
- dueDate: 'google.protobuf.Timestamp',
10
- createdAt: 'google.protobuf.Timestamp',
11
- updatedAt: 'google.protobuf.Timestamp',
12
- createdDate: 'google.protobuf.Timestamp',
13
- updatedDate: 'google.protobuf.Timestamp',
14
- };
15
- const _cardsList = { cards: '_card' };
16
- const _createPhaseRequest = {};
17
- const _createPhaseResponse = {};
18
- const _deletePhaseRequest = {};
19
- const _deletePhaseResponse = {};
20
- const _getPhaseRequest = {};
21
- const _getPhaseResponse = { phase: '_phase' };
22
- const _listPhasesRequest = {};
23
- const _listPhasesResponse = { phases: '_phase' };
24
- const _movePhaseRequest = {};
25
- const _movePhaseResponse = {};
26
- const _phase = { cardsList: '_cardsList' };
27
- const _updatePhaseRequest = {};
28
- const _updatePhaseResponse = {};
29
- function resolveComWixpressWorkflowApiV1PhasesServiceUrl(opts) {
30
- const domainToMappings = {
31
- 'www._base_domain_': [
32
- {
33
- srcPath: '/_api/workflow-server-web',
34
- destPath: '',
35
- },
36
- ],
37
- 'api._api_base_domain_': [
38
- {
39
- srcPath: '/workflow-server-web',
40
- destPath: '',
41
- },
42
- ],
43
- 'manage._base_domain_': [
44
- {
45
- srcPath: '/_api/workflow-server-web',
46
- destPath: '',
47
- },
48
- ],
49
- 'www.wixapis.com': [
50
- {
51
- srcPath: '/workflows',
52
- destPath: '',
53
- },
54
- ],
55
- };
56
- return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
57
- }
58
- /**
59
- * Retrieves a list of a workflow's phases.
60
- *
61
- *
62
- * The `listPhases()` function returns a Promise that resolves to a list containing information about the specified workflow's phases.
63
- *
64
- *
65
- * 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.
66
- *
67
- *
68
- * 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).
69
- */
70
- function listPhases(payload) {
71
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_listPhasesRequest, {});
72
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_listPhasesResponse, {
73
- _card,
74
- _cardInfo,
75
- _cardsList,
76
- _phase,
77
- });
78
- function __listPhases({ host }) {
79
- const serializedData = toReq(payload);
80
- const metadata = {
81
- entityFqdn: 'wix.workflows.v1.phase',
82
- method: 'GET',
83
- methodFqn: 'com.wixpress.workflow.api.v1.PhasesService.ListPhases',
84
- url: resolveComWixpressWorkflowApiV1PhasesServiceUrl({
85
- protoPath: '/v1/workflows/{workflowId}/phases',
86
- data: serializedData,
87
- host,
88
- }),
89
- params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
90
- transformResponse: fromRes,
91
- fallback: [
92
- {
93
- method: 'GET',
94
- url: resolveComWixpressWorkflowApiV1PhasesServiceUrl({
95
- protoPath: '/v1/workflows/{workflowId}/phases',
96
- data: serializedData,
97
- host,
98
- }),
99
- params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
100
- },
101
- ],
102
- };
103
- return metadata;
104
- }
105
- __listPhases.fromReq = fromReq;
106
- return __listPhases;
107
- }
108
- exports.listPhases = listPhases;
109
- /**
110
- * Retrieves a phase by ID.
111
- *
112
- *
113
- * The `getPhase()` function returns a Promise that resolves to the phase with the specified ID.
114
- *
115
- * 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).
116
- */
117
- function getPhase(payload) {
118
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getPhaseRequest, {});
119
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getPhaseResponse, {
120
- _card,
121
- _cardInfo,
122
- _cardsList,
123
- _phase,
124
- });
125
- function __getPhase({ host }) {
126
- const serializedData = toReq(payload);
127
- const metadata = {
128
- entityFqdn: 'wix.workflows.v1.phase',
129
- method: 'GET',
130
- methodFqn: 'com.wixpress.workflow.api.v1.PhasesService.GetPhase',
131
- url: resolveComWixpressWorkflowApiV1PhasesServiceUrl({
132
- protoPath: '/v1/phases/{id}',
133
- data: serializedData,
134
- host,
135
- }),
136
- params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
137
- transformResponse: fromRes,
138
- fallback: [
139
- {
140
- method: 'GET',
141
- url: resolveComWixpressWorkflowApiV1PhasesServiceUrl({
142
- protoPath: '/v1/phases/{id}',
143
- data: serializedData,
144
- host,
145
- }),
146
- params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
147
- },
148
- ],
149
- };
150
- return metadata;
151
- }
152
- __getPhase.fromReq = fromReq;
153
- return __getPhase;
154
- }
155
- exports.getPhase = getPhase;
156
- /**
157
- * Updates an existing workflow phase.
158
- *
159
- *
160
- * The `updatePhase()` function returns a Promise that resolves when the phase has been updated with the specified values.
161
- *
162
- *
163
- * Only the properties passed in the `phase` object will be updated. All other properties will remain the same.
164
- *
165
- *
166
- * 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).
167
- */
168
- function updatePhase(payload) {
169
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updatePhaseRequest, {});
170
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_updatePhaseResponse, {});
171
- function __updatePhase({ host }) {
172
- const serializedData = toReq(payload);
173
- const metadata = {
174
- entityFqdn: 'wix.workflows.v1.phase',
175
- method: 'PATCH',
176
- methodFqn: 'com.wixpress.workflow.api.v1.PhasesService.UpdatePhase',
177
- url: resolveComWixpressWorkflowApiV1PhasesServiceUrl({
178
- protoPath: '/v1/phases/{id}',
179
- data: serializedData,
180
- host,
181
- }),
182
- data: serializedData,
183
- transformResponse: fromRes,
184
- };
185
- return metadata;
186
- }
187
- __updatePhase.fromReq = fromReq;
188
- return __updatePhase;
189
- }
190
- exports.updatePhase = updatePhase;
191
- /**
192
- * Creates a new workflow phase.
193
- *
194
- *
195
- * The `createPhase()` function returns a Promise that resolves to the created phase ID when the phase is created in the specified workflow.
196
- *
197
- *
198
- * Pass a value for the `position` parameter to specify the newly created phase's position within the specified workflow. Positions are zero-based, meaning the first position is `0`.
199
- *
200
- *
201
- * When omitted, the newly created phase is added as the last non-win phase.
202
- *
203
- *
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
- */
206
- function createPhase(payload) {
207
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createPhaseRequest, {});
208
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_createPhaseResponse, {});
209
- function __createPhase({ host }) {
210
- const serializedData = toReq(payload);
211
- const metadata = {
212
- entityFqdn: 'wix.workflows.v1.phase',
213
- method: 'POST',
214
- methodFqn: 'com.wixpress.workflow.api.v1.PhasesService.CreatePhase',
215
- url: resolveComWixpressWorkflowApiV1PhasesServiceUrl({
216
- protoPath: '/v1/workflows/{workflowId}/phases',
217
- data: serializedData,
218
- host,
219
- }),
220
- data: serializedData,
221
- transformResponse: fromRes,
222
- };
223
- return metadata;
224
- }
225
- __createPhase.fromReq = fromReq;
226
- return __createPhase;
227
- }
228
- exports.createPhase = createPhase;
229
- /**
230
- * Deletes a workflow phase.
231
- *
232
- *
233
- * The `deletePhase()` function returns a Promise when the specified phase has been deleted.
234
- *
235
- *
236
- * 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).
237
- */
238
- function deletePhase(payload) {
239
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deletePhaseRequest, {});
240
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_deletePhaseResponse, {});
241
- function __deletePhase({ host }) {
242
- const serializedData = toReq(payload);
243
- const metadata = {
244
- entityFqdn: 'wix.workflows.v1.phase',
245
- method: 'DELETE',
246
- methodFqn: 'com.wixpress.workflow.api.v1.PhasesService.DeletePhase',
247
- url: resolveComWixpressWorkflowApiV1PhasesServiceUrl({
248
- protoPath: '/v1/phases/{id}',
249
- data: serializedData,
250
- host,
251
- }),
252
- params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
253
- transformResponse: fromRes,
254
- };
255
- return metadata;
256
- }
257
- __deletePhase.fromReq = fromReq;
258
- return __deletePhase;
259
- }
260
- exports.deletePhase = deletePhase;
261
- /**
262
- * Moves a phase to a new position with a workflow.
263
- *
264
- *
265
- * The `movePhase()` function returns a Promise when the specified phase has been moved to the new position.
266
- *
267
- *
268
- * Use the `newPosition` 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`.
269
- *
270
- *
271
- * 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).
272
- */
273
- function movePhase(payload) {
274
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_movePhaseRequest, {});
275
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_movePhaseResponse, {});
276
- function __movePhase({ host }) {
277
- const serializedData = toReq(payload);
278
- const metadata = {
279
- entityFqdn: 'wix.workflows.v1.phase',
280
- method: 'POST',
281
- methodFqn: 'com.wixpress.workflow.api.v1.PhasesService.MovePhase',
282
- url: resolveComWixpressWorkflowApiV1PhasesServiceUrl({
283
- protoPath: '/v1/workflows/{workflowId}/phases/{id}/move',
284
- data: serializedData,
285
- host,
286
- }),
287
- data: serializedData,
288
- transformResponse: fromRes,
289
- };
290
- return metadata;
291
- }
292
- __movePhase.fromReq = fromReq;
293
- return __movePhase;
294
- }
295
- exports.movePhase = movePhase;
296
- //# sourceMappingURL=workflows-v1-phase.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflows-v1-phase.http.js","sourceRoot":"","sources":["../../../src/workflows-v1-phase.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAoBhD,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AACpC,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,2BAA2B;IACpC,SAAS,EAAE,2BAA2B;IACtC,SAAS,EAAE,2BAA2B;IACtC,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AACF,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AACtC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,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AEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC;IAE9B,OAAO,WAAW,CAAC;AACrB,CAAC;AA9BD,8BA8BC"}
@@ -1,31 +0,0 @@
1
- import * as ambassadorWixWorkflowsV1PhaseTypes from './workflows-v1-phase.types';
2
- import * as ambassadorWixWorkflowsV1PhaseUniversalTypes from './workflows-v1-phase.universal';
3
- export declare type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function listPhases(): __PublicMethodMetaInfo<'GET', {
14
- workflowId: string;
15
- }, ambassadorWixWorkflowsV1PhaseUniversalTypes.ListPhasesRequest, ambassadorWixWorkflowsV1PhaseTypes.ListPhasesRequest, ambassadorWixWorkflowsV1PhaseUniversalTypes.ListPhasesResponse & ambassadorWixWorkflowsV1PhaseUniversalTypes.ListPhasesResponseNonNullableFields, ambassadorWixWorkflowsV1PhaseTypes.ListPhasesResponse & ambassadorWixWorkflowsV1PhaseTypes.ListPhasesResponseNonNullableFields>;
16
- export declare function getPhase(): __PublicMethodMetaInfo<'GET', {
17
- id: string;
18
- }, ambassadorWixWorkflowsV1PhaseUniversalTypes.GetPhaseRequest, ambassadorWixWorkflowsV1PhaseTypes.GetPhaseRequest, ambassadorWixWorkflowsV1PhaseUniversalTypes.GetPhaseResponse & ambassadorWixWorkflowsV1PhaseUniversalTypes.GetPhaseResponseNonNullableFields, ambassadorWixWorkflowsV1PhaseTypes.GetPhaseResponse & ambassadorWixWorkflowsV1PhaseTypes.GetPhaseResponseNonNullableFields>;
19
- export declare function updatePhase(): __PublicMethodMetaInfo<'PATCH', {
20
- id: string;
21
- }, ambassadorWixWorkflowsV1PhaseUniversalTypes.UpdatePhaseRequest, ambassadorWixWorkflowsV1PhaseTypes.UpdatePhaseRequest, ambassadorWixWorkflowsV1PhaseUniversalTypes.UpdatePhaseResponse, ambassadorWixWorkflowsV1PhaseTypes.UpdatePhaseResponse>;
22
- export declare function createPhase(): __PublicMethodMetaInfo<'POST', {
23
- workflowId: string;
24
- }, ambassadorWixWorkflowsV1PhaseUniversalTypes.CreatePhaseRequest, ambassadorWixWorkflowsV1PhaseTypes.CreatePhaseRequest, ambassadorWixWorkflowsV1PhaseUniversalTypes.CreatePhaseResponse, ambassadorWixWorkflowsV1PhaseTypes.CreatePhaseResponse>;
25
- export declare function deletePhase(): __PublicMethodMetaInfo<'DELETE', {
26
- id: string;
27
- }, ambassadorWixWorkflowsV1PhaseUniversalTypes.DeletePhaseRequest, ambassadorWixWorkflowsV1PhaseTypes.DeletePhaseRequest, ambassadorWixWorkflowsV1PhaseUniversalTypes.DeletePhaseResponse, ambassadorWixWorkflowsV1PhaseTypes.DeletePhaseResponse>;
28
- export declare function movePhase(): __PublicMethodMetaInfo<'POST', {
29
- workflowId: string;
30
- id: string;
31
- }, ambassadorWixWorkflowsV1PhaseUniversalTypes.MovePhaseRequest, ambassadorWixWorkflowsV1PhaseTypes.MovePhaseRequest, ambassadorWixWorkflowsV1PhaseUniversalTypes.MovePhaseResponse, ambassadorWixWorkflowsV1PhaseTypes.MovePhaseResponse>;
@@ -1,138 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.movePhase = exports.deletePhase = exports.createPhase = exports.updatePhase = exports.getPhase = exports.listPhases = void 0;
23
- const ambassadorWixWorkflowsV1Phase = __importStar(require("./workflows-v1-phase.http"));
24
- function listPhases() {
25
- const payload = { workflowId: ':workflowId' };
26
- const getRequestOptions = ambassadorWixWorkflowsV1Phase.listPhases(payload);
27
- const getUrl = (context) => {
28
- const { url } = getRequestOptions(context);
29
- return url;
30
- };
31
- return {
32
- getUrl,
33
- httpMethod: 'GET',
34
- path: '/v1/workflows/{workflowId}/phases',
35
- pathParams: { workflowId: 'workflowId' },
36
- __requestType: null,
37
- __originalRequestType: null,
38
- __responseType: null,
39
- __originalResponseType: null,
40
- };
41
- }
42
- exports.listPhases = listPhases;
43
- function getPhase() {
44
- const payload = { id: ':id' };
45
- const getRequestOptions = ambassadorWixWorkflowsV1Phase.getPhase(payload);
46
- const getUrl = (context) => {
47
- const { url } = getRequestOptions(context);
48
- return url;
49
- };
50
- return {
51
- getUrl,
52
- httpMethod: 'GET',
53
- path: '/v1/phases/{id}',
54
- pathParams: { id: 'id' },
55
- __requestType: null,
56
- __originalRequestType: null,
57
- __responseType: null,
58
- __originalResponseType: null,
59
- };
60
- }
61
- exports.getPhase = getPhase;
62
- function updatePhase() {
63
- const payload = { id: ':id' };
64
- const getRequestOptions = ambassadorWixWorkflowsV1Phase.updatePhase(payload);
65
- const getUrl = (context) => {
66
- const { url } = getRequestOptions(context);
67
- return url;
68
- };
69
- return {
70
- getUrl,
71
- httpMethod: 'PATCH',
72
- path: '/v1/phases/{id}',
73
- pathParams: { id: 'id' },
74
- __requestType: null,
75
- __originalRequestType: null,
76
- __responseType: null,
77
- __originalResponseType: null,
78
- };
79
- }
80
- exports.updatePhase = updatePhase;
81
- function createPhase() {
82
- const payload = { workflowId: ':workflowId' };
83
- const getRequestOptions = ambassadorWixWorkflowsV1Phase.createPhase(payload);
84
- const getUrl = (context) => {
85
- const { url } = getRequestOptions(context);
86
- return url;
87
- };
88
- return {
89
- getUrl,
90
- httpMethod: 'POST',
91
- path: '/v1/workflows/{workflowId}/phases',
92
- pathParams: { workflowId: 'workflowId' },
93
- __requestType: null,
94
- __originalRequestType: null,
95
- __responseType: null,
96
- __originalResponseType: null,
97
- };
98
- }
99
- exports.createPhase = createPhase;
100
- function deletePhase() {
101
- const payload = { id: ':id' };
102
- const getRequestOptions = ambassadorWixWorkflowsV1Phase.deletePhase(payload);
103
- const getUrl = (context) => {
104
- const { url } = getRequestOptions(context);
105
- return url;
106
- };
107
- return {
108
- getUrl,
109
- httpMethod: 'DELETE',
110
- path: '/v1/phases/{id}',
111
- pathParams: { id: 'id' },
112
- __requestType: null,
113
- __originalRequestType: null,
114
- __responseType: null,
115
- __originalResponseType: null,
116
- };
117
- }
118
- exports.deletePhase = deletePhase;
119
- function movePhase() {
120
- const payload = { workflowId: ':workflowId', id: ':id' };
121
- const getRequestOptions = ambassadorWixWorkflowsV1Phase.movePhase(payload);
122
- const getUrl = (context) => {
123
- const { url } = getRequestOptions(context);
124
- return url;
125
- };
126
- return {
127
- getUrl,
128
- httpMethod: 'POST',
129
- path: '/v1/workflows/{workflowId}/phases/{id}/move',
130
- pathParams: { workflowId: 'workflowId', id: 'id' },
131
- __requestType: null,
132
- __originalRequestType: null,
133
- __responseType: null,
134
- __originalResponseType: null,
135
- };
136
- }
137
- exports.movePhase = movePhase;
138
- //# sourceMappingURL=workflows-v1-phase.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflows-v1-phase.meta.js","sourceRoot":"","sources":["../../../src/workflows-v1-phase.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yFAA2E;AAsB3E,SAAgB,UAAU;IAUxB,MAAM,OAAO,GAAG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AM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;QACxB,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA3BD,kCA2BC;AAED,SAAgB,SAAS;IAQvB,MAAM,OAAO,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,EAAE,KAAK,EAAS,CAAC;IAEhE,MAAM,iBAAiB,GAAG,6BAA6B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAE3E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,6CAA6C;QACnD,UAAU,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE;QAClD,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA3BD,8BA2BC"}
@@ -1,27 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { PhaseInfo, MovePhaseIdentifiers, CreatePhaseOptions, ListPhasesOptions } from './workflows-v1-phase.universal';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function listPhases(httpClient: HttpClient): (workflowId: string, options?: ListPhasesOptions | undefined) => Promise<import("./workflows-v1-phase.universal").ListPhasesResponse & import("./workflows-v1-phase.universal").ListPhasesResponseNonNullableFields>;
7
- export declare function getPhase(httpClient: HttpClient): (_id: string) => Promise<import("./workflows-v1-phase.universal").Phase & {
8
- cardsList?: {
9
- total: number;
10
- cards: {
11
- info?: {
12
- primaryAttachment?: {
13
- attachmentId: string;
14
- value: string;
15
- attachmentType: import("./workflows-v1-phase.universal").AttachmentType;
16
- contactId: string;
17
- } | undefined;
18
- } | undefined;
19
- }[];
20
- } | undefined;
21
- }>;
22
- export declare function updatePhase(httpClient: HttpClient): (_id: string, phase: PhaseInfo) => Promise<void>;
23
- export declare function createPhase(httpClient: HttpClient): (workflowId: string, phase: PhaseInfo, options?: CreatePhaseOptions | undefined) => Promise<import("./workflows-v1-phase.universal").CreatePhaseResponse>;
24
- export declare function deletePhase(httpClient: HttpClient): (_id: string) => Promise<void>;
25
- export declare function movePhase(httpClient: HttpClient): (identifiers: MovePhaseIdentifiers, newPosition: number | null) => Promise<void>;
26
- export { AttachmentType, SortOrder } from './workflows-v1-phase.universal';
27
- export { Phase, PhaseInfo, CardsList, Card, CardInfo, Attachment, QueryPhasesRequest, Query, Sorting, Paging, QueryPhasesResponse, PaginationResponse, ListPhasesRequest, ListPhasesResponse, GetPhaseRequest, GetPhaseResponse, UpdatePhaseRequest, UpdatePhaseResponse, CreatePhaseRequest, CreatePhaseResponse, DeletePhaseRequest, DeletePhaseResponse, MovePhaseRequest, MovePhaseResponse, ListPhasesResponseNonNullableFields, GetPhaseResponseNonNullableFields, ListPhasesOptions, CreatePhaseOptions, MovePhaseIdentifiers, } from './workflows-v1-phase.universal';
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = exports.AttachmentType = exports.movePhase = exports.deletePhase = exports.createPhase = exports.updatePhase = exports.getPhase = exports.listPhases = exports.__metadata = void 0;
4
- const workflows_v1_phase_universal_1 = require("./workflows-v1-phase.universal");
5
- exports.__metadata = { PACKAGE_NAME: '@wix/workflows' };
6
- function listPhases(httpClient) {
7
- return (workflowId, options) => (0, workflows_v1_phase_universal_1.listPhases)(workflowId, options,
8
- // @ts-ignore
9
- { httpClient });
10
- }
11
- exports.listPhases = listPhases;
12
- function getPhase(httpClient) {
13
- return (_id) => (0, workflows_v1_phase_universal_1.getPhase)(_id,
14
- // @ts-ignore
15
- { httpClient });
16
- }
17
- exports.getPhase = getPhase;
18
- function updatePhase(httpClient) {
19
- return (_id, phase) => (0, workflows_v1_phase_universal_1.updatePhase)(_id, phase,
20
- // @ts-ignore
21
- { httpClient });
22
- }
23
- exports.updatePhase = updatePhase;
24
- function createPhase(httpClient) {
25
- return (workflowId, phase, options) => (0, workflows_v1_phase_universal_1.createPhase)(workflowId, phase, options,
26
- // @ts-ignore
27
- { httpClient });
28
- }
29
- exports.createPhase = createPhase;
30
- function deletePhase(httpClient) {
31
- return (_id) => (0, workflows_v1_phase_universal_1.deletePhase)(_id,
32
- // @ts-ignore
33
- { httpClient });
34
- }
35
- exports.deletePhase = deletePhase;
36
- function movePhase(httpClient) {
37
- return (identifiers, newPosition) => (0, workflows_v1_phase_universal_1.movePhase)(identifiers, newPosition,
38
- // @ts-ignore
39
- { httpClient });
40
- }
41
- exports.movePhase = movePhase;
42
- var workflows_v1_phase_universal_2 = require("./workflows-v1-phase.universal");
43
- Object.defineProperty(exports, "AttachmentType", { enumerable: true, get: function () { return workflows_v1_phase_universal_2.AttachmentType; } });
44
- Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return workflows_v1_phase_universal_2.SortOrder; } });
45
- //# sourceMappingURL=workflows-v1-phase.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflows-v1-phase.public.js","sourceRoot":"","sources":["../../../src/workflows-v1-phase.public.ts"],"names":[],"mappings":";;;AACA,iFAWwC;AAE3B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAE7D,SAAgB,UAAU,CAAC,UAAsB;IAC/C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