@opencrvs/toolkit 2.0.3 → 2.0.5

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/create-countryconfig",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Scaffold a new OpenCRVS country configuration",
5
5
  "bin": {
6
6
  "create-countryconfig": "./index.js"
@@ -7297,44 +7297,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7297
7297
  })[];
7298
7298
  meta: object;
7299
7299
  }>;
7300
- actions: import("@trpc/server").TRPCQueryProcedure<{
7301
- input: {
7302
- userId: string;
7303
- skip?: number | undefined;
7304
- count?: number | undefined;
7305
- timeStart?: string | undefined;
7306
- timeEnd?: string | undefined;
7307
- actionTypes?: ("CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM")[] | undefined;
7308
- };
7309
- output: {
7310
- results: {
7311
- id: (string & import("zod").$brand<"UUID">) | null;
7312
- createdBy: string;
7313
- createdAt: string | null;
7314
- status: import("../storage/postgres/events/schema/app/ActionStatus").default;
7315
- transactionId: string | null;
7316
- eventId: string & import("zod").$brand<"UUID">;
7317
- actionType: string;
7318
- declaration: Record<string, any>;
7319
- annotation: Record<string, any> | null;
7320
- createdByRole: string | null;
7321
- createdByUserType: import("../storage/postgres/events/schema/app/UserType").default;
7322
- createdBySignature: string | null;
7323
- createdAtLocation: (string & import("zod").$brand<"UUID">) | null;
7324
- updatedAt: string | null;
7325
- assignedTo: string | null;
7326
- originalActionId: (string & import("zod").$brand<"UUID">) | null;
7327
- registrationNumber: string | null;
7328
- requestId: string | null;
7329
- content: Record<string, any> | null;
7330
- customActionType: string | null;
7331
- eventType: string | null;
7332
- trackingId: string | null;
7333
- }[];
7334
- total: number;
7335
- };
7336
- meta: import("trpc-to-openapi").OpenApiMeta;
7337
- }>;
7338
7300
  roles: import("@trpc/server").TRPCBuiltRouter<{
7339
7301
  ctx: Partial<{
7340
7302
  token: `Bearer ${string}`;
@@ -4158,7 +4158,7 @@ function isFieldVisible(field3, form, context) {
4158
4158
  }
4159
4159
  function isFieldEmptyAndNotRequired(field3, form) {
4160
4160
  const fieldValue = form[field3.id];
4161
- return !field3.required && (fieldValue === void 0 || fieldValue === "" || fieldValue && typeof fieldValue === "object" && Object.values(fieldValue).every((v) => v === void 0 || v === ""));
4161
+ return !field3.required && (fieldValue === void 0 || fieldValue === null || fieldValue === "" || fieldValue && typeof fieldValue === "object" && Object.values(fieldValue).every((v) => v === void 0 || v === ""));
4162
4162
  }
4163
4163
  function isFieldEnabled(field3, form, context) {
4164
4164
  return isFieldConditionMet(field3, form, ConditionalType.ENABLE, context);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {
Binary file