evo360-types 1.2.13 → 1.2.15
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,4 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const zProfessionalStatusSchema: z.ZodEnum<["active", "inactive", "draft"]>;
|
|
3
|
+
export declare const zProfessionalCouncilSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
acronym: z.ZodString;
|
|
6
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", "DF", "BR"]>>>>;
|
|
7
|
+
ref: z.ZodAny;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
acronym: string;
|
|
11
|
+
uf: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF" | "BR" | null;
|
|
12
|
+
ref?: any;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
acronym: string;
|
|
16
|
+
ref?: any;
|
|
17
|
+
uf?: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF" | "BR" | null | undefined;
|
|
18
|
+
}>;
|
|
2
19
|
export declare const zProfessionalSpecialtySchema: z.ZodObject<{
|
|
3
20
|
code: z.ZodString;
|
|
4
21
|
name: z.ZodString;
|
|
@@ -12,7 +29,6 @@ export declare const zProfessionalSpecialtySchema: z.ZodObject<{
|
|
|
12
29
|
name: string;
|
|
13
30
|
ref?: any;
|
|
14
31
|
}>;
|
|
15
|
-
export declare const zProfessionalStatusSchema: z.ZodEnum<["active", "inactive", "draft"]>;
|
|
16
32
|
export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
17
33
|
id: z.ZodString;
|
|
18
34
|
ref: z.ZodAny;
|
|
@@ -32,15 +48,26 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
32
48
|
}>, {
|
|
33
49
|
status: z.ZodDefault<z.ZodEnum<["active", "inactive", "draft"]>>;
|
|
34
50
|
professionalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35
|
-
title: z.ZodDefault<z.ZodOptional<z.
|
|
36
|
-
type: z.ZodDefault<z.ZodOptional<z.
|
|
51
|
+
title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
52
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
37
53
|
job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
54
|
+
councils: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
acronym: z.ZodString;
|
|
57
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", "DF", "BR"]>>>>;
|
|
58
|
+
ref: z.ZodAny;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
name: string;
|
|
61
|
+
acronym: string;
|
|
62
|
+
uf: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF" | "BR" | null;
|
|
63
|
+
ref?: any;
|
|
64
|
+
}, {
|
|
65
|
+
name: string;
|
|
66
|
+
acronym: string;
|
|
67
|
+
ref?: any;
|
|
68
|
+
uf?: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF" | "BR" | null | undefined;
|
|
69
|
+
}>, "many">>>;
|
|
70
|
+
specialties: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
44
71
|
code: z.ZodString;
|
|
45
72
|
name: z.ZodString;
|
|
46
73
|
ref: z.ZodAny;
|
|
@@ -52,7 +79,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
52
79
|
code: string;
|
|
53
80
|
name: string;
|
|
54
81
|
ref?: any;
|
|
55
|
-
}>, "many"
|
|
82
|
+
}>, "many">>>;
|
|
56
83
|
date_joining: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
57
84
|
department_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
85
|
departmentRef: z.ZodAny;
|
|
@@ -135,15 +162,26 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
135
162
|
}>, {
|
|
136
163
|
status: z.ZodDefault<z.ZodEnum<["active", "inactive", "draft"]>>;
|
|
137
164
|
professionalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
138
|
-
title: z.ZodDefault<z.ZodOptional<z.
|
|
139
|
-
type: z.ZodDefault<z.ZodOptional<z.
|
|
165
|
+
title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
166
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
140
167
|
job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
168
|
+
councils: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
169
|
+
name: z.ZodString;
|
|
170
|
+
acronym: z.ZodString;
|
|
171
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", "DF", "BR"]>>>>;
|
|
172
|
+
ref: z.ZodAny;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
name: string;
|
|
175
|
+
acronym: string;
|
|
176
|
+
uf: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF" | "BR" | null;
|
|
177
|
+
ref?: any;
|
|
178
|
+
}, {
|
|
179
|
+
name: string;
|
|
180
|
+
acronym: string;
|
|
181
|
+
ref?: any;
|
|
182
|
+
uf?: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF" | "BR" | null | undefined;
|
|
183
|
+
}>, "many">>>;
|
|
184
|
+
specialties: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
147
185
|
code: z.ZodString;
|
|
148
186
|
name: z.ZodString;
|
|
149
187
|
ref: z.ZodAny;
|
|
@@ -155,7 +193,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
155
193
|
code: string;
|
|
156
194
|
name: string;
|
|
157
195
|
ref?: any;
|
|
158
|
-
}>, "many"
|
|
196
|
+
}>, "many">>>;
|
|
159
197
|
date_joining: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
160
198
|
department_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
199
|
departmentRef: z.ZodAny;
|
|
@@ -238,15 +276,26 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
238
276
|
}>, {
|
|
239
277
|
status: z.ZodDefault<z.ZodEnum<["active", "inactive", "draft"]>>;
|
|
240
278
|
professionalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
241
|
-
title: z.ZodDefault<z.ZodOptional<z.
|
|
242
|
-
type: z.ZodDefault<z.ZodOptional<z.
|
|
279
|
+
title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
280
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
243
281
|
job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
282
|
+
councils: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
283
|
+
name: z.ZodString;
|
|
284
|
+
acronym: z.ZodString;
|
|
285
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", "DF", "BR"]>>>>;
|
|
286
|
+
ref: z.ZodAny;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
name: string;
|
|
289
|
+
acronym: string;
|
|
290
|
+
uf: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF" | "BR" | null;
|
|
291
|
+
ref?: any;
|
|
292
|
+
}, {
|
|
293
|
+
name: string;
|
|
294
|
+
acronym: string;
|
|
295
|
+
ref?: any;
|
|
296
|
+
uf?: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF" | "BR" | null | undefined;
|
|
297
|
+
}>, "many">>>;
|
|
298
|
+
specialties: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
250
299
|
code: z.ZodString;
|
|
251
300
|
name: z.ZodString;
|
|
252
301
|
ref: z.ZodAny;
|
|
@@ -258,7 +307,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
258
307
|
code: string;
|
|
259
308
|
name: string;
|
|
260
309
|
ref?: any;
|
|
261
|
-
}>, "many"
|
|
310
|
+
}>, "many">>>;
|
|
262
311
|
date_joining: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
263
312
|
department_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
264
313
|
departmentRef: z.ZodAny;
|
|
@@ -1,34 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zPatientSchema = exports.zPatientStatusSchema = exports.zProfessionalSchema = exports.
|
|
3
|
+
exports.zPatientSchema = exports.zPatientStatusSchema = exports.zProfessionalSchema = exports.zProfessionalSpecialtySchema = exports.zProfessionalCouncilSchema = exports.zProfessionalStatusSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../dic/zod-schemas");
|
|
6
6
|
const zod_schemas_2 = require("../../shared/zod-schemas");
|
|
7
7
|
const zod_schemas_3 = require("../../evo-people/zod-schemas");
|
|
8
8
|
// Define Zod schemas for IProfessionalSpecialty, IProfessional, and IPatient
|
|
9
|
-
exports.zProfessionalSpecialtySchema = zod_1.z.object({
|
|
10
|
-
code: zod_1.z.string().min(1).max(10),
|
|
11
|
-
name: zod_1.z.string().min(1).max(255),
|
|
12
|
-
ref: zod_1.z.any(),
|
|
13
|
-
});
|
|
14
9
|
exports.zProfessionalStatusSchema = zod_1.z.enum([
|
|
15
10
|
"active",
|
|
16
11
|
"inactive",
|
|
17
12
|
"draft",
|
|
18
13
|
]);
|
|
14
|
+
exports.zProfessionalCouncilSchema = zod_1.z.object({
|
|
15
|
+
name: zod_1.z.string().min(1).max(255),
|
|
16
|
+
acronym: zod_1.z.string().min(1).max(60),
|
|
17
|
+
uf: zod_1.z
|
|
18
|
+
.enum([
|
|
19
|
+
"AC",
|
|
20
|
+
"AL",
|
|
21
|
+
"AP",
|
|
22
|
+
"AM",
|
|
23
|
+
"BA",
|
|
24
|
+
"CE",
|
|
25
|
+
"ES",
|
|
26
|
+
"GO",
|
|
27
|
+
"MA",
|
|
28
|
+
"MT",
|
|
29
|
+
"MS",
|
|
30
|
+
"MG",
|
|
31
|
+
"PA",
|
|
32
|
+
"PB",
|
|
33
|
+
"PR",
|
|
34
|
+
"PE",
|
|
35
|
+
"PI",
|
|
36
|
+
"RJ",
|
|
37
|
+
"RN",
|
|
38
|
+
"RS",
|
|
39
|
+
"RO",
|
|
40
|
+
"RR",
|
|
41
|
+
"SC",
|
|
42
|
+
"SP",
|
|
43
|
+
"SE",
|
|
44
|
+
"TO",
|
|
45
|
+
"DF",
|
|
46
|
+
"BR", //nacional
|
|
47
|
+
])
|
|
48
|
+
.nullable()
|
|
49
|
+
.optional()
|
|
50
|
+
.default("SP"),
|
|
51
|
+
ref: zod_1.z.any(),
|
|
52
|
+
});
|
|
53
|
+
exports.zProfessionalSpecialtySchema = zod_1.z.object({
|
|
54
|
+
code: zod_1.z.string().min(1).max(10),
|
|
55
|
+
name: zod_1.z.string().min(1).max(255),
|
|
56
|
+
ref: zod_1.z.any(),
|
|
57
|
+
});
|
|
19
58
|
exports.zProfessionalSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSchema
|
|
20
59
|
.extend({
|
|
21
60
|
status: exports.zProfessionalStatusSchema.default("draft"),
|
|
22
61
|
professionalId: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
23
|
-
title: zod_1.z.string().max(255).
|
|
24
|
-
type: zod_1.z.string().max(255).
|
|
62
|
+
title: zod_1.z.string().max(255).optional().default(""),
|
|
63
|
+
type: zod_1.z.string().max(255).optional().default("doctor"),
|
|
25
64
|
job_title: zod_1.z.string().nullable().optional(),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
council_acronym: zod_1.z.string().max(60).nullable().optional().default(""),
|
|
29
|
-
council_state: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
30
|
-
councilRef: zod_1.z.any(),
|
|
31
|
-
specialties: zod_1.z.array(exports.zProfessionalSpecialtySchema).optional(),
|
|
65
|
+
councils: zod_1.z.array(exports.zProfessionalCouncilSchema).nullable().optional(),
|
|
66
|
+
specialties: zod_1.z.array(exports.zProfessionalSpecialtySchema).nullable().optional(),
|
|
32
67
|
date_joining: zod_1.z.date().nullable().optional(),
|
|
33
68
|
department_name: zod_1.z.string().max(255).nullable().optional(),
|
|
34
69
|
departmentRef: zod_1.z.any(),
|
|
@@ -9,31 +9,67 @@ import { zProfileSchema } from "../../evo-people/zod-schemas";
|
|
|
9
9
|
|
|
10
10
|
// Define Zod schemas for IProfessionalSpecialty, IProfessional, and IPatient
|
|
11
11
|
|
|
12
|
-
export const zProfessionalSpecialtySchema = z.object({
|
|
13
|
-
code: z.string().min(1).max(10),
|
|
14
|
-
name: z.string().min(1).max(255),
|
|
15
|
-
ref: z.any(),
|
|
16
|
-
});
|
|
17
|
-
|
|
18
12
|
export const zProfessionalStatusSchema = z.enum([
|
|
19
13
|
"active",
|
|
20
14
|
"inactive",
|
|
21
15
|
"draft",
|
|
22
16
|
]);
|
|
23
17
|
|
|
18
|
+
export const zProfessionalCouncilSchema = z.object({
|
|
19
|
+
name: z.string().min(1).max(255),
|
|
20
|
+
acronym: z.string().min(1).max(60),
|
|
21
|
+
uf: z
|
|
22
|
+
.enum([
|
|
23
|
+
"AC",
|
|
24
|
+
"AL",
|
|
25
|
+
"AP",
|
|
26
|
+
"AM",
|
|
27
|
+
"BA",
|
|
28
|
+
"CE",
|
|
29
|
+
"ES",
|
|
30
|
+
"GO",
|
|
31
|
+
"MA",
|
|
32
|
+
"MT",
|
|
33
|
+
"MS",
|
|
34
|
+
"MG",
|
|
35
|
+
"PA",
|
|
36
|
+
"PB",
|
|
37
|
+
"PR",
|
|
38
|
+
"PE",
|
|
39
|
+
"PI",
|
|
40
|
+
"RJ",
|
|
41
|
+
"RN",
|
|
42
|
+
"RS",
|
|
43
|
+
"RO",
|
|
44
|
+
"RR",
|
|
45
|
+
"SC",
|
|
46
|
+
"SP",
|
|
47
|
+
"SE",
|
|
48
|
+
"TO",
|
|
49
|
+
"DF",
|
|
50
|
+
"BR", //nacional
|
|
51
|
+
])
|
|
52
|
+
.nullable()
|
|
53
|
+
.optional()
|
|
54
|
+
.default("SP"),
|
|
55
|
+
ref: z.any(),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export const zProfessionalSpecialtySchema = z.object({
|
|
59
|
+
code: z.string().min(1).max(10),
|
|
60
|
+
name: z.string().min(1).max(255),
|
|
61
|
+
ref: z.any(),
|
|
62
|
+
});
|
|
63
|
+
|
|
24
64
|
export const zProfessionalSchema = zProfileSchema // Extend from ProfileSchema
|
|
25
65
|
.extend({
|
|
26
66
|
status: zProfessionalStatusSchema.default("draft"),
|
|
27
67
|
professionalId: z.string().max(255).nullable().optional().default(""),
|
|
28
|
-
title: z.string().max(255).
|
|
29
|
-
type: z.string().max(255).
|
|
68
|
+
title: z.string().max(255).optional().default(""),
|
|
69
|
+
type: z.string().max(255).optional().default("doctor"),
|
|
30
70
|
job_title: z.string().nullable().optional(),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
council_acronym: z.string().max(60).nullable().optional().default(""),
|
|
34
|
-
council_state: z.string().max(255).nullable().optional().default(""),
|
|
35
|
-
councilRef: z.any(),
|
|
36
|
-
specialties: z.array(zProfessionalSpecialtySchema).optional(),
|
|
71
|
+
councils: z.array(zProfessionalCouncilSchema).nullable().optional(),
|
|
72
|
+
specialties: z.array(zProfessionalSpecialtySchema).nullable().optional(),
|
|
37
73
|
date_joining: z.date().nullable().optional(),
|
|
38
74
|
department_name: z.string().max(255).nullable().optional(),
|
|
39
75
|
departmentRef: z.any(),
|
|
@@ -29,21 +29,21 @@ export interface IProfessionalCouncil {
|
|
|
29
29
|
name: string;
|
|
30
30
|
acronym: string;
|
|
31
31
|
uf?: string;
|
|
32
|
-
ref
|
|
32
|
+
ref?: FirestoreDocumentReference;
|
|
33
33
|
}
|
|
34
34
|
export interface IProfessionalSpecialty {
|
|
35
35
|
code: string;
|
|
36
36
|
name: string;
|
|
37
|
-
ref
|
|
37
|
+
ref?: FirestoreDocumentReference;
|
|
38
38
|
}
|
|
39
39
|
export interface IProfessional extends IProfile {
|
|
40
40
|
status: ProfessionalStatus;
|
|
41
41
|
professionalId?: string | null;
|
|
42
42
|
title: string;
|
|
43
|
-
type
|
|
43
|
+
type: string | null;
|
|
44
44
|
job_title?: string | null;
|
|
45
|
-
councils?: IProfessionalCouncil[];
|
|
46
|
-
specialties?: IProfessionalSpecialty[];
|
|
45
|
+
councils?: IProfessionalCouncil[] | null;
|
|
46
|
+
specialties?: IProfessionalSpecialty[] | null;
|
|
47
47
|
date_joining?: Date | null;
|
|
48
48
|
department_name?: string | null;
|
|
49
49
|
departmentRef?: FirestoreDocumentReference;
|
|
@@ -63,23 +63,23 @@ export interface IProfessionalCouncil {
|
|
|
63
63
|
name: string;
|
|
64
64
|
acronym: string;
|
|
65
65
|
uf?: string;
|
|
66
|
-
ref
|
|
66
|
+
ref?: FirestoreDocumentReference;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export interface IProfessionalSpecialty {
|
|
70
70
|
code: string;
|
|
71
71
|
name: string;
|
|
72
|
-
ref
|
|
72
|
+
ref?: FirestoreDocumentReference;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
export interface IProfessional extends IProfile {
|
|
76
76
|
status: ProfessionalStatus;
|
|
77
77
|
professionalId?: string | null;
|
|
78
78
|
title: string;
|
|
79
|
-
type
|
|
79
|
+
type: string | null;
|
|
80
80
|
job_title?: string | null;
|
|
81
|
-
councils?: IProfessionalCouncil[];
|
|
82
|
-
specialties?: IProfessionalSpecialty[];
|
|
81
|
+
councils?: IProfessionalCouncil[] | null;
|
|
82
|
+
specialties?: IProfessionalSpecialty[] | null;
|
|
83
83
|
date_joining?: Date | null;
|
|
84
84
|
department_name?: string | null;
|
|
85
85
|
departmentRef?: FirestoreDocumentReference;
|