@inf-monkeys-tech/monkeys 1.1.22 → 1.1.24

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.
@@ -9034,6 +9034,9 @@ var QueryBindingSchema = z8.object({
9034
9034
  draftRetention: z8.object({
9035
9035
  identityParameters: z8.array(ContractIdentifierSchema).min(1).max(32)
9036
9036
  }).strict().optional(),
9037
+ queryRetention: z8.object({
9038
+ identityParameters: z8.array(ContractIdentifierSchema).max(32)
9039
+ }).strict().optional(),
9037
9040
  resultStateBindings: z8.array(QueryResultStateBindingSchema).max(32).optional(),
9038
9041
  execution: z8.enum(["server", "local-state"]).default("server"),
9039
9042
  pagination: z8.enum(["none", "cursor", "offset"]),
@@ -9057,6 +9060,18 @@ var QueryBindingSchema = z8.object({
9057
9060
  });
9058
9061
  }
9059
9062
  }
9063
+ if (value.queryRetention) {
9064
+ const names = value.queryRetention.identityParameters;
9065
+ if (value.execution !== "server" || new Set(names).size !== names.length || names.some(
9066
+ (name) => !Object.prototype.hasOwnProperty.call(value.parameters, name)
9067
+ )) {
9068
+ context.addIssue({
9069
+ code: "custom",
9070
+ path: ["queryRetention"],
9071
+ message: "Query retention requires distinct declared Server query identity parameters."
9072
+ });
9073
+ }
9074
+ }
9060
9075
  if (value.targetProjection) {
9061
9076
  if (value.targetProjection.schemaRevisionRef.kind !== "schema")
9062
9077
  context.addIssue({