evo360-types 1.1.74 → 1.1.75
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.
|
@@ -829,15 +829,15 @@ export declare const zSurveySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
829
829
|
export declare const zQuestionResponseSchema: z.ZodObject<{
|
|
830
830
|
questionId: z.ZodString;
|
|
831
831
|
answer: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
832
|
-
date: z.ZodDate
|
|
832
|
+
date: z.ZodOptional<z.ZodDate>;
|
|
833
833
|
}, "strip", z.ZodTypeAny, {
|
|
834
|
-
date: Date;
|
|
835
834
|
questionId: string;
|
|
836
835
|
answer: string | string[];
|
|
836
|
+
date?: Date | undefined;
|
|
837
837
|
}, {
|
|
838
|
-
date: Date;
|
|
839
838
|
questionId: string;
|
|
840
839
|
answer: string | string[];
|
|
840
|
+
date?: Date | undefined;
|
|
841
841
|
}>;
|
|
842
842
|
export declare const zSurveyResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
843
843
|
id: z.ZodString;
|
|
@@ -852,15 +852,15 @@ export declare const zSurveyResponseSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
852
852
|
responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
853
853
|
questionId: z.ZodString;
|
|
854
854
|
answer: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
855
|
-
date: z.ZodDate
|
|
855
|
+
date: z.ZodOptional<z.ZodDate>;
|
|
856
856
|
}, "strip", z.ZodTypeAny, {
|
|
857
|
-
date: Date;
|
|
858
857
|
questionId: string;
|
|
859
858
|
answer: string | string[];
|
|
859
|
+
date?: Date | undefined;
|
|
860
860
|
}, {
|
|
861
|
-
date: Date;
|
|
862
861
|
questionId: string;
|
|
863
862
|
answer: string | string[];
|
|
863
|
+
date?: Date | undefined;
|
|
864
864
|
}>, "many">>;
|
|
865
865
|
}>, "strip", z.ZodTypeAny, {
|
|
866
866
|
id: string;
|
|
@@ -872,9 +872,9 @@ export declare const zSurveyResponseSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
872
872
|
updated_at?: Date | null | undefined;
|
|
873
873
|
deleted_at?: Date | null | undefined;
|
|
874
874
|
responses?: {
|
|
875
|
-
date: Date;
|
|
876
875
|
questionId: string;
|
|
877
876
|
answer: string | string[];
|
|
877
|
+
date?: Date | undefined;
|
|
878
878
|
}[] | undefined;
|
|
879
879
|
}, {
|
|
880
880
|
id: string;
|
|
@@ -886,9 +886,9 @@ export declare const zSurveyResponseSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
886
886
|
updated_at?: Date | null | undefined;
|
|
887
887
|
deleted_at?: Date | null | undefined;
|
|
888
888
|
responses?: {
|
|
889
|
-
date: Date;
|
|
890
889
|
questionId: string;
|
|
891
890
|
answer: string | string[];
|
|
891
|
+
date?: Date | undefined;
|
|
892
892
|
}[] | undefined;
|
|
893
893
|
}>;
|
|
894
894
|
export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -903,7 +903,6 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
903
903
|
deploymentId: z.ZodOptional<z.ZodString>;
|
|
904
904
|
submission_date: z.ZodOptional<z.ZodDate>;
|
|
905
905
|
status: z.ZodEnum<["not_started", "in_progress", "completed"]>;
|
|
906
|
-
modified_after_completion: z.ZodBoolean;
|
|
907
906
|
inviteeId: z.ZodOptional<z.ZodString>;
|
|
908
907
|
user_name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
909
908
|
responses: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -919,15 +918,15 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
919
918
|
responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
920
919
|
questionId: z.ZodString;
|
|
921
920
|
answer: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
922
|
-
date: z.ZodDate
|
|
921
|
+
date: z.ZodOptional<z.ZodDate>;
|
|
923
922
|
}, "strip", z.ZodTypeAny, {
|
|
924
|
-
date: Date;
|
|
925
923
|
questionId: string;
|
|
926
924
|
answer: string | string[];
|
|
925
|
+
date?: Date | undefined;
|
|
927
926
|
}, {
|
|
928
|
-
date: Date;
|
|
929
927
|
questionId: string;
|
|
930
928
|
answer: string | string[];
|
|
929
|
+
date?: Date | undefined;
|
|
931
930
|
}>, "many">>;
|
|
932
931
|
}>, "strip", z.ZodTypeAny, {
|
|
933
932
|
id: string;
|
|
@@ -939,9 +938,9 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
939
938
|
updated_at?: Date | null | undefined;
|
|
940
939
|
deleted_at?: Date | null | undefined;
|
|
941
940
|
responses?: {
|
|
942
|
-
date: Date;
|
|
943
941
|
questionId: string;
|
|
944
942
|
answer: string | string[];
|
|
943
|
+
date?: Date | undefined;
|
|
945
944
|
}[] | undefined;
|
|
946
945
|
}, {
|
|
947
946
|
id: string;
|
|
@@ -953,17 +952,22 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
953
952
|
updated_at?: Date | null | undefined;
|
|
954
953
|
deleted_at?: Date | null | undefined;
|
|
955
954
|
responses?: {
|
|
956
|
-
date: Date;
|
|
957
955
|
questionId: string;
|
|
958
956
|
answer: string | string[];
|
|
957
|
+
date?: Date | undefined;
|
|
959
958
|
}[] | undefined;
|
|
960
959
|
}>, "many">>;
|
|
960
|
+
modified_after_completion: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
961
|
+
answer_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
962
|
+
submission_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
961
963
|
}>, "strip", z.ZodTypeAny, {
|
|
962
964
|
id: string;
|
|
963
965
|
tenant: string;
|
|
964
966
|
status: "not_started" | "in_progress" | "completed";
|
|
965
|
-
modified_after_completion: boolean;
|
|
966
967
|
user_name: string;
|
|
968
|
+
modified_after_completion: boolean;
|
|
969
|
+
answer_count: number;
|
|
970
|
+
submission_count: number;
|
|
967
971
|
ref?: any;
|
|
968
972
|
model_ver?: number | undefined;
|
|
969
973
|
created_at?: Date | null | undefined;
|
|
@@ -979,9 +983,9 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
979
983
|
updated_at?: Date | null | undefined;
|
|
980
984
|
deleted_at?: Date | null | undefined;
|
|
981
985
|
responses?: {
|
|
982
|
-
date: Date;
|
|
983
986
|
questionId: string;
|
|
984
987
|
answer: string | string[];
|
|
988
|
+
date?: Date | undefined;
|
|
985
989
|
}[] | undefined;
|
|
986
990
|
}[] | undefined;
|
|
987
991
|
deploymentId?: string | undefined;
|
|
@@ -991,7 +995,6 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
991
995
|
id: string;
|
|
992
996
|
tenant: string;
|
|
993
997
|
status: "not_started" | "in_progress" | "completed";
|
|
994
|
-
modified_after_completion: boolean;
|
|
995
998
|
ref?: any;
|
|
996
999
|
model_ver?: number | undefined;
|
|
997
1000
|
created_at?: Date | null | undefined;
|
|
@@ -1007,15 +1010,18 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1007
1010
|
updated_at?: Date | null | undefined;
|
|
1008
1011
|
deleted_at?: Date | null | undefined;
|
|
1009
1012
|
responses?: {
|
|
1010
|
-
date: Date;
|
|
1011
1013
|
questionId: string;
|
|
1012
1014
|
answer: string | string[];
|
|
1015
|
+
date?: Date | undefined;
|
|
1013
1016
|
}[] | undefined;
|
|
1014
1017
|
}[] | undefined;
|
|
1015
1018
|
deploymentId?: string | undefined;
|
|
1016
1019
|
submission_date?: Date | undefined;
|
|
1017
1020
|
inviteeId?: string | undefined;
|
|
1018
1021
|
user_name?: string | undefined;
|
|
1022
|
+
modified_after_completion?: boolean | undefined;
|
|
1023
|
+
answer_count?: number | undefined;
|
|
1024
|
+
submission_count?: number | undefined;
|
|
1019
1025
|
}>;
|
|
1020
1026
|
export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1021
1027
|
id: z.ZodString;
|
|
@@ -1242,7 +1248,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1242
1248
|
deploymentId: z.ZodOptional<z.ZodString>;
|
|
1243
1249
|
submission_date: z.ZodOptional<z.ZodDate>;
|
|
1244
1250
|
status: z.ZodEnum<["not_started", "in_progress", "completed"]>;
|
|
1245
|
-
modified_after_completion: z.ZodBoolean;
|
|
1246
1251
|
inviteeId: z.ZodOptional<z.ZodString>;
|
|
1247
1252
|
user_name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1248
1253
|
responses: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1258,15 +1263,15 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1258
1263
|
responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1259
1264
|
questionId: z.ZodString;
|
|
1260
1265
|
answer: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1261
|
-
date: z.ZodDate
|
|
1266
|
+
date: z.ZodOptional<z.ZodDate>;
|
|
1262
1267
|
}, "strip", z.ZodTypeAny, {
|
|
1263
|
-
date: Date;
|
|
1264
1268
|
questionId: string;
|
|
1265
1269
|
answer: string | string[];
|
|
1270
|
+
date?: Date | undefined;
|
|
1266
1271
|
}, {
|
|
1267
|
-
date: Date;
|
|
1268
1272
|
questionId: string;
|
|
1269
1273
|
answer: string | string[];
|
|
1274
|
+
date?: Date | undefined;
|
|
1270
1275
|
}>, "many">>;
|
|
1271
1276
|
}>, "strip", z.ZodTypeAny, {
|
|
1272
1277
|
id: string;
|
|
@@ -1278,9 +1283,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1278
1283
|
updated_at?: Date | null | undefined;
|
|
1279
1284
|
deleted_at?: Date | null | undefined;
|
|
1280
1285
|
responses?: {
|
|
1281
|
-
date: Date;
|
|
1282
1286
|
questionId: string;
|
|
1283
1287
|
answer: string | string[];
|
|
1288
|
+
date?: Date | undefined;
|
|
1284
1289
|
}[] | undefined;
|
|
1285
1290
|
}, {
|
|
1286
1291
|
id: string;
|
|
@@ -1292,17 +1297,22 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1292
1297
|
updated_at?: Date | null | undefined;
|
|
1293
1298
|
deleted_at?: Date | null | undefined;
|
|
1294
1299
|
responses?: {
|
|
1295
|
-
date: Date;
|
|
1296
1300
|
questionId: string;
|
|
1297
1301
|
answer: string | string[];
|
|
1302
|
+
date?: Date | undefined;
|
|
1298
1303
|
}[] | undefined;
|
|
1299
1304
|
}>, "many">>;
|
|
1305
|
+
modified_after_completion: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1306
|
+
answer_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1307
|
+
submission_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1300
1308
|
}>, "strip", z.ZodTypeAny, {
|
|
1301
1309
|
id: string;
|
|
1302
1310
|
tenant: string;
|
|
1303
1311
|
status: "not_started" | "in_progress" | "completed";
|
|
1304
|
-
modified_after_completion: boolean;
|
|
1305
1312
|
user_name: string;
|
|
1313
|
+
modified_after_completion: boolean;
|
|
1314
|
+
answer_count: number;
|
|
1315
|
+
submission_count: number;
|
|
1306
1316
|
ref?: any;
|
|
1307
1317
|
model_ver?: number | undefined;
|
|
1308
1318
|
created_at?: Date | null | undefined;
|
|
@@ -1318,9 +1328,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1318
1328
|
updated_at?: Date | null | undefined;
|
|
1319
1329
|
deleted_at?: Date | null | undefined;
|
|
1320
1330
|
responses?: {
|
|
1321
|
-
date: Date;
|
|
1322
1331
|
questionId: string;
|
|
1323
1332
|
answer: string | string[];
|
|
1333
|
+
date?: Date | undefined;
|
|
1324
1334
|
}[] | undefined;
|
|
1325
1335
|
}[] | undefined;
|
|
1326
1336
|
deploymentId?: string | undefined;
|
|
@@ -1330,7 +1340,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1330
1340
|
id: string;
|
|
1331
1341
|
tenant: string;
|
|
1332
1342
|
status: "not_started" | "in_progress" | "completed";
|
|
1333
|
-
modified_after_completion: boolean;
|
|
1334
1343
|
ref?: any;
|
|
1335
1344
|
model_ver?: number | undefined;
|
|
1336
1345
|
created_at?: Date | null | undefined;
|
|
@@ -1346,15 +1355,18 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1346
1355
|
updated_at?: Date | null | undefined;
|
|
1347
1356
|
deleted_at?: Date | null | undefined;
|
|
1348
1357
|
responses?: {
|
|
1349
|
-
date: Date;
|
|
1350
1358
|
questionId: string;
|
|
1351
1359
|
answer: string | string[];
|
|
1360
|
+
date?: Date | undefined;
|
|
1352
1361
|
}[] | undefined;
|
|
1353
1362
|
}[] | undefined;
|
|
1354
1363
|
deploymentId?: string | undefined;
|
|
1355
1364
|
submission_date?: Date | undefined;
|
|
1356
1365
|
inviteeId?: string | undefined;
|
|
1357
1366
|
user_name?: string | undefined;
|
|
1367
|
+
modified_after_completion?: boolean | undefined;
|
|
1368
|
+
answer_count?: number | undefined;
|
|
1369
|
+
submission_count?: number | undefined;
|
|
1358
1370
|
}>, "many">>>;
|
|
1359
1371
|
submission_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1360
1372
|
submission_not_started_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1416,8 +1428,10 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1416
1428
|
id: string;
|
|
1417
1429
|
tenant: string;
|
|
1418
1430
|
status: "not_started" | "in_progress" | "completed";
|
|
1419
|
-
modified_after_completion: boolean;
|
|
1420
1431
|
user_name: string;
|
|
1432
|
+
modified_after_completion: boolean;
|
|
1433
|
+
answer_count: number;
|
|
1434
|
+
submission_count: number;
|
|
1421
1435
|
ref?: any;
|
|
1422
1436
|
model_ver?: number | undefined;
|
|
1423
1437
|
created_at?: Date | null | undefined;
|
|
@@ -1433,9 +1447,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1433
1447
|
updated_at?: Date | null | undefined;
|
|
1434
1448
|
deleted_at?: Date | null | undefined;
|
|
1435
1449
|
responses?: {
|
|
1436
|
-
date: Date;
|
|
1437
1450
|
questionId: string;
|
|
1438
1451
|
answer: string | string[];
|
|
1452
|
+
date?: Date | undefined;
|
|
1439
1453
|
}[] | undefined;
|
|
1440
1454
|
}[] | undefined;
|
|
1441
1455
|
deploymentId?: string | undefined;
|
|
@@ -1509,7 +1523,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1509
1523
|
id: string;
|
|
1510
1524
|
tenant: string;
|
|
1511
1525
|
status: "not_started" | "in_progress" | "completed";
|
|
1512
|
-
modified_after_completion: boolean;
|
|
1513
1526
|
ref?: any;
|
|
1514
1527
|
model_ver?: number | undefined;
|
|
1515
1528
|
created_at?: Date | null | undefined;
|
|
@@ -1525,15 +1538,18 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1525
1538
|
updated_at?: Date | null | undefined;
|
|
1526
1539
|
deleted_at?: Date | null | undefined;
|
|
1527
1540
|
responses?: {
|
|
1528
|
-
date: Date;
|
|
1529
1541
|
questionId: string;
|
|
1530
1542
|
answer: string | string[];
|
|
1543
|
+
date?: Date | undefined;
|
|
1531
1544
|
}[] | undefined;
|
|
1532
1545
|
}[] | undefined;
|
|
1533
1546
|
deploymentId?: string | undefined;
|
|
1534
1547
|
submission_date?: Date | undefined;
|
|
1535
1548
|
inviteeId?: string | undefined;
|
|
1536
1549
|
user_name?: string | undefined;
|
|
1550
|
+
modified_after_completion?: boolean | undefined;
|
|
1551
|
+
answer_count?: number | undefined;
|
|
1552
|
+
submission_count?: number | undefined;
|
|
1537
1553
|
}[] | null | undefined;
|
|
1538
1554
|
submission_count?: number | undefined;
|
|
1539
1555
|
section_count?: number | undefined;
|
|
@@ -132,7 +132,7 @@ exports.zSurveySchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchem
|
|
|
132
132
|
exports.zQuestionResponseSchema = zod_1.z.object({
|
|
133
133
|
questionId: zod_1.z.string(),
|
|
134
134
|
answer: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]),
|
|
135
|
-
date: zod_1.z.coerce.date(),
|
|
135
|
+
date: zod_1.z.coerce.date().optional(),
|
|
136
136
|
});
|
|
137
137
|
// Survey Response
|
|
138
138
|
exports.zSurveyResponseSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
@@ -146,10 +146,12 @@ exports.zSurveySubmissionSchema = zod_schemas_1.zFireDocSchema // Extend from Fi
|
|
|
146
146
|
deploymentId: zod_1.z.string().optional(),
|
|
147
147
|
submission_date: zod_1.z.coerce.date().optional(),
|
|
148
148
|
status: exports.zSurveySubmissionStatusSchema,
|
|
149
|
-
modified_after_completion: zod_1.z.boolean(),
|
|
150
149
|
inviteeId: zod_1.z.string().optional(),
|
|
151
150
|
user_name: zod_1.z.string().optional().default(""),
|
|
152
151
|
responses: zod_1.z.array(exports.zSurveyResponseSchema).optional(),
|
|
152
|
+
modified_after_completion: zod_1.z.boolean().optional().default(false),
|
|
153
|
+
answer_count: zod_1.z.number().optional().default(0),
|
|
154
|
+
submission_count: zod_1.z.number().optional().default(0),
|
|
153
155
|
});
|
|
154
156
|
// Survey Invitee
|
|
155
157
|
exports.zSurveyInviteeSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
@@ -147,7 +147,7 @@ export const zSurveySchema = zFireDocSchema // Extend from FireDocSchema
|
|
|
147
147
|
export const zQuestionResponseSchema = z.object({
|
|
148
148
|
questionId: z.string(),
|
|
149
149
|
answer: z.union([z.string(), z.array(z.string())]),
|
|
150
|
-
date: z.coerce.date(),
|
|
150
|
+
date: z.coerce.date().optional(),
|
|
151
151
|
});
|
|
152
152
|
|
|
153
153
|
// Survey Response
|
|
@@ -162,10 +162,12 @@ export const zSurveySubmissionSchema = zFireDocSchema // Extend from FireDocSche
|
|
|
162
162
|
deploymentId: z.string().optional(),
|
|
163
163
|
submission_date: z.coerce.date().optional(),
|
|
164
164
|
status: zSurveySubmissionStatusSchema,
|
|
165
|
-
modified_after_completion: z.boolean(),
|
|
166
165
|
inviteeId: z.string().optional(),
|
|
167
166
|
user_name: z.string().optional().default(""),
|
|
168
167
|
responses: z.array(zSurveyResponseSchema).optional(),
|
|
168
|
+
modified_after_completion: z.boolean().optional().default(false),
|
|
169
|
+
answer_count: z.number().optional().default(0),
|
|
170
|
+
submission_count: z.number().optional().default(0),
|
|
169
171
|
});
|
|
170
172
|
|
|
171
173
|
// Survey Invitee
|
|
@@ -126,17 +126,17 @@ export interface ISurveyResponse extends IFireDoc {
|
|
|
126
126
|
}
|
|
127
127
|
export interface IQuestionResponse {
|
|
128
128
|
questionId: string;
|
|
129
|
-
answer: string | string[];
|
|
130
|
-
date
|
|
129
|
+
answer: string | string[] | null;
|
|
130
|
+
date?: Date;
|
|
131
131
|
}
|
|
132
132
|
export interface ISurveySubmission extends IFireDoc {
|
|
133
133
|
deploymentId?: string;
|
|
134
134
|
submission_date?: Date;
|
|
135
135
|
status: SurveySubmissionStatus;
|
|
136
|
-
modified_after_completion: boolean;
|
|
137
136
|
inviteeId?: string;
|
|
138
137
|
user_name?: string;
|
|
139
138
|
survey_responses?: ISurveyResponse[];
|
|
139
|
+
readonly modified_after_completion?: boolean;
|
|
140
140
|
readonly answer_count?: number;
|
|
141
141
|
readonly submission_count?: number;
|
|
142
142
|
}
|
|
@@ -175,18 +175,18 @@ export interface ISurveyResponse extends IFireDoc {
|
|
|
175
175
|
|
|
176
176
|
export interface IQuestionResponse {
|
|
177
177
|
questionId: string;
|
|
178
|
-
answer: string | string[]
|
|
179
|
-
date
|
|
178
|
+
answer: string | string[] | null;
|
|
179
|
+
date?: Date;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
export interface ISurveySubmission extends IFireDoc {
|
|
183
183
|
deploymentId?: string;
|
|
184
184
|
submission_date?: Date;
|
|
185
185
|
status: SurveySubmissionStatus;
|
|
186
|
-
modified_after_completion: boolean;
|
|
187
186
|
inviteeId?: string;
|
|
188
187
|
user_name?: string;
|
|
189
188
|
survey_responses?: ISurveyResponse[];
|
|
189
|
+
readonly modified_after_completion?: boolean;
|
|
190
190
|
readonly answer_count?: number;
|
|
191
191
|
readonly submission_count?: number;
|
|
192
192
|
}
|