@opencrvs/toolkit
Advanced tools
Comparing version 0.0.32-jr to 0.0.33
@@ -574,3 +574,3 @@ import { z } from 'zod'; | ||
id: z.ZodString; | ||
systemRole: z.ZodString; | ||
role: z.ZodString; | ||
name: z.ZodArray<z.ZodObject<{ | ||
@@ -596,3 +596,3 @@ use: z.ZodString; | ||
}[]; | ||
systemRole: string; | ||
role: string; | ||
}, { | ||
@@ -605,3 +605,3 @@ id: string; | ||
}[]; | ||
systemRole: string; | ||
role: string; | ||
}>; | ||
@@ -608,0 +608,0 @@ export type ResolvedUser = z.infer<typeof ResolvedUser>; |
@@ -90,2 +90,12 @@ import { JSONSchema } from '../commons/conditionals'; | ||
export declare function field(fieldId: string): FieldAPI; | ||
export declare function objectHasProperty(property: string, type: 'string' | 'number' | 'boolean' | 'array' | 'object', format?: string): { | ||
type: string; | ||
properties: { | ||
[x: string]: { | ||
type: "string" | "number" | "boolean" | "object" | "array"; | ||
format: string | undefined; | ||
}; | ||
}; | ||
required: string[]; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -29,2 +29,3 @@ "use strict"; | ||
not: () => not, | ||
objectHasProperty: () => objectHasProperty, | ||
or: () => or2, | ||
@@ -607,3 +608,3 @@ userHasScope: () => userHasScope | ||
id: import_zod13.z.string(), | ||
systemRole: import_zod13.z.string(), | ||
role: import_zod13.z.string(), | ||
name: import_zod13.z.array( | ||
@@ -1106,1 +1107,13 @@ import_zod13.z.object({ | ||
}; | ||
function objectHasProperty(property, type, format) { | ||
return { | ||
type: "object", | ||
properties: { | ||
[property]: { | ||
type, | ||
format | ||
} | ||
}, | ||
required: [property] | ||
}; | ||
} |
@@ -688,3 +688,3 @@ "use strict"; | ||
id: import_zod13.z.string(), | ||
systemRole: import_zod13.z.string(), | ||
role: import_zod13.z.string(), | ||
name: import_zod13.z.array( | ||
@@ -691,0 +691,0 @@ import_zod13.z.object({ |
{ | ||
"name": "@opencrvs/toolkit", | ||
"version": "0.0.32-jr", | ||
"version": "0.0.33", | ||
"description": "OpenCRVS toolkit for building country configurations", | ||
@@ -5,0 +5,0 @@ "license": "MPL-2.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3214363
79499