openxiangda-contracts 2.20.0 → 2.22.0

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 (45) hide show
  1. package/dist/ai.d.ts +3 -2
  2. package/dist/ai.d.ts.map +1 -1
  3. package/dist/ai.js +1 -1
  4. package/dist/ai.js.map +1 -1
  5. package/dist/browser.d.ts +1 -0
  6. package/dist/browser.d.ts.map +1 -1
  7. package/dist/browser.js +1 -0
  8. package/dist/browser.js.map +1 -1
  9. package/dist/field-value-schemas.d.ts +7 -1
  10. package/dist/field-value-schemas.d.ts.map +1 -1
  11. package/dist/field-value-schemas.js +18 -0
  12. package/dist/field-value-schemas.js.map +1 -1
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/native-compiler/compiler.d.ts.map +1 -1
  18. package/dist/native-compiler/compiler.js +85 -3
  19. package/dist/native-compiler/compiler.js.map +1 -1
  20. package/dist/native-compiler/data-surface.d.ts +1 -1
  21. package/dist/native-compiler/data-surface.d.ts.map +1 -1
  22. package/dist/native-compiler/data-surface.js +2 -0
  23. package/dist/native-compiler/data-surface.js.map +1 -1
  24. package/dist/native-compiler/index.cjs +3 -3
  25. package/dist/native-compiler/index.js +3 -3
  26. package/dist/native-version.d.ts +1 -0
  27. package/dist/native-version.d.ts.map +1 -1
  28. package/dist/native-version.js +1 -0
  29. package/dist/native-version.js.map +1 -1
  30. package/dist/native.d.ts +15 -0
  31. package/dist/native.d.ts.map +1 -1
  32. package/dist/native.js.map +1 -1
  33. package/dist/process-resolution.d.ts +10 -0
  34. package/dist/process-resolution.d.ts.map +1 -0
  35. package/dist/process-resolution.js +47 -0
  36. package/dist/process-resolution.js.map +1 -0
  37. package/dist/schemas.d.ts +468 -0
  38. package/dist/schemas.d.ts.map +1 -1
  39. package/dist/schemas.js +85 -0
  40. package/dist/schemas.js.map +1 -1
  41. package/dist/types.d.ts +49 -0
  42. package/dist/types.d.ts.map +1 -1
  43. package/dist/types.js +2 -0
  44. package/dist/types.js.map +1 -1
  45. package/package.json +1 -1
package/dist/schemas.d.ts CHANGED
@@ -1544,6 +1544,65 @@ export declare const currentInitiatorDirectorySnapshotSchema: {
1544
1544
  };
1545
1545
  };
1546
1546
  };
1547
+ export declare const assignmentCandidatePageSchema: {
1548
+ readonly $id: "openxiangda.assignment-candidate-page/v1";
1549
+ readonly type: "object";
1550
+ readonly additionalProperties: false;
1551
+ readonly required: readonly ["schemaVersion", "appCode", "environmentKey", "roleCode", "observedAt", "headRevision", "items", "nextCursor"];
1552
+ readonly properties: {
1553
+ readonly schemaVersion: {
1554
+ readonly const: "openxiangda.assignment-candidate-page/v1";
1555
+ };
1556
+ readonly appCode: {
1557
+ readonly type: "string";
1558
+ readonly minLength: 1;
1559
+ };
1560
+ readonly environmentKey: {
1561
+ readonly type: "string";
1562
+ readonly minLength: 1;
1563
+ };
1564
+ readonly roleCode: {
1565
+ readonly type: "string";
1566
+ readonly minLength: 1;
1567
+ };
1568
+ readonly observedAt: {
1569
+ readonly type: "string";
1570
+ readonly format: "date-time";
1571
+ };
1572
+ readonly headRevision: {
1573
+ readonly type: "integer";
1574
+ readonly minimum: 1;
1575
+ };
1576
+ readonly items: {
1577
+ readonly type: "array";
1578
+ readonly maxItems: 50;
1579
+ readonly items: {
1580
+ readonly type: "object";
1581
+ readonly additionalProperties: false;
1582
+ readonly required: readonly ["value", "label"];
1583
+ readonly properties: {
1584
+ readonly value: {
1585
+ readonly type: "string";
1586
+ readonly minLength: 1;
1587
+ };
1588
+ readonly label: {
1589
+ readonly type: "string";
1590
+ readonly minLength: 1;
1591
+ };
1592
+ };
1593
+ };
1594
+ };
1595
+ readonly nextCursor: {
1596
+ readonly anyOf: readonly [{
1597
+ readonly type: "string";
1598
+ readonly minLength: 1;
1599
+ readonly maxLength: 2048;
1600
+ }, {
1601
+ readonly type: "null";
1602
+ }];
1603
+ };
1604
+ };
1605
+ };
1547
1606
  export declare const roleSubjectPageSchema: {
1548
1607
  readonly $id: "openxiangda.role-subject-page/v2";
1549
1608
  readonly type: "object";
@@ -11067,6 +11126,41 @@ export declare const businessProcessCommitSchema: {
11067
11126
  };
11068
11127
  }];
11069
11128
  };
11129
+ readonly decimalReservation: {
11130
+ readonly type: "object";
11131
+ readonly additionalProperties: false;
11132
+ readonly required: readonly ["parentId", "expectedParentRevision", "childOperationKey", "reservationKey", "amount", "currencyCode"];
11133
+ readonly properties: {
11134
+ readonly parentId: {
11135
+ readonly type: "string";
11136
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
11137
+ };
11138
+ readonly expectedParentRevision: {
11139
+ readonly type: "integer";
11140
+ readonly minimum: 1;
11141
+ };
11142
+ readonly childOperationKey: {
11143
+ readonly type: "string";
11144
+ readonly minLength: 1;
11145
+ readonly maxLength: 128;
11146
+ };
11147
+ readonly reservationKey: {
11148
+ readonly type: "string";
11149
+ readonly minLength: 1;
11150
+ readonly maxLength: 128;
11151
+ };
11152
+ readonly amount: {
11153
+ readonly type: "string";
11154
+ readonly minLength: 1;
11155
+ readonly maxLength: 19;
11156
+ readonly pattern: "^(?!0(?:\\.0{1,2})?$)(?:0|[1-9][0-9]{0,15})(?:\\.[0-9]{1,2})?$";
11157
+ };
11158
+ readonly currencyCode: {
11159
+ readonly type: "string";
11160
+ readonly pattern: "^[A-Z]{3}$";
11161
+ };
11162
+ };
11163
+ };
11070
11164
  readonly workflow: {
11071
11165
  readonly type: "object";
11072
11166
  readonly additionalProperties: false;
@@ -11539,6 +11633,70 @@ export declare const businessProcessReceiptSchema: {
11539
11633
  };
11540
11634
  };
11541
11635
  };
11636
+ export declare const businessProcessResolutionSchema: {
11637
+ readonly $id: "openxiangda.business-process-resolution/v1";
11638
+ readonly type: "object";
11639
+ readonly additionalProperties: false;
11640
+ readonly required: readonly ["schemaVersion", "appCode", "environmentKey", "operationCode", "workflowCode", "idempotencyKey", "observedAt", "outcome", "receipt"];
11641
+ readonly properties: {
11642
+ readonly schemaVersion: {
11643
+ readonly const: "openxiangda.business-process-resolution/v1";
11644
+ };
11645
+ readonly appCode: {
11646
+ readonly type: "string";
11647
+ readonly minLength: 1;
11648
+ };
11649
+ readonly environmentKey: {
11650
+ readonly enum: readonly ["preproduction", "production"];
11651
+ };
11652
+ readonly operationCode: {
11653
+ readonly type: "string";
11654
+ readonly minLength: 1;
11655
+ };
11656
+ readonly workflowCode: {
11657
+ readonly type: "string";
11658
+ readonly minLength: 1;
11659
+ };
11660
+ readonly idempotencyKey: {
11661
+ readonly type: "string";
11662
+ readonly minLength: 1;
11663
+ readonly maxLength: 128;
11664
+ };
11665
+ readonly observedAt: {
11666
+ readonly type: "string";
11667
+ readonly format: "date-time";
11668
+ };
11669
+ readonly outcome: {
11670
+ readonly enum: readonly ["committed", "not_observed"];
11671
+ };
11672
+ readonly receipt: {
11673
+ readonly anyOf: readonly [{
11674
+ readonly $ref: "openxiangda.business-process-receipt/v2";
11675
+ }, {
11676
+ readonly type: "null";
11677
+ }];
11678
+ };
11679
+ };
11680
+ readonly oneOf: readonly [{
11681
+ readonly properties: {
11682
+ readonly outcome: {
11683
+ readonly const: "committed";
11684
+ };
11685
+ readonly receipt: {
11686
+ readonly type: "object";
11687
+ };
11688
+ };
11689
+ }, {
11690
+ readonly properties: {
11691
+ readonly outcome: {
11692
+ readonly const: "not_observed";
11693
+ };
11694
+ readonly receipt: {
11695
+ readonly type: "null";
11696
+ };
11697
+ };
11698
+ }];
11699
+ };
11542
11700
  export declare const businessProcessPollSchema: {
11543
11701
  readonly $id: "openxiangda.business-process-poll/v2";
11544
11702
  readonly type: "object";
@@ -15148,6 +15306,82 @@ export declare const configurationBundleSchema: {
15148
15306
  };
15149
15307
  };
15150
15308
  };
15309
+ readonly decimalReservation: {
15310
+ readonly type: "object";
15311
+ readonly additionalProperties: false;
15312
+ readonly required: readonly ["mode", "resourceCode", "amountFieldCode", "currencyFieldCode", "relationFieldCode", "parentFieldCode", "rootFieldCode", "statusFieldCode", "parentRelationValue", "childRelationValue", "eligibleParentStatuses", "eligibleChildStatuses"];
15313
+ readonly properties: {
15314
+ readonly mode: {
15315
+ readonly enum: readonly ["reserve", "commit", "release"];
15316
+ };
15317
+ readonly resourceCode: {
15318
+ readonly type: "string";
15319
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
15320
+ };
15321
+ readonly amountFieldCode: {
15322
+ readonly type: "string";
15323
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15324
+ readonly maxLength: 128;
15325
+ };
15326
+ readonly currencyFieldCode: {
15327
+ readonly type: "string";
15328
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15329
+ readonly maxLength: 128;
15330
+ };
15331
+ readonly relationFieldCode: {
15332
+ readonly type: "string";
15333
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15334
+ readonly maxLength: 128;
15335
+ };
15336
+ readonly parentFieldCode: {
15337
+ readonly type: "string";
15338
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15339
+ readonly maxLength: 128;
15340
+ };
15341
+ readonly rootFieldCode: {
15342
+ readonly type: "string";
15343
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15344
+ readonly maxLength: 128;
15345
+ };
15346
+ readonly statusFieldCode: {
15347
+ readonly type: "string";
15348
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15349
+ readonly maxLength: 128;
15350
+ };
15351
+ readonly parentRelationValue: {
15352
+ readonly type: "string";
15353
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15354
+ readonly maxLength: 128;
15355
+ };
15356
+ readonly childRelationValue: {
15357
+ readonly type: "string";
15358
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15359
+ readonly maxLength: 128;
15360
+ };
15361
+ readonly eligibleParentStatuses: {
15362
+ readonly type: "array";
15363
+ readonly minItems: 1;
15364
+ readonly maxItems: 16;
15365
+ readonly uniqueItems: true;
15366
+ readonly items: {
15367
+ readonly type: "string";
15368
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15369
+ readonly maxLength: 128;
15370
+ };
15371
+ };
15372
+ readonly eligibleChildStatuses: {
15373
+ readonly type: "array";
15374
+ readonly minItems: 1;
15375
+ readonly maxItems: 16;
15376
+ readonly uniqueItems: true;
15377
+ readonly items: {
15378
+ readonly type: "string";
15379
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
15380
+ readonly maxLength: 128;
15381
+ };
15382
+ };
15383
+ };
15384
+ };
15151
15385
  };
15152
15386
  };
15153
15387
  readonly browser: {
@@ -19857,6 +20091,65 @@ export declare const contractSchemas: {
19857
20091
  };
19858
20092
  };
19859
20093
  };
20094
+ readonly assignmentCandidatePage: {
20095
+ readonly $id: "openxiangda.assignment-candidate-page/v1";
20096
+ readonly type: "object";
20097
+ readonly additionalProperties: false;
20098
+ readonly required: readonly ["schemaVersion", "appCode", "environmentKey", "roleCode", "observedAt", "headRevision", "items", "nextCursor"];
20099
+ readonly properties: {
20100
+ readonly schemaVersion: {
20101
+ readonly const: "openxiangda.assignment-candidate-page/v1";
20102
+ };
20103
+ readonly appCode: {
20104
+ readonly type: "string";
20105
+ readonly minLength: 1;
20106
+ };
20107
+ readonly environmentKey: {
20108
+ readonly type: "string";
20109
+ readonly minLength: 1;
20110
+ };
20111
+ readonly roleCode: {
20112
+ readonly type: "string";
20113
+ readonly minLength: 1;
20114
+ };
20115
+ readonly observedAt: {
20116
+ readonly type: "string";
20117
+ readonly format: "date-time";
20118
+ };
20119
+ readonly headRevision: {
20120
+ readonly type: "integer";
20121
+ readonly minimum: 1;
20122
+ };
20123
+ readonly items: {
20124
+ readonly type: "array";
20125
+ readonly maxItems: 50;
20126
+ readonly items: {
20127
+ readonly type: "object";
20128
+ readonly additionalProperties: false;
20129
+ readonly required: readonly ["value", "label"];
20130
+ readonly properties: {
20131
+ readonly value: {
20132
+ readonly type: "string";
20133
+ readonly minLength: 1;
20134
+ };
20135
+ readonly label: {
20136
+ readonly type: "string";
20137
+ readonly minLength: 1;
20138
+ };
20139
+ };
20140
+ };
20141
+ };
20142
+ readonly nextCursor: {
20143
+ readonly anyOf: readonly [{
20144
+ readonly type: "string";
20145
+ readonly minLength: 1;
20146
+ readonly maxLength: 2048;
20147
+ }, {
20148
+ readonly type: "null";
20149
+ }];
20150
+ };
20151
+ };
20152
+ };
19860
20153
  readonly roleSubjectPage: {
19861
20154
  readonly $id: "openxiangda.role-subject-page/v2";
19862
20155
  readonly type: "object";
@@ -29226,6 +29519,41 @@ export declare const contractSchemas: {
29226
29519
  };
29227
29520
  }];
29228
29521
  };
29522
+ readonly decimalReservation: {
29523
+ readonly type: "object";
29524
+ readonly additionalProperties: false;
29525
+ readonly required: readonly ["parentId", "expectedParentRevision", "childOperationKey", "reservationKey", "amount", "currencyCode"];
29526
+ readonly properties: {
29527
+ readonly parentId: {
29528
+ readonly type: "string";
29529
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
29530
+ };
29531
+ readonly expectedParentRevision: {
29532
+ readonly type: "integer";
29533
+ readonly minimum: 1;
29534
+ };
29535
+ readonly childOperationKey: {
29536
+ readonly type: "string";
29537
+ readonly minLength: 1;
29538
+ readonly maxLength: 128;
29539
+ };
29540
+ readonly reservationKey: {
29541
+ readonly type: "string";
29542
+ readonly minLength: 1;
29543
+ readonly maxLength: 128;
29544
+ };
29545
+ readonly amount: {
29546
+ readonly type: "string";
29547
+ readonly minLength: 1;
29548
+ readonly maxLength: 19;
29549
+ readonly pattern: "^(?!0(?:\\.0{1,2})?$)(?:0|[1-9][0-9]{0,15})(?:\\.[0-9]{1,2})?$";
29550
+ };
29551
+ readonly currencyCode: {
29552
+ readonly type: "string";
29553
+ readonly pattern: "^[A-Z]{3}$";
29554
+ };
29555
+ };
29556
+ };
29229
29557
  readonly workflow: {
29230
29558
  readonly type: "object";
29231
29559
  readonly additionalProperties: false;
@@ -29672,6 +30000,70 @@ export declare const contractSchemas: {
29672
30000
  };
29673
30001
  };
29674
30002
  };
30003
+ readonly businessProcessResolution: {
30004
+ readonly $id: "openxiangda.business-process-resolution/v1";
30005
+ readonly type: "object";
30006
+ readonly additionalProperties: false;
30007
+ readonly required: readonly ["schemaVersion", "appCode", "environmentKey", "operationCode", "workflowCode", "idempotencyKey", "observedAt", "outcome", "receipt"];
30008
+ readonly properties: {
30009
+ readonly schemaVersion: {
30010
+ readonly const: "openxiangda.business-process-resolution/v1";
30011
+ };
30012
+ readonly appCode: {
30013
+ readonly type: "string";
30014
+ readonly minLength: 1;
30015
+ };
30016
+ readonly environmentKey: {
30017
+ readonly enum: readonly ["preproduction", "production"];
30018
+ };
30019
+ readonly operationCode: {
30020
+ readonly type: "string";
30021
+ readonly minLength: 1;
30022
+ };
30023
+ readonly workflowCode: {
30024
+ readonly type: "string";
30025
+ readonly minLength: 1;
30026
+ };
30027
+ readonly idempotencyKey: {
30028
+ readonly type: "string";
30029
+ readonly minLength: 1;
30030
+ readonly maxLength: 128;
30031
+ };
30032
+ readonly observedAt: {
30033
+ readonly type: "string";
30034
+ readonly format: "date-time";
30035
+ };
30036
+ readonly outcome: {
30037
+ readonly enum: readonly ["committed", "not_observed"];
30038
+ };
30039
+ readonly receipt: {
30040
+ readonly anyOf: readonly [{
30041
+ readonly $ref: "openxiangda.business-process-receipt/v2";
30042
+ }, {
30043
+ readonly type: "null";
30044
+ }];
30045
+ };
30046
+ };
30047
+ readonly oneOf: readonly [{
30048
+ readonly properties: {
30049
+ readonly outcome: {
30050
+ readonly const: "committed";
30051
+ };
30052
+ readonly receipt: {
30053
+ readonly type: "object";
30054
+ };
30055
+ };
30056
+ }, {
30057
+ readonly properties: {
30058
+ readonly outcome: {
30059
+ readonly const: "not_observed";
30060
+ };
30061
+ readonly receipt: {
30062
+ readonly type: "null";
30063
+ };
30064
+ };
30065
+ }];
30066
+ };
29675
30067
  readonly businessProcessPoll: {
29676
30068
  readonly $id: "openxiangda.business-process-poll/v2";
29677
30069
  readonly type: "object";
@@ -33259,6 +33651,82 @@ export declare const contractSchemas: {
33259
33651
  };
33260
33652
  };
33261
33653
  };
33654
+ readonly decimalReservation: {
33655
+ readonly type: "object";
33656
+ readonly additionalProperties: false;
33657
+ readonly required: readonly ["mode", "resourceCode", "amountFieldCode", "currencyFieldCode", "relationFieldCode", "parentFieldCode", "rootFieldCode", "statusFieldCode", "parentRelationValue", "childRelationValue", "eligibleParentStatuses", "eligibleChildStatuses"];
33658
+ readonly properties: {
33659
+ readonly mode: {
33660
+ readonly enum: readonly ["reserve", "commit", "release"];
33661
+ };
33662
+ readonly resourceCode: {
33663
+ readonly type: "string";
33664
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
33665
+ };
33666
+ readonly amountFieldCode: {
33667
+ readonly type: "string";
33668
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33669
+ readonly maxLength: 128;
33670
+ };
33671
+ readonly currencyFieldCode: {
33672
+ readonly type: "string";
33673
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33674
+ readonly maxLength: 128;
33675
+ };
33676
+ readonly relationFieldCode: {
33677
+ readonly type: "string";
33678
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33679
+ readonly maxLength: 128;
33680
+ };
33681
+ readonly parentFieldCode: {
33682
+ readonly type: "string";
33683
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33684
+ readonly maxLength: 128;
33685
+ };
33686
+ readonly rootFieldCode: {
33687
+ readonly type: "string";
33688
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33689
+ readonly maxLength: 128;
33690
+ };
33691
+ readonly statusFieldCode: {
33692
+ readonly type: "string";
33693
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33694
+ readonly maxLength: 128;
33695
+ };
33696
+ readonly parentRelationValue: {
33697
+ readonly type: "string";
33698
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33699
+ readonly maxLength: 128;
33700
+ };
33701
+ readonly childRelationValue: {
33702
+ readonly type: "string";
33703
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33704
+ readonly maxLength: 128;
33705
+ };
33706
+ readonly eligibleParentStatuses: {
33707
+ readonly type: "array";
33708
+ readonly minItems: 1;
33709
+ readonly maxItems: 16;
33710
+ readonly uniqueItems: true;
33711
+ readonly items: {
33712
+ readonly type: "string";
33713
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33714
+ readonly maxLength: 128;
33715
+ };
33716
+ };
33717
+ readonly eligibleChildStatuses: {
33718
+ readonly type: "array";
33719
+ readonly minItems: 1;
33720
+ readonly maxItems: 16;
33721
+ readonly uniqueItems: true;
33722
+ readonly items: {
33723
+ readonly type: "string";
33724
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33725
+ readonly maxLength: 128;
33726
+ };
33727
+ };
33728
+ };
33729
+ };
33262
33730
  };
33263
33731
  };
33264
33732
  readonly browser: {