@blackcode_sa/metaestetics-api 1.6.3 → 1.6.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.
- package/dist/admin/index.d.mts +439 -25
- package/dist/admin/index.d.ts +439 -25
- package/dist/admin/index.js +36107 -2493
- package/dist/admin/index.mjs +36093 -2461
- package/dist/backoffice/index.d.mts +254 -1
- package/dist/backoffice/index.d.ts +254 -1
- package/dist/backoffice/index.js +86 -12
- package/dist/backoffice/index.mjs +86 -13
- package/dist/index.d.mts +1434 -621
- package/dist/index.d.ts +1434 -621
- package/dist/index.js +1381 -970
- package/dist/index.mjs +1433 -1016
- package/package.json +1 -1
- package/src/admin/aggregation/appointment/appointment.aggregation.service.ts +321 -0
- package/src/admin/booking/booking.admin.ts +376 -3
- 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/backoffice/types/product.types.ts +2 -0
- package/src/index.ts +16 -1
- package/src/services/appointment/appointment.service.ts +386 -250
- 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/patientRequirements.service.ts +285 -0
- package/src/services/procedure/procedure.service.ts +1 -0
- package/src/types/appointment/index.ts +136 -11
- 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/patient-requirements.ts +81 -0
- package/src/types/procedure/index.ts +7 -0
- package/src/validations/appointment.schema.ts +298 -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
- package/src/validations/procedure.schema.ts +3 -0
|
@@ -96,7 +96,9 @@ interface Product {
|
|
|
96
96
|
id?: string;
|
|
97
97
|
name: string;
|
|
98
98
|
brandId: string;
|
|
99
|
+
brandName: string;
|
|
99
100
|
technologyId: string;
|
|
101
|
+
technologyName: string;
|
|
100
102
|
createdAt: Date;
|
|
101
103
|
updatedAt: Date;
|
|
102
104
|
isActive: boolean;
|
|
@@ -349,6 +351,7 @@ declare enum DocumentElementType {
|
|
|
349
351
|
TEXT_INPUT = "text_input",
|
|
350
352
|
DATE_PICKER = "date_picker",
|
|
351
353
|
SIGNATURE = "signature",
|
|
354
|
+
DITIGAL_SIGNATURE = "digital_signature",
|
|
352
355
|
FILE_UPLOAD = "file_upload"
|
|
353
356
|
}
|
|
354
357
|
/**
|
|
@@ -378,7 +381,12 @@ declare enum DynamicVariable {
|
|
|
378
381
|
CLINIC_NAME = "[CLINIC_NAME]",
|
|
379
382
|
PATIENT_BIRTHDAY = "[PATIENT_BIRTHDAY]",
|
|
380
383
|
APPOINTMENT_DATE = "[APPOINTMENT_DATE]",
|
|
381
|
-
CURRENT_DATE = "[CURRENT_DATE]"
|
|
384
|
+
CURRENT_DATE = "[CURRENT_DATE]",
|
|
385
|
+
PROCEDURE_NAME = "[PROCEDURE_NAME]",
|
|
386
|
+
PROCEDURE_DESCRIPTION = "[PROCEDURE_DESCRIPTION]",
|
|
387
|
+
PROCEDURE_COST = "[PROCEDURE_COST]",
|
|
388
|
+
PROCEDURE_DURATION = "[PROCEDURE_DURATION]",
|
|
389
|
+
PROCEDURE_RISK = "[PROCEDURE_RISK]"
|
|
382
390
|
}
|
|
383
391
|
/**
|
|
384
392
|
* Base interface for all document elements
|
|
@@ -507,6 +515,9 @@ interface DocumentTemplate {
|
|
|
507
515
|
createdBy: string;
|
|
508
516
|
elements: DocumentElement[];
|
|
509
517
|
tags?: string[];
|
|
518
|
+
isUserForm?: boolean;
|
|
519
|
+
isRequired?: boolean;
|
|
520
|
+
sortingOrder?: number;
|
|
510
521
|
version: number;
|
|
511
522
|
isActive: boolean;
|
|
512
523
|
}
|
|
@@ -518,6 +529,9 @@ interface CreateDocumentTemplateData {
|
|
|
518
529
|
description?: string;
|
|
519
530
|
elements: Omit<DocumentElement, "id">[];
|
|
520
531
|
tags?: string[];
|
|
532
|
+
isUserForm?: boolean;
|
|
533
|
+
isRequired?: boolean;
|
|
534
|
+
sortingOrder?: number;
|
|
521
535
|
}
|
|
522
536
|
/**
|
|
523
537
|
* Interface for updating an existing document template
|
|
@@ -528,6 +542,9 @@ interface UpdateDocumentTemplateData {
|
|
|
528
542
|
elements?: Omit<DocumentElement, "id">[];
|
|
529
543
|
tags?: string[];
|
|
530
544
|
isActive?: boolean;
|
|
545
|
+
isUserForm?: boolean;
|
|
546
|
+
isRequired?: boolean;
|
|
547
|
+
sortingOrder?: number;
|
|
531
548
|
}
|
|
532
549
|
|
|
533
550
|
/**
|
|
@@ -913,6 +930,23 @@ declare const documentElementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
913
930
|
id: z.ZodOptional<z.ZodString>;
|
|
914
931
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
915
932
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
933
|
+
}, {
|
|
934
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
935
|
+
label: z.ZodString;
|
|
936
|
+
}>, "strip", z.ZodTypeAny, {
|
|
937
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
938
|
+
label: string;
|
|
939
|
+
id?: string | undefined;
|
|
940
|
+
required?: boolean | undefined;
|
|
941
|
+
}, {
|
|
942
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
943
|
+
label: string;
|
|
944
|
+
id?: string | undefined;
|
|
945
|
+
required?: boolean | undefined;
|
|
946
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
947
|
+
id: z.ZodOptional<z.ZodString>;
|
|
948
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
949
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
916
950
|
}, {
|
|
917
951
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
918
952
|
label: z.ZodString;
|
|
@@ -1147,6 +1181,21 @@ declare const documentElementWithoutIdSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1147
1181
|
id: z.ZodOptional<z.ZodString>;
|
|
1148
1182
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1149
1183
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1184
|
+
}, {
|
|
1185
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
1186
|
+
label: z.ZodString;
|
|
1187
|
+
}>, "id">, "strip", z.ZodTypeAny, {
|
|
1188
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1189
|
+
label: string;
|
|
1190
|
+
required?: boolean | undefined;
|
|
1191
|
+
}, {
|
|
1192
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1193
|
+
label: string;
|
|
1194
|
+
required?: boolean | undefined;
|
|
1195
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1196
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1198
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1150
1199
|
}, {
|
|
1151
1200
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
1152
1201
|
label: z.ZodString;
|
|
@@ -1382,6 +1431,21 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1382
1431
|
id: z.ZodOptional<z.ZodString>;
|
|
1383
1432
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1384
1433
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1434
|
+
}, {
|
|
1435
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
1436
|
+
label: z.ZodString;
|
|
1437
|
+
}>, "id">, "strip", z.ZodTypeAny, {
|
|
1438
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1439
|
+
label: string;
|
|
1440
|
+
required?: boolean | undefined;
|
|
1441
|
+
}, {
|
|
1442
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1443
|
+
label: string;
|
|
1444
|
+
required?: boolean | undefined;
|
|
1445
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1446
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1447
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1448
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1385
1449
|
}, {
|
|
1386
1450
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
1387
1451
|
label: z.ZodString;
|
|
@@ -1401,6 +1465,9 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1401
1465
|
maxFileSizeMB?: number | undefined;
|
|
1402
1466
|
}>]>, "many">;
|
|
1403
1467
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1468
|
+
isUserForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1469
|
+
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1470
|
+
sortingOrder: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1404
1471
|
}, "strip", z.ZodTypeAny, {
|
|
1405
1472
|
title: string;
|
|
1406
1473
|
elements: ({
|
|
@@ -1462,6 +1529,10 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1462
1529
|
type: DocumentElementType.SIGNATURE;
|
|
1463
1530
|
label: string;
|
|
1464
1531
|
required?: boolean | undefined;
|
|
1532
|
+
} | {
|
|
1533
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1534
|
+
label: string;
|
|
1535
|
+
required?: boolean | undefined;
|
|
1465
1536
|
} | {
|
|
1466
1537
|
type: DocumentElementType.FILE_UPLOAD;
|
|
1467
1538
|
label: string;
|
|
@@ -1469,6 +1540,9 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1469
1540
|
allowedFileTypes?: string[] | undefined;
|
|
1470
1541
|
maxFileSizeMB?: number | undefined;
|
|
1471
1542
|
})[];
|
|
1543
|
+
isUserForm: boolean;
|
|
1544
|
+
isRequired: boolean;
|
|
1545
|
+
sortingOrder: number;
|
|
1472
1546
|
description?: string | undefined;
|
|
1473
1547
|
tags?: string[] | undefined;
|
|
1474
1548
|
}, {
|
|
@@ -1532,6 +1606,10 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1532
1606
|
type: DocumentElementType.SIGNATURE;
|
|
1533
1607
|
label: string;
|
|
1534
1608
|
required?: boolean | undefined;
|
|
1609
|
+
} | {
|
|
1610
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1611
|
+
label: string;
|
|
1612
|
+
required?: boolean | undefined;
|
|
1535
1613
|
} | {
|
|
1536
1614
|
type: DocumentElementType.FILE_UPLOAD;
|
|
1537
1615
|
label: string;
|
|
@@ -1541,6 +1619,9 @@ declare const createDocumentTemplateSchema: z.ZodObject<{
|
|
|
1541
1619
|
})[];
|
|
1542
1620
|
description?: string | undefined;
|
|
1543
1621
|
tags?: string[] | undefined;
|
|
1622
|
+
isUserForm?: boolean | undefined;
|
|
1623
|
+
isRequired?: boolean | undefined;
|
|
1624
|
+
sortingOrder?: number | undefined;
|
|
1544
1625
|
}>;
|
|
1545
1626
|
declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
1546
1627
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1759,6 +1840,21 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1759
1840
|
id: z.ZodOptional<z.ZodString>;
|
|
1760
1841
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1761
1842
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1843
|
+
}, {
|
|
1844
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
1845
|
+
label: z.ZodString;
|
|
1846
|
+
}>, "id">, "strip", z.ZodTypeAny, {
|
|
1847
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1848
|
+
label: string;
|
|
1849
|
+
required?: boolean | undefined;
|
|
1850
|
+
}, {
|
|
1851
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1852
|
+
label: string;
|
|
1853
|
+
required?: boolean | undefined;
|
|
1854
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1855
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1856
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
1857
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1762
1858
|
}, {
|
|
1763
1859
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
1764
1860
|
label: z.ZodString;
|
|
@@ -1779,6 +1875,9 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1779
1875
|
}>]>, "many">>;
|
|
1780
1876
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1781
1877
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
1878
|
+
isUserForm: z.ZodOptional<z.ZodBoolean>;
|
|
1879
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1880
|
+
sortingOrder: z.ZodOptional<z.ZodNumber>;
|
|
1782
1881
|
}, "strip", z.ZodTypeAny, {
|
|
1783
1882
|
isActive?: boolean | undefined;
|
|
1784
1883
|
description?: string | undefined;
|
|
@@ -1842,6 +1941,10 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1842
1941
|
type: DocumentElementType.SIGNATURE;
|
|
1843
1942
|
label: string;
|
|
1844
1943
|
required?: boolean | undefined;
|
|
1944
|
+
} | {
|
|
1945
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
1946
|
+
label: string;
|
|
1947
|
+
required?: boolean | undefined;
|
|
1845
1948
|
} | {
|
|
1846
1949
|
type: DocumentElementType.FILE_UPLOAD;
|
|
1847
1950
|
label: string;
|
|
@@ -1850,6 +1953,9 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1850
1953
|
maxFileSizeMB?: number | undefined;
|
|
1851
1954
|
})[] | undefined;
|
|
1852
1955
|
tags?: string[] | undefined;
|
|
1956
|
+
isUserForm?: boolean | undefined;
|
|
1957
|
+
isRequired?: boolean | undefined;
|
|
1958
|
+
sortingOrder?: number | undefined;
|
|
1853
1959
|
}, {
|
|
1854
1960
|
isActive?: boolean | undefined;
|
|
1855
1961
|
description?: string | undefined;
|
|
@@ -1913,6 +2019,10 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1913
2019
|
type: DocumentElementType.SIGNATURE;
|
|
1914
2020
|
label: string;
|
|
1915
2021
|
required?: boolean | undefined;
|
|
2022
|
+
} | {
|
|
2023
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2024
|
+
label: string;
|
|
2025
|
+
required?: boolean | undefined;
|
|
1916
2026
|
} | {
|
|
1917
2027
|
type: DocumentElementType.FILE_UPLOAD;
|
|
1918
2028
|
label: string;
|
|
@@ -1921,6 +2031,9 @@ declare const updateDocumentTemplateSchema: z.ZodObject<{
|
|
|
1921
2031
|
maxFileSizeMB?: number | undefined;
|
|
1922
2032
|
})[] | undefined;
|
|
1923
2033
|
tags?: string[] | undefined;
|
|
2034
|
+
isUserForm?: boolean | undefined;
|
|
2035
|
+
isRequired?: boolean | undefined;
|
|
2036
|
+
sortingOrder?: number | undefined;
|
|
1924
2037
|
}>;
|
|
1925
2038
|
declare const documentTemplateSchema: z.ZodObject<{
|
|
1926
2039
|
id: z.ZodString;
|
|
@@ -2165,6 +2278,23 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2165
2278
|
id: z.ZodOptional<z.ZodString>;
|
|
2166
2279
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
2167
2280
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2281
|
+
}, {
|
|
2282
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
2283
|
+
label: z.ZodString;
|
|
2284
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2285
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2286
|
+
label: string;
|
|
2287
|
+
id?: string | undefined;
|
|
2288
|
+
required?: boolean | undefined;
|
|
2289
|
+
}, {
|
|
2290
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2291
|
+
label: string;
|
|
2292
|
+
id?: string | undefined;
|
|
2293
|
+
required?: boolean | undefined;
|
|
2294
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2295
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2296
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
2297
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2168
2298
|
}, {
|
|
2169
2299
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
2170
2300
|
label: z.ZodString;
|
|
@@ -2188,6 +2318,9 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2188
2318
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2189
2319
|
version: z.ZodNumber;
|
|
2190
2320
|
isActive: z.ZodBoolean;
|
|
2321
|
+
isUserForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2322
|
+
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2323
|
+
sortingOrder: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2191
2324
|
}, "strip", z.ZodTypeAny, {
|
|
2192
2325
|
id: string;
|
|
2193
2326
|
createdAt: number;
|
|
@@ -2264,6 +2397,11 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2264
2397
|
label: string;
|
|
2265
2398
|
id?: string | undefined;
|
|
2266
2399
|
required?: boolean | undefined;
|
|
2400
|
+
} | {
|
|
2401
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2402
|
+
label: string;
|
|
2403
|
+
id?: string | undefined;
|
|
2404
|
+
required?: boolean | undefined;
|
|
2267
2405
|
} | {
|
|
2268
2406
|
type: DocumentElementType.FILE_UPLOAD;
|
|
2269
2407
|
label: string;
|
|
@@ -2272,6 +2410,9 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2272
2410
|
allowedFileTypes?: string[] | undefined;
|
|
2273
2411
|
maxFileSizeMB?: number | undefined;
|
|
2274
2412
|
})[];
|
|
2413
|
+
isUserForm: boolean;
|
|
2414
|
+
isRequired: boolean;
|
|
2415
|
+
sortingOrder: number;
|
|
2275
2416
|
createdBy: string;
|
|
2276
2417
|
version: number;
|
|
2277
2418
|
description?: string | undefined;
|
|
@@ -2352,6 +2493,11 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2352
2493
|
label: string;
|
|
2353
2494
|
id?: string | undefined;
|
|
2354
2495
|
required?: boolean | undefined;
|
|
2496
|
+
} | {
|
|
2497
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
2498
|
+
label: string;
|
|
2499
|
+
id?: string | undefined;
|
|
2500
|
+
required?: boolean | undefined;
|
|
2355
2501
|
} | {
|
|
2356
2502
|
type: DocumentElementType.FILE_UPLOAD;
|
|
2357
2503
|
label: string;
|
|
@@ -2364,6 +2510,9 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
2364
2510
|
version: number;
|
|
2365
2511
|
description?: string | undefined;
|
|
2366
2512
|
tags?: string[] | undefined;
|
|
2513
|
+
isUserForm?: boolean | undefined;
|
|
2514
|
+
isRequired?: boolean | undefined;
|
|
2515
|
+
sortingOrder?: number | undefined;
|
|
2367
2516
|
}>;
|
|
2368
2517
|
|
|
2369
2518
|
/**
|
|
@@ -2981,6 +3130,23 @@ declare const technologySchema: z.ZodObject<{
|
|
|
2981
3130
|
id: z.ZodOptional<z.ZodString>;
|
|
2982
3131
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
2983
3132
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
3133
|
+
}, {
|
|
3134
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
3135
|
+
label: z.ZodString;
|
|
3136
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3137
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3138
|
+
label: string;
|
|
3139
|
+
id?: string | undefined;
|
|
3140
|
+
required?: boolean | undefined;
|
|
3141
|
+
}, {
|
|
3142
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3143
|
+
label: string;
|
|
3144
|
+
id?: string | undefined;
|
|
3145
|
+
required?: boolean | undefined;
|
|
3146
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3147
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3148
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
3149
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2984
3150
|
}, {
|
|
2985
3151
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
2986
3152
|
label: z.ZodString;
|
|
@@ -3004,6 +3170,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3004
3170
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3005
3171
|
version: z.ZodNumber;
|
|
3006
3172
|
isActive: z.ZodBoolean;
|
|
3173
|
+
isUserForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3174
|
+
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3175
|
+
sortingOrder: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3007
3176
|
}, "strip", z.ZodTypeAny, {
|
|
3008
3177
|
id: string;
|
|
3009
3178
|
createdAt: number;
|
|
@@ -3080,6 +3249,11 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3080
3249
|
label: string;
|
|
3081
3250
|
id?: string | undefined;
|
|
3082
3251
|
required?: boolean | undefined;
|
|
3252
|
+
} | {
|
|
3253
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3254
|
+
label: string;
|
|
3255
|
+
id?: string | undefined;
|
|
3256
|
+
required?: boolean | undefined;
|
|
3083
3257
|
} | {
|
|
3084
3258
|
type: DocumentElementType.FILE_UPLOAD;
|
|
3085
3259
|
label: string;
|
|
@@ -3088,6 +3262,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3088
3262
|
allowedFileTypes?: string[] | undefined;
|
|
3089
3263
|
maxFileSizeMB?: number | undefined;
|
|
3090
3264
|
})[];
|
|
3265
|
+
isUserForm: boolean;
|
|
3266
|
+
isRequired: boolean;
|
|
3267
|
+
sortingOrder: number;
|
|
3091
3268
|
createdBy: string;
|
|
3092
3269
|
version: number;
|
|
3093
3270
|
description?: string | undefined;
|
|
@@ -3168,6 +3345,11 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3168
3345
|
label: string;
|
|
3169
3346
|
id?: string | undefined;
|
|
3170
3347
|
required?: boolean | undefined;
|
|
3348
|
+
} | {
|
|
3349
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3350
|
+
label: string;
|
|
3351
|
+
id?: string | undefined;
|
|
3352
|
+
required?: boolean | undefined;
|
|
3171
3353
|
} | {
|
|
3172
3354
|
type: DocumentElementType.FILE_UPLOAD;
|
|
3173
3355
|
label: string;
|
|
@@ -3180,6 +3362,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3180
3362
|
version: number;
|
|
3181
3363
|
description?: string | undefined;
|
|
3182
3364
|
tags?: string[] | undefined;
|
|
3365
|
+
isUserForm?: boolean | undefined;
|
|
3366
|
+
isRequired?: boolean | undefined;
|
|
3367
|
+
sortingOrder?: number | undefined;
|
|
3183
3368
|
}>, "many">;
|
|
3184
3369
|
benefits: z.ZodArray<z.ZodNativeEnum<typeof TreatmentBenefit>, "many">;
|
|
3185
3370
|
certificationRequirement: z.ZodObject<{
|
|
@@ -3303,6 +3488,11 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3303
3488
|
label: string;
|
|
3304
3489
|
id?: string | undefined;
|
|
3305
3490
|
required?: boolean | undefined;
|
|
3491
|
+
} | {
|
|
3492
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3493
|
+
label: string;
|
|
3494
|
+
id?: string | undefined;
|
|
3495
|
+
required?: boolean | undefined;
|
|
3306
3496
|
} | {
|
|
3307
3497
|
type: DocumentElementType.FILE_UPLOAD;
|
|
3308
3498
|
label: string;
|
|
@@ -3311,6 +3501,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3311
3501
|
allowedFileTypes?: string[] | undefined;
|
|
3312
3502
|
maxFileSizeMB?: number | undefined;
|
|
3313
3503
|
})[];
|
|
3504
|
+
isUserForm: boolean;
|
|
3505
|
+
isRequired: boolean;
|
|
3506
|
+
sortingOrder: number;
|
|
3314
3507
|
createdBy: string;
|
|
3315
3508
|
version: number;
|
|
3316
3509
|
description?: string | undefined;
|
|
@@ -3406,6 +3599,11 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3406
3599
|
label: string;
|
|
3407
3600
|
id?: string | undefined;
|
|
3408
3601
|
required?: boolean | undefined;
|
|
3602
|
+
} | {
|
|
3603
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
3604
|
+
label: string;
|
|
3605
|
+
id?: string | undefined;
|
|
3606
|
+
required?: boolean | undefined;
|
|
3409
3607
|
} | {
|
|
3410
3608
|
type: DocumentElementType.FILE_UPLOAD;
|
|
3411
3609
|
label: string;
|
|
@@ -3418,6 +3616,9 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3418
3616
|
version: number;
|
|
3419
3617
|
description?: string | undefined;
|
|
3420
3618
|
tags?: string[] | undefined;
|
|
3619
|
+
isUserForm?: boolean | undefined;
|
|
3620
|
+
isRequired?: boolean | undefined;
|
|
3621
|
+
sortingOrder?: number | undefined;
|
|
3421
3622
|
}[];
|
|
3422
3623
|
benefits: TreatmentBenefit[];
|
|
3423
3624
|
certificationRequirement: {
|
|
@@ -3915,6 +4116,23 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
3915
4116
|
id: z.ZodOptional<z.ZodString>;
|
|
3916
4117
|
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
3917
4118
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4119
|
+
}, {
|
|
4120
|
+
type: z.ZodLiteral<DocumentElementType.DITIGAL_SIGNATURE>;
|
|
4121
|
+
label: z.ZodString;
|
|
4122
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4123
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4124
|
+
label: string;
|
|
4125
|
+
id?: string | undefined;
|
|
4126
|
+
required?: boolean | undefined;
|
|
4127
|
+
}, {
|
|
4128
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4129
|
+
label: string;
|
|
4130
|
+
id?: string | undefined;
|
|
4131
|
+
required?: boolean | undefined;
|
|
4132
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
4133
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4134
|
+
type: z.ZodNativeEnum<typeof DocumentElementType>;
|
|
4135
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3918
4136
|
}, {
|
|
3919
4137
|
type: z.ZodLiteral<DocumentElementType.FILE_UPLOAD>;
|
|
3920
4138
|
label: z.ZodString;
|
|
@@ -3938,6 +4156,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
3938
4156
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3939
4157
|
version: z.ZodNumber;
|
|
3940
4158
|
isActive: z.ZodBoolean;
|
|
4159
|
+
isUserForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4160
|
+
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4161
|
+
sortingOrder: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3941
4162
|
}, "strip", z.ZodTypeAny, {
|
|
3942
4163
|
id: string;
|
|
3943
4164
|
createdAt: number;
|
|
@@ -4014,6 +4235,11 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4014
4235
|
label: string;
|
|
4015
4236
|
id?: string | undefined;
|
|
4016
4237
|
required?: boolean | undefined;
|
|
4238
|
+
} | {
|
|
4239
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4240
|
+
label: string;
|
|
4241
|
+
id?: string | undefined;
|
|
4242
|
+
required?: boolean | undefined;
|
|
4017
4243
|
} | {
|
|
4018
4244
|
type: DocumentElementType.FILE_UPLOAD;
|
|
4019
4245
|
label: string;
|
|
@@ -4022,6 +4248,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4022
4248
|
allowedFileTypes?: string[] | undefined;
|
|
4023
4249
|
maxFileSizeMB?: number | undefined;
|
|
4024
4250
|
})[];
|
|
4251
|
+
isUserForm: boolean;
|
|
4252
|
+
isRequired: boolean;
|
|
4253
|
+
sortingOrder: number;
|
|
4025
4254
|
createdBy: string;
|
|
4026
4255
|
version: number;
|
|
4027
4256
|
description?: string | undefined;
|
|
@@ -4102,6 +4331,11 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4102
4331
|
label: string;
|
|
4103
4332
|
id?: string | undefined;
|
|
4104
4333
|
required?: boolean | undefined;
|
|
4334
|
+
} | {
|
|
4335
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4336
|
+
label: string;
|
|
4337
|
+
id?: string | undefined;
|
|
4338
|
+
required?: boolean | undefined;
|
|
4105
4339
|
} | {
|
|
4106
4340
|
type: DocumentElementType.FILE_UPLOAD;
|
|
4107
4341
|
label: string;
|
|
@@ -4114,6 +4348,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4114
4348
|
version: number;
|
|
4115
4349
|
description?: string | undefined;
|
|
4116
4350
|
tags?: string[] | undefined;
|
|
4351
|
+
isUserForm?: boolean | undefined;
|
|
4352
|
+
isRequired?: boolean | undefined;
|
|
4353
|
+
sortingOrder?: number | undefined;
|
|
4117
4354
|
}>, "many">>;
|
|
4118
4355
|
benefits: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof TreatmentBenefit>, "many">>;
|
|
4119
4356
|
certificationRequirement: z.ZodOptional<z.ZodObject<{
|
|
@@ -4239,6 +4476,11 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4239
4476
|
label: string;
|
|
4240
4477
|
id?: string | undefined;
|
|
4241
4478
|
required?: boolean | undefined;
|
|
4479
|
+
} | {
|
|
4480
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4481
|
+
label: string;
|
|
4482
|
+
id?: string | undefined;
|
|
4483
|
+
required?: boolean | undefined;
|
|
4242
4484
|
} | {
|
|
4243
4485
|
type: DocumentElementType.FILE_UPLOAD;
|
|
4244
4486
|
label: string;
|
|
@@ -4247,6 +4489,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4247
4489
|
allowedFileTypes?: string[] | undefined;
|
|
4248
4490
|
maxFileSizeMB?: number | undefined;
|
|
4249
4491
|
})[];
|
|
4492
|
+
isUserForm: boolean;
|
|
4493
|
+
isRequired: boolean;
|
|
4494
|
+
sortingOrder: number;
|
|
4250
4495
|
createdBy: string;
|
|
4251
4496
|
version: number;
|
|
4252
4497
|
description?: string | undefined;
|
|
@@ -4369,6 +4614,11 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4369
4614
|
label: string;
|
|
4370
4615
|
id?: string | undefined;
|
|
4371
4616
|
required?: boolean | undefined;
|
|
4617
|
+
} | {
|
|
4618
|
+
type: DocumentElementType.DITIGAL_SIGNATURE;
|
|
4619
|
+
label: string;
|
|
4620
|
+
id?: string | undefined;
|
|
4621
|
+
required?: boolean | undefined;
|
|
4372
4622
|
} | {
|
|
4373
4623
|
type: DocumentElementType.FILE_UPLOAD;
|
|
4374
4624
|
label: string;
|
|
@@ -4381,6 +4631,9 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4381
4631
|
version: number;
|
|
4382
4632
|
description?: string | undefined;
|
|
4383
4633
|
tags?: string[] | undefined;
|
|
4634
|
+
isUserForm?: boolean | undefined;
|
|
4635
|
+
isRequired?: boolean | undefined;
|
|
4636
|
+
sortingOrder?: number | undefined;
|
|
4384
4637
|
}[] | undefined;
|
|
4385
4638
|
benefits?: TreatmentBenefit[] | undefined;
|
|
4386
4639
|
certificationRequirement?: {
|