evo360-types 1.1.67 → 1.1.69

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.
@@ -229,7 +229,7 @@ export declare const zSurveyQuestionEssaySchema: z.ZodObject<z.objectUtil.extend
229
229
  }>, "many">>;
230
230
  }>, {
231
231
  type: z.ZodLiteral<"essay">;
232
- lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
232
+ multiple_lines: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
233
233
  length_min: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
234
234
  length_max: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
235
235
  }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -263,7 +263,7 @@ export declare const zSurveyQuestionEssaySchema: z.ZodObject<z.objectUtil.extend
263
263
  }>, "many">>;
264
264
  }>, {
265
265
  type: z.ZodLiteral<"essay">;
266
- lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
266
+ multiple_lines: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
267
267
  length_min: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
268
268
  length_max: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
269
269
  }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -297,7 +297,7 @@ export declare const zSurveyQuestionEssaySchema: z.ZodObject<z.objectUtil.extend
297
297
  }>, "many">>;
298
298
  }>, {
299
299
  type: z.ZodLiteral<"essay">;
300
- lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
300
+ multiple_lines: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
301
301
  length_min: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
302
302
  length_max: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
303
303
  }>, z.ZodTypeAny, "passthrough">>;
@@ -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
- surveySourceRef: z.ZodAny;
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,7 +1112,7 @@ 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"]>;
@@ -1292,36 +1291,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1292
1291
  updated_at?: Date | null | undefined;
1293
1292
  deleted_at?: Date | null | undefined;
1294
1293
  description?: string | undefined;
1295
- submissions?: {
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<{
1294
+ surveys?: z.objectOutputType<z.objectUtil.extendShape<{
1325
1295
  id: z.ZodString;
1326
1296
  ref: z.ZodAny;
1327
1297
  tenant: z.ZodString;
@@ -1350,7 +1320,35 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1350
1320
  hidden: boolean;
1351
1321
  color?: string | undefined;
1352
1322
  }>, "many">>;
1353
- }>, z.ZodTypeAny, "passthrough"> | null | undefined;
1323
+ }>, z.ZodTypeAny, "passthrough">[] | null | undefined;
1324
+ submissions?: {
1325
+ id: string;
1326
+ tenant: string;
1327
+ status: "not_started" | "in_progress" | "completed";
1328
+ modified_after_completion: boolean;
1329
+ user_name: string;
1330
+ ref?: any;
1331
+ model_ver?: number | undefined;
1332
+ created_at?: Date | null | undefined;
1333
+ updated_at?: Date | null | undefined;
1334
+ deleted_at?: Date | null | undefined;
1335
+ deploymentId?: string | undefined;
1336
+ submission_date?: Date | undefined;
1337
+ inviteeId?: string | undefined;
1338
+ responses?: {
1339
+ id: string;
1340
+ tenant: string;
1341
+ date: Date;
1342
+ question_id: string;
1343
+ answer: string | string[];
1344
+ ref?: any;
1345
+ model_ver?: number | undefined;
1346
+ created_at?: Date | null | undefined;
1347
+ updated_at?: Date | null | undefined;
1348
+ deleted_at?: Date | null | undefined;
1349
+ }[] | undefined;
1350
+ }[] | null | undefined;
1351
+ submission_count?: number | undefined;
1354
1352
  invitees?: {
1355
1353
  id: string;
1356
1354
  tenant: string;
@@ -1387,36 +1385,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1387
1385
  updated_at?: Date | null | undefined;
1388
1386
  deleted_at?: Date | null | undefined;
1389
1387
  description?: string | undefined;
1390
- submissions?: {
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<{
1388
+ surveys?: z.objectInputType<z.objectUtil.extendShape<{
1420
1389
  id: z.ZodString;
1421
1390
  ref: z.ZodAny;
1422
1391
  tenant: z.ZodString;
@@ -1445,7 +1414,35 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1445
1414
  hidden: boolean;
1446
1415
  color?: string | undefined;
1447
1416
  }>, "many">>;
1448
- }>, z.ZodTypeAny, "passthrough"> | null | undefined;
1417
+ }>, z.ZodTypeAny, "passthrough">[] | null | undefined;
1418
+ submissions?: {
1419
+ id: string;
1420
+ tenant: string;
1421
+ status: "not_started" | "in_progress" | "completed";
1422
+ modified_after_completion: boolean;
1423
+ ref?: any;
1424
+ model_ver?: number | undefined;
1425
+ created_at?: Date | null | undefined;
1426
+ updated_at?: Date | null | undefined;
1427
+ deleted_at?: Date | null | undefined;
1428
+ deploymentId?: string | undefined;
1429
+ submission_date?: Date | undefined;
1430
+ inviteeId?: string | undefined;
1431
+ user_name?: string | undefined;
1432
+ responses?: {
1433
+ id: string;
1434
+ tenant: string;
1435
+ date: Date;
1436
+ question_id: string;
1437
+ answer: string | string[];
1438
+ ref?: any;
1439
+ model_ver?: number | undefined;
1440
+ created_at?: Date | null | undefined;
1441
+ updated_at?: Date | null | undefined;
1442
+ deleted_at?: Date | null | undefined;
1443
+ }[] | undefined;
1444
+ }[] | null | undefined;
1445
+ submission_count?: number | undefined;
1449
1446
  invitees?: {
1450
1447
  id: string;
1451
1448
  tenant: string;
@@ -65,7 +65,7 @@ exports.zSurveyQuestionScaleSchema = exports.zSurveyQuestionSchema // Extend fro
65
65
  exports.zSurveyQuestionEssaySchema = exports.zSurveyQuestionSchema // Extend from zSurveyQuestionSchema
66
66
  .extend({
67
67
  type: zod_1.z.literal("essay"),
68
- lines: zod_1.z.number().int().min(1).max(50).optional().default(1),
68
+ multiple_lines: zod_1.z.boolean().optional().default(false),
69
69
  length_min: zod_1.z.number().int().min(0).max(2000).optional().default(0),
70
70
  length_max: zod_1.z.number().int().min(0).max(5000).optional().default(1000),
71
71
  });
@@ -165,8 +165,7 @@ 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
- surveySourceRef: zod_1.z.any(),
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,
@@ -73,7 +73,7 @@ export const zSurveyQuestionScaleSchema = zSurveyQuestionSchema // Extend from z
73
73
  export const zSurveyQuestionEssaySchema = zSurveyQuestionSchema // Extend from zSurveyQuestionSchema
74
74
  .extend({
75
75
  type: z.literal("essay"),
76
- lines: z.number().int().min(1).max(50).optional().default(1),
76
+ multiple_lines: z.boolean().optional().default(false),
77
77
  length_min: z.number().int().min(0).max(2000).optional().default(0),
78
78
  length_max: z.number().int().min(0).max(5000).optional().default(1000),
79
79
  });
@@ -183,8 +183,7 @@ 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
- surveySourceRef: z.any(),
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,
@@ -1,5 +1,5 @@
1
1
  export * from "./fb_collections";
2
- import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
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 {
@@ -65,7 +65,7 @@ export interface ISurveyQuestionScale extends ISurveyQuestion {
65
65
  }
66
66
  export interface ISurveyQuestionEssay extends ISurveyQuestion {
67
67
  type: "essay";
68
- lines?: number;
68
+ multiple_lines?: boolean;
69
69
  length_min?: number;
70
70
  length_max?: number;
71
71
  }
@@ -150,8 +150,7 @@ export interface ISurveyInvitee extends IFireDoc {
150
150
  export interface ISurveyDeployment extends IFireDoc {
151
151
  name: string;
152
152
  description?: string;
153
- surveySourceRef?: FirestoreDocumentReference;
154
- survey?: ISurvey | null;
153
+ surveys?: ISurvey[] | null;
155
154
  start_date: Date | null;
156
155
  end_date: Date | null;
157
156
  status: SurveyDeploymentStatus;
@@ -90,7 +90,7 @@ export interface ISurveyQuestionScale extends ISurveyQuestion {
90
90
 
91
91
  export interface ISurveyQuestionEssay extends ISurveyQuestion {
92
92
  type: "essay";
93
- lines?: number;
93
+ multiple_lines?: boolean;
94
94
  length_min?: number;
95
95
  length_max?: number;
96
96
  }
@@ -201,8 +201,7 @@ export interface ISurveyInvitee extends IFireDoc {
201
201
  export interface ISurveyDeployment extends IFireDoc {
202
202
  name: string;
203
203
  description?: string;
204
- surveySourceRef?: FirestoreDocumentReference;
205
- survey?: ISurvey | null;
204
+ surveys?: ISurvey[] | null;
206
205
  start_date: Date | null;
207
206
  end_date: Date | null;
208
207
  status: SurveyDeploymentStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.1.67",
3
+ "version": "1.1.69",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",