evo360-types 1.1.68 → 1.1.70
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.
|
@@ -1025,8 +1025,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1025
1025
|
}, {
|
|
1026
1026
|
name: z.ZodString;
|
|
1027
1027
|
description: z.ZodOptional<z.ZodString>;
|
|
1028
|
-
|
|
1029
|
-
survey: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
1028
|
+
surveys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
1030
1029
|
id: z.ZodString;
|
|
1031
1030
|
ref: z.ZodAny;
|
|
1032
1031
|
tenant: z.ZodString;
|
|
@@ -1113,12 +1112,14 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1113
1112
|
hidden: boolean;
|
|
1114
1113
|
color?: string | undefined;
|
|
1115
1114
|
}>, "many">>;
|
|
1116
|
-
}>, z.ZodTypeAny, "passthrough"
|
|
1115
|
+
}>, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
1117
1116
|
start_date: z.ZodNullable<z.ZodDate>;
|
|
1118
1117
|
end_date: z.ZodNullable<z.ZodDate>;
|
|
1119
1118
|
status: z.ZodEnum<["draft", "open", "closed", "in_progress", "paused"]>;
|
|
1120
1119
|
allow_edit_answers: z.ZodBoolean;
|
|
1121
1120
|
allow_partial_submission: z.ZodBoolean;
|
|
1121
|
+
section_count: z.ZodOptional<z.ZodNumber>;
|
|
1122
|
+
question_count: z.ZodOptional<z.ZodNumber>;
|
|
1122
1123
|
invitees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
1123
1124
|
id: z.ZodString;
|
|
1124
1125
|
ref: z.ZodAny;
|
|
@@ -1292,36 +1293,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1292
1293
|
updated_at?: Date | null | undefined;
|
|
1293
1294
|
deleted_at?: Date | null | undefined;
|
|
1294
1295
|
description?: string | undefined;
|
|
1295
|
-
|
|
1296
|
-
id: string;
|
|
1297
|
-
tenant: string;
|
|
1298
|
-
status: "not_started" | "in_progress" | "completed";
|
|
1299
|
-
modified_after_completion: boolean;
|
|
1300
|
-
user_name: string;
|
|
1301
|
-
ref?: any;
|
|
1302
|
-
model_ver?: number | undefined;
|
|
1303
|
-
created_at?: Date | null | undefined;
|
|
1304
|
-
updated_at?: Date | null | undefined;
|
|
1305
|
-
deleted_at?: Date | null | undefined;
|
|
1306
|
-
deploymentId?: string | undefined;
|
|
1307
|
-
submission_date?: Date | undefined;
|
|
1308
|
-
inviteeId?: string | undefined;
|
|
1309
|
-
responses?: {
|
|
1310
|
-
id: string;
|
|
1311
|
-
tenant: string;
|
|
1312
|
-
date: Date;
|
|
1313
|
-
question_id: string;
|
|
1314
|
-
answer: string | string[];
|
|
1315
|
-
ref?: any;
|
|
1316
|
-
model_ver?: number | undefined;
|
|
1317
|
-
created_at?: Date | null | undefined;
|
|
1318
|
-
updated_at?: Date | null | undefined;
|
|
1319
|
-
deleted_at?: Date | null | undefined;
|
|
1320
|
-
}[] | undefined;
|
|
1321
|
-
}[] | null | undefined;
|
|
1322
|
-
submission_count?: number | undefined;
|
|
1323
|
-
surveySourceRef?: any;
|
|
1324
|
-
survey?: z.objectOutputType<z.objectUtil.extendShape<{
|
|
1296
|
+
surveys?: z.objectOutputType<z.objectUtil.extendShape<{
|
|
1325
1297
|
id: z.ZodString;
|
|
1326
1298
|
ref: z.ZodAny;
|
|
1327
1299
|
tenant: z.ZodString;
|
|
@@ -1350,7 +1322,37 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1350
1322
|
hidden: boolean;
|
|
1351
1323
|
color?: string | undefined;
|
|
1352
1324
|
}>, "many">>;
|
|
1353
|
-
}>, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1325
|
+
}>, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
1326
|
+
submissions?: {
|
|
1327
|
+
id: string;
|
|
1328
|
+
tenant: string;
|
|
1329
|
+
status: "not_started" | "in_progress" | "completed";
|
|
1330
|
+
modified_after_completion: boolean;
|
|
1331
|
+
user_name: string;
|
|
1332
|
+
ref?: any;
|
|
1333
|
+
model_ver?: number | undefined;
|
|
1334
|
+
created_at?: Date | null | undefined;
|
|
1335
|
+
updated_at?: Date | null | undefined;
|
|
1336
|
+
deleted_at?: Date | null | undefined;
|
|
1337
|
+
deploymentId?: string | undefined;
|
|
1338
|
+
submission_date?: Date | undefined;
|
|
1339
|
+
inviteeId?: string | undefined;
|
|
1340
|
+
responses?: {
|
|
1341
|
+
id: string;
|
|
1342
|
+
tenant: string;
|
|
1343
|
+
date: Date;
|
|
1344
|
+
question_id: string;
|
|
1345
|
+
answer: string | string[];
|
|
1346
|
+
ref?: any;
|
|
1347
|
+
model_ver?: number | undefined;
|
|
1348
|
+
created_at?: Date | null | undefined;
|
|
1349
|
+
updated_at?: Date | null | undefined;
|
|
1350
|
+
deleted_at?: Date | null | undefined;
|
|
1351
|
+
}[] | undefined;
|
|
1352
|
+
}[] | null | undefined;
|
|
1353
|
+
submission_count?: number | undefined;
|
|
1354
|
+
section_count?: number | undefined;
|
|
1355
|
+
question_count?: number | undefined;
|
|
1354
1356
|
invitees?: {
|
|
1355
1357
|
id: string;
|
|
1356
1358
|
tenant: string;
|
|
@@ -1387,36 +1389,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1387
1389
|
updated_at?: Date | null | undefined;
|
|
1388
1390
|
deleted_at?: Date | null | undefined;
|
|
1389
1391
|
description?: string | undefined;
|
|
1390
|
-
|
|
1391
|
-
id: string;
|
|
1392
|
-
tenant: string;
|
|
1393
|
-
status: "not_started" | "in_progress" | "completed";
|
|
1394
|
-
modified_after_completion: boolean;
|
|
1395
|
-
ref?: any;
|
|
1396
|
-
model_ver?: number | undefined;
|
|
1397
|
-
created_at?: Date | null | undefined;
|
|
1398
|
-
updated_at?: Date | null | undefined;
|
|
1399
|
-
deleted_at?: Date | null | undefined;
|
|
1400
|
-
deploymentId?: string | undefined;
|
|
1401
|
-
submission_date?: Date | undefined;
|
|
1402
|
-
inviteeId?: string | undefined;
|
|
1403
|
-
user_name?: string | undefined;
|
|
1404
|
-
responses?: {
|
|
1405
|
-
id: string;
|
|
1406
|
-
tenant: string;
|
|
1407
|
-
date: Date;
|
|
1408
|
-
question_id: string;
|
|
1409
|
-
answer: string | string[];
|
|
1410
|
-
ref?: any;
|
|
1411
|
-
model_ver?: number | undefined;
|
|
1412
|
-
created_at?: Date | null | undefined;
|
|
1413
|
-
updated_at?: Date | null | undefined;
|
|
1414
|
-
deleted_at?: Date | null | undefined;
|
|
1415
|
-
}[] | undefined;
|
|
1416
|
-
}[] | null | undefined;
|
|
1417
|
-
submission_count?: number | undefined;
|
|
1418
|
-
surveySourceRef?: any;
|
|
1419
|
-
survey?: z.objectInputType<z.objectUtil.extendShape<{
|
|
1392
|
+
surveys?: z.objectInputType<z.objectUtil.extendShape<{
|
|
1420
1393
|
id: z.ZodString;
|
|
1421
1394
|
ref: z.ZodAny;
|
|
1422
1395
|
tenant: z.ZodString;
|
|
@@ -1445,7 +1418,37 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1445
1418
|
hidden: boolean;
|
|
1446
1419
|
color?: string | undefined;
|
|
1447
1420
|
}>, "many">>;
|
|
1448
|
-
}>, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1421
|
+
}>, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
1422
|
+
submissions?: {
|
|
1423
|
+
id: string;
|
|
1424
|
+
tenant: string;
|
|
1425
|
+
status: "not_started" | "in_progress" | "completed";
|
|
1426
|
+
modified_after_completion: boolean;
|
|
1427
|
+
ref?: any;
|
|
1428
|
+
model_ver?: number | undefined;
|
|
1429
|
+
created_at?: Date | null | undefined;
|
|
1430
|
+
updated_at?: Date | null | undefined;
|
|
1431
|
+
deleted_at?: Date | null | undefined;
|
|
1432
|
+
deploymentId?: string | undefined;
|
|
1433
|
+
submission_date?: Date | undefined;
|
|
1434
|
+
inviteeId?: string | undefined;
|
|
1435
|
+
user_name?: string | undefined;
|
|
1436
|
+
responses?: {
|
|
1437
|
+
id: string;
|
|
1438
|
+
tenant: string;
|
|
1439
|
+
date: Date;
|
|
1440
|
+
question_id: string;
|
|
1441
|
+
answer: string | string[];
|
|
1442
|
+
ref?: any;
|
|
1443
|
+
model_ver?: number | undefined;
|
|
1444
|
+
created_at?: Date | null | undefined;
|
|
1445
|
+
updated_at?: Date | null | undefined;
|
|
1446
|
+
deleted_at?: Date | null | undefined;
|
|
1447
|
+
}[] | undefined;
|
|
1448
|
+
}[] | null | undefined;
|
|
1449
|
+
submission_count?: number | undefined;
|
|
1450
|
+
section_count?: number | undefined;
|
|
1451
|
+
question_count?: number | undefined;
|
|
1449
1452
|
invitees?: {
|
|
1450
1453
|
id: string;
|
|
1451
1454
|
tenant: string;
|
|
@@ -165,13 +165,14 @@ exports.zSurveyDeploymentSchema = zod_schemas_1.zFireDocSchema // Extend from Fi
|
|
|
165
165
|
.extend({
|
|
166
166
|
name: zod_1.z.string().min(1).max(255),
|
|
167
167
|
description: zod_1.z.string().max(1024).optional(),
|
|
168
|
-
|
|
169
|
-
survey: exports.zSurveySchema.nullable().optional(),
|
|
168
|
+
surveys: zod_1.z.array(exports.zSurveySchema).nullable().optional(),
|
|
170
169
|
start_date: zod_1.z.coerce.date().nullable(),
|
|
171
170
|
end_date: zod_1.z.coerce.date().nullable(),
|
|
172
171
|
status: exports.zSurveyDeploymentStatusSchema,
|
|
173
172
|
allow_edit_answers: zod_1.z.boolean(),
|
|
174
173
|
allow_partial_submission: zod_1.z.boolean(),
|
|
174
|
+
section_count: zod_1.z.number().optional(),
|
|
175
|
+
question_count: zod_1.z.number().optional(),
|
|
175
176
|
invitees: zod_1.z.array(exports.zSurveyInviteeSchema).nullable().optional(),
|
|
176
177
|
invitee_count: zod_1.z.number().optional(),
|
|
177
178
|
submissions: zod_1.z.array(exports.zSurveySubmissionSchema).nullable().optional(),
|
|
@@ -183,13 +183,14 @@ export const zSurveyDeploymentSchema = zFireDocSchema // Extend from FireDocSche
|
|
|
183
183
|
.extend({
|
|
184
184
|
name: z.string().min(1).max(255),
|
|
185
185
|
description: z.string().max(1024).optional(),
|
|
186
|
-
|
|
187
|
-
survey: zSurveySchema.nullable().optional(),
|
|
186
|
+
surveys: z.array(zSurveySchema).nullable().optional(),
|
|
188
187
|
start_date: z.coerce.date().nullable(),
|
|
189
188
|
end_date: z.coerce.date().nullable(),
|
|
190
189
|
status: zSurveyDeploymentStatusSchema,
|
|
191
190
|
allow_edit_answers: z.boolean(),
|
|
192
191
|
allow_partial_submission: z.boolean(),
|
|
192
|
+
section_count: z.number().optional(),
|
|
193
|
+
question_count: z.number().optional(),
|
|
193
194
|
invitees: z.array(zSurveyInviteeSchema).nullable().optional(),
|
|
194
195
|
invitee_count: z.number().optional(),
|
|
195
196
|
submissions: z.array(zSurveySubmissionSchema).nullable().optional(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
|
-
import {
|
|
2
|
+
import { IFireDoc, ITag } from "../shared";
|
|
3
3
|
import { MaskOptions } from "../shared/maska";
|
|
4
4
|
export type SurveyAction = "CREATE_SURVEY" | "DELETE_SURVEY" | "UPDATE_SURVEY";
|
|
5
5
|
export declare enum ISurveyAction {
|
|
@@ -150,13 +150,14 @@ export interface ISurveyInvitee extends IFireDoc {
|
|
|
150
150
|
export interface ISurveyDeployment extends IFireDoc {
|
|
151
151
|
name: string;
|
|
152
152
|
description?: string;
|
|
153
|
-
|
|
154
|
-
survey?: ISurvey | null;
|
|
153
|
+
surveys?: ISurvey[] | null;
|
|
155
154
|
start_date: Date | null;
|
|
156
155
|
end_date: Date | null;
|
|
157
156
|
status: SurveyDeploymentStatus;
|
|
158
157
|
allow_edit_answers: boolean;
|
|
159
158
|
allow_partial_submission: boolean;
|
|
159
|
+
readonly section_count?: number;
|
|
160
|
+
readonly question_count?: number;
|
|
160
161
|
invitees?: ISurveyInvitee[] | null;
|
|
161
162
|
readonly invitee_count?: number;
|
|
162
163
|
submissions?: ISurveySubmission[] | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { IFireDoc, ITag } from "../shared";
|
|
4
4
|
import { MaskOptions } from "../shared/maska";
|
|
5
5
|
|
|
6
6
|
// ---- Survey
|
|
@@ -201,13 +201,14 @@ export interface ISurveyInvitee extends IFireDoc {
|
|
|
201
201
|
export interface ISurveyDeployment extends IFireDoc {
|
|
202
202
|
name: string;
|
|
203
203
|
description?: string;
|
|
204
|
-
|
|
205
|
-
survey?: ISurvey | null;
|
|
204
|
+
surveys?: ISurvey[] | null;
|
|
206
205
|
start_date: Date | null;
|
|
207
206
|
end_date: Date | null;
|
|
208
207
|
status: SurveyDeploymentStatus;
|
|
209
208
|
allow_edit_answers: boolean;
|
|
210
209
|
allow_partial_submission: boolean;
|
|
210
|
+
readonly section_count?: number;
|
|
211
|
+
readonly question_count?: number;
|
|
211
212
|
invitees?: ISurveyInvitee[] | null;
|
|
212
213
|
readonly invitee_count?: number;
|
|
213
214
|
submissions?: ISurveySubmission[] | null;
|