New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opencrvs/toolkit

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencrvs/toolkit - npm Package Compare versions

Comparing version 0.0.14-events to 0.0.15-riku-events

build.sh

3

dist/conditionals/conditionals.d.ts
import { JSONSchemaType } from 'ajv';
import { z } from 'zod';
import { ActionFormData, EventDocument } from '../events';
export declare function Conditional(): z.ZodType<JSONSchema>;
export declare function Conditional(): any;
export type ConditionalParameters = {

@@ -6,0 +5,0 @@ $now: string;

@@ -1,4 +0,4 @@

import { Clause } from '@opencrvs/commons/events';
export declare function and(clauses: Clause[]): Clause;
export declare function or(clauses: Clause[]): Clause;
import { ClauseInput } from '@opencrvs/commons/events';
export declare function and(clauses: ClauseInput[]): ClauseInput;
export declare function or(clauses: ClauseInput[]): ClauseInput;
export declare function field(fieldId: string): {

@@ -5,0 +5,0 @@ fuzzyMatches: (options?: {

@@ -24,3 +24,4 @@ import { z } from 'zod';

type: "CREATE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -31,7 +32,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "CREATE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -42,4 +44,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -70,3 +70,4 @@ draft?: boolean | undefined;

type: "CREATE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -77,7 +78,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "CREATE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -88,4 +90,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -115,3 +115,4 @@ draft?: boolean | undefined;

type: "VALIDATE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -122,7 +123,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "VALIDATE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -133,4 +135,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -160,3 +160,4 @@ draft?: boolean | undefined;

type: "NOTIFY";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -167,7 +168,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "NOTIFY";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -178,4 +180,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -215,3 +215,4 @@ draft?: boolean | undefined;

type: "REGISTER";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -222,4 +223,3 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;

@@ -232,2 +232,4 @@ identifiers: {

type: "REGISTER";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -238,4 +240,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -269,3 +269,4 @@ identifiers: {

type: "DECLARE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -276,7 +277,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "DECLARE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -287,4 +289,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -315,3 +315,4 @@ draft?: boolean | undefined;

type: "ASSIGN";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -322,4 +323,3 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;

@@ -329,2 +329,4 @@ assignedTo: string;

type: "ASSIGN";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -335,4 +337,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -363,3 +363,4 @@ assignedTo: string;

type: "UNASSIGN";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -370,7 +371,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "UNASSIGN";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -381,4 +383,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -408,3 +408,4 @@ draft?: boolean | undefined;

type: "CUSTOM";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -415,7 +416,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "CUSTOM";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -426,4 +428,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -451,2 +451,3 @@ draft?: boolean | undefined;

id: string;
systemRole: string;
name: {

@@ -457,5 +458,5 @@ use: string;

}[];
systemRole: string;
}, {
id: string;
systemRole: string;
name: {

@@ -466,3 +467,2 @@ use: string;

}[];
systemRole: string;
}>;

@@ -469,0 +469,0 @@ export type ResolvedUser = z.infer<typeof ResolvedUser>;

@@ -33,3 +33,3 @@ import { z } from 'zod';

type: "REGISTER";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -40,3 +40,3 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
identifiers: {

@@ -48,2 +48,3 @@ trackingId: string;

}, {
transactionId: string;
data: Record<string, string | {

@@ -54,3 +55,2 @@ type: string;

} | null>;
transactionId: string;
identifiers: {

@@ -86,3 +86,3 @@ trackingId: string;

type: "VALIDATE";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -93,6 +93,7 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
eventId: string;
duplicates: string[];
}, {
transactionId: string;
data: Record<string, string | {

@@ -103,3 +104,2 @@ type: string;

} | null>;
transactionId: string;
eventId: string;

@@ -133,3 +133,3 @@ duplicates: string[];

type: "NOTIFY";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -140,6 +140,7 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
createdAtLocation: string;
eventId: string;
}, {
transactionId: string;
data: Record<string, string | {

@@ -150,3 +151,2 @@ type: string;

} | null>;
transactionId: string;
createdAtLocation: string;

@@ -179,3 +179,3 @@ eventId: string;

type: "DECLARE";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -186,5 +186,6 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
eventId: string;
}, {
transactionId: string;
data: Record<string, string | {

@@ -195,3 +196,2 @@ type: string;

} | null>;
transactionId: string;
eventId: string;

@@ -232,3 +232,3 @@ type?: "DECLARE" | undefined;

type: "CREATE";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -239,6 +239,7 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
createdAtLocation: string;
eventId: string;
}, {
transactionId: string;
data: Record<string, string | {

@@ -249,3 +250,2 @@ type: string;

} | null>;
transactionId: string;
createdAtLocation: string;

@@ -277,3 +277,3 @@ eventId: string;

type: "VALIDATE";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -284,6 +284,7 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
eventId: string;
duplicates: string[];
}, {
transactionId: string;
data: Record<string, string | {

@@ -294,3 +295,2 @@ type: string;

} | null>;
transactionId: string;
eventId: string;

@@ -331,3 +331,3 @@ duplicates: string[];

type: "REGISTER";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -338,3 +338,3 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
identifiers: {

@@ -346,2 +346,3 @@ trackingId: string;

}, {
transactionId: string;
data: Record<string, string | {

@@ -352,3 +353,2 @@ type: string;

} | null>;
transactionId: string;
identifiers: {

@@ -383,3 +383,3 @@ trackingId: string;

type: "NOTIFY";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -390,6 +390,7 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
createdAtLocation: string;
eventId: string;
}, {
transactionId: string;
data: Record<string, string | {

@@ -400,3 +401,2 @@ type: string;

} | null>;
transactionId: string;
createdAtLocation: string;

@@ -427,3 +427,3 @@ eventId: string;

type: "DECLARE";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -434,5 +434,6 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
eventId: string;
}, {
transactionId: string;
data: Record<string, string | {

@@ -443,3 +444,2 @@ type: string;

} | null>;
transactionId: string;
eventId: string;

@@ -470,3 +470,3 @@ type?: "DECLARE" | undefined;

type: "ASSIGN";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -477,6 +477,7 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
assignedTo: string;
eventId: string;
}, {
transactionId: string;
data: Record<string, string | {

@@ -487,3 +488,2 @@ type: string;

} | null>;
transactionId: string;
assignedTo: string;

@@ -514,3 +514,3 @@ eventId: string;

type: "UNASSIGN";
draft: boolean;
transactionId: string;
data: Record<string, string | {

@@ -521,5 +521,6 @@ type: string;

} | null>;
transactionId: string;
draft: boolean;
eventId: string;
}, {
transactionId: string;
data: Record<string, string | {

@@ -530,3 +531,2 @@ type: string;

} | null>;
transactionId: string;
eventId: string;

@@ -533,0 +533,0 @@ type?: "UNASSIGN" | undefined;

@@ -115,12 +115,3 @@ import { z } from 'zod';

}>;
export type And = {
type: 'and';
clauses: any[];
};
export type Or = {
type: 'or';
clauses: any[];
};
export type Clause = And | Or | z.infer<typeof FuzzyMatcher> | z.infer<typeof StrictMatcher> | z.infer<typeof DateRangeMatcher>;
export declare const Clause: z.ZodUnion<[z.ZodType<And, z.ZodTypeDef, And>, z.ZodType<Or, z.ZodTypeDef, Or>, z.ZodObject<z.objectUtil.extendShape<{
declare const DateDistanceMatcher: z.ZodObject<z.objectUtil.extendShape<{
fieldId: z.ZodString;

@@ -135,112 +126,2 @@ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{

}, {
type: z.ZodLiteral<"fuzzy">;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
/**
* Names of length 3 or less characters = 0 edits allowed
* Names of length 4 - 6 characters = 1 edit allowed
* Names of length >7 characters = 2 edits allowed
*/
fuzziness: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
boost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
boost: number;
fuzziness: string | number;
}, {
boost?: number | undefined;
fuzziness?: string | number | undefined;
}>>>;
}>, "strip", z.ZodTypeAny, {
type: "fuzzy";
options: {
boost: number;
fuzziness: string | number;
};
fieldId: string;
}, {
type: "fuzzy";
fieldId: string;
options?: {
boost?: number | undefined;
fuzziness?: string | number | undefined;
} | undefined;
}>, z.ZodObject<z.objectUtil.extendShape<{
fieldId: z.ZodString;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
boost: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
boost?: number | undefined;
}, {
boost?: number | undefined;
}>>>;
}, {
type: z.ZodLiteral<"strict">;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
boost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
boost: number;
}, {
boost?: number | undefined;
}>>>;
}>, "strip", z.ZodTypeAny, {
type: "strict";
options: {
boost: number;
};
fieldId: string;
}, {
type: "strict";
fieldId: string;
options?: {
boost?: number | undefined;
} | undefined;
}>, z.ZodObject<z.objectUtil.extendShape<{
fieldId: z.ZodString;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
boost: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
boost?: number | undefined;
}, {
boost?: number | undefined;
}>>>;
}, {
type: z.ZodLiteral<"dateRange">;
options: z.ZodObject<{
days: z.ZodNumber;
origin: z.ZodString;
boost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
boost: number;
days: number;
origin: string;
}, {
days: number;
origin: string;
boost?: number | undefined;
}>;
}>, "strip", z.ZodTypeAny, {
type: "dateRange";
options: {
boost: number;
days: number;
origin: string;
};
fieldId: string;
}, {
type: "dateRange";
options: {
days: number;
origin: string;
boost?: number | undefined;
};
fieldId: string;
}>, z.ZodObject<z.objectUtil.extendShape<{
fieldId: z.ZodString;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
boost: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
boost?: number | undefined;
}, {
boost?: number | undefined;
}>>>;
}, {
type: z.ZodLiteral<"dateDistance">;

@@ -276,3 +157,30 @@ options: z.ZodObject<{

fieldId: string;
}>]>;
}>;
export type AndInput = {
type: 'and';
clauses: ClauseInput[];
};
export type AndOutput = {
type: 'and';
clauses: ClauseOutput[];
};
export type OrInput = {
type: 'or';
clauses: ClauseInput[];
};
export type OrOutput = {
type: 'or';
clauses: ClauseOutput[];
};
export type ClauseInput = AndInput | OrInput | z.input<typeof FuzzyMatcher> | z.input<typeof StrictMatcher> | z.input<typeof DateRangeMatcher> | z.input<typeof DateDistanceMatcher>;
export type ClauseOutput = AndOutput | OrOutput | z.output<typeof FuzzyMatcher> | z.output<typeof StrictMatcher> | z.output<typeof DateRangeMatcher> | z.output<typeof DateDistanceMatcher>;
/**
* Defines a deduplication clause. Clauses are either matcher clauses or logical clauses. Logical clauses (and, or) are used to combine multiple clauses.
* Since the definiton is recursive, we use z.lazy to define the schema.
* Zod supports recursive schemas, but needs help with Input and Output types.
*
* Default assumption is that the ZodType is the input. Markers use default values, so we need to explicitly define output type, too.
*
*/
export declare const Clause: z.ZodType<ClauseOutput, z.ZodTypeDef, ClauseInput>;
export declare const DeduplicationConfig: z.ZodObject<{

@@ -286,160 +194,10 @@ id: z.ZodString;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>;
query: z.ZodUnion<[z.ZodType<And, z.ZodTypeDef, And>, z.ZodType<Or, z.ZodTypeDef, Or>, z.ZodObject<z.objectUtil.extendShape<{
fieldId: z.ZodString;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
boost: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
boost?: number | undefined;
}, {
boost?: number | undefined;
}>>>;
}, {
type: z.ZodLiteral<"fuzzy">;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
/**
* Names of length 3 or less characters = 0 edits allowed
* Names of length 4 - 6 characters = 1 edit allowed
* Names of length >7 characters = 2 edits allowed
*/
fuzziness: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
boost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
boost: number;
fuzziness: string | number;
}, {
boost?: number | undefined;
fuzziness?: string | number | undefined;
}>>>;
}>, "strip", z.ZodTypeAny, {
type: "fuzzy";
options: {
boost: number;
fuzziness: string | number;
};
fieldId: string;
}, {
type: "fuzzy";
fieldId: string;
options?: {
boost?: number | undefined;
fuzziness?: string | number | undefined;
} | undefined;
}>, z.ZodObject<z.objectUtil.extendShape<{
fieldId: z.ZodString;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
boost: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
boost?: number | undefined;
}, {
boost?: number | undefined;
}>>>;
}, {
type: z.ZodLiteral<"strict">;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
boost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
boost: number;
}, {
boost?: number | undefined;
}>>>;
}>, "strip", z.ZodTypeAny, {
type: "strict";
options: {
boost: number;
};
fieldId: string;
}, {
type: "strict";
fieldId: string;
options?: {
boost?: number | undefined;
} | undefined;
}>, z.ZodObject<z.objectUtil.extendShape<{
fieldId: z.ZodString;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
boost: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
boost?: number | undefined;
}, {
boost?: number | undefined;
}>>>;
}, {
type: z.ZodLiteral<"dateRange">;
options: z.ZodObject<{
days: z.ZodNumber;
origin: z.ZodString;
boost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
boost: number;
days: number;
origin: string;
}, {
days: number;
origin: string;
boost?: number | undefined;
}>;
}>, "strip", z.ZodTypeAny, {
type: "dateRange";
options: {
boost: number;
days: number;
origin: string;
};
fieldId: string;
}, {
type: "dateRange";
options: {
days: number;
origin: string;
boost?: number | undefined;
};
fieldId: string;
}>, z.ZodObject<z.objectUtil.extendShape<{
fieldId: z.ZodString;
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
boost: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
boost?: number | undefined;
}, {
boost?: number | undefined;
}>>>;
}, {
type: z.ZodLiteral<"dateDistance">;
options: z.ZodObject<{
days: z.ZodNumber;
origin: z.ZodString;
boost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
boost: number;
days: number;
origin: string;
}, {
days: number;
origin: string;
boost?: number | undefined;
}>;
}>, "strip", z.ZodTypeAny, {
type: "dateDistance";
options: {
boost: number;
days: number;
origin: string;
};
fieldId: string;
}, {
type: "dateDistance";
options: {
days: number;
origin: string;
boost?: number | undefined;
};
fieldId: string;
}>]>;
query: z.ZodType<ClauseOutput, z.ZodTypeDef, ClauseInput>;
}, "strip", z.ZodTypeAny, {

@@ -449,35 +207,6 @@ id: string;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
query: {
type: "fuzzy";
options: {
boost: number;
fuzziness: string | number;
};
fieldId: string;
} | {
type: "strict";
options: {
boost: number;
};
fieldId: string;
} | {
type: "dateRange";
options: {
boost: number;
days: number;
origin: string;
};
fieldId: string;
} | {
type: "dateDistance";
options: {
boost: number;
days: number;
origin: string;
};
fieldId: string;
} | And | Or;
query: ClauseOutput;
}, {

@@ -487,35 +216,6 @@ id: string;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
query: {
type: "fuzzy";
fieldId: string;
options?: {
boost?: number | undefined;
fuzziness?: string | number | undefined;
} | undefined;
} | {
type: "strict";
fieldId: string;
options?: {
boost?: number | undefined;
} | undefined;
} | {
type: "dateRange";
options: {
days: number;
origin: string;
boost?: number | undefined;
};
fieldId: string;
} | {
type: "dateDistance";
options: {
days: number;
origin: string;
boost?: number | undefined;
};
fieldId: string;
} | And | Or;
query: ClauseInput;
}>;

@@ -522,0 +222,0 @@ export type DeduplicationConfig = z.infer<typeof DeduplicationConfig>;

@@ -30,3 +30,4 @@ import { z } from 'zod';

type: "CREATE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -37,7 +38,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "CREATE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -48,4 +50,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -75,3 +75,4 @@ draft?: boolean | undefined;

type: "VALIDATE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -82,7 +83,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "VALIDATE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -93,4 +95,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -120,3 +120,4 @@ draft?: boolean | undefined;

type: "NOTIFY";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -127,7 +128,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "NOTIFY";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -138,4 +140,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -175,3 +175,4 @@ draft?: boolean | undefined;

type: "REGISTER";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -182,4 +183,3 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;

@@ -192,2 +192,4 @@ identifiers: {

type: "REGISTER";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -198,4 +200,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -229,3 +229,4 @@ identifiers: {

type: "DECLARE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -236,7 +237,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "DECLARE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -247,4 +249,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -275,3 +275,4 @@ draft?: boolean | undefined;

type: "ASSIGN";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -282,4 +283,3 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;

@@ -289,2 +289,4 @@ assignedTo: string;

type: "ASSIGN";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -295,4 +297,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -323,3 +323,4 @@ assignedTo: string;

type: "UNASSIGN";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -330,7 +331,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "UNASSIGN";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -341,4 +343,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -368,3 +368,4 @@ draft?: boolean | undefined;

type: "CUSTOM";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -375,7 +376,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
}, {
type: "CUSTOM";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -386,4 +388,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -393,4 +393,4 @@ draft?: boolean | undefined;

}, "strip", z.ZodTypeAny, {
id: string;
type: string;
id: string;
transactionId: string;

@@ -401,3 +401,4 @@ createdAt: string;

type: "CREATE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -408,8 +409,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
} | {
type: "VALIDATE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -420,8 +421,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
} | {
type: "NOTIFY";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -432,8 +433,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
} | {
type: "REGISTER";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -444,4 +445,3 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;

@@ -454,3 +454,4 @@ identifiers: {

type: "DECLARE";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -461,8 +462,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
} | {
type: "ASSIGN";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -473,4 +474,3 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;

@@ -480,3 +480,4 @@ assignedTo: string;

type: "UNASSIGN";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -487,8 +488,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
} | {
type: "CUSTOM";
draft: boolean;
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -499,9 +500,8 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
draft: boolean;
createdAtLocation: string;
})[];
}, {
id: string;
type: string;
id: string;
transactionId: string;

@@ -512,2 +512,4 @@ createdAt: string;

type: "CREATE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -518,4 +520,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -525,2 +525,4 @@ draft?: boolean | undefined;

type: "VALIDATE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -531,4 +533,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -538,2 +538,4 @@ draft?: boolean | undefined;

type: "NOTIFY";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -544,4 +546,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -551,2 +551,4 @@ draft?: boolean | undefined;

type: "REGISTER";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -557,4 +559,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -568,2 +568,4 @@ identifiers: {

type: "DECLARE";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -574,4 +576,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -581,2 +581,4 @@ draft?: boolean | undefined;

type: "ASSIGN";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -587,4 +589,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -595,2 +595,4 @@ assignedTo: string;

type: "UNASSIGN";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -601,4 +603,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -608,2 +608,4 @@ draft?: boolean | undefined;

type: "CUSTOM";
createdAt: string;
createdBy: string;
data: Record<string, string | {

@@ -614,4 +616,2 @@ type: string;

} | null>;
createdAt: string;
createdBy: string;
createdAtLocation: string;

@@ -618,0 +618,0 @@ draft?: boolean | undefined;

@@ -22,6 +22,6 @@ import { z } from 'zod';

}>, "strip", z.ZodTypeAny, {
data: Record<string, any>;
id: string;
type: string;
id: string;
status: "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
data: Record<string, any>;
status: "DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED" | "CREATED" | "NOTIFIED";
createdAt: string;

@@ -34,6 +34,6 @@ createdBy: string;

}, {
data: Record<string, any>;
id: string;
type: string;
id: string;
status: "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
data: Record<string, any>;
status: "DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED" | "CREATED" | "NOTIFIED";
createdAt: string;

@@ -40,0 +40,0 @@ createdBy: string;

@@ -15,3 +15,3 @@ import { z } from 'zod';

export type EventStatus = (typeof EventStatus)[keyof typeof EventStatus];
export declare const eventStatuses: ("CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
export declare const eventStatuses: ("DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED" | "CREATED" | "NOTIFIED")[];
export declare const EventStatuses: z.ZodNativeEnum<{

@@ -48,5 +48,5 @@ readonly CREATED: "CREATED";

}, "strip", z.ZodTypeAny, {
id: string;
type: string;
id: string;
status: "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
status: "DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED" | "CREATED" | "NOTIFIED";
createdAt: string;

@@ -59,5 +59,5 @@ createdBy: string;

}, {
id: string;
type: string;
id: string;
status: "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
status: "DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED" | "CREATED" | "NOTIFIED";
createdAt: string;

@@ -64,0 +64,0 @@ createdBy: string;

@@ -202,3 +202,3 @@ "use strict";

items: import_zod3.z.array(TranslationConfig).describe("A list of items"),
font: HTMLFontVariant.optional()
font: HTMLFontVariant
}).describe("A list of bullet points");

@@ -482,10 +482,12 @@ var SelectOption = import_zod3.z.object({

});
var Clause = import_zod9.z.union([
And,
Or,
FuzzyMatcher,
StrictMatcher,
DateRangeMatcher,
DateDistanceMatcher
]);
var Clause = import_zod9.z.lazy(
() => import_zod9.z.discriminatedUnion("type", [
And,
Or,
FuzzyMatcher,
StrictMatcher,
DateRangeMatcher,
DateDistanceMatcher
])
);
var DeduplicationConfig = import_zod9.z.object({

@@ -492,0 +494,0 @@ id: import_zod9.z.string(),

@@ -9,8 +9,8 @@ import { z } from 'zod';

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>;

@@ -25,8 +25,8 @@ fields: z.ZodArray<z.ZodObject<{

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>;

@@ -39,8 +39,8 @@ emptyValueMessage: z.ZodOptional<z.ZodObject<{

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>>;

@@ -51,9 +51,9 @@ }, "strip", z.ZodTypeAny, {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -64,9 +64,9 @@ }, {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -77,4 +77,4 @@ }>, "many">;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -85,9 +85,9 @@ fields: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -98,4 +98,4 @@ }[];

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -106,9 +106,9 @@ fields: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -124,8 +124,8 @@ }[];

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>;

@@ -140,8 +140,8 @@ fields: z.ZodArray<z.ZodObject<{

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>;

@@ -154,8 +154,8 @@ emptyValueMessage: z.ZodOptional<z.ZodObject<{

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>>;

@@ -166,9 +166,9 @@ }, "strip", z.ZodTypeAny, {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -179,9 +179,9 @@ }, {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -198,8 +198,8 @@ }>, "many">;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>;

@@ -212,8 +212,8 @@ emptyValueMessage: z.ZodOptional<z.ZodObject<{

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>>;

@@ -227,8 +227,8 @@ }, {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>>;

@@ -239,9 +239,9 @@ }>, "strip", z.ZodTypeAny, {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -252,9 +252,9 @@ }, {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -265,4 +265,4 @@ }>, "many">;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -273,9 +273,9 @@ fields: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -286,4 +286,4 @@ }[];

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -294,9 +294,9 @@ fields: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
emptyValueMessage?: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -303,0 +303,0 @@ }[];

@@ -8,10 +8,10 @@ import { z } from 'zod';

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}, {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
}>;
export type TranslationConfig = z.infer<typeof TranslationConfig>;
//# sourceMappingURL=TranslationConfig.d.ts.map

@@ -45,7 +45,11 @@ import { TranslationConfig } from './TranslationConfig';

}[];
id: string;
title: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
filters: {
status: ("CREATED" | "NOTIFIED" | "DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED")[];
}[];
} | {

@@ -56,19 +60,15 @@ fields: {

}[];
id: string;
title: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
filters: {
status: ("CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
}[];
};
export declare function getAllFields(configuration: EventConfig): ({
id: string;
type: "TEXT";
id: string;
label: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -82,6 +82,6 @@ options?: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
validator: import("../client").JSONSchema;
validator?: any;
}[] | undefined;

@@ -91,9 +91,9 @@ required?: boolean | undefined;

type: "SHOW";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "HIDE";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "ENABLE";
conditional: import("../client").JSONSchema;
conditional?: any;
})[] | undefined;

@@ -109,12 +109,12 @@ dependsOn?: string[] | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
} | {
id: string;
type: "DATE";
id: string;
label: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -124,4 +124,4 @@ options?: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;

@@ -132,6 +132,6 @@ } | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
validator: import("../client").JSONSchema;
validator?: any;
}[] | undefined;

@@ -141,9 +141,9 @@ required?: boolean | undefined;

type: "SHOW";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "HIDE";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "ENABLE";
conditional: import("../client").JSONSchema;
conditional?: any;
})[] | undefined;

@@ -159,8 +159,8 @@ dependsOn?: string[] | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
} | {
id: string;
type: "PARAGRAPH";
id: string;
options: {

@@ -171,4 +171,4 @@ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -178,6 +178,6 @@ validation?: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
validator: import("../client").JSONSchema;
validator?: any;
}[] | undefined;

@@ -187,9 +187,9 @@ required?: boolean | undefined;

type: "SHOW";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "HIDE";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "ENABLE";
conditional: import("../client").JSONSchema;
conditional?: any;
})[] | undefined;

@@ -205,12 +205,16 @@ dependsOn?: string[] | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
} | {
type: "FILE";
id: string;
type: "RADIO_GROUP";
options: {
value: string;
label: string;
}[];
label: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -220,6 +224,6 @@ validation?: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
validator: import("../client").JSONSchema;
validator?: any;
}[] | undefined;

@@ -229,9 +233,9 @@ required?: boolean | undefined;

type: "SHOW";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "HIDE";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "ENABLE";
conditional: import("../client").JSONSchema;
conditional?: any;
})[] | undefined;

@@ -247,24 +251,26 @@ dependsOn?: string[] | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
} | {
type: "RADIO_GROUP";
id: string;
options: {
value: string;
label: string;
}[];
type: "BULLET_LIST";
label: {
id: string;
defaultMessage: string;
description: string;
};
items: {
id: string;
defaultMessage: string;
};
description: string;
}[];
font: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1";
validation?: {
message: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
validator: import("../client").JSONSchema;
validator?: any;
}[] | undefined;

@@ -274,9 +280,9 @@ required?: boolean | undefined;

type: "SHOW";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "HIDE";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "ENABLE";
conditional: import("../client").JSONSchema;
conditional?: any;
})[] | undefined;

@@ -292,25 +298,28 @@ dependsOn?: string[] | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
} | {
type: "BULLET_LIST";
id: string;
type: "SELECT";
options: {
value: string;
label: {
id: string;
defaultMessage: string;
description: string;
};
}[];
label: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
items: {
id: string;
description: string;
defaultMessage: string;
}[];
validation?: {
message: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
validator: import("../client").JSONSchema;
validator?: any;
}[] | undefined;

@@ -320,9 +329,9 @@ required?: boolean | undefined;

type: "SHOW";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "HIDE";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "ENABLE";
conditional: import("../client").JSONSchema;
conditional?: any;
})[] | undefined;

@@ -338,21 +347,12 @@ dependsOn?: string[] | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
font?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
} | {
type: "SELECT";
id: string;
options: {
value: string;
label: {
id: string;
description: string;
defaultMessage: string;
};
}[];
type: "CHECKBOX";
label: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -362,6 +362,6 @@ validation?: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
validator: import("../client").JSONSchema;
validator?: any;
}[] | undefined;

@@ -371,9 +371,9 @@ required?: boolean | undefined;

type: "SHOW";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "HIDE";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "ENABLE";
conditional: import("../client").JSONSchema;
conditional?: any;
})[] | undefined;

@@ -389,12 +389,12 @@ dependsOn?: string[] | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
} | {
type: "CHECKBOX";
id: string;
type: "FILE";
label: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -404,6 +404,6 @@ validation?: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
validator: import("../client").JSONSchema;
validator?: any;
}[] | undefined;

@@ -413,9 +413,9 @@ required?: boolean | undefined;

type: "SHOW";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "HIDE";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "ENABLE";
conditional: import("../client").JSONSchema;
conditional?: any;
})[] | undefined;

@@ -431,12 +431,12 @@ dependsOn?: string[] | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
} | {
id: string;
type: "COUNTRY";
id: string;
label: {
id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};

@@ -446,6 +446,6 @@ validation?: {

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
};
validator: import("../client").JSONSchema;
validator?: any;
}[] | undefined;

@@ -455,9 +455,9 @@ required?: boolean | undefined;

type: "SHOW";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "HIDE";
conditional: import("../client").JSONSchema;
conditional?: any;
} | {
type: "ENABLE";
conditional: import("../client").JSONSchema;
conditional?: any;
})[] | undefined;

@@ -473,6 +473,6 @@ dependsOn?: string[] | undefined;

id: string;
defaultMessage: string;
description: string;
defaultMessage: string;
} | undefined;
})[];
//# sourceMappingURL=utils.d.ts.map

@@ -60,5 +60,5 @@ import { z } from 'zod';

}, "strip", z.ZodTypeAny, {
status: ("CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
status: ("DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED" | "CREATED" | "NOTIFIED")[];
}, {
status: ("CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
status: ("DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED" | "CREATED" | "NOTIFIED")[];
}>, "many">;

@@ -81,3 +81,3 @@ }, "strip", z.ZodTypeAny, {

filters: {
status: ("CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
status: ("DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED" | "CREATED" | "NOTIFIED")[];
}[];

@@ -100,3 +100,3 @@ }, {

filters: {
status: ("CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
status: ("DECLARED" | "VALIDATED" | "REGISTERED" | "CERTIFIED" | "CREATED" | "NOTIFIED")[];
}[];

@@ -103,0 +103,0 @@ }>;

{
"name": "@opencrvs/toolkit",
"version": "0.0.14-events",
"version": "0.0.15-riku-events",
"description": "OpenCRVS toolkit for building country configurations",

@@ -8,2 +8,3 @@ "license": "MPL-2.0",

"./lib": "./dist/lib.js",
"./api": "./dist/api/index.js",
"./events": "./dist/events/index.js",

@@ -13,10 +14,9 @@ "./conditionals": "./dist/conditionals/index.js"

"scripts": {
"build": "rimraf dist && tsc --build && yarn build-common-events:js && yarn copy-common-events:ts && yarn build-common-conditionals:js && yarn copy-common-conditionals:ts",
"build-common-events:js": "esbuild src/events/index.ts --bundle --format=cjs --outdir=./dist/events --allow-overwrite --packages=external",
"build-common-conditionals:js": "esbuild src/conditionals/index.ts --bundle --format=cjs --outdir=./dist/conditionals --allow-overwrite --packages=external",
"copy-common-events:ts": "cp -r ../commons/build/dist/common/events/*.d.ts ./dist/events",
"copy-common-conditionals:ts": "cp -r ../commons/build/dist/common/conditionals/*.d.ts ./dist/conditionals"
"build": "./build.sh"
},
"dependencies": {
"ajv": "^8.17.1"
"ajv": "^8.17.1",
"superjson": "1.9.0-0",
"@trpc/client": "^11.0.0-rc.648",
"@opencrvs/events": "^1.7.0"
},

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -12,5 +12,5 @@ /*

import { Clause } from '@opencrvs/commons/events'
import { ClauseInput } from '@opencrvs/commons/events'
export function and(clauses: Clause[]): Clause {
export function and(clauses: ClauseInput[]): ClauseInput {
return {

@@ -22,3 +22,3 @@ type: 'and',

export function or(clauses: Clause[]): Clause {
export function or(clauses: ClauseInput[]): ClauseInput {
return {

@@ -25,0 +25,0 @@ type: 'or',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc