openxiangda-contracts 2.69.1 → 2.71.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 (63) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/native-compiler/compiler.d.ts.map +1 -1
  6. package/dist/native-compiler/compiler.js +17 -5
  7. package/dist/native-compiler/compiler.js.map +1 -1
  8. package/dist/native-compiler/data-capacity.d.ts +12 -1
  9. package/dist/native-compiler/data-capacity.d.ts.map +1 -1
  10. package/dist/native-compiler/data-capacity.js +16 -1
  11. package/dist/native-compiler/data-capacity.js.map +1 -1
  12. package/dist/native-compiler/data-field.d.ts.map +1 -1
  13. package/dist/native-compiler/data-field.js +6 -2
  14. package/dist/native-compiler/data-field.js.map +1 -1
  15. package/dist/native-compiler/index.cjs +4 -4
  16. package/dist/native-compiler/index.d.ts +1 -0
  17. package/dist/native-compiler/index.d.ts.map +1 -1
  18. package/dist/native-compiler/index.js +4 -4
  19. package/dist/native-compiler/workflow-business-step.d.ts +4 -0
  20. package/dist/native-compiler/workflow-business-step.d.ts.map +1 -1
  21. package/dist/native-compiler/workflow-business-step.js +11 -6
  22. package/dist/native-compiler/workflow-business-step.js.map +1 -1
  23. package/dist/native-compiler/workflow-correction.d.ts +3 -0
  24. package/dist/native-compiler/workflow-correction.d.ts.map +1 -1
  25. package/dist/native-compiler/workflow-correction.js +4 -1
  26. package/dist/native-compiler/workflow-correction.js.map +1 -1
  27. package/dist/native-compiler/workflow-graph.d.ts +2 -0
  28. package/dist/native-compiler/workflow-graph.d.ts.map +1 -1
  29. package/dist/native-compiler/workflow-graph.js +23 -1
  30. package/dist/native-compiler/workflow-graph.js.map +1 -1
  31. package/dist/native-compiler/workflow-node-administration.d.ts +1 -0
  32. package/dist/native-compiler/workflow-node-administration.d.ts.map +1 -1
  33. package/dist/native-compiler/workflow-node-administration.js +2 -0
  34. package/dist/native-compiler/workflow-node-administration.js.map +1 -1
  35. package/dist/native-compiler/workflow-owned-subject.js +2 -2
  36. package/dist/native-compiler/workflow-owned-subject.js.map +1 -1
  37. package/dist/native-compiler/workflow-role-union.d.ts +17 -0
  38. package/dist/native-compiler/workflow-role-union.d.ts.map +1 -1
  39. package/dist/native-compiler/workflow-role-union.js +16 -0
  40. package/dist/native-compiler/workflow-role-union.js.map +1 -1
  41. package/dist/native-compiler/workflow-step-data.d.ts +28 -0
  42. package/dist/native-compiler/workflow-step-data.d.ts.map +1 -0
  43. package/dist/native-compiler/workflow-step-data.js +34 -0
  44. package/dist/native-compiler/workflow-step-data.js.map +1 -0
  45. package/dist/native-compiler/workflow-task-page.d.ts +2 -2
  46. package/dist/native-compiler/workflow-task-page.d.ts.map +1 -1
  47. package/dist/native-compiler/workflow-task-page.js +2 -2
  48. package/dist/native-compiler/workflow-task-page.js.map +1 -1
  49. package/dist/native-version.d.ts +3 -0
  50. package/dist/native-version.d.ts.map +1 -1
  51. package/dist/native-version.js +3 -0
  52. package/dist/native-version.js.map +1 -1
  53. package/dist/schemas.d.ts +194 -4
  54. package/dist/schemas.d.ts.map +1 -1
  55. package/dist/schemas.js +14 -5
  56. package/dist/schemas.js.map +1 -1
  57. package/dist/types.d.ts +4 -0
  58. package/dist/types.d.ts.map +1 -1
  59. package/dist/types.js.map +1 -1
  60. package/dist/validation.d.ts.map +1 -1
  61. package/dist/validation.js +7 -3
  62. package/dist/validation.js.map +1 -1
  63. package/package.json +1 -1
package/dist/schemas.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { NATIVE_CONTRACT_CAPACITY_V2 } from './native-compiler/declaration-capacity.js';
2
- import { DATA_SUBTABLE_MAX_ROWS, DATA_TRANSACTION_MAX_OPERATIONS, DATA_TRANSACTION_MAX_BYTES } from './native-compiler/data-capacity.js';
2
+ import { DATA_SUBTABLE_MAX_ROWS, DATA_SUBTABLE_MAX_TOTAL_ROWS, DATA_TRANSACTION_MAX_OPERATIONS, DATA_TRANSACTION_MAX_BYTES } from './native-compiler/data-capacity.js';
3
3
  import { nativeUniqueKeysJsonSchema } from './native-compiler/unique-keys.js';
4
4
  import { workflowAssignmentRoutingPolicySchema } from './native-compiler/workflow-assignment-routing.js';
5
5
  import { workflowBusinessCommandInvocationSchema } from './native-compiler/workflow-business-command.js';
@@ -2595,6 +2595,7 @@ export const dataResourceSchema = {
2595
2595
  additionalProperties: false,
2596
2596
  required: ["fields"],
2597
2597
  properties: {
2598
+ ownedRowLimit: { type: 'integer', minimum: 1, maximum: DATA_SUBTABLE_MAX_TOTAL_ROWS },
2598
2599
  fields: {
2599
2600
  type: "array",
2600
2601
  minItems: 1,
@@ -4075,7 +4076,7 @@ export const configurationValidationResultSchema = {
4075
4076
  requiredPlatformCapabilities: {
4076
4077
  type: "array",
4077
4078
  minItems: 1,
4078
- maxItems: 64,
4079
+ maxItems: Object.keys(PLATFORM_CAPABILITY_CONTRACT_VERSIONS).length,
4079
4080
  uniqueItems: true,
4080
4081
  items: requiredPlatformCapabilityContractSchema,
4081
4082
  },
@@ -4179,7 +4180,7 @@ export const appPackageSchema = {
4179
4180
  requiredPlatformCapabilities: {
4180
4181
  type: "array",
4181
4182
  minItems: 1,
4182
- maxItems: 64,
4183
+ maxItems: Object.keys(PLATFORM_CAPABILITY_CONTRACT_VERSIONS).length,
4183
4184
  uniqueItems: true,
4184
4185
  items: requiredPlatformCapabilityContractSchema,
4185
4186
  },
@@ -5057,9 +5058,10 @@ export const workflowBusinessStepResultSchema = {
5057
5058
  export const workflowBusinessStepHandlerSchema = {
5058
5059
  type: 'object', additionalProperties: false, required: ['version', 'mode', 'inputSchema', 'outputSchema'],
5059
5060
  properties: {
5060
- version: { type: 'integer', minimum: 1, maximum: 1_000_000 }, mode: { enum: ['pure', 'reconciled-effect'] },
5061
+ version: { type: 'integer', minimum: 1, maximum: 1_000_000 }, mode: { enum: ['pure', 'reconciled-effect'] }, dataTransaction: { const: true },
5061
5062
  inputSchema: { type: 'object' }, outputSchema: { type: 'object' },
5062
5063
  },
5064
+ allOf: [{ if: { required: ['dataTransaction'] }, then: { properties: { mode: { const: 'reconciled-effect' } } } }],
5063
5065
  };
5064
5066
  export const eventReceiptCommandSchema = {
5065
5067
  $id: SCHEMA_VERSIONS.eventReceiptCommand,
@@ -5357,7 +5359,8 @@ export const workflowBusinessStepNodeSchema = {
5357
5359
  id: nonEmptyString, kind: { const: 'action' }, title: nonEmptyString, next: nonEmptyString,
5358
5360
  handler: {
5359
5361
  type: 'object', additionalProperties: false, required: ['code', 'version', 'mode'],
5360
- properties: { code: { type: 'string', pattern: '^[a-z][a-z0-9-]{0,100}$' }, version: { type: 'integer', minimum: 1, maximum: 1_000_000 }, mode: { enum: ['pure', 'reconciled-effect'] } },
5362
+ properties: { code: { type: 'string', pattern: '^[a-z][a-z0-9-]{0,100}$' }, version: { type: 'integer', minimum: 1, maximum: 1_000_000 }, mode: { enum: ['pure', 'reconciled-effect'] }, dataTransaction: { const: true } },
5363
+ allOf: [{ if: { required: ['dataTransaction'] }, then: { properties: { mode: { const: 'reconciled-effect' } } } }],
5361
5364
  },
5362
5365
  inputSchema: { type: 'object' }, outputSchema: { type: 'object' },
5363
5366
  inputs: { type: 'object', maxProperties: 32, additionalProperties: {
@@ -5688,6 +5691,11 @@ export const workflowBindingSchema = {
5688
5691
  properties: { provider: { const: 'form_field_users' } },
5689
5692
  not: { anyOf: [{ required: ['roleCode'] }, { required: ['scope'] }, { required: ['routing'] }] },
5690
5693
  },
5694
+ }, {
5695
+ if: { required: ['selectedInputPath'] },
5696
+ then: { properties: { provider: { enum: ['app_role', 'app_role_in_scope'] } },
5697
+ anyOf: [{ required: ['roleCode'] }, { required: ['roleCodes'] }],
5698
+ not: { anyOf: [{ required: ['candidateField'] }, { required: ['inputPath'] }, { required: ['routing'] }] } },
5691
5699
  }],
5692
5700
  properties: {
5693
5701
  provider: {
@@ -5707,6 +5715,7 @@ export const workflowBindingSchema = {
5707
5715
  },
5708
5716
  users: { type: "array", uniqueItems: true, items: nonEmptyString },
5709
5717
  inputPath: { type: "string" },
5718
+ selectedInputPath: { type: "string", maxLength: 255, pattern: "^[A-Za-z][A-Za-z0-9_-]*(?:\\.[A-Za-z][A-Za-z0-9_-]*)*$" },
5710
5719
  candidateField: dataFieldCode,
5711
5720
  departmentIdFrom: { type: "string" },
5712
5721
  level: { type: "integer", minimum: 1, maximum: 20 },