@inf-monkeys-tech/monkeys 1.1.22 → 1.1.23

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.
@@ -12169,6 +12169,9 @@ var QueryBindingSchema = z13.object({
12169
12169
  draftRetention: z13.object({
12170
12170
  identityParameters: z13.array(ContractIdentifierSchema).min(1).max(32)
12171
12171
  }).strict().optional(),
12172
+ queryRetention: z13.object({
12173
+ identityParameters: z13.array(ContractIdentifierSchema).max(32)
12174
+ }).strict().optional(),
12172
12175
  resultStateBindings: z13.array(QueryResultStateBindingSchema).max(32).optional(),
12173
12176
  execution: z13.enum(["server", "local-state"]).default("server"),
12174
12177
  pagination: z13.enum(["none", "cursor", "offset"]),
@@ -12192,6 +12195,18 @@ var QueryBindingSchema = z13.object({
12192
12195
  });
12193
12196
  }
12194
12197
  }
12198
+ if (value.queryRetention) {
12199
+ const names = value.queryRetention.identityParameters;
12200
+ if (value.execution !== "server" || new Set(names).size !== names.length || names.some(
12201
+ (name) => !Object.prototype.hasOwnProperty.call(value.parameters, name)
12202
+ )) {
12203
+ context.addIssue({
12204
+ code: "custom",
12205
+ path: ["queryRetention"],
12206
+ message: "Query retention requires distinct declared Server query identity parameters."
12207
+ });
12208
+ }
12209
+ }
12195
12210
  if (value.targetProjection) {
12196
12211
  if (value.targetProjection.schemaRevisionRef.kind !== "schema")
12197
12212
  context.addIssue({