openxiangda-contracts 2.2.2 → 2.4.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.
package/dist/schemas.js CHANGED
@@ -3252,6 +3252,18 @@ const dataTransactionOperation = {
3252
3252
  };
3253
3253
  const dataTransactionGuard = {
3254
3254
  oneOf: [
3255
+ {
3256
+ type: "object", additionalProperties: false,
3257
+ required: ["kind", "operationIndex", "field", "operator", "offsetMilliseconds", "errorCode"],
3258
+ properties: {
3259
+ kind: { const: "operation-time" },
3260
+ operationIndex: { type: "integer", minimum: 0, maximum: 99 },
3261
+ field: dataFieldCode,
3262
+ operator: { enum: ["eq", "neq", "gt", "gte", "lt", "lte"] },
3263
+ offsetMilliseconds: { type: "integer", minimum: -31622400000, maximum: 31622400000 },
3264
+ errorCode: { type: "string", pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$" },
3265
+ },
3266
+ },
3255
3267
  {
3256
3268
  type: "object", additionalProperties: false,
3257
3269
  required: ["kind", "userId", "roleCode", "errorCode"],
@@ -5135,6 +5147,30 @@ export const workflowDefinitionSchema = {
5135
5147
  acceptedCommandDeactivationPolicy: {
5136
5148
  enum: ["finish-pinned", "cancel-on-deactivate"],
5137
5149
  },
5150
+ instanceCommands: {
5151
+ type: "object",
5152
+ additionalProperties: false,
5153
+ minProperties: 1,
5154
+ properties: {
5155
+ withdraw: {
5156
+ type: "object",
5157
+ additionalProperties: false,
5158
+ required: ["beforeFact"],
5159
+ properties: {
5160
+ beforeFact: { type: "string", pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$" },
5161
+ },
5162
+ },
5163
+ terminate: {
5164
+ type: "object",
5165
+ additionalProperties: false,
5166
+ required: ["capability"],
5167
+ properties: {
5168
+ capability: { type: "string", maxLength: 255, pattern: "^app:[a-z][a-z0-9]*(?:-[a-z0-9]+)*:[A-Za-z0-9:._-]+$" },
5169
+ beforeFact: { type: "string", pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$" },
5170
+ },
5171
+ },
5172
+ },
5173
+ },
5138
5174
  subject: {
5139
5175
  type: "object",
5140
5176
  additionalProperties: false,