evo360-types 1.1.73 → 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;
|
|
@@ -1026,6 +1032,7 @@ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1026
1032
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1027
1033
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1028
1034
|
}, {
|
|
1035
|
+
invitedUserId: z.ZodOptional<z.ZodString>;
|
|
1029
1036
|
name: z.ZodString;
|
|
1030
1037
|
email: z.ZodOptional<z.ZodString>;
|
|
1031
1038
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -1049,6 +1056,7 @@ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1049
1056
|
email?: string | undefined;
|
|
1050
1057
|
description?: string | undefined;
|
|
1051
1058
|
photo_url?: string | null | undefined;
|
|
1059
|
+
invitedUserId?: string | undefined;
|
|
1052
1060
|
submissionId?: string | undefined;
|
|
1053
1061
|
}, {
|
|
1054
1062
|
id: string;
|
|
@@ -1063,6 +1071,7 @@ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1063
1071
|
description?: string | undefined;
|
|
1064
1072
|
photo_url?: string | null | undefined;
|
|
1065
1073
|
phone?: string | undefined;
|
|
1074
|
+
invitedUserId?: string | undefined;
|
|
1066
1075
|
isAnonymous?: boolean | undefined;
|
|
1067
1076
|
submissionId?: string | undefined;
|
|
1068
1077
|
submission_status?: "not_started" | "in_progress" | "completed" | undefined;
|
|
@@ -1182,6 +1191,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1182
1191
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1183
1192
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1184
1193
|
}, {
|
|
1194
|
+
invitedUserId: z.ZodOptional<z.ZodString>;
|
|
1185
1195
|
name: z.ZodString;
|
|
1186
1196
|
email: z.ZodOptional<z.ZodString>;
|
|
1187
1197
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -1205,6 +1215,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1205
1215
|
email?: string | undefined;
|
|
1206
1216
|
description?: string | undefined;
|
|
1207
1217
|
photo_url?: string | null | undefined;
|
|
1218
|
+
invitedUserId?: string | undefined;
|
|
1208
1219
|
submissionId?: string | undefined;
|
|
1209
1220
|
}, {
|
|
1210
1221
|
id: string;
|
|
@@ -1219,6 +1230,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1219
1230
|
description?: string | undefined;
|
|
1220
1231
|
photo_url?: string | null | undefined;
|
|
1221
1232
|
phone?: string | undefined;
|
|
1233
|
+
invitedUserId?: string | undefined;
|
|
1222
1234
|
isAnonymous?: boolean | undefined;
|
|
1223
1235
|
submissionId?: string | undefined;
|
|
1224
1236
|
submission_status?: "not_started" | "in_progress" | "completed" | undefined;
|
|
@@ -1236,7 +1248,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1236
1248
|
deploymentId: z.ZodOptional<z.ZodString>;
|
|
1237
1249
|
submission_date: z.ZodOptional<z.ZodDate>;
|
|
1238
1250
|
status: z.ZodEnum<["not_started", "in_progress", "completed"]>;
|
|
1239
|
-
modified_after_completion: z.ZodBoolean;
|
|
1240
1251
|
inviteeId: z.ZodOptional<z.ZodString>;
|
|
1241
1252
|
user_name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1242
1253
|
responses: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1252,15 +1263,15 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1252
1263
|
responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1253
1264
|
questionId: z.ZodString;
|
|
1254
1265
|
answer: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1255
|
-
date: z.ZodDate
|
|
1266
|
+
date: z.ZodOptional<z.ZodDate>;
|
|
1256
1267
|
}, "strip", z.ZodTypeAny, {
|
|
1257
|
-
date: Date;
|
|
1258
1268
|
questionId: string;
|
|
1259
1269
|
answer: string | string[];
|
|
1270
|
+
date?: Date | undefined;
|
|
1260
1271
|
}, {
|
|
1261
|
-
date: Date;
|
|
1262
1272
|
questionId: string;
|
|
1263
1273
|
answer: string | string[];
|
|
1274
|
+
date?: Date | undefined;
|
|
1264
1275
|
}>, "many">>;
|
|
1265
1276
|
}>, "strip", z.ZodTypeAny, {
|
|
1266
1277
|
id: string;
|
|
@@ -1272,9 +1283,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1272
1283
|
updated_at?: Date | null | undefined;
|
|
1273
1284
|
deleted_at?: Date | null | undefined;
|
|
1274
1285
|
responses?: {
|
|
1275
|
-
date: Date;
|
|
1276
1286
|
questionId: string;
|
|
1277
1287
|
answer: string | string[];
|
|
1288
|
+
date?: Date | undefined;
|
|
1278
1289
|
}[] | undefined;
|
|
1279
1290
|
}, {
|
|
1280
1291
|
id: string;
|
|
@@ -1286,17 +1297,22 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1286
1297
|
updated_at?: Date | null | undefined;
|
|
1287
1298
|
deleted_at?: Date | null | undefined;
|
|
1288
1299
|
responses?: {
|
|
1289
|
-
date: Date;
|
|
1290
1300
|
questionId: string;
|
|
1291
1301
|
answer: string | string[];
|
|
1302
|
+
date?: Date | undefined;
|
|
1292
1303
|
}[] | undefined;
|
|
1293
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>>;
|
|
1294
1308
|
}>, "strip", z.ZodTypeAny, {
|
|
1295
1309
|
id: string;
|
|
1296
1310
|
tenant: string;
|
|
1297
1311
|
status: "not_started" | "in_progress" | "completed";
|
|
1298
|
-
modified_after_completion: boolean;
|
|
1299
1312
|
user_name: string;
|
|
1313
|
+
modified_after_completion: boolean;
|
|
1314
|
+
answer_count: number;
|
|
1315
|
+
submission_count: number;
|
|
1300
1316
|
ref?: any;
|
|
1301
1317
|
model_ver?: number | undefined;
|
|
1302
1318
|
created_at?: Date | null | undefined;
|
|
@@ -1312,9 +1328,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1312
1328
|
updated_at?: Date | null | undefined;
|
|
1313
1329
|
deleted_at?: Date | null | undefined;
|
|
1314
1330
|
responses?: {
|
|
1315
|
-
date: Date;
|
|
1316
1331
|
questionId: string;
|
|
1317
1332
|
answer: string | string[];
|
|
1333
|
+
date?: Date | undefined;
|
|
1318
1334
|
}[] | undefined;
|
|
1319
1335
|
}[] | undefined;
|
|
1320
1336
|
deploymentId?: string | undefined;
|
|
@@ -1324,7 +1340,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1324
1340
|
id: string;
|
|
1325
1341
|
tenant: string;
|
|
1326
1342
|
status: "not_started" | "in_progress" | "completed";
|
|
1327
|
-
modified_after_completion: boolean;
|
|
1328
1343
|
ref?: any;
|
|
1329
1344
|
model_ver?: number | undefined;
|
|
1330
1345
|
created_at?: Date | null | undefined;
|
|
@@ -1340,15 +1355,18 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1340
1355
|
updated_at?: Date | null | undefined;
|
|
1341
1356
|
deleted_at?: Date | null | undefined;
|
|
1342
1357
|
responses?: {
|
|
1343
|
-
date: Date;
|
|
1344
1358
|
questionId: string;
|
|
1345
1359
|
answer: string | string[];
|
|
1360
|
+
date?: Date | undefined;
|
|
1346
1361
|
}[] | undefined;
|
|
1347
1362
|
}[] | undefined;
|
|
1348
1363
|
deploymentId?: string | undefined;
|
|
1349
1364
|
submission_date?: Date | undefined;
|
|
1350
1365
|
inviteeId?: string | undefined;
|
|
1351
1366
|
user_name?: string | undefined;
|
|
1367
|
+
modified_after_completion?: boolean | undefined;
|
|
1368
|
+
answer_count?: number | undefined;
|
|
1369
|
+
submission_count?: number | undefined;
|
|
1352
1370
|
}>, "many">>>;
|
|
1353
1371
|
submission_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1354
1372
|
submission_not_started_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1410,8 +1428,10 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1410
1428
|
id: string;
|
|
1411
1429
|
tenant: string;
|
|
1412
1430
|
status: "not_started" | "in_progress" | "completed";
|
|
1413
|
-
modified_after_completion: boolean;
|
|
1414
1431
|
user_name: string;
|
|
1432
|
+
modified_after_completion: boolean;
|
|
1433
|
+
answer_count: number;
|
|
1434
|
+
submission_count: number;
|
|
1415
1435
|
ref?: any;
|
|
1416
1436
|
model_ver?: number | undefined;
|
|
1417
1437
|
created_at?: Date | null | undefined;
|
|
@@ -1427,9 +1447,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1427
1447
|
updated_at?: Date | null | undefined;
|
|
1428
1448
|
deleted_at?: Date | null | undefined;
|
|
1429
1449
|
responses?: {
|
|
1430
|
-
date: Date;
|
|
1431
1450
|
questionId: string;
|
|
1432
1451
|
answer: string | string[];
|
|
1452
|
+
date?: Date | undefined;
|
|
1433
1453
|
}[] | undefined;
|
|
1434
1454
|
}[] | undefined;
|
|
1435
1455
|
deploymentId?: string | undefined;
|
|
@@ -1451,6 +1471,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1451
1471
|
email?: string | undefined;
|
|
1452
1472
|
description?: string | undefined;
|
|
1453
1473
|
photo_url?: string | null | undefined;
|
|
1474
|
+
invitedUserId?: string | undefined;
|
|
1454
1475
|
submissionId?: string | undefined;
|
|
1455
1476
|
}[] | null | undefined;
|
|
1456
1477
|
}, {
|
|
@@ -1502,7 +1523,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1502
1523
|
id: string;
|
|
1503
1524
|
tenant: string;
|
|
1504
1525
|
status: "not_started" | "in_progress" | "completed";
|
|
1505
|
-
modified_after_completion: boolean;
|
|
1506
1526
|
ref?: any;
|
|
1507
1527
|
model_ver?: number | undefined;
|
|
1508
1528
|
created_at?: Date | null | undefined;
|
|
@@ -1518,15 +1538,18 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1518
1538
|
updated_at?: Date | null | undefined;
|
|
1519
1539
|
deleted_at?: Date | null | undefined;
|
|
1520
1540
|
responses?: {
|
|
1521
|
-
date: Date;
|
|
1522
1541
|
questionId: string;
|
|
1523
1542
|
answer: string | string[];
|
|
1543
|
+
date?: Date | undefined;
|
|
1524
1544
|
}[] | undefined;
|
|
1525
1545
|
}[] | undefined;
|
|
1526
1546
|
deploymentId?: string | undefined;
|
|
1527
1547
|
submission_date?: Date | undefined;
|
|
1528
1548
|
inviteeId?: string | undefined;
|
|
1529
1549
|
user_name?: string | undefined;
|
|
1550
|
+
modified_after_completion?: boolean | undefined;
|
|
1551
|
+
answer_count?: number | undefined;
|
|
1552
|
+
submission_count?: number | undefined;
|
|
1530
1553
|
}[] | null | undefined;
|
|
1531
1554
|
submission_count?: number | undefined;
|
|
1532
1555
|
section_count?: number | undefined;
|
|
@@ -1544,6 +1567,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1544
1567
|
description?: string | undefined;
|
|
1545
1568
|
photo_url?: string | null | undefined;
|
|
1546
1569
|
phone?: string | undefined;
|
|
1570
|
+
invitedUserId?: string | undefined;
|
|
1547
1571
|
isAnonymous?: boolean | undefined;
|
|
1548
1572
|
submissionId?: string | undefined;
|
|
1549
1573
|
submission_status?: "not_started" | "in_progress" | "completed" | 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,14 +146,17 @@ 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
|
|
156
158
|
.extend({
|
|
159
|
+
invitedUserId: zod_1.z.string().optional(),
|
|
157
160
|
name: zod_1.z.string().max(255),
|
|
158
161
|
email: zod_1.z.string().max(255).email().optional(),
|
|
159
162
|
phone: zod_1.z.string().max(60).optional().default(""),
|
|
@@ -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,15 +162,18 @@ 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
|
|
172
174
|
export const zSurveyInviteeSchema = zFireDocSchema // Extend from FireDocSchema
|
|
173
175
|
.extend({
|
|
176
|
+
invitedUserId: z.string().optional(),
|
|
174
177
|
name: z.string().max(255),
|
|
175
178
|
email: z.string().max(255).email().optional(),
|
|
176
179
|
phone: z.string().max(60).optional().default(""),
|
|
@@ -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
|
}
|