@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.
- package/lib/contracts/declarative-control-http.d.ts +78 -0
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control.d.ts +12 -0
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +23 -2
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/declarative-publication-job.d.ts +24 -0
- package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
- package/lib/esm/contracts/index.mjs +15 -0
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +15 -0
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +15 -0
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +15 -0
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/page-runtime-bundle.schema.json +18 -0
- package/lib/json-schema/page.schema.json +18 -0
- package/lib/schemas/index.d.ts +3 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/esm/index.mjs
CHANGED
|
@@ -11452,6 +11452,9 @@ var QueryBindingSchema = z16.object({
|
|
|
11452
11452
|
draftRetention: z16.object({
|
|
11453
11453
|
identityParameters: z16.array(ContractIdentifierSchema).min(1).max(32)
|
|
11454
11454
|
}).strict().optional(),
|
|
11455
|
+
queryRetention: z16.object({
|
|
11456
|
+
identityParameters: z16.array(ContractIdentifierSchema).max(32)
|
|
11457
|
+
}).strict().optional(),
|
|
11455
11458
|
resultStateBindings: z16.array(QueryResultStateBindingSchema).max(32).optional(),
|
|
11456
11459
|
execution: z16.enum(["server", "local-state"]).default("server"),
|
|
11457
11460
|
pagination: z16.enum(["none", "cursor", "offset"]),
|
|
@@ -11475,6 +11478,18 @@ var QueryBindingSchema = z16.object({
|
|
|
11475
11478
|
});
|
|
11476
11479
|
}
|
|
11477
11480
|
}
|
|
11481
|
+
if (value.queryRetention) {
|
|
11482
|
+
const names = value.queryRetention.identityParameters;
|
|
11483
|
+
if (value.execution !== "server" || new Set(names).size !== names.length || names.some(
|
|
11484
|
+
(name) => !Object.prototype.hasOwnProperty.call(value.parameters, name)
|
|
11485
|
+
)) {
|
|
11486
|
+
context.addIssue({
|
|
11487
|
+
code: "custom",
|
|
11488
|
+
path: ["queryRetention"],
|
|
11489
|
+
message: "Query retention requires distinct declared Server query identity parameters."
|
|
11490
|
+
});
|
|
11491
|
+
}
|
|
11492
|
+
}
|
|
11478
11493
|
if (value.targetProjection) {
|
|
11479
11494
|
if (value.targetProjection.schemaRevisionRef.kind !== "schema")
|
|
11480
11495
|
context.addIssue({
|