@blackcode_sa/metaestetics-api 1.6.2 → 1.6.4
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/dist/admin/index.d.mts +228 -25
- package/dist/admin/index.d.ts +228 -25
- package/dist/admin/index.js +35867 -2493
- package/dist/admin/index.mjs +35856 -2464
- package/dist/backoffice/index.d.mts +252 -1
- package/dist/backoffice/index.d.ts +252 -1
- package/dist/backoffice/index.js +86 -12
- package/dist/backoffice/index.mjs +86 -13
- package/dist/index.d.mts +1417 -554
- package/dist/index.d.ts +1417 -554
- package/dist/index.js +1393 -687
- package/dist/index.mjs +1423 -711
- package/package.json +1 -1
- package/src/admin/index.ts +15 -1
- package/src/admin/notifications/notifications.admin.ts +1 -1
- package/src/admin/requirements/README.md +128 -0
- package/src/admin/requirements/patient-requirements.admin.service.ts +482 -0
- package/src/index.ts +16 -1
- package/src/services/appointment/appointment.service.ts +315 -86
- package/src/services/clinic/clinic-admin.service.ts +3 -0
- package/src/services/clinic/clinic-group.service.ts +8 -0
- package/src/services/documentation-templates/documentation-template.service.ts +24 -16
- package/src/services/documentation-templates/filled-document.service.ts +253 -136
- package/src/services/patient/patient.service.ts +31 -1
- package/src/services/patient/patientRequirements.service.ts +285 -0
- package/src/services/patient/utils/practitioner.utils.ts +79 -1
- package/src/types/appointment/index.ts +134 -10
- package/src/types/documentation-templates/index.ts +34 -2
- package/src/types/notifications/README.md +77 -0
- package/src/types/notifications/index.ts +154 -27
- package/src/types/patient/index.ts +6 -0
- package/src/types/patient/patient-requirements.ts +81 -0
- package/src/validations/appointment.schema.ts +300 -62
- package/src/validations/documentation-templates/template.schema.ts +55 -0
- package/src/validations/documentation-templates.schema.ts +9 -14
- package/src/validations/notification.schema.ts +3 -3
- package/src/validations/patient/patient-requirements.schema.ts +75 -0
|
@@ -349,6 +349,7 @@ declare enum DocumentElementType {
|
|
|
349
349
|
TEXT_INPUT = "text_input",
|
|
350
350
|
DATE_PICKER = "date_picker",
|
|
351
351
|
SIGNATURE = "signature",
|
|
352
|
+
DITIGAL_SIGNATURE = "digital_signature",
|
|
352
353
|
FILE_UPLOAD = "file_upload"
|
|
353
354
|
}
|
|
354
355
|
/**
|
|
@@ -378,7 +379,12 @@ declare enum DynamicVariable {
|
|
|
378
379
|
CLINIC_NAME = "[CLINIC_NAME]",
|
|
379
380
|
PATIENT_BIRTHDAY = "[PATIENT_BIRTHDAY]",
|
|
380
381
|
APPOINTMENT_DATE = "[APPOINTMENT_DATE]",
|
|
381
|
-
CURRENT_DATE = "[CURRENT_DATE]"
|
|
382
|
+
CURRENT_DATE = "[CURRENT_DATE]",
|
|
383
|
+
PROCEDURE_NAME = "[PROCEDURE_NAME]",
|
|
384
|
+
PROCEDURE_DESCRIPTION = "[PROCEDURE_DESCRIPTION]",
|
|
385
|
+
PROCEDURE_COST = "[PROCEDURE_COST]",
|
|
386
|
+
PROCEDURE_DURATION = "[PROCEDURE_DURATION]",
|
|
387
|
+
PROCEDURE_RISK = "[PROCEDURE_RISK]"
|
|
382
388
|
}
|
|
383
389
|
/**
|
|
384
390
|
* Base interface for all document elements
|
|
@@ -507,6 +513,9 @@ interface DocumentTemplate {
|
|
|
507
513
|
createdBy: string;
|
|
508
514
|
elements: DocumentElement[];
|
|
509
515
|
tags?: string[];
|
|
516
|
+
isUserForm?: boolean;
|
|
517
|
+
isRequired?: boolean;
|
|
518
|
+
sortingOrder?: number;
|
|
510
519
|
version: number;
|
|
511
520
|
isActive: boolean;
|
|
512
521
|
}
|
|
@@ -518,6 +527,9 @@ interface CreateDocumentTemplateData {
|
|
|
518
527
|
description?: string;
|
|
519
528
|
elements: Omit<DocumentElement, "id">[];
|
|
520
529
|
tags?: string[];
|
|
530
|
+
isUserForm?: boolean;
|
|
531
|
+
isRequired?: boolean;
|
|
532
|
+
sortingOrder?: number;
|
|
521
533
|
}
|
|
522
534
|
/**
|
|
523
535
|
* Interface for updating an existing document template
|
|
@@ -528,6 +540,9 @@ interface UpdateDocumentTemplateData {
|
|
|
528
540
|
elements?: Omit<DocumentElement, "id">[];
|
|
529
541
|
tags?: string[];
|
|
530
542
|
isActive?: boolean;
|
|
543
|
+
isUserForm?: boolean;
|
|
544
|
+
isRequired?: boolean;
|
|
545
|
+
sortingOrder?: number;
|
|
531
546
|
}
|
|
532
547
|
|
|
533
548
|
/**
|
|
@@ -913,6 +928,23 @@ declare const documentElementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
913
928
|
id: z.ZodOptional<z.ZodString>;
|
|
914
929
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
915
930
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
931
|
+
}, {
|
|
932
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
933
|
+
label: z.ZodString;
|
|
934
|
+
}>, "strip", z.ZodTypeAny, {
|
|
935
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
936
|
+
label: string;
|
|
937
|
+
id?: string | undefined;
|
|
938
|
+
required?: boolean | undefined;
|
|
939
|
+
}, {
|
|
940
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
941
|
+
label: string;
|
|
942
|
+
id?: string | undefined;
|
|
943
|
+
required?: boolean | undefined;
|
|
944
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
945
|
+
id: z.ZodOptional<z.ZodString>;
|
|
946
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
947
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
916
948
|
}, {
|
|
917
949
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
918
950
|
label: z.ZodString;
|
|
@@ -1147,6 +1179,21 @@ declare const documentElementWithoutIdSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1147
1179
|
id: z.ZodOptional<z.ZodString>;
|
|
1148
1180
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1149
1181
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1182
|
+
}, {
|
|
1183
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
1184
|
+
label: z.ZodString;
|
|
1185
|
+
}>, "id">, "strip", z.ZodTypeAny, {
|
|
1186
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1187
|
+
label: string;
|
|
1188
|
+
required?: boolean | undefined;
|
|
1189
|
+
}, {
|
|
1190
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1191
|
+
label: string;
|
|
1192
|
+
required?: boolean | undefined;
|
|
1193
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1194
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1196
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1150
1197
|
}, {
|
|
1151
1198
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
1152
1199
|
label: z.ZodString;
|
|
@@ -1382,6 +1429,21 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1382
1429
|
id: z.ZodOptional<z.ZodString>;
|
|
1383
1430
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1384
1431
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1432
|
+
}, {
|
|
1433
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
1434
|
+
label: z.ZodString;
|
|
1435
|
+
}>, "id">, "strip", z.ZodTypeAny, {
|
|
1436
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1437
|
+
label: string;
|
|
1438
|
+
required?: boolean | undefined;
|
|
1439
|
+
}, {
|
|
1440
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1441
|
+
label: string;
|
|
1442
|
+
required?: boolean | undefined;
|
|
1443
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1444
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1445
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1446
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1385
1447
|
}, {
|
|
1386
1448
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
1387
1449
|
label: z.ZodString;
|
|
@@ -1401,6 +1463,9 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1401
1463
|
maxFileSizeMB?: number | undefined;
|
|
1402
1464
|
}>]>, "many">;
|
|
1403
1465
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1466
|
+
isUserForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1467
|
+
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1468
|
+
sortingOrder: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1404
1469
|
}, "strip", z.ZodTypeAny, {
|
|
1405
1470
|
title: string;
|
|
1406
1471
|
elements: ({
|
|
@@ -1462,6 +1527,10 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1462
1527
|
type: DocumentElementType.SIGNATURE;
|
|
1463
1528
|
label: string;
|
|
1464
1529
|
required?: boolean | undefined;
|
|
1530
|
+
} | {
|
|
1531
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1532
|
+
label: string;
|
|
1533
|
+
required?: boolean | undefined;
|
|
1465
1534
|
} | {
|
|
1466
1535
|
type: DocumentElementType.FILE_UPLOAD;
|
|
1467
1536
|
label: string;
|
|
@@ -1469,6 +1538,9 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1469
1538
|
allowedFileTypes?: string[] | undefined;
|
|
1470
1539
|
maxFileSizeMB?: number | undefined;
|
|
1471
1540
|
})[];
|
|
1541
|
+
isUserForm: boolean;
|
|
1542
|
+
isRequired: boolean;
|
|
1543
|
+
sortingOrder: number;
|
|
1472
1544
|
description?: string | undefined;
|
|
1473
1545
|
tags?: string[] | undefined;
|
|
1474
1546
|
}, {
|
|
@@ -1532,6 +1604,10 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1532
1604
|
type: DocumentElementType.SIGNATURE;
|
|
1533
1605
|
label: string;
|
|
1534
1606
|
required?: boolean | undefined;
|
|
1607
|
+
} | {
|
|
1608
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1609
|
+
label: string;
|
|
1610
|
+
required?: boolean | undefined;
|
|
1535
1611
|
} | {
|
|
1536
1612
|
type: DocumentElementType.FILE_UPLOAD;
|
|
1537
1613
|
label: string;
|
|
@@ -1541,6 +1617,9 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1541
1617
|
})[];
|
|
1542
1618
|
description?: string | undefined;
|
|
1543
1619
|
tags?: string[] | undefined;
|
|
1620
|
+
isUserForm?: boolean | undefined;
|
|
1621
|
+
isRequired?: boolean | undefined;
|
|
1622
|
+
sortingOrder?: number | undefined;
|
|
1544
1623
|
}>;
|
|
1545
1624
|
declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
1546
1625
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1759,6 +1838,21 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1759
1838
|
id: z.ZodOptional<z.ZodString>;
|
|
1760
1839
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1761
1840
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1841
|
+
}, {
|
|
1842
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
1843
|
+
label: z.ZodString;
|
|
1844
|
+
}>, "id">, "strip", z.ZodTypeAny, {
|
|
1845
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1846
|
+
label: string;
|
|
1847
|
+
required?: boolean | undefined;
|
|
1848
|
+
}, {
|
|
1849
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1850
|
+
label: string;
|
|
1851
|
+
required?: boolean | undefined;
|
|
1852
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1853
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1854
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1855
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1762
1856
|
}, {
|
|
1763
1857
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
1764
1858
|
label: z.ZodString;
|
|
@@ -1779,6 +1873,9 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1779
1873
|
}>]>, "many">>;
|
|
1780
1874
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1781
1875
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
1876
|
+
isUserForm: z.ZodOptional<z.ZodBoolean>;
|
|
1877
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1878
|
+
sortingOrder: z.ZodOptional<z.ZodNumber>;
|
|
1782
1879
|
}, "strip", z.ZodTypeAny, {
|
|
1783
1880
|
isActive?: boolean | undefined;
|
|
1784
1881
|
description?: string | undefined;
|
|
@@ -1842,6 +1939,10 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1842
1939
|
type: DocumentElementType.SIGNATURE;
|
|
1843
1940
|
label: string;
|
|
1844
1941
|
required?: boolean | undefined;
|
|
1942
|
+
} | {
|
|
1943
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1944
|
+
label: string;
|
|
1945
|
+
required?: boolean | undefined;
|
|
1845
1946
|
} | {
|
|
1846
1947
|
type: DocumentElementType.FILE_UPLOAD;
|
|
1847
1948
|
label: string;
|
|
@@ -1850,6 +1951,9 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1850
1951
|
maxFileSizeMB?: number | undefined;
|
|
1851
1952
|
})[] | undefined;
|
|
1852
1953
|
tags?: string[] | undefined;
|
|
1954
|
+
isUserForm?: boolean | undefined;
|
|
1955
|
+
isRequired?: boolean | undefined;
|
|
1956
|
+
sortingOrder?: number | undefined;
|
|
1853
1957
|
}, {
|
|
1854
1958
|
isActive?: boolean | undefined;
|
|
1855
1959
|
description?: string | undefined;
|
|
@@ -1913,6 +2017,10 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1913
2017
|
type: DocumentElementType.SIGNATURE;
|
|
1914
2018
|
label: string;
|
|
1915
2019
|
required?: boolean | undefined;
|
|
2020
|
+
} | {
|
|
2021
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2022
|
+
label: string;
|
|
2023
|
+
required?: boolean | undefined;
|
|
1916
2024
|
} | {
|
|
1917
2025
|
type: DocumentElementType.FILE_UPLOAD;
|
|
1918
2026
|
label: string;
|
|
@@ -1921,6 +2029,9 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1921
2029
|
maxFileSizeMB?: number | undefined;
|
|
1922
2030
|
})[] | undefined;
|
|
1923
2031
|
tags?: string[] | undefined;
|
|
2032
|
+
isUserForm?: boolean | undefined;
|
|
2033
|
+
isRequired?: boolean | undefined;
|
|
2034
|
+
sortingOrder?: number | undefined;
|
|
1924
2035
|
}>;
|
|
1925
2036
|
declare const documentTemplateSchema: z.ZodObject<{
|
|
1926
2037
|
id: z.ZodString;
|
|
@@ -2165,6 +2276,23 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2165
2276
|
id: z.ZodOptional<z.ZodString>;
|
|
2166
2277
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
2167
2278
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2279
|
+
}, {
|
|
2280
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
2281
|
+
label: z.ZodString;
|
|
2282
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2283
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2284
|
+
label: string;
|
|
2285
|
+
id?: string | undefined;
|
|
2286
|
+
required?: boolean | undefined;
|
|
2287
|
+
}, {
|
|
2288
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2289
|
+
label: string;
|
|
2290
|
+
id?: string | undefined;
|
|
2291
|
+
required?: boolean | undefined;
|
|
2292
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2293
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2294
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
2295
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2168
2296
|
}, {
|
|
2169
2297
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
2170
2298
|
label: z.ZodString;
|
|
@@ -2188,6 +2316,9 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2188
2316
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2189
2317
|
version: z.ZodNumber;
|
|
2190
2318
|
isActive: z.ZodBoolean;
|
|
2319
|
+
isUserForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2320
|
+
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2321
|
+
sortingOrder: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2191
2322
|
}, "strip", z.ZodTypeAny, {
|
|
2192
2323
|
id: string;
|
|
2193
2324
|
createdAt: number;
|
|
@@ -2264,6 +2395,11 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2264
2395
|
label: string;
|
|
2265
2396
|
id?: string | undefined;
|
|
2266
2397
|
required?: boolean | undefined;
|
|
2398
|
+
} | {
|
|
2399
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2400
|
+
label: string;
|
|
2401
|
+
id?: string | undefined;
|
|
2402
|
+
required?: boolean | undefined;
|
|
2267
2403
|
} | {
|
|
2268
2404
|
type: DocumentElementType.FILE_UPLOAD;
|
|
2269
2405
|
label: string;
|
|
@@ -2272,6 +2408,9 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2272
2408
|
allowedFileTypes?: string[] | undefined;
|
|
2273
2409
|
maxFileSizeMB?: number | undefined;
|
|
2274
2410
|
})[];
|
|
2411
|
+
isUserForm: boolean;
|
|
2412
|
+
isRequired: boolean;
|
|
2413
|
+
sortingOrder: number;
|
|
2275
2414
|
createdBy: string;
|
|
2276
2415
|
version: number;
|
|
2277
2416
|
description?: string | undefined;
|
|
@@ -2352,6 +2491,11 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2352
2491
|
label: string;
|
|
2353
2492
|
id?: string | undefined;
|
|
2354
2493
|
required?: boolean | undefined;
|
|
2494
|
+
} | {
|
|
2495
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2496
|
+
label: string;
|
|
2497
|
+
id?: string | undefined;
|
|
2498
|
+
required?: boolean | undefined;
|
|
2355
2499
|
} | {
|
|
2356
2500
|
type: DocumentElementType.FILE_UPLOAD;
|
|
2357
2501
|
label: string;
|
|
@@ -2364,6 +2508,9 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2364
2508
|
version: number;
|
|
2365
2509
|
description?: string | undefined;
|
|
2366
2510
|
tags?: string[] | undefined;
|
|
2511
|
+
isUserForm?: boolean | undefined;
|
|
2512
|
+
isRequired?: boolean | undefined;
|
|
2513
|
+
sortingOrder?: number | undefined;
|
|
2367
2514
|
}>;
|
|
2368
2515
|
|
|
2369
2516
|
/**
|
|
@@ -2981,6 +3128,23 @@ declare const technologySchema: z.ZodObject<{
|
|
|
2981
3128
|
id: z.ZodOptional<z.ZodString>;
|
|
2982
3129
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
2983
3130
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
3131
|
+
}, {
|
|
3132
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
3133
|
+
label: z.ZodString;
|
|
3134
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3135
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3136
|
+
label: string;
|
|
3137
|
+
id?: string | undefined;
|
|
3138
|
+
required?: boolean | undefined;
|
|
3139
|
+
}, {
|
|
3140
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3141
|
+
label: string;
|
|
3142
|
+
id?: string | undefined;
|
|
3143
|
+
required?: boolean | undefined;
|
|
3144
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3145
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3146
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
3147
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2984
3148
|
}, {
|
|
2985
3149
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
2986
3150
|
label: z.ZodString;
|
|
@@ -3004,6 +3168,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3004
3168
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3005
3169
|
version: z.ZodNumber;
|
|
3006
3170
|
isActive: z.ZodBoolean;
|
|
3171
|
+
isUserForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3172
|
+
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3173
|
+
sortingOrder: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3007
3174
|
}, "strip", z.ZodTypeAny, {
|
|
3008
3175
|
id: string;
|
|
3009
3176
|
createdAt: number;
|
|
@@ -3080,6 +3247,11 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3080
3247
|
label: string;
|
|
3081
3248
|
id?: string | undefined;
|
|
3082
3249
|
required?: boolean | undefined;
|
|
3250
|
+
} | {
|
|
3251
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3252
|
+
label: string;
|
|
3253
|
+
id?: string | undefined;
|
|
3254
|
+
required?: boolean | undefined;
|
|
3083
3255
|
} | {
|
|
3084
3256
|
type: DocumentElementType.FILE_UPLOAD;
|
|
3085
3257
|
label: string;
|
|
@@ -3088,6 +3260,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3088
3260
|
allowedFileTypes?: string[] | undefined;
|
|
3089
3261
|
maxFileSizeMB?: number | undefined;
|
|
3090
3262
|
})[];
|
|
3263
|
+
isUserForm: boolean;
|
|
3264
|
+
isRequired: boolean;
|
|
3265
|
+
sortingOrder: number;
|
|
3091
3266
|
createdBy: string;
|
|
3092
3267
|
version: number;
|
|
3093
3268
|
description?: string | undefined;
|
|
@@ -3168,6 +3343,11 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3168
3343
|
label: string;
|
|
3169
3344
|
id?: string | undefined;
|
|
3170
3345
|
required?: boolean | undefined;
|
|
3346
|
+
} | {
|
|
3347
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3348
|
+
label: string;
|
|
3349
|
+
id?: string | undefined;
|
|
3350
|
+
required?: boolean | undefined;
|
|
3171
3351
|
} | {
|
|
3172
3352
|
type: DocumentElementType.FILE_UPLOAD;
|
|
3173
3353
|
label: string;
|
|
@@ -3180,6 +3360,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3180
3360
|
version: number;
|
|
3181
3361
|
description?: string | undefined;
|
|
3182
3362
|
tags?: string[] | undefined;
|
|
3363
|
+
isUserForm?: boolean | undefined;
|
|
3364
|
+
isRequired?: boolean | undefined;
|
|
3365
|
+
sortingOrder?: number | undefined;
|
|
3183
3366
|
}>, "many">;
|
|
3184
3367
|
benefits: z.ZodArray<z.ZodNativeEnum<typeof TreatmentBenefit>, "many">;
|
|
3185
3368
|
certificationRequirement: z.ZodObject<{
|
|
@@ -3303,6 +3486,11 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3303
3486
|
label: string;
|
|
3304
3487
|
id?: string | undefined;
|
|
3305
3488
|
required?: boolean | undefined;
|
|
3489
|
+
} | {
|
|
3490
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3491
|
+
label: string;
|
|
3492
|
+
id?: string | undefined;
|
|
3493
|
+
required?: boolean | undefined;
|
|
3306
3494
|
} | {
|
|
3307
3495
|
type: DocumentElementType.FILE_UPLOAD;
|
|
3308
3496
|
label: string;
|
|
@@ -3311,6 +3499,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3311
3499
|
allowedFileTypes?: string[] | undefined;
|
|
3312
3500
|
maxFileSizeMB?: number | undefined;
|
|
3313
3501
|
})[];
|
|
3502
|
+
isUserForm: boolean;
|
|
3503
|
+
isRequired: boolean;
|
|
3504
|
+
sortingOrder: number;
|
|
3314
3505
|
createdBy: string;
|
|
3315
3506
|
version: number;
|
|
3316
3507
|
description?: string | undefined;
|
|
@@ -3406,6 +3597,11 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3406
3597
|
label: string;
|
|
3407
3598
|
id?: string | undefined;
|
|
3408
3599
|
required?: boolean | undefined;
|
|
3600
|
+
} | {
|
|
3601
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3602
|
+
label: string;
|
|
3603
|
+
id?: string | undefined;
|
|
3604
|
+
required?: boolean | undefined;
|
|
3409
3605
|
} | {
|
|
3410
3606
|
type: DocumentElementType.FILE_UPLOAD;
|
|
3411
3607
|
label: string;
|
|
@@ -3418,6 +3614,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3418
3614
|
version: number;
|
|
3419
3615
|
description?: string | undefined;
|
|
3420
3616
|
tags?: string[] | undefined;
|
|
3617
|
+
isUserForm?: boolean | undefined;
|
|
3618
|
+
isRequired?: boolean | undefined;
|
|
3619
|
+
sortingOrder?: number | undefined;
|
|
3421
3620
|
}[];
|
|
3422
3621
|
benefits: TreatmentBenefit[];
|
|
3423
3622
|
certificationRequirement: {
|
|
@@ -3915,6 +4114,23 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
3915
4114
|
id: z.ZodOptional<z.ZodString>;
|
|
3916
4115
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
3917
4116
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4117
|
+
}, {
|
|
4118
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
4119
|
+
label: z.ZodString;
|
|
4120
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4121
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4122
|
+
label: string;
|
|
4123
|
+
id?: string | undefined;
|
|
4124
|
+
required?: boolean | undefined;
|
|
4125
|
+
}, {
|
|
4126
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4127
|
+
label: string;
|
|
4128
|
+
id?: string | undefined;
|
|
4129
|
+
required?: boolean | undefined;
|
|
4130
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
4131
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4132
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
4133
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3918
4134
|
}, {
|
|
3919
4135
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
3920
4136
|
label: z.ZodString;
|
|
@@ -3938,6 +4154,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
3938
4154
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3939
4155
|
version: z.ZodNumber;
|
|
3940
4156
|
isActive: z.ZodBoolean;
|
|
4157
|
+
isUserForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4158
|
+
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4159
|
+
sortingOrder: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3941
4160
|
}, "strip", z.ZodTypeAny, {
|
|
3942
4161
|
id: string;
|
|
3943
4162
|
createdAt: number;
|
|
@@ -4014,6 +4233,11 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4014
4233
|
label: string;
|
|
4015
4234
|
id?: string | undefined;
|
|
4016
4235
|
required?: boolean | undefined;
|
|
4236
|
+
} | {
|
|
4237
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4238
|
+
label: string;
|
|
4239
|
+
id?: string | undefined;
|
|
4240
|
+
required?: boolean | undefined;
|
|
4017
4241
|
} | {
|
|
4018
4242
|
type: DocumentElementType.FILE_UPLOAD;
|
|
4019
4243
|
label: string;
|
|
@@ -4022,6 +4246,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4022
4246
|
allowedFileTypes?: string[] | undefined;
|
|
4023
4247
|
maxFileSizeMB?: number | undefined;
|
|
4024
4248
|
})[];
|
|
4249
|
+
isUserForm: boolean;
|
|
4250
|
+
isRequired: boolean;
|
|
4251
|
+
sortingOrder: number;
|
|
4025
4252
|
createdBy: string;
|
|
4026
4253
|
version: number;
|
|
4027
4254
|
description?: string | undefined;
|
|
@@ -4102,6 +4329,11 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4102
4329
|
label: string;
|
|
4103
4330
|
id?: string | undefined;
|
|
4104
4331
|
required?: boolean | undefined;
|
|
4332
|
+
} | {
|
|
4333
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4334
|
+
label: string;
|
|
4335
|
+
id?: string | undefined;
|
|
4336
|
+
required?: boolean | undefined;
|
|
4105
4337
|
} | {
|
|
4106
4338
|
type: DocumentElementType.FILE_UPLOAD;
|
|
4107
4339
|
label: string;
|
|
@@ -4114,6 +4346,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4114
4346
|
version: number;
|
|
4115
4347
|
description?: string | undefined;
|
|
4116
4348
|
tags?: string[] | undefined;
|
|
4349
|
+
isUserForm?: boolean | undefined;
|
|
4350
|
+
isRequired?: boolean | undefined;
|
|
4351
|
+
sortingOrder?: number | undefined;
|
|
4117
4352
|
}>, "many">>;
|
|
4118
4353
|
benefits: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof TreatmentBenefit>, "many">>;
|
|
4119
4354
|
certificationRequirement: z.ZodOptional<z.ZodObject<{
|
|
@@ -4239,6 +4474,11 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4239
4474
|
label: string;
|
|
4240
4475
|
id?: string | undefined;
|
|
4241
4476
|
required?: boolean | undefined;
|
|
4477
|
+
} | {
|
|
4478
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4479
|
+
label: string;
|
|
4480
|
+
id?: string | undefined;
|
|
4481
|
+
required?: boolean | undefined;
|
|
4242
4482
|
} | {
|
|
4243
4483
|
type: DocumentElementType.FILE_UPLOAD;
|
|
4244
4484
|
label: string;
|
|
@@ -4247,6 +4487,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4247
4487
|
allowedFileTypes?: string[] | undefined;
|
|
4248
4488
|
maxFileSizeMB?: number | undefined;
|
|
4249
4489
|
})[];
|
|
4490
|
+
isUserForm: boolean;
|
|
4491
|
+
isRequired: boolean;
|
|
4492
|
+
sortingOrder: number;
|
|
4250
4493
|
createdBy: string;
|
|
4251
4494
|
version: number;
|
|
4252
4495
|
description?: string | undefined;
|
|
@@ -4369,6 +4612,11 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4369
4612
|
label: string;
|
|
4370
4613
|
id?: string | undefined;
|
|
4371
4614
|
required?: boolean | undefined;
|
|
4615
|
+
} | {
|
|
4616
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4617
|
+
label: string;
|
|
4618
|
+
id?: string | undefined;
|
|
4619
|
+
required?: boolean | undefined;
|
|
4372
4620
|
} | {
|
|
4373
4621
|
type: DocumentElementType.FILE_UPLOAD;
|
|
4374
4622
|
label: string;
|
|
@@ -4381,6 +4629,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4381
4629
|
version: number;
|
|
4382
4630
|
description?: string | undefined;
|
|
4383
4631
|
tags?: string[] | undefined;
|
|
4632
|
+
isUserForm?: boolean | undefined;
|
|
4633
|
+
isRequired?: boolean | undefined;
|
|
4634
|
+
sortingOrder?: number | undefined;
|
|
4384
4635
|
}[] | undefined;
|
|
4385
4636
|
benefits?: TreatmentBenefit[] | undefined;
|
|
4386
4637
|
certificationRequirement?: {
|