evo360-types 1.1.65 → 1.1.67

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,6 +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
233
  length_min: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
233
234
  length_max: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
234
235
  }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -262,6 +263,7 @@ export declare const zSurveyQuestionEssaySchema: z.ZodObject<z.objectUtil.extend
262
263
  }>, "many">>;
263
264
  }>, {
264
265
  type: z.ZodLiteral<"essay">;
266
+ lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
265
267
  length_min: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
266
268
  length_max: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
267
269
  }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -295,6 +297,7 @@ export declare const zSurveyQuestionEssaySchema: z.ZodObject<z.objectUtil.extend
295
297
  }>, "many">>;
296
298
  }>, {
297
299
  type: z.ZodLiteral<"essay">;
300
+ lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
298
301
  length_min: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
299
302
  length_max: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
300
303
  }>, z.ZodTypeAny, "passthrough">>;
@@ -65,6 +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
69
  length_min: zod_1.z.number().int().min(0).max(2000).optional().default(0),
69
70
  length_max: zod_1.z.number().int().min(0).max(5000).optional().default(1000),
70
71
  });
@@ -73,6 +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
77
  length_min: z.number().int().min(0).max(2000).optional().default(0),
77
78
  length_max: z.number().int().min(0).max(5000).optional().default(1000),
78
79
  });
@@ -65,6 +65,7 @@ export interface ISurveyQuestionScale extends ISurveyQuestion {
65
65
  }
66
66
  export interface ISurveyQuestionEssay extends ISurveyQuestion {
67
67
  type: "essay";
68
+ lines?: number;
68
69
  length_min?: number;
69
70
  length_max?: number;
70
71
  }
@@ -75,8 +76,8 @@ export interface ISurveyQuestionMultipleChoice extends ISurveyQuestion {
75
76
  }
76
77
  export interface ISurveyQuestionDate extends ISurveyQuestion {
77
78
  type: "date";
78
- date_min?: Date;
79
- date_max?: Date;
79
+ date_min?: Date | null;
80
+ date_max?: Date | null;
80
81
  }
81
82
  export interface ISurveyQuestionPhone extends ISurveyQuestion {
82
83
  type: "phone";
@@ -90,6 +90,7 @@ export interface ISurveyQuestionScale extends ISurveyQuestion {
90
90
 
91
91
  export interface ISurveyQuestionEssay extends ISurveyQuestion {
92
92
  type: "essay";
93
+ lines?: number;
93
94
  length_min?: number;
94
95
  length_max?: number;
95
96
  }
@@ -102,8 +103,8 @@ export interface ISurveyQuestionMultipleChoice extends ISurveyQuestion {
102
103
 
103
104
  export interface ISurveyQuestionDate extends ISurveyQuestion {
104
105
  type: "date";
105
- date_min?: Date;
106
- date_max?: Date;
106
+ date_min?: Date | null;
107
+ date_max?: Date | null;
107
108
  }
108
109
  export interface ISurveyQuestionPhone extends ISurveyQuestion {
109
110
  type: "phone";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.1.65",
3
+ "version": "1.1.67",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",