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

@opencrvs/toolkit

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencrvs/toolkit - npm Package Compare versions

Comparing version

to
1.7.0-rc.a9856d7

import { ConditionalParameters, JSONSchema } from './conditionals';
import { ActionFormData } from '../events/ActionDocument';
import { FieldConfig } from '../events/FieldConfig';
import { FieldValue } from '../events/FieldValue';
import { TranslationConfig } from '../events/TranslationConfig';

@@ -36,2 +37,13 @@ export declare function validate(schema: JSONSchema, data: ConditionalParameters): boolean;

};
/**
* Validates primitive fields defined by the FieldConfig type.
* e.g. email is proper format, date is a valid date, etc.
* for custom validations @see runCustomFieldValidations
*/
export declare function validateFieldInput({ field, value }: {
field: FieldConfig;
value: FieldValue;
}): {
message: TranslationConfig;
}[];
//# sourceMappingURL=validate.d.ts.map
import { z } from 'zod';
import { TranslationConfig } from './TranslationConfig';
export declare const AdvancedSearchConfig: z.ZodObject<{
id: z.ZodString;
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {

@@ -31,3 +30,2 @@ id: string;

}, "strip", z.ZodTypeAny, {
id: string;
title: TranslationConfig;

@@ -41,3 +39,2 @@ fields: {

}, {
id: string;
title: {

@@ -44,0 +41,0 @@ id: string;

@@ -329,3 +329,2 @@ import { EventConfigInput } from './EventConfigInput';

advancedSearch: {
id: string;
title: import("./TranslationConfig").TranslationConfig;

@@ -332,0 +331,0 @@ fields: {

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

advancedSearch: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {

@@ -238,3 +237,2 @@ id: string;

}, "strip", z.ZodTypeAny, {
id: string;
title: TranslationConfig;

@@ -248,3 +246,2 @@ fields: {

}, {
id: string;
title: {

@@ -585,3 +582,2 @@ id: string;

advancedSearch: {
id: string;
title: TranslationConfig;

@@ -1158,3 +1154,2 @@ fields: {

advancedSearch?: {
id: string;
title: {

@@ -1495,3 +1490,2 @@ id: string;

advancedSearch: {
id: string;
title: TranslationConfig;

@@ -2068,3 +2062,2 @@ fields: {

advancedSearch?: {
id: string;
title: {

@@ -2071,0 +2064,0 @@ id: string;

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

}>;
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
type: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: string;
}, {
type: string;
}>>;
export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
export type EventIndex = z.infer<typeof EventIndex>;
//# sourceMappingURL=EventIndex.d.ts.map

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

zipCode: string;
village: string;
} | null;

@@ -164,0 +163,0 @@ export declare const isParagraphFieldType: (field: {

@@ -28,4 +28,5 @@ export * from './ActionConfig';

export * from './AdvancedSearchConfig';
export * from './test.utils';
export * from '../conditionals/conditionals';
export * from '../conditionals/validate';
//# sourceMappingURL=index.d.ts.map

@@ -41,2 +41,6 @@ export declare const SCOPES: {

readonly RECORD_REGISTRATION_PRINT: "record.registration-print";
/**
* This scope is used to **print and **issue certified copies of a record
* after it has been registered. Previously Registrars had this permission.
*/
readonly RECORD_PRINT_ISSUE_CERTIFIED_COPIES: "record.registration-print&issue-certified-copies";

@@ -43,0 +47,0 @@ readonly RECORD_PRINT_CERTIFIED_COPIES: "record.registration-print-certified-copies";

@@ -76,2 +76,6 @@ "use strict";

// v1.8
/**
* This scope is used to **print and **issue certified copies of a record
* after it has been registered. Previously Registrars had this permission.
*/
RECORD_PRINT_ISSUE_CERTIFIED_COPIES: "record.registration-print&issue-certified-copies",

@@ -78,0 +82,0 @@ RECORD_PRINT_CERTIFIED_COPIES: "record.registration-print-certified-copies",

{
"name": "@opencrvs/toolkit",
"version": "1.7.0-rc.a93a7d5",
"version": "1.7.0-rc.a9856d7",
"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 too big to display

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