@approvio/api 0.0.45 → 0.0.47
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/README.md +11 -10
- package/dist/mocks/index.cjs +46 -23
- package/dist/mocks/index.d.cts +3 -2
- package/dist/mocks/index.d.mts +3 -2
- package/dist/mocks/index.mjs +46 -24
- package/dist/src/index.cjs +283 -199
- package/dist/src/index.d.cts +124 -215
- package/dist/src/index.d.mts +124 -215
- package/dist/src/index.mjs +270 -200
- package/dist/{workflow-create-CC-JYERf.d.mts → workflow-create-CHJBdnEj.d.cts} +162 -23
- package/dist/{workflow-create-i3n3vy4V.d.cts → workflow-create-DBQ7ekaO.d.mts} +162 -23
- package/package.json +9 -8
|
@@ -24,7 +24,7 @@ declare namespace OrRule {
|
|
|
24
24
|
* Workflow Approval System API
|
|
25
25
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
26
26
|
*
|
|
27
|
-
* The version of the OpenAPI document: 0.0.
|
|
27
|
+
* The version of the OpenAPI document: 0.0.41
|
|
28
28
|
*
|
|
29
29
|
*
|
|
30
30
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -96,7 +96,7 @@ declare namespace AndRule {
|
|
|
96
96
|
* Workflow Approval System API
|
|
97
97
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
98
98
|
*
|
|
99
|
-
* The version of the OpenAPI document: 0.0.
|
|
99
|
+
* The version of the OpenAPI document: 0.0.41
|
|
100
100
|
*
|
|
101
101
|
*
|
|
102
102
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -115,7 +115,7 @@ interface ConcurrencyControl {
|
|
|
115
115
|
* Workflow Approval System API
|
|
116
116
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
117
117
|
*
|
|
118
|
-
* The version of the OpenAPI document: 0.0.
|
|
118
|
+
* The version of the OpenAPI document: 0.0.41
|
|
119
119
|
*
|
|
120
120
|
*
|
|
121
121
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -147,7 +147,7 @@ declare namespace EmailAction {
|
|
|
147
147
|
* Workflow Approval System API
|
|
148
148
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
149
149
|
*
|
|
150
|
-
* The version of the OpenAPI document: 0.0.
|
|
150
|
+
* The version of the OpenAPI document: 0.0.41
|
|
151
151
|
*
|
|
152
152
|
*
|
|
153
153
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -159,12 +159,159 @@ interface GroupInfo {
|
|
|
159
159
|
groupName: string;
|
|
160
160
|
}
|
|
161
161
|
//#endregion
|
|
162
|
+
//#region generated/openapi/model/org-scope.d.ts
|
|
163
|
+
/**
|
|
164
|
+
* Workflow Approval System API
|
|
165
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
166
|
+
*
|
|
167
|
+
* The version of the OpenAPI document: 0.0.41
|
|
168
|
+
*
|
|
169
|
+
*
|
|
170
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
171
|
+
* https://openapi-generator.tech
|
|
172
|
+
* Do not edit the class manually.
|
|
173
|
+
*/
|
|
174
|
+
/**
|
|
175
|
+
* Organization-wide scope - applies to entire organization
|
|
176
|
+
*/
|
|
177
|
+
interface OrgScope {
|
|
178
|
+
/**
|
|
179
|
+
* Scope type (org)
|
|
180
|
+
*/
|
|
181
|
+
type: OrgScope.TypeEnum;
|
|
182
|
+
}
|
|
183
|
+
declare namespace OrgScope {
|
|
184
|
+
type TypeEnum = 'org';
|
|
185
|
+
const TypeEnum: {
|
|
186
|
+
Org: TypeEnum;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region generated/openapi/model/group-scope.d.ts
|
|
191
|
+
/**
|
|
192
|
+
* Workflow Approval System API
|
|
193
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
194
|
+
*
|
|
195
|
+
* The version of the OpenAPI document: 0.0.41
|
|
196
|
+
*
|
|
197
|
+
*
|
|
198
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
199
|
+
* https://openapi-generator.tech
|
|
200
|
+
* Do not edit the class manually.
|
|
201
|
+
*/
|
|
202
|
+
/**
|
|
203
|
+
* Group-specific scope - applies to a specific group
|
|
204
|
+
*/
|
|
205
|
+
interface GroupScope {
|
|
206
|
+
/**
|
|
207
|
+
* Scope type (group)
|
|
208
|
+
*/
|
|
209
|
+
type: GroupScope.TypeEnum;
|
|
210
|
+
/**
|
|
211
|
+
* The unique identifier of the group
|
|
212
|
+
*/
|
|
213
|
+
groupId: string;
|
|
214
|
+
}
|
|
215
|
+
declare namespace GroupScope {
|
|
216
|
+
type TypeEnum = 'group';
|
|
217
|
+
const TypeEnum: {
|
|
218
|
+
Group: TypeEnum;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region generated/openapi/model/space-scope.d.ts
|
|
223
|
+
/**
|
|
224
|
+
* Workflow Approval System API
|
|
225
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
226
|
+
*
|
|
227
|
+
* The version of the OpenAPI document: 0.0.41
|
|
228
|
+
*
|
|
229
|
+
*
|
|
230
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
231
|
+
* https://openapi-generator.tech
|
|
232
|
+
* Do not edit the class manually.
|
|
233
|
+
*/
|
|
234
|
+
/**
|
|
235
|
+
* Space-specific scope - applies to a specific space
|
|
236
|
+
*/
|
|
237
|
+
interface SpaceScope {
|
|
238
|
+
/**
|
|
239
|
+
* Scope type (space)
|
|
240
|
+
*/
|
|
241
|
+
type: SpaceScope.TypeEnum;
|
|
242
|
+
/**
|
|
243
|
+
* The unique identifier of the space
|
|
244
|
+
*/
|
|
245
|
+
spaceId: string;
|
|
246
|
+
}
|
|
247
|
+
declare namespace SpaceScope {
|
|
248
|
+
type TypeEnum = 'space';
|
|
249
|
+
const TypeEnum: {
|
|
250
|
+
Space: TypeEnum;
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region generated/openapi/model/workflow-template-scope.d.ts
|
|
255
|
+
/**
|
|
256
|
+
* Workflow Approval System API
|
|
257
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
258
|
+
*
|
|
259
|
+
* The version of the OpenAPI document: 0.0.41
|
|
260
|
+
*
|
|
261
|
+
*
|
|
262
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
263
|
+
* https://openapi-generator.tech
|
|
264
|
+
* Do not edit the class manually.
|
|
265
|
+
*/
|
|
266
|
+
/**
|
|
267
|
+
* Workflow template-specific scope - applies to a specific workflow template
|
|
268
|
+
*/
|
|
269
|
+
interface WorkflowTemplateScope {
|
|
270
|
+
/**
|
|
271
|
+
* Scope type (workflow_template)
|
|
272
|
+
*/
|
|
273
|
+
type: WorkflowTemplateScope.TypeEnum;
|
|
274
|
+
/**
|
|
275
|
+
* The unique identifier of the workflow template
|
|
276
|
+
*/
|
|
277
|
+
workflowTemplateId: string;
|
|
278
|
+
}
|
|
279
|
+
declare namespace WorkflowTemplateScope {
|
|
280
|
+
type TypeEnum = 'workflow_template';
|
|
281
|
+
const TypeEnum: {
|
|
282
|
+
WorkflowTemplate: TypeEnum;
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region generated/openapi/model/role-scope.d.ts
|
|
287
|
+
/**
|
|
288
|
+
* Defines the scope where a role applies. Can be organization-wide, space-specific, group-specific, or workflow template-specific.
|
|
289
|
+
*/
|
|
290
|
+
/**
|
|
291
|
+
* @type RoleScope
|
|
292
|
+
* Defines the scope where a role applies. Can be organization-wide, space-specific, group-specific, or workflow template-specific.
|
|
293
|
+
* @export
|
|
294
|
+
*/
|
|
295
|
+
type RoleScope = GroupScope | OrgScope | SpaceScope | WorkflowTemplateScope;
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region generated/openapi/model/role-operation-item.d.ts
|
|
298
|
+
/**
|
|
299
|
+
* A role operation item that references a system-defined role by name and provides the scope where it should apply (for assignment or removal).
|
|
300
|
+
*/
|
|
301
|
+
interface RoleOperationItem {
|
|
302
|
+
/**
|
|
303
|
+
* Name of the system-defined role template (e.g., \"GroupReadOnly\", \"SpaceManager\"). Must match a role available from the /roles endpoint.
|
|
304
|
+
*/
|
|
305
|
+
roleName: string;
|
|
306
|
+
scope: RoleScope;
|
|
307
|
+
}
|
|
308
|
+
//#endregion
|
|
162
309
|
//#region generated/openapi/model/group.d.ts
|
|
163
310
|
/**
|
|
164
311
|
* Workflow Approval System API
|
|
165
312
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
166
313
|
*
|
|
167
|
-
* The version of the OpenAPI document: 0.0.
|
|
314
|
+
* The version of the OpenAPI document: 0.0.41
|
|
168
315
|
*
|
|
169
316
|
*
|
|
170
317
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -203,7 +350,7 @@ interface Group {
|
|
|
203
350
|
* Workflow Approval System API
|
|
204
351
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
205
352
|
*
|
|
206
|
-
* The version of the OpenAPI document: 0.0.
|
|
353
|
+
* The version of the OpenAPI document: 0.0.41
|
|
207
354
|
*
|
|
208
355
|
*
|
|
209
356
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -236,7 +383,7 @@ interface ListGroups200Response {
|
|
|
236
383
|
* Workflow Approval System API
|
|
237
384
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
238
385
|
*
|
|
239
|
-
* The version of the OpenAPI document: 0.0.
|
|
386
|
+
* The version of the OpenAPI document: 0.0.41
|
|
240
387
|
*
|
|
241
388
|
*
|
|
242
389
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -263,7 +410,7 @@ interface UserSummary {
|
|
|
263
410
|
* Workflow Approval System API
|
|
264
411
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
265
412
|
*
|
|
266
|
-
* The version of the OpenAPI document: 0.0.
|
|
413
|
+
* The version of the OpenAPI document: 0.0.41
|
|
267
414
|
*
|
|
268
415
|
*
|
|
269
416
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -285,7 +432,7 @@ declare const WorkflowTemplateStatus: {
|
|
|
285
432
|
* Workflow Approval System API
|
|
286
433
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
287
434
|
*
|
|
288
|
-
* The version of the OpenAPI document: 0.0.
|
|
435
|
+
* The version of the OpenAPI document: 0.0.41
|
|
289
436
|
*
|
|
290
437
|
*
|
|
291
438
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -451,7 +598,7 @@ interface ListWorkflows200Response {
|
|
|
451
598
|
* Workflow Approval System API
|
|
452
599
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
453
600
|
*
|
|
454
|
-
* The version of the OpenAPI document: 0.0.
|
|
601
|
+
* The version of the OpenAPI document: 0.0.41
|
|
455
602
|
*
|
|
456
603
|
*
|
|
457
604
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -470,17 +617,6 @@ interface TokenResponse {
|
|
|
470
617
|
}
|
|
471
618
|
//#endregion
|
|
472
619
|
//#region generated/openapi/model/user.d.ts
|
|
473
|
-
/**
|
|
474
|
-
* Workflow Approval System API
|
|
475
|
-
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
476
|
-
*
|
|
477
|
-
* The version of the OpenAPI document: 0.0.40
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
481
|
-
* https://openapi-generator.tech
|
|
482
|
-
* Do not edit the class manually.
|
|
483
|
-
*/
|
|
484
620
|
interface User {
|
|
485
621
|
/**
|
|
486
622
|
* Internal unique identifier for the user.
|
|
@@ -498,10 +634,13 @@ interface User {
|
|
|
498
634
|
* Role assigned to the user within the organization.
|
|
499
635
|
*/
|
|
500
636
|
orgRole: string;
|
|
637
|
+
groups: Array<GroupInfo>;
|
|
638
|
+
roles: Array<RoleOperationItem>;
|
|
501
639
|
/**
|
|
502
640
|
* Timestamp when the user was created.
|
|
503
641
|
*/
|
|
504
642
|
readonly createdAt: string;
|
|
643
|
+
concurrencyControl: ConcurrencyControl;
|
|
505
644
|
}
|
|
506
645
|
//#endregion
|
|
507
646
|
//#region generated/openapi/model/workflow-create.d.ts
|
|
@@ -509,7 +648,7 @@ interface User {
|
|
|
509
648
|
* Workflow Approval System API
|
|
510
649
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
511
650
|
*
|
|
512
|
-
* The version of the OpenAPI document: 0.0.
|
|
651
|
+
* The version of the OpenAPI document: 0.0.41
|
|
513
652
|
*
|
|
514
653
|
*
|
|
515
654
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -535,4 +674,4 @@ interface WorkflowCreate {
|
|
|
535
674
|
workflowTemplateId: string;
|
|
536
675
|
}
|
|
537
676
|
//#endregion
|
|
538
|
-
export { ConcurrencyControl as _, Workflow as a,
|
|
677
|
+
export { ConcurrencyControl as C, OrRule as D, GroupRequirementRule as E, EmailAction as S, ApprovalRule as T, WorkflowTemplateScope as _, Workflow as a, OrgScope as b, WorkflowAction as c, UserSummary as d, ListGroups200Response as f, RoleScope as g, RoleOperationItem as h, ListWorkflows200Response as i, WebhookAction as l, Group as m, User as n, WorkflowRef as o, Pagination as p, TokenResponse as r, WorkflowTemplate as s, WorkflowCreate as t, WorkflowTemplateStatus as u, SpaceScope as v, AndRule as w, GroupInfo as x, GroupScope as y };
|
|
@@ -24,7 +24,7 @@ declare namespace OrRule {
|
|
|
24
24
|
* Workflow Approval System API
|
|
25
25
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
26
26
|
*
|
|
27
|
-
* The version of the OpenAPI document: 0.0.
|
|
27
|
+
* The version of the OpenAPI document: 0.0.41
|
|
28
28
|
*
|
|
29
29
|
*
|
|
30
30
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -96,7 +96,7 @@ declare namespace AndRule {
|
|
|
96
96
|
* Workflow Approval System API
|
|
97
97
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
98
98
|
*
|
|
99
|
-
* The version of the OpenAPI document: 0.0.
|
|
99
|
+
* The version of the OpenAPI document: 0.0.41
|
|
100
100
|
*
|
|
101
101
|
*
|
|
102
102
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -115,7 +115,7 @@ interface ConcurrencyControl {
|
|
|
115
115
|
* Workflow Approval System API
|
|
116
116
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
117
117
|
*
|
|
118
|
-
* The version of the OpenAPI document: 0.0.
|
|
118
|
+
* The version of the OpenAPI document: 0.0.41
|
|
119
119
|
*
|
|
120
120
|
*
|
|
121
121
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -147,7 +147,7 @@ declare namespace EmailAction {
|
|
|
147
147
|
* Workflow Approval System API
|
|
148
148
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
149
149
|
*
|
|
150
|
-
* The version of the OpenAPI document: 0.0.
|
|
150
|
+
* The version of the OpenAPI document: 0.0.41
|
|
151
151
|
*
|
|
152
152
|
*
|
|
153
153
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -159,12 +159,159 @@ interface GroupInfo {
|
|
|
159
159
|
groupName: string;
|
|
160
160
|
}
|
|
161
161
|
//#endregion
|
|
162
|
+
//#region generated/openapi/model/org-scope.d.ts
|
|
163
|
+
/**
|
|
164
|
+
* Workflow Approval System API
|
|
165
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
166
|
+
*
|
|
167
|
+
* The version of the OpenAPI document: 0.0.41
|
|
168
|
+
*
|
|
169
|
+
*
|
|
170
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
171
|
+
* https://openapi-generator.tech
|
|
172
|
+
* Do not edit the class manually.
|
|
173
|
+
*/
|
|
174
|
+
/**
|
|
175
|
+
* Organization-wide scope - applies to entire organization
|
|
176
|
+
*/
|
|
177
|
+
interface OrgScope {
|
|
178
|
+
/**
|
|
179
|
+
* Scope type (org)
|
|
180
|
+
*/
|
|
181
|
+
type: OrgScope.TypeEnum;
|
|
182
|
+
}
|
|
183
|
+
declare namespace OrgScope {
|
|
184
|
+
type TypeEnum = 'org';
|
|
185
|
+
const TypeEnum: {
|
|
186
|
+
Org: TypeEnum;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region generated/openapi/model/group-scope.d.ts
|
|
191
|
+
/**
|
|
192
|
+
* Workflow Approval System API
|
|
193
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
194
|
+
*
|
|
195
|
+
* The version of the OpenAPI document: 0.0.41
|
|
196
|
+
*
|
|
197
|
+
*
|
|
198
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
199
|
+
* https://openapi-generator.tech
|
|
200
|
+
* Do not edit the class manually.
|
|
201
|
+
*/
|
|
202
|
+
/**
|
|
203
|
+
* Group-specific scope - applies to a specific group
|
|
204
|
+
*/
|
|
205
|
+
interface GroupScope {
|
|
206
|
+
/**
|
|
207
|
+
* Scope type (group)
|
|
208
|
+
*/
|
|
209
|
+
type: GroupScope.TypeEnum;
|
|
210
|
+
/**
|
|
211
|
+
* The unique identifier of the group
|
|
212
|
+
*/
|
|
213
|
+
groupId: string;
|
|
214
|
+
}
|
|
215
|
+
declare namespace GroupScope {
|
|
216
|
+
type TypeEnum = 'group';
|
|
217
|
+
const TypeEnum: {
|
|
218
|
+
Group: TypeEnum;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region generated/openapi/model/space-scope.d.ts
|
|
223
|
+
/**
|
|
224
|
+
* Workflow Approval System API
|
|
225
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
226
|
+
*
|
|
227
|
+
* The version of the OpenAPI document: 0.0.41
|
|
228
|
+
*
|
|
229
|
+
*
|
|
230
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
231
|
+
* https://openapi-generator.tech
|
|
232
|
+
* Do not edit the class manually.
|
|
233
|
+
*/
|
|
234
|
+
/**
|
|
235
|
+
* Space-specific scope - applies to a specific space
|
|
236
|
+
*/
|
|
237
|
+
interface SpaceScope {
|
|
238
|
+
/**
|
|
239
|
+
* Scope type (space)
|
|
240
|
+
*/
|
|
241
|
+
type: SpaceScope.TypeEnum;
|
|
242
|
+
/**
|
|
243
|
+
* The unique identifier of the space
|
|
244
|
+
*/
|
|
245
|
+
spaceId: string;
|
|
246
|
+
}
|
|
247
|
+
declare namespace SpaceScope {
|
|
248
|
+
type TypeEnum = 'space';
|
|
249
|
+
const TypeEnum: {
|
|
250
|
+
Space: TypeEnum;
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region generated/openapi/model/workflow-template-scope.d.ts
|
|
255
|
+
/**
|
|
256
|
+
* Workflow Approval System API
|
|
257
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
258
|
+
*
|
|
259
|
+
* The version of the OpenAPI document: 0.0.41
|
|
260
|
+
*
|
|
261
|
+
*
|
|
262
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
263
|
+
* https://openapi-generator.tech
|
|
264
|
+
* Do not edit the class manually.
|
|
265
|
+
*/
|
|
266
|
+
/**
|
|
267
|
+
* Workflow template-specific scope - applies to a specific workflow template
|
|
268
|
+
*/
|
|
269
|
+
interface WorkflowTemplateScope {
|
|
270
|
+
/**
|
|
271
|
+
* Scope type (workflow_template)
|
|
272
|
+
*/
|
|
273
|
+
type: WorkflowTemplateScope.TypeEnum;
|
|
274
|
+
/**
|
|
275
|
+
* The unique identifier of the workflow template
|
|
276
|
+
*/
|
|
277
|
+
workflowTemplateId: string;
|
|
278
|
+
}
|
|
279
|
+
declare namespace WorkflowTemplateScope {
|
|
280
|
+
type TypeEnum = 'workflow_template';
|
|
281
|
+
const TypeEnum: {
|
|
282
|
+
WorkflowTemplate: TypeEnum;
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region generated/openapi/model/role-scope.d.ts
|
|
287
|
+
/**
|
|
288
|
+
* Defines the scope where a role applies. Can be organization-wide, space-specific, group-specific, or workflow template-specific.
|
|
289
|
+
*/
|
|
290
|
+
/**
|
|
291
|
+
* @type RoleScope
|
|
292
|
+
* Defines the scope where a role applies. Can be organization-wide, space-specific, group-specific, or workflow template-specific.
|
|
293
|
+
* @export
|
|
294
|
+
*/
|
|
295
|
+
type RoleScope = GroupScope | OrgScope | SpaceScope | WorkflowTemplateScope;
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region generated/openapi/model/role-operation-item.d.ts
|
|
298
|
+
/**
|
|
299
|
+
* A role operation item that references a system-defined role by name and provides the scope where it should apply (for assignment or removal).
|
|
300
|
+
*/
|
|
301
|
+
interface RoleOperationItem {
|
|
302
|
+
/**
|
|
303
|
+
* Name of the system-defined role template (e.g., \"GroupReadOnly\", \"SpaceManager\"). Must match a role available from the /roles endpoint.
|
|
304
|
+
*/
|
|
305
|
+
roleName: string;
|
|
306
|
+
scope: RoleScope;
|
|
307
|
+
}
|
|
308
|
+
//#endregion
|
|
162
309
|
//#region generated/openapi/model/group.d.ts
|
|
163
310
|
/**
|
|
164
311
|
* Workflow Approval System API
|
|
165
312
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
166
313
|
*
|
|
167
|
-
* The version of the OpenAPI document: 0.0.
|
|
314
|
+
* The version of the OpenAPI document: 0.0.41
|
|
168
315
|
*
|
|
169
316
|
*
|
|
170
317
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -203,7 +350,7 @@ interface Group {
|
|
|
203
350
|
* Workflow Approval System API
|
|
204
351
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
205
352
|
*
|
|
206
|
-
* The version of the OpenAPI document: 0.0.
|
|
353
|
+
* The version of the OpenAPI document: 0.0.41
|
|
207
354
|
*
|
|
208
355
|
*
|
|
209
356
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -236,7 +383,7 @@ interface ListGroups200Response {
|
|
|
236
383
|
* Workflow Approval System API
|
|
237
384
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
238
385
|
*
|
|
239
|
-
* The version of the OpenAPI document: 0.0.
|
|
386
|
+
* The version of the OpenAPI document: 0.0.41
|
|
240
387
|
*
|
|
241
388
|
*
|
|
242
389
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -263,7 +410,7 @@ interface UserSummary {
|
|
|
263
410
|
* Workflow Approval System API
|
|
264
411
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
265
412
|
*
|
|
266
|
-
* The version of the OpenAPI document: 0.0.
|
|
413
|
+
* The version of the OpenAPI document: 0.0.41
|
|
267
414
|
*
|
|
268
415
|
*
|
|
269
416
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -285,7 +432,7 @@ declare const WorkflowTemplateStatus: {
|
|
|
285
432
|
* Workflow Approval System API
|
|
286
433
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
287
434
|
*
|
|
288
|
-
* The version of the OpenAPI document: 0.0.
|
|
435
|
+
* The version of the OpenAPI document: 0.0.41
|
|
289
436
|
*
|
|
290
437
|
*
|
|
291
438
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -451,7 +598,7 @@ interface ListWorkflows200Response {
|
|
|
451
598
|
* Workflow Approval System API
|
|
452
599
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
453
600
|
*
|
|
454
|
-
* The version of the OpenAPI document: 0.0.
|
|
601
|
+
* The version of the OpenAPI document: 0.0.41
|
|
455
602
|
*
|
|
456
603
|
*
|
|
457
604
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -470,17 +617,6 @@ interface TokenResponse {
|
|
|
470
617
|
}
|
|
471
618
|
//#endregion
|
|
472
619
|
//#region generated/openapi/model/user.d.ts
|
|
473
|
-
/**
|
|
474
|
-
* Workflow Approval System API
|
|
475
|
-
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
476
|
-
*
|
|
477
|
-
* The version of the OpenAPI document: 0.0.40
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
481
|
-
* https://openapi-generator.tech
|
|
482
|
-
* Do not edit the class manually.
|
|
483
|
-
*/
|
|
484
620
|
interface User {
|
|
485
621
|
/**
|
|
486
622
|
* Internal unique identifier for the user.
|
|
@@ -498,10 +634,13 @@ interface User {
|
|
|
498
634
|
* Role assigned to the user within the organization.
|
|
499
635
|
*/
|
|
500
636
|
orgRole: string;
|
|
637
|
+
groups: Array<GroupInfo>;
|
|
638
|
+
roles: Array<RoleOperationItem>;
|
|
501
639
|
/**
|
|
502
640
|
* Timestamp when the user was created.
|
|
503
641
|
*/
|
|
504
642
|
readonly createdAt: string;
|
|
643
|
+
concurrencyControl: ConcurrencyControl;
|
|
505
644
|
}
|
|
506
645
|
//#endregion
|
|
507
646
|
//#region generated/openapi/model/workflow-create.d.ts
|
|
@@ -509,7 +648,7 @@ interface User {
|
|
|
509
648
|
* Workflow Approval System API
|
|
510
649
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
511
650
|
*
|
|
512
|
-
* The version of the OpenAPI document: 0.0.
|
|
651
|
+
* The version of the OpenAPI document: 0.0.41
|
|
513
652
|
*
|
|
514
653
|
*
|
|
515
654
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -535,4 +674,4 @@ interface WorkflowCreate {
|
|
|
535
674
|
workflowTemplateId: string;
|
|
536
675
|
}
|
|
537
676
|
//#endregion
|
|
538
|
-
export { ConcurrencyControl as _, Workflow as a,
|
|
677
|
+
export { ConcurrencyControl as C, OrRule as D, GroupRequirementRule as E, EmailAction as S, ApprovalRule as T, WorkflowTemplateScope as _, Workflow as a, OrgScope as b, WorkflowAction as c, UserSummary as d, ListGroups200Response as f, RoleScope as g, RoleOperationItem as h, ListWorkflows200Response as i, WebhookAction as l, Group as m, User as n, WorkflowRef as o, Pagination as p, TokenResponse as r, WorkflowTemplate as s, WorkflowCreate as t, WorkflowTemplateStatus as u, SpaceScope as v, AndRule as w, GroupInfo as x, GroupScope as y };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@approvio/api",
|
|
3
3
|
"author": "Giovanni Baratta",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.47",
|
|
6
6
|
"private": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/src/index.cjs",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
],
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "https://github.com/giovannibaratta/approvio-api"
|
|
28
|
+
"url": "git+https://github.com/giovannibaratta/approvio-api.git"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": "22"
|
|
31
|
+
"node": ">=22"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"clean": "rm -rf dist generated/openapi/model generated/openapi/.openapi-generator generated/openapi.yaml",
|
|
@@ -52,22 +52,23 @@
|
|
|
52
52
|
"@stoplight/spectral-cli": "6.15.0",
|
|
53
53
|
"@types/jest": "30.0.0",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "8.58.2",
|
|
55
|
-
"@typescript-eslint/parser": "8.
|
|
55
|
+
"@typescript-eslint/parser": "8.59.3",
|
|
56
56
|
"eslint": "10.2.1",
|
|
57
57
|
"eslint-config-prettier": "10.1.8",
|
|
58
58
|
"eslint-plugin-jest": "29.15.2",
|
|
59
59
|
"eslint-plugin-n": "17.24.0",
|
|
60
60
|
"eslint-plugin-prettier": "5.5.5",
|
|
61
|
+
"fp-ts": "2.16.11",
|
|
61
62
|
"jest": "30.2.0",
|
|
62
63
|
"prettier": "3.8.1",
|
|
64
|
+
"semver": "^7.8.0",
|
|
63
65
|
"ts-jest": "29.4.6",
|
|
66
|
+
"tsdown": "0.21.4",
|
|
64
67
|
"typescript": "5.7.3",
|
|
65
|
-
"typescript-eslint": "8.
|
|
66
|
-
"fp-ts": "2.16.11",
|
|
67
|
-
"tsdown": "0.21.4"
|
|
68
|
+
"typescript-eslint": "8.59.1"
|
|
68
69
|
},
|
|
69
70
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
|
|
70
71
|
"peerDependencies": {
|
|
71
72
|
"fp-ts": "^2.0.0"
|
|
72
73
|
}
|
|
73
|
-
}
|
|
74
|
+
}
|