openxiangda-contracts 2.21.0 → 2.23.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 (38) hide show
  1. package/dist/browser.d.ts +1 -0
  2. package/dist/browser.d.ts.map +1 -1
  3. package/dist/browser.js +1 -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 +24 -10
  11. package/dist/native-compiler/compiler.js.map +1 -1
  12. package/dist/native-compiler/decimal-reservation.d.ts +37 -0
  13. package/dist/native-compiler/decimal-reservation.d.ts.map +1 -0
  14. package/dist/native-compiler/decimal-reservation.js +71 -0
  15. package/dist/native-compiler/decimal-reservation.js.map +1 -0
  16. package/dist/native-compiler/index.cjs +4 -4
  17. package/dist/native-compiler/index.js +4 -4
  18. package/dist/native-version.d.ts +1 -1
  19. package/dist/native-version.js +1 -1
  20. package/dist/native.d.ts +10 -0
  21. package/dist/native.d.ts.map +1 -1
  22. package/dist/native.js.map +1 -1
  23. package/dist/process-resolution.d.ts +10 -0
  24. package/dist/process-resolution.d.ts.map +1 -0
  25. package/dist/process-resolution.js +47 -0
  26. package/dist/process-resolution.js.map +1 -0
  27. package/dist/schemas.d.ts +426 -0
  28. package/dist/schemas.d.ts.map +1 -1
  29. package/dist/schemas.js +66 -0
  30. package/dist/schemas.js.map +1 -1
  31. package/dist/types.d.ts +47 -1
  32. package/dist/types.d.ts.map +1 -1
  33. package/dist/types.js +2 -0
  34. package/dist/types.js.map +1 -1
  35. package/dist/validation.d.ts.map +1 -1
  36. package/dist/validation.js +13 -0
  37. package/dist/validation.js.map +1 -1
  38. 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";
@@ -6521,6 +6580,28 @@ export declare const dataTransactionRequestSchema: {
6521
6580
  readonly type: "string";
6522
6581
  readonly minLength: 1;
6523
6582
  };
6583
+ readonly decimalReservation: {
6584
+ readonly type: "object";
6585
+ readonly additionalProperties: false;
6586
+ readonly required: readonly ["reservationKey", "transitionKey", "childOperationIndex"];
6587
+ readonly properties: {
6588
+ readonly reservationKey: {
6589
+ readonly type: "string";
6590
+ readonly minLength: 1;
6591
+ readonly maxLength: 128;
6592
+ };
6593
+ readonly transitionKey: {
6594
+ readonly type: "string";
6595
+ readonly minLength: 1;
6596
+ readonly maxLength: 128;
6597
+ };
6598
+ readonly childOperationIndex: {
6599
+ readonly type: "integer";
6600
+ readonly minimum: 0;
6601
+ readonly maximum: 99;
6602
+ };
6603
+ };
6604
+ };
6524
6605
  readonly guards: {
6525
6606
  readonly type: "array";
6526
6607
  readonly maxItems: 20;
@@ -9483,6 +9564,74 @@ export declare const eventSubscriptionSchema: {
9483
9564
  readonly additionalProperties: false;
9484
9565
  readonly minProperties: 1;
9485
9566
  readonly properties: {
9567
+ readonly decimalReservation: {
9568
+ readonly type: "object";
9569
+ readonly additionalProperties: false;
9570
+ readonly required: readonly ["resourceCode", "workflowCode", "outcomes"];
9571
+ readonly properties: {
9572
+ readonly resourceCode: {
9573
+ readonly type: "string";
9574
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
9575
+ };
9576
+ readonly workflowCode: {
9577
+ readonly type: "string";
9578
+ readonly minLength: 1;
9579
+ readonly maxLength: 128;
9580
+ };
9581
+ readonly outcomes: {
9582
+ readonly type: "array";
9583
+ readonly minItems: 1;
9584
+ readonly maxItems: 3;
9585
+ readonly items: {
9586
+ readonly type: "object";
9587
+ readonly additionalProperties: false;
9588
+ readonly required: readonly ["eventType", "mode", "eligibleChildStatuses"];
9589
+ readonly properties: {
9590
+ readonly eventType: {
9591
+ readonly enum: readonly ["openxiangda.workflow.instance.completed.v2", "openxiangda.workflow.instance.rejected.v2", "openxiangda.workflow.instance.withdrawn.v2"];
9592
+ };
9593
+ readonly mode: {
9594
+ readonly enum: readonly ["commit", "release"];
9595
+ };
9596
+ readonly eligibleChildStatuses: {
9597
+ readonly type: "array";
9598
+ readonly minItems: 1;
9599
+ readonly maxItems: 16;
9600
+ readonly uniqueItems: true;
9601
+ readonly items: {
9602
+ readonly type: "string";
9603
+ readonly minLength: 1;
9604
+ readonly maxLength: 128;
9605
+ };
9606
+ };
9607
+ };
9608
+ readonly allOf: readonly [{
9609
+ readonly if: {
9610
+ readonly properties: {
9611
+ readonly eventType: {
9612
+ readonly const: "openxiangda.workflow.instance.completed.v2";
9613
+ };
9614
+ };
9615
+ };
9616
+ readonly then: {
9617
+ readonly properties: {
9618
+ readonly mode: {
9619
+ readonly const: "commit";
9620
+ };
9621
+ };
9622
+ };
9623
+ readonly else: {
9624
+ readonly properties: {
9625
+ readonly mode: {
9626
+ readonly const: "release";
9627
+ };
9628
+ };
9629
+ };
9630
+ }];
9631
+ };
9632
+ };
9633
+ };
9634
+ };
9486
9635
  readonly notification: {
9487
9636
  readonly type: "object";
9488
9637
  readonly additionalProperties: false;
@@ -11574,6 +11723,70 @@ export declare const businessProcessReceiptSchema: {
11574
11723
  };
11575
11724
  };
11576
11725
  };
11726
+ export declare const businessProcessResolutionSchema: {
11727
+ readonly $id: "openxiangda.business-process-resolution/v1";
11728
+ readonly type: "object";
11729
+ readonly additionalProperties: false;
11730
+ readonly required: readonly ["schemaVersion", "appCode", "environmentKey", "operationCode", "workflowCode", "idempotencyKey", "observedAt", "outcome", "receipt"];
11731
+ readonly properties: {
11732
+ readonly schemaVersion: {
11733
+ readonly const: "openxiangda.business-process-resolution/v1";
11734
+ };
11735
+ readonly appCode: {
11736
+ readonly type: "string";
11737
+ readonly minLength: 1;
11738
+ };
11739
+ readonly environmentKey: {
11740
+ readonly enum: readonly ["preproduction", "production"];
11741
+ };
11742
+ readonly operationCode: {
11743
+ readonly type: "string";
11744
+ readonly minLength: 1;
11745
+ };
11746
+ readonly workflowCode: {
11747
+ readonly type: "string";
11748
+ readonly minLength: 1;
11749
+ };
11750
+ readonly idempotencyKey: {
11751
+ readonly type: "string";
11752
+ readonly minLength: 1;
11753
+ readonly maxLength: 128;
11754
+ };
11755
+ readonly observedAt: {
11756
+ readonly type: "string";
11757
+ readonly format: "date-time";
11758
+ };
11759
+ readonly outcome: {
11760
+ readonly enum: readonly ["committed", "not_observed"];
11761
+ };
11762
+ readonly receipt: {
11763
+ readonly anyOf: readonly [{
11764
+ readonly $ref: "openxiangda.business-process-receipt/v2";
11765
+ }, {
11766
+ readonly type: "null";
11767
+ }];
11768
+ };
11769
+ };
11770
+ readonly oneOf: readonly [{
11771
+ readonly properties: {
11772
+ readonly outcome: {
11773
+ readonly const: "committed";
11774
+ };
11775
+ readonly receipt: {
11776
+ readonly type: "object";
11777
+ };
11778
+ };
11779
+ }, {
11780
+ readonly properties: {
11781
+ readonly outcome: {
11782
+ readonly const: "not_observed";
11783
+ };
11784
+ readonly receipt: {
11785
+ readonly type: "null";
11786
+ };
11787
+ };
11788
+ }];
11789
+ };
11577
11790
  export declare const businessProcessPollSchema: {
11578
11791
  readonly $id: "openxiangda.business-process-poll/v2";
11579
11792
  readonly type: "object";
@@ -19968,6 +20181,65 @@ export declare const contractSchemas: {
19968
20181
  };
19969
20182
  };
19970
20183
  };
20184
+ readonly assignmentCandidatePage: {
20185
+ readonly $id: "openxiangda.assignment-candidate-page/v1";
20186
+ readonly type: "object";
20187
+ readonly additionalProperties: false;
20188
+ readonly required: readonly ["schemaVersion", "appCode", "environmentKey", "roleCode", "observedAt", "headRevision", "items", "nextCursor"];
20189
+ readonly properties: {
20190
+ readonly schemaVersion: {
20191
+ readonly const: "openxiangda.assignment-candidate-page/v1";
20192
+ };
20193
+ readonly appCode: {
20194
+ readonly type: "string";
20195
+ readonly minLength: 1;
20196
+ };
20197
+ readonly environmentKey: {
20198
+ readonly type: "string";
20199
+ readonly minLength: 1;
20200
+ };
20201
+ readonly roleCode: {
20202
+ readonly type: "string";
20203
+ readonly minLength: 1;
20204
+ };
20205
+ readonly observedAt: {
20206
+ readonly type: "string";
20207
+ readonly format: "date-time";
20208
+ };
20209
+ readonly headRevision: {
20210
+ readonly type: "integer";
20211
+ readonly minimum: 1;
20212
+ };
20213
+ readonly items: {
20214
+ readonly type: "array";
20215
+ readonly maxItems: 50;
20216
+ readonly items: {
20217
+ readonly type: "object";
20218
+ readonly additionalProperties: false;
20219
+ readonly required: readonly ["value", "label"];
20220
+ readonly properties: {
20221
+ readonly value: {
20222
+ readonly type: "string";
20223
+ readonly minLength: 1;
20224
+ };
20225
+ readonly label: {
20226
+ readonly type: "string";
20227
+ readonly minLength: 1;
20228
+ };
20229
+ };
20230
+ };
20231
+ };
20232
+ readonly nextCursor: {
20233
+ readonly anyOf: readonly [{
20234
+ readonly type: "string";
20235
+ readonly minLength: 1;
20236
+ readonly maxLength: 2048;
20237
+ }, {
20238
+ readonly type: "null";
20239
+ }];
20240
+ };
20241
+ };
20242
+ };
19971
20243
  readonly roleSubjectPage: {
19972
20244
  readonly $id: "openxiangda.role-subject-page/v2";
19973
20245
  readonly type: "object";
@@ -24945,6 +25217,28 @@ export declare const contractSchemas: {
24945
25217
  readonly type: "string";
24946
25218
  readonly minLength: 1;
24947
25219
  };
25220
+ readonly decimalReservation: {
25221
+ readonly type: "object";
25222
+ readonly additionalProperties: false;
25223
+ readonly required: readonly ["reservationKey", "transitionKey", "childOperationIndex"];
25224
+ readonly properties: {
25225
+ readonly reservationKey: {
25226
+ readonly type: "string";
25227
+ readonly minLength: 1;
25228
+ readonly maxLength: 128;
25229
+ };
25230
+ readonly transitionKey: {
25231
+ readonly type: "string";
25232
+ readonly minLength: 1;
25233
+ readonly maxLength: 128;
25234
+ };
25235
+ readonly childOperationIndex: {
25236
+ readonly type: "integer";
25237
+ readonly minimum: 0;
25238
+ readonly maximum: 99;
25239
+ };
25240
+ };
25241
+ };
24948
25242
  readonly guards: {
24949
25243
  readonly type: "array";
24950
25244
  readonly maxItems: 20;
@@ -25941,6 +26235,74 @@ export declare const contractSchemas: {
25941
26235
  readonly additionalProperties: false;
25942
26236
  readonly minProperties: 1;
25943
26237
  readonly properties: {
26238
+ readonly decimalReservation: {
26239
+ readonly type: "object";
26240
+ readonly additionalProperties: false;
26241
+ readonly required: readonly ["resourceCode", "workflowCode", "outcomes"];
26242
+ readonly properties: {
26243
+ readonly resourceCode: {
26244
+ readonly type: "string";
26245
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
26246
+ };
26247
+ readonly workflowCode: {
26248
+ readonly type: "string";
26249
+ readonly minLength: 1;
26250
+ readonly maxLength: 128;
26251
+ };
26252
+ readonly outcomes: {
26253
+ readonly type: "array";
26254
+ readonly minItems: 1;
26255
+ readonly maxItems: 3;
26256
+ readonly items: {
26257
+ readonly type: "object";
26258
+ readonly additionalProperties: false;
26259
+ readonly required: readonly ["eventType", "mode", "eligibleChildStatuses"];
26260
+ readonly properties: {
26261
+ readonly eventType: {
26262
+ readonly enum: readonly ["openxiangda.workflow.instance.completed.v2", "openxiangda.workflow.instance.rejected.v2", "openxiangda.workflow.instance.withdrawn.v2"];
26263
+ };
26264
+ readonly mode: {
26265
+ readonly enum: readonly ["commit", "release"];
26266
+ };
26267
+ readonly eligibleChildStatuses: {
26268
+ readonly type: "array";
26269
+ readonly minItems: 1;
26270
+ readonly maxItems: 16;
26271
+ readonly uniqueItems: true;
26272
+ readonly items: {
26273
+ readonly type: "string";
26274
+ readonly minLength: 1;
26275
+ readonly maxLength: 128;
26276
+ };
26277
+ };
26278
+ };
26279
+ readonly allOf: readonly [{
26280
+ readonly if: {
26281
+ readonly properties: {
26282
+ readonly eventType: {
26283
+ readonly const: "openxiangda.workflow.instance.completed.v2";
26284
+ };
26285
+ };
26286
+ };
26287
+ readonly then: {
26288
+ readonly properties: {
26289
+ readonly mode: {
26290
+ readonly const: "commit";
26291
+ };
26292
+ };
26293
+ };
26294
+ readonly else: {
26295
+ readonly properties: {
26296
+ readonly mode: {
26297
+ readonly const: "release";
26298
+ };
26299
+ };
26300
+ };
26301
+ }];
26302
+ };
26303
+ };
26304
+ };
26305
+ };
25944
26306
  readonly notification: {
25945
26307
  readonly type: "object";
25946
26308
  readonly additionalProperties: false;
@@ -29818,6 +30180,70 @@ export declare const contractSchemas: {
29818
30180
  };
29819
30181
  };
29820
30182
  };
30183
+ readonly businessProcessResolution: {
30184
+ readonly $id: "openxiangda.business-process-resolution/v1";
30185
+ readonly type: "object";
30186
+ readonly additionalProperties: false;
30187
+ readonly required: readonly ["schemaVersion", "appCode", "environmentKey", "operationCode", "workflowCode", "idempotencyKey", "observedAt", "outcome", "receipt"];
30188
+ readonly properties: {
30189
+ readonly schemaVersion: {
30190
+ readonly const: "openxiangda.business-process-resolution/v1";
30191
+ };
30192
+ readonly appCode: {
30193
+ readonly type: "string";
30194
+ readonly minLength: 1;
30195
+ };
30196
+ readonly environmentKey: {
30197
+ readonly enum: readonly ["preproduction", "production"];
30198
+ };
30199
+ readonly operationCode: {
30200
+ readonly type: "string";
30201
+ readonly minLength: 1;
30202
+ };
30203
+ readonly workflowCode: {
30204
+ readonly type: "string";
30205
+ readonly minLength: 1;
30206
+ };
30207
+ readonly idempotencyKey: {
30208
+ readonly type: "string";
30209
+ readonly minLength: 1;
30210
+ readonly maxLength: 128;
30211
+ };
30212
+ readonly observedAt: {
30213
+ readonly type: "string";
30214
+ readonly format: "date-time";
30215
+ };
30216
+ readonly outcome: {
30217
+ readonly enum: readonly ["committed", "not_observed"];
30218
+ };
30219
+ readonly receipt: {
30220
+ readonly anyOf: readonly [{
30221
+ readonly $ref: "openxiangda.business-process-receipt/v2";
30222
+ }, {
30223
+ readonly type: "null";
30224
+ }];
30225
+ };
30226
+ };
30227
+ readonly oneOf: readonly [{
30228
+ readonly properties: {
30229
+ readonly outcome: {
30230
+ readonly const: "committed";
30231
+ };
30232
+ readonly receipt: {
30233
+ readonly type: "object";
30234
+ };
30235
+ };
30236
+ }, {
30237
+ readonly properties: {
30238
+ readonly outcome: {
30239
+ readonly const: "not_observed";
30240
+ };
30241
+ readonly receipt: {
30242
+ readonly type: "null";
30243
+ };
30244
+ };
30245
+ }];
30246
+ };
29821
30247
  readonly businessProcessPoll: {
29822
30248
  readonly $id: "openxiangda.business-process-poll/v2";
29823
30249
  readonly type: "object";