openxiangda-contracts 2.94.0 → 2.95.1

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/dist/browser.d.ts +2 -0
  2. package/dist/browser.d.ts.map +1 -1
  3. package/dist/browser.js +2 -0
  4. package/dist/browser.js.map +1 -1
  5. package/dist/index.d.ts +2 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +2 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/native-compiler/compiler.d.ts.map +1 -1
  10. package/dist/native-compiler/compiler.js +4 -0
  11. package/dist/native-compiler/compiler.js.map +1 -1
  12. package/dist/native-compiler/index.cjs +4 -4
  13. package/dist/native-compiler/index.d.ts +2 -0
  14. package/dist/native-compiler/index.d.ts.map +1 -1
  15. package/dist/native-compiler/index.js +4 -4
  16. package/dist/native-compiler/workflow-authoring.d.ts +5 -0
  17. package/dist/native-compiler/workflow-authoring.d.ts.map +1 -1
  18. package/dist/native-compiler/workflow-authoring.js +6 -5
  19. package/dist/native-compiler/workflow-authoring.js.map +1 -1
  20. package/dist/native-compiler/workflow-conditional-assignment-schema.d.ts +3 -3
  21. package/dist/native-compiler/workflow-conditional-assignment-schema.d.ts.map +1 -1
  22. package/dist/native-compiler/workflow-conditional-assignment-schema.js +1 -1
  23. package/dist/native-compiler/workflow-conditional-assignment-schema.js.map +1 -1
  24. package/dist/native-compiler/workflow-conditional-assignment.d.ts +5 -0
  25. package/dist/native-compiler/workflow-conditional-assignment.d.ts.map +1 -1
  26. package/dist/native-compiler/workflow-conditional-assignment.js +28 -51
  27. package/dist/native-compiler/workflow-conditional-assignment.js.map +1 -1
  28. package/dist/native-compiler/workflow-node-administration.d.ts +5 -0
  29. package/dist/native-compiler/workflow-node-administration.d.ts.map +1 -1
  30. package/dist/native-compiler/workflow-node-administration.js +35 -0
  31. package/dist/native-compiler/workflow-node-administration.js.map +1 -1
  32. package/dist/native-compiler/workflow-people-source-authoring.d.ts +22 -0
  33. package/dist/native-compiler/workflow-people-source-authoring.d.ts.map +1 -0
  34. package/dist/native-compiler/workflow-people-source-authoring.js +116 -0
  35. package/dist/native-compiler/workflow-people-source-authoring.js.map +1 -0
  36. package/dist/native-compiler/workflow-schema.d.ts +360 -2
  37. package/dist/native-compiler/workflow-schema.d.ts.map +1 -1
  38. package/dist/native-compiler/workflow-schema.js +9 -0
  39. package/dist/native-compiler/workflow-schema.js.map +1 -1
  40. package/dist/native-compiler/workflow-standard-assignment-validation.d.ts +2 -0
  41. package/dist/native-compiler/workflow-standard-assignment-validation.d.ts.map +1 -0
  42. package/dist/native-compiler/workflow-standard-assignment-validation.js +47 -0
  43. package/dist/native-compiler/workflow-standard-assignment-validation.js.map +1 -0
  44. package/dist/schemas.d.ts +360 -2
  45. package/dist/schemas.d.ts.map +1 -1
  46. package/dist/types.d.ts +4 -12
  47. package/dist/types.d.ts.map +1 -1
  48. package/dist/types.js.map +1 -1
  49. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import type { WorkflowDefinition, WorkflowStandardBindingEntry } from '../types.js';
2
+ export type WorkflowPeopleSourceParameter = {
3
+ values: unknown[];
4
+ minimum?: never;
5
+ maximum?: never;
6
+ } | {
7
+ minimum: number;
8
+ maximum: number;
9
+ values?: never;
10
+ };
11
+ /** Immutable source-owned ceiling; never accepted as a configuration patch. */
12
+ export interface WorkflowPeopleSourceTemplate {
13
+ code: string;
14
+ title: string;
15
+ entry: WorkflowStandardBindingEntry;
16
+ parameters: Record<string, WorkflowPeopleSourceParameter>;
17
+ }
18
+ export declare function validateWorkflowPeopleSourceTemplates(definition: WorkflowDefinition): string[];
19
+ /** Match fixed parts separately so invalid local parameter input stays repairable. */
20
+ export declare function workflowPeopleSourceTemplateMatches(entry: WorkflowStandardBindingEntry, template: WorkflowPeopleSourceTemplate, checkParameters?: boolean): boolean;
21
+ export declare function workflowPeopleSourceTemplateAllows(entry: WorkflowStandardBindingEntry, templates?: readonly WorkflowPeopleSourceTemplate[]): boolean;
22
+ //# sourceMappingURL=workflow-people-source-authoring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-people-source-authoring.d.ts","sourceRoot":"","sources":["../../src/native-compiler/workflow-people-source-authoring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAKpF,MAAM,MAAM,6BAA6B,GAAG;IAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAC3J,+EAA+E;AAC/E,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,4BAA4B,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC;CAC3D;AA2CD,wBAAgB,qCAAqC,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,EAAE,CA2B9F;AACD,sFAAsF;AACtF,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,4BAA4B,EAAE,QAAQ,EAAE,4BAA4B,EAAE,eAAe,UAAO,GAAG,OAAO,CAMhK;AACD,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,4BAA4B,EAAE,SAAS,GAAE,SAAS,4BAA4B,EAAO,GAAG,OAAO,CAExJ"}
@@ -0,0 +1,116 @@
1
+ import { workflowBusinessStepFactSchema } from './workflow-business-step.js';
2
+ import { validateWorkflowStandardAssignment } from './workflow-standard-assignment-validation.js';
3
+ import { validateWorkflowSupervisorChains } from './workflow-supervisor-chain.js';
4
+ const fields = {
5
+ department_supervisor: ['departmentIdFrom', 'level', 'fallbackToAncestorSupervisor', 'min', 'max'],
6
+ supervisor_chain: ['from', 'until', 'continuous', 'missing', 'min', 'max'],
7
+ form_field_users: ['inputPath', 'min', 'max'], input_users: ['inputPath', 'min', 'max'],
8
+ app_role_in_scope: ['roleCode', 'scope', 'min', 'max'],
9
+ };
10
+ const record = (value) => !!value && typeof value === 'object' && !Array.isArray(value) && [null, Object.prototype].includes(Object.getPrototypeOf(value));
11
+ function bounded(value) {
12
+ let budget = 4096;
13
+ const walk = (v, depth) => {
14
+ if (--budget < 0 || depth > 12)
15
+ return false;
16
+ if (v === null || typeof v === 'boolean')
17
+ return true;
18
+ if (typeof v === 'string')
19
+ return v.length <= 2048;
20
+ if (typeof v === 'number')
21
+ return Number.isFinite(v);
22
+ if (Array.isArray(v))
23
+ return v.length <= 200 && v.every(item => walk(item, depth + 1));
24
+ return record(v) && Object.keys(v).every(key => !['__proto__', 'prototype', 'constructor'].includes(key) && !Object.getOwnPropertyDescriptor(v, key)?.get && walk(v[key], depth + 1));
25
+ };
26
+ try {
27
+ return walk(value, 0) && new TextEncoder().encode(JSON.stringify(value)).length <= 32768;
28
+ }
29
+ catch {
30
+ return false;
31
+ }
32
+ }
33
+ const semantic = (value) => {
34
+ const sorted = (v) => Array.isArray(v) ? v.map(sorted) : record(v) ? Object.fromEntries(Object.keys(v).filter(key => v[key] !== undefined).sort().map(key => [key, sorted(v[key])])) : v;
35
+ return JSON.stringify(sorted(value));
36
+ };
37
+ const parameterAllows = (value, parameter) => Array.isArray(parameter.values) ? parameter.values.some(candidate => semantic(candidate) === semantic(value)) : Number.isSafeInteger(value) && value >= parameter.minimum && value <= parameter.maximum;
38
+ function templateErrors(template) {
39
+ if (!bounded(template) || !record(template) || Object.keys(template).some(key => !['code', 'title', 'entry', 'parameters'].includes(key)) ||
40
+ typeof template.code !== 'string' || !/^[a-z][a-z0-9-]{0,63}$/.test(template.code) || typeof template.title !== 'string' || !template.title.trim() || template.title.length > 160 ||
41
+ !record(template.entry) || !fields[template.entry.provider] || validateWorkflowStandardAssignment(template.entry).length || !record(template.parameters) || !Object.keys(template.parameters).length || Object.keys(template.parameters).length > 8)
42
+ return ['WORKFLOW_PEOPLE_SOURCE_TEMPLATE_INVALID'];
43
+ for (const [field, parameter] of Object.entries(template.parameters)) {
44
+ if (!fields[template.entry.provider].includes(field) || !record(parameter))
45
+ return ['WORKFLOW_PEOPLE_SOURCE_PARAMETER_INVALID'];
46
+ if (Object.hasOwn(parameter, 'values')) {
47
+ if (Object.keys(parameter).length !== 1 || !Array.isArray(parameter.values) || !parameter.values.length || parameter.values.length > 32 || new Set(parameter.values.map(semantic)).size !== parameter.values.length)
48
+ return ['WORKFLOW_PEOPLE_SOURCE_PARAMETER_INVALID'];
49
+ for (const value of parameter.values) {
50
+ const variant = { ...template.entry, [field]: value };
51
+ if (validateWorkflowStandardAssignment(variant).length || field === 'scope' && value?.dimension !== template.entry.scope?.dimension ||
52
+ field === 'min' && value < (template.entry.min ?? 1) || field === 'max' && value > (template.entry.max ?? 200))
53
+ return ['WORKFLOW_PEOPLE_SOURCE_PARAMETER_CEILING'];
54
+ }
55
+ }
56
+ else if (Object.keys(parameter).some(key => !['minimum', 'maximum'].includes(key)) || !['level', 'min', 'max'].includes(field) || !Number.isSafeInteger(parameter.minimum) || !Number.isSafeInteger(parameter.maximum) || parameter.minimum < 1 || parameter.maximum < parameter.minimum || parameter.maximum > (field === 'level' ? 20 : 200) ||
57
+ field === 'min' && parameter.minimum < (template.entry.min ?? 1) || field === 'max' && parameter.maximum > (template.entry.max ?? 200))
58
+ return ['WORKFLOW_PEOPLE_SOURCE_PARAMETER_CEILING'];
59
+ }
60
+ return [];
61
+ }
62
+ export function validateWorkflowPeopleSourceTemplates(definition) {
63
+ const values = definition.authoring?.peopleSources;
64
+ if (values === undefined)
65
+ return [];
66
+ if (!Array.isArray(values) || values.length > 32)
67
+ return ['WORKFLOW_PEOPLE_SOURCE_TEMPLATE_LIMIT'];
68
+ // Inspect JSON structure before reading catalogue keys: even a code getter
69
+ // must not execute while validating an untrusted source declaration.
70
+ const shapes = values.flatMap(templateErrors);
71
+ if (shapes.length)
72
+ return [...new Set(shapes)];
73
+ if (new Set(values.map(template => template.code)).size !== values.length)
74
+ return ['WORKFLOW_PEOPLE_SOURCE_TEMPLATE_LIMIT'];
75
+ const schema = workflowBusinessStepFactSchema(definition);
76
+ const fact = (path) => {
77
+ if (typeof path !== 'string' || path.split('.').some(key => !key || ['__proto__', 'prototype', 'constructor'].includes(key)))
78
+ return undefined;
79
+ let current = schema;
80
+ for (const key of path.split('.'))
81
+ current = record(current?.properties) && Object.hasOwn(current.properties, key) ? current.properties[key] : undefined;
82
+ return current;
83
+ };
84
+ const errors = [];
85
+ for (const template of values) {
86
+ const shape = templateErrors(template);
87
+ if (shape.length) {
88
+ errors.push(...shape);
89
+ continue;
90
+ }
91
+ const variants = [template.entry, ...Object.entries(template.parameters).flatMap(([key, parameter]) => parameter.values?.map(value => ({ ...template.entry, [key]: value })) || [])];
92
+ for (const entry of variants) {
93
+ for (const path of [entry.inputPath, entry.departmentIdFrom, entry.scope?.valueFrom, ...(typeof entry.from === 'object' ? [entry.from.field] : [])].filter(value => value !== undefined))
94
+ if (!fact(path))
95
+ errors.push('WORKFLOW_PEOPLE_SOURCE_FACT_UNAVAILABLE');
96
+ if (entry.provider === 'supervisor_chain') {
97
+ const probe = { ...definition, nodes: { probe: { id: 'probe', kind: 'approval', mode: entry.continuous === false ? 'single' : 'sequence', binding: 'probe' } } };
98
+ errors.push(...validateWorkflowSupervisorChains(probe, { bindings: { probe: entry } }));
99
+ }
100
+ }
101
+ }
102
+ return [...new Set(errors)];
103
+ }
104
+ /** Match fixed parts separately so invalid local parameter input stays repairable. */
105
+ export function workflowPeopleSourceTemplateMatches(entry, template, checkParameters = true) {
106
+ if (!bounded(entry) || templateErrors(template).length || entry.provider !== template.entry.provider)
107
+ return false;
108
+ const fixed = (value) => Object.fromEntries(Object.entries(value).filter(([key]) => !Object.hasOwn(template.parameters, key)));
109
+ if (semantic(fixed(entry)) !== semantic(fixed(template.entry)))
110
+ return false;
111
+ return !checkParameters || !validateWorkflowStandardAssignment(entry).length && Object.entries(template.parameters).every(([key, parameter]) => semantic(entry[key]) === semantic(template.entry[key]) || parameterAllows(entry[key], parameter));
112
+ }
113
+ export function workflowPeopleSourceTemplateAllows(entry, templates = []) {
114
+ return Array.isArray(templates) && templates.length <= 32 && templates.some(template => workflowPeopleSourceTemplateMatches(entry, template));
115
+ }
116
+ //# sourceMappingURL=workflow-people-source-authoring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-people-source-authoring.js","sourceRoot":"","sources":["../../src/native-compiler/workflow-people-source-authoring.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAUlF,MAAM,MAAM,GAAsC;IAChD,qBAAqB,EAAE,CAAC,kBAAkB,EAAE,OAAO,EAAE,8BAA8B,EAAE,KAAK,EAAE,KAAK,CAAC;IAClG,gBAAgB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC;IAC1E,gBAAgB,EAAE,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC;IACvF,iBAAiB,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC;CACvD,CAAC;AACF,MAAM,MAAM,GAAG,CAAC,KAAc,EAAgC,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAC,MAAM,CAAC,SAAS,CAAC,CAAC,QAAQ,C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C,QAAQ,CAAA,EAAE,CAAA,mCAAmC,CAAC,KAAK,EAAC,QAAQ,CAAC,CAAC,CAAC;AACvI,CAAC"}
@@ -174,6 +174,364 @@ export declare const workflowDefinitionSchema: {
174
174
  readonly type: "object";
175
175
  readonly additionalProperties: false;
176
176
  readonly properties: {
177
+ readonly peopleSources: {
178
+ readonly type: "array";
179
+ readonly maxItems: 32;
180
+ readonly items: {
181
+ readonly type: "object";
182
+ readonly additionalProperties: false;
183
+ readonly required: readonly ["code", "title", "entry", "parameters"];
184
+ readonly properties: {
185
+ readonly code: {
186
+ readonly type: "string";
187
+ readonly pattern: "^[a-z][a-z0-9-]{0,63}$";
188
+ };
189
+ readonly title: {
190
+ type: string;
191
+ minLength: number;
192
+ maxLength: number;
193
+ pattern: string;
194
+ };
195
+ readonly entry: {
196
+ readonly type: "object";
197
+ readonly additionalProperties: false;
198
+ readonly required: readonly ["provider"];
199
+ readonly allOf: readonly [{
200
+ readonly if: {
201
+ readonly required: readonly ["roleCodes"];
202
+ };
203
+ readonly then: {
204
+ readonly properties: {
205
+ readonly provider: {
206
+ readonly enum: readonly ["app_role", "app_role_in_scope"];
207
+ };
208
+ };
209
+ readonly not: {
210
+ readonly anyOf: readonly [{
211
+ readonly required: readonly ["roleCode"];
212
+ }, {
213
+ readonly required: readonly ["candidateField"];
214
+ }];
215
+ };
216
+ };
217
+ }, {
218
+ readonly if: {
219
+ readonly required: readonly ["candidateField"];
220
+ };
221
+ readonly then: {
222
+ readonly required: readonly ["inputPath"];
223
+ readonly properties: {
224
+ readonly provider: {
225
+ readonly const: "form_field_users";
226
+ };
227
+ };
228
+ readonly not: {
229
+ readonly anyOf: readonly [{
230
+ readonly required: readonly ["roleCode"];
231
+ }, {
232
+ readonly required: readonly ["scope"];
233
+ }, {
234
+ readonly required: readonly ["routing"];
235
+ }];
236
+ };
237
+ };
238
+ }, {
239
+ readonly if: {
240
+ readonly required: readonly ["selectedInputPath"];
241
+ };
242
+ readonly then: {
243
+ readonly properties: {
244
+ readonly provider: {
245
+ readonly enum: readonly ["app_role", "app_role_in_scope"];
246
+ };
247
+ };
248
+ readonly anyOf: readonly [{
249
+ readonly required: readonly ["roleCode"];
250
+ }, {
251
+ readonly required: readonly ["roleCodes"];
252
+ }];
253
+ readonly not: {
254
+ readonly anyOf: readonly [{
255
+ readonly required: readonly ["candidateField"];
256
+ }, {
257
+ readonly required: readonly ["inputPath"];
258
+ }, {
259
+ readonly required: readonly ["routing"];
260
+ }];
261
+ };
262
+ };
263
+ }];
264
+ readonly properties: {
265
+ readonly provider: {
266
+ readonly enum: readonly ["fixed_users", "initiator", "input_users", "form_field_users", "department_supervisor", "supervisor_chain", "app_role", "app_role_in_scope", "business_relation", "previous_node_actor", "initiator_select", "application_provider"];
267
+ };
268
+ readonly users: {
269
+ readonly type: "array";
270
+ readonly uniqueItems: true;
271
+ readonly items: {
272
+ readonly type: "string";
273
+ readonly minLength: 1;
274
+ };
275
+ };
276
+ readonly inputPath: {
277
+ readonly type: "string";
278
+ };
279
+ readonly selectedInputPath: {
280
+ readonly type: "string";
281
+ readonly maxLength: 255;
282
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]*(?:\\.[A-Za-z][A-Za-z0-9_-]*)*$";
283
+ };
284
+ readonly candidateField: {
285
+ readonly type: "string";
286
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
287
+ };
288
+ readonly from: {
289
+ readonly oneOf: readonly [{
290
+ readonly const: "initiator";
291
+ }, {
292
+ readonly type: "object";
293
+ readonly additionalProperties: false;
294
+ readonly required: readonly ["field"];
295
+ readonly properties: {
296
+ readonly field: {
297
+ readonly type: "string";
298
+ readonly maxLength: 255;
299
+ };
300
+ };
301
+ }];
302
+ };
303
+ readonly until: {
304
+ readonly oneOf: readonly [{
305
+ readonly const: "top";
306
+ }, {
307
+ readonly type: "object";
308
+ readonly additionalProperties: false;
309
+ readonly required: readonly ["level"];
310
+ readonly properties: {
311
+ readonly level: {
312
+ readonly type: "integer";
313
+ readonly minimum: 1;
314
+ readonly maximum: 20;
315
+ };
316
+ };
317
+ }, {
318
+ readonly type: "object";
319
+ readonly additionalProperties: false;
320
+ readonly required: readonly ["roleCode"];
321
+ readonly properties: {
322
+ readonly roleCode: {
323
+ readonly type: "string";
324
+ readonly minLength: 1;
325
+ };
326
+ };
327
+ }];
328
+ };
329
+ readonly continuous: {
330
+ readonly type: "boolean";
331
+ };
332
+ readonly missing: {
333
+ readonly enum: readonly ["skip_level", "block"];
334
+ };
335
+ readonly departmentIdFrom: {
336
+ readonly type: "string";
337
+ };
338
+ readonly level: {
339
+ readonly type: "integer";
340
+ readonly minimum: 1;
341
+ readonly maximum: 20;
342
+ };
343
+ readonly fallbackToAncestorSupervisor: {
344
+ readonly type: "boolean";
345
+ };
346
+ readonly roleCode: {
347
+ readonly type: "string";
348
+ };
349
+ readonly roleCodes: {
350
+ readonly type: "array";
351
+ readonly minItems: 2;
352
+ readonly maxItems: 8;
353
+ readonly uniqueItems: true;
354
+ readonly items: {
355
+ readonly type: "string";
356
+ readonly maxLength: 128;
357
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
358
+ };
359
+ };
360
+ readonly scope: {
361
+ readonly type: "object";
362
+ readonly additionalProperties: false;
363
+ readonly required: readonly ["dimension"];
364
+ readonly properties: {
365
+ readonly dimension: {
366
+ readonly type: "string";
367
+ readonly minLength: 1;
368
+ };
369
+ readonly valueFrom: {
370
+ readonly type: "string";
371
+ };
372
+ readonly value: {
373
+ readonly type: "string";
374
+ };
375
+ };
376
+ };
377
+ readonly relationCode: {
378
+ readonly type: "string";
379
+ };
380
+ readonly resourceCode: {
381
+ readonly type: "string";
382
+ };
383
+ readonly resourceIdFrom: {
384
+ readonly type: "string";
385
+ };
386
+ readonly providerCode: {
387
+ readonly type: "string";
388
+ };
389
+ readonly min: {
390
+ readonly type: "integer";
391
+ readonly minimum: 1;
392
+ readonly maximum: 200;
393
+ };
394
+ readonly max: {
395
+ readonly type: "integer";
396
+ readonly minimum: 1;
397
+ readonly maximum: 200;
398
+ };
399
+ readonly delegatable: {
400
+ readonly type: "boolean";
401
+ };
402
+ readonly routing: {
403
+ readonly type: "object";
404
+ readonly additionalProperties: false;
405
+ readonly required: readonly ["policyCode", "title", "strategy", "dimensions", "sources"];
406
+ readonly properties: {
407
+ readonly policyCode: {
408
+ readonly type: "string";
409
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
410
+ };
411
+ readonly title: {
412
+ readonly type: "string";
413
+ readonly minLength: 1;
414
+ readonly maxLength: 128;
415
+ };
416
+ readonly strategy: {
417
+ readonly enum: readonly ["replace_then_append", "replace_only"];
418
+ };
419
+ readonly dimensions: {
420
+ readonly type: "object";
421
+ readonly maxProperties: 8;
422
+ readonly propertyNames: {
423
+ readonly type: "string";
424
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
425
+ };
426
+ readonly additionalProperties: {
427
+ readonly type: "object";
428
+ readonly additionalProperties: false;
429
+ readonly required: readonly ["title", "valueFrom"];
430
+ readonly properties: {
431
+ readonly title: {
432
+ readonly type: "string";
433
+ readonly minLength: 1;
434
+ readonly maxLength: 128;
435
+ };
436
+ readonly valueFrom: {
437
+ readonly type: "string";
438
+ readonly minLength: 1;
439
+ readonly maxLength: 255;
440
+ };
441
+ };
442
+ };
443
+ };
444
+ readonly sources: {
445
+ readonly type: "object";
446
+ readonly minProperties: 1;
447
+ readonly maxProperties: 16;
448
+ readonly propertyNames: {
449
+ readonly type: "string";
450
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
451
+ };
452
+ readonly additionalProperties: {
453
+ readonly type: "object";
454
+ readonly additionalProperties: false;
455
+ readonly required: readonly ["title", "provider", "roleCode"];
456
+ readonly properties: {
457
+ readonly title: {
458
+ readonly type: "string";
459
+ readonly minLength: 1;
460
+ readonly maxLength: 128;
461
+ };
462
+ readonly provider: {
463
+ readonly enum: readonly ["app_role", "app_role_in_scope"];
464
+ };
465
+ readonly roleCode: {
466
+ readonly type: "string";
467
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
468
+ };
469
+ readonly scope: {
470
+ readonly type: "object";
471
+ readonly additionalProperties: false;
472
+ readonly required: readonly ["dimension"];
473
+ readonly properties: {
474
+ readonly dimension: {
475
+ readonly type: "string";
476
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
477
+ };
478
+ readonly value: {
479
+ readonly type: "string";
480
+ readonly minLength: 1;
481
+ readonly maxLength: 255;
482
+ };
483
+ readonly valueFrom: {
484
+ readonly type: "string";
485
+ readonly minLength: 1;
486
+ readonly maxLength: 255;
487
+ };
488
+ };
489
+ };
490
+ };
491
+ };
492
+ };
493
+ };
494
+ };
495
+ };
496
+ };
497
+ readonly parameters: {
498
+ readonly type: "object";
499
+ readonly minProperties: 1;
500
+ readonly maxProperties: 8;
501
+ readonly additionalProperties: {
502
+ readonly oneOf: readonly [{
503
+ readonly type: "object";
504
+ readonly additionalProperties: false;
505
+ readonly required: readonly ["values"];
506
+ readonly properties: {
507
+ readonly values: {
508
+ readonly type: "array";
509
+ readonly minItems: 1;
510
+ readonly maxItems: 32;
511
+ };
512
+ };
513
+ }, {
514
+ readonly type: "object";
515
+ readonly additionalProperties: false;
516
+ readonly required: readonly ["minimum", "maximum"];
517
+ readonly properties: {
518
+ readonly minimum: {
519
+ readonly type: "integer";
520
+ readonly minimum: 1;
521
+ readonly maximum: 200;
522
+ };
523
+ readonly maximum: {
524
+ readonly type: "integer";
525
+ readonly minimum: 1;
526
+ readonly maximum: 200;
527
+ };
528
+ };
529
+ }];
530
+ };
531
+ };
532
+ };
533
+ };
534
+ };
177
535
  readonly businessSteps: {
178
536
  readonly type: "array";
179
537
  readonly maxItems: 100;
@@ -1805,7 +2163,7 @@ export declare const workflowBindingSchema: {
1805
2163
  readonly assignee: {
1806
2164
  readonly properties: {
1807
2165
  readonly provider: {
1808
- readonly enum: readonly ["fixed_users", "app_role", "app_role_in_scope", "supervisor_chain", "form_field_users", "input_users", "initiator", "previous_node_actor", "business_relation"];
2166
+ readonly enum: readonly ["fixed_users", "app_role", "app_role_in_scope", "supervisor_chain", "department_supervisor", "form_field_users", "input_users", "initiator", "previous_node_actor", "business_relation"];
1809
2167
  };
1810
2168
  readonly users: {
1811
2169
  readonly type: "array";
@@ -2110,7 +2468,7 @@ export declare const workflowBindingSchema: {
2110
2468
  readonly otherwise: {
2111
2469
  readonly properties: {
2112
2470
  readonly provider: {
2113
- readonly enum: readonly ["fixed_users", "app_role", "app_role_in_scope", "supervisor_chain", "form_field_users", "input_users", "initiator", "previous_node_actor", "business_relation"];
2471
+ readonly enum: readonly ["fixed_users", "app_role", "app_role_in_scope", "supervisor_chain", "department_supervisor", "form_field_users", "input_users", "initiator", "previous_node_actor", "business_relation"];
2114
2472
  };
2115
2473
  readonly users: {
2116
2474
  readonly type: "array";
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-schema.d.ts","sourceRoot":"","sources":["../../src/native-compiler/workflow-schema.ts"],"names":[],"mappings":"AAMA,6FAA6F;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AA+C3E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BjC,CAAC;AA6KX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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W_DEFINITION_SCHEMA_VERSION },
264
264
  authoring: {
265
265
  type: 'object', additionalProperties: false, properties: {
266
+ peopleSources: { type: 'array', maxItems: 32, items: {
267
+ type: 'object', additionalProperties: false, required: ['code', 'title', 'entry', 'parameters'], properties: {
268
+ code: { type: 'string', pattern: '^[a-z][a-z0-9-]{0,63}$' }, title: readabilityText(160), entry: workflowStandardBindingEntrySchema,
269
+ parameters: { type: 'object', minProperties: 1, maxProperties: 8, additionalProperties: { oneOf: [
270
+ { type: 'object', additionalProperties: false, required: ['values'], properties: { values: { type: 'array', minItems: 1, maxItems: 32 } } },
271
+ { type: 'object', additionalProperties: false, required: ['minimum', 'maximum'], properties: { minimum: { type: 'integer', minimum: 1, maximum: 200 }, maximum: { type: 'integer', minimum: 1, maximum: 200 } } },
272
+ ] } },
273
+ },
274
+ } },
266
275
  businessSteps: { type: 'array', maxItems: 100, items: {
267
276
  type: 'object', additionalProperties: false, required: ['title', 'handler', 'inputSchema', 'outputSchema'],
268
277
  properties: { title: { type: 'string', minLength: 1, maxLength: 160 },