evo360-types 1.1.56 → 1.1.58

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.
@@ -10,7 +10,7 @@ export declare const zProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
10
10
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11
11
  }, {
12
12
  display_name: z.ZodString;
13
- last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ last_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
14
14
  first_name: z.ZodNullable<z.ZodString>;
15
15
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  birthdate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -26,7 +26,7 @@ export declare const zProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
26
26
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
27
27
  }, {
28
28
  display_name: z.ZodString;
29
- last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ last_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
30
30
  first_name: z.ZodNullable<z.ZodString>;
31
31
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  birthdate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -42,7 +42,7 @@ export declare const zProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
42
42
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
43
43
  }, {
44
44
  display_name: z.ZodString;
45
- last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ last_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
46
46
  first_name: z.ZodNullable<z.ZodString>;
47
47
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  birthdate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -60,7 +60,7 @@ export declare const zEmployeeSchema: z.ZodObject<z.objectUtil.extendShape<z.obj
60
60
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
61
61
  }, {
62
62
  display_name: z.ZodString;
63
- last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ last_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
64
64
  first_name: z.ZodNullable<z.ZodString>;
65
65
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
66
  birthdate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -107,7 +107,7 @@ export declare const zEmployeeSchema: z.ZodObject<z.objectUtil.extendShape<z.obj
107
107
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
108
108
  }, {
109
109
  display_name: z.ZodString;
110
- last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ last_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
111
111
  first_name: z.ZodNullable<z.ZodString>;
112
112
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
113
  birthdate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -154,7 +154,7 @@ export declare const zEmployeeSchema: z.ZodObject<z.objectUtil.extendShape<z.obj
154
154
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
155
155
  }, {
156
156
  display_name: z.ZodString;
157
- last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ last_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
158
158
  first_name: z.ZodNullable<z.ZodString>;
159
159
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
160
  birthdate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -40,7 +40,7 @@ exports.zPeopleActionSchema = zod_1.z.enum([
40
40
  exports.zProfileSchema = zod_schemas_1.zFireDocSchema
41
41
  .extend({
42
42
  display_name: zod_1.z.string().min(1).max(255),
43
- last_name: zod_1.z.string().max(255).nullable().optional(),
43
+ last_name: zod_1.z.string().max(255).nullable().optional().default(""),
44
44
  first_name: zod_1.z.string().min(1).max(255).nullable(),
45
45
  gender: zod_1.z.string().max(255).nullable().optional(),
46
46
  birthdate: zod_1.z.coerce.date().nullable().optional(),
@@ -39,7 +39,7 @@ export const zPeopleActionSchema = z.enum([
39
39
  export const zProfileSchema = zFireDocSchema
40
40
  .extend({
41
41
  display_name: z.string().min(1).max(255),
42
- last_name: z.string().max(255).nullable().optional(),
42
+ last_name: z.string().max(255).nullable().optional().default(""),
43
43
  first_name: z.string().min(1).max(255).nullable(),
44
44
  gender: z.string().max(255).nullable().optional(),
45
45
  birthdate: z.coerce.date().nullable().optional(),
@@ -452,9 +452,9 @@ export declare const zSurveySchema: z.ZodObject<z.objectUtil.extendShape<{
452
452
  }, {
453
453
  name: z.ZodString;
454
454
  description: z.ZodOptional<z.ZodString>;
455
- status: z.ZodDefault<z.ZodEnum<["draft", "ready", "archived"]>>;
456
- permission: z.ZodDefault<z.ZodEnum<["private", "company", "public"]>>;
457
- type: z.ZodDefault<z.ZodEnum<["360", "general"]>>;
455
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
456
+ permission: z.ZodEnum<["private", "company", "public"]>;
457
+ type: z.ZodEnum<["360", "general"]>;
458
458
  section_counters: z.ZodOptional<z.ZodAny>;
459
459
  question_counters: z.ZodOptional<z.ZodAny>;
460
460
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -481,9 +481,9 @@ export declare const zSurveySchema: z.ZodObject<z.objectUtil.extendShape<{
481
481
  }, {
482
482
  name: z.ZodString;
483
483
  description: z.ZodOptional<z.ZodString>;
484
- status: z.ZodDefault<z.ZodEnum<["draft", "ready", "archived"]>>;
485
- permission: z.ZodDefault<z.ZodEnum<["private", "company", "public"]>>;
486
- type: z.ZodDefault<z.ZodEnum<["360", "general"]>>;
484
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
485
+ permission: z.ZodEnum<["private", "company", "public"]>;
486
+ type: z.ZodEnum<["360", "general"]>;
487
487
  section_counters: z.ZodOptional<z.ZodAny>;
488
488
  question_counters: z.ZodOptional<z.ZodAny>;
489
489
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -510,9 +510,9 @@ export declare const zSurveySchema: z.ZodObject<z.objectUtil.extendShape<{
510
510
  }, {
511
511
  name: z.ZodString;
512
512
  description: z.ZodOptional<z.ZodString>;
513
- status: z.ZodDefault<z.ZodEnum<["draft", "ready", "archived"]>>;
514
- permission: z.ZodDefault<z.ZodEnum<["private", "company", "public"]>>;
515
- type: z.ZodDefault<z.ZodEnum<["360", "general"]>>;
513
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
514
+ permission: z.ZodEnum<["private", "company", "public"]>;
515
+ type: z.ZodEnum<["360", "general"]>;
516
516
  section_counters: z.ZodOptional<z.ZodAny>;
517
517
  question_counters: z.ZodOptional<z.ZodAny>;
518
518
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -575,10 +575,10 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
575
575
  }, {
576
576
  deploymentId: z.ZodOptional<z.ZodString>;
577
577
  submission_date: z.ZodOptional<z.ZodDate>;
578
- status: z.ZodDefault<z.ZodEnum<["not_started", "in_progress", "completed"]>>;
578
+ status: z.ZodEnum<["not_started", "in_progress", "completed"]>;
579
579
  modified_after_completion: z.ZodBoolean;
580
580
  inviteeId: z.ZodOptional<z.ZodString>;
581
- user_name: z.ZodOptional<z.ZodString>;
581
+ user_name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
582
582
  responses: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
583
583
  id: z.ZodString;
584
584
  ref: z.ZodAny;
@@ -619,6 +619,7 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
619
619
  tenant: string;
620
620
  status: "not_started" | "in_progress" | "completed";
621
621
  modified_after_completion: boolean;
622
+ user_name: string;
622
623
  ref?: any;
623
624
  model_ver?: number | undefined;
624
625
  created_at?: Date | null | undefined;
@@ -627,7 +628,6 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
627
628
  deploymentId?: string | undefined;
628
629
  submission_date?: Date | undefined;
629
630
  inviteeId?: string | undefined;
630
- user_name?: string | undefined;
631
631
  responses?: {
632
632
  id: string;
633
633
  tenant: string;
@@ -643,13 +643,13 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
643
643
  }, {
644
644
  id: string;
645
645
  tenant: string;
646
+ status: "not_started" | "in_progress" | "completed";
646
647
  modified_after_completion: boolean;
647
648
  ref?: any;
648
649
  model_ver?: number | undefined;
649
650
  created_at?: Date | null | undefined;
650
651
  updated_at?: Date | null | undefined;
651
652
  deleted_at?: Date | null | undefined;
652
- status?: "not_started" | "in_progress" | "completed" | undefined;
653
653
  deploymentId?: string | undefined;
654
654
  submission_date?: Date | undefined;
655
655
  inviteeId?: string | undefined;
@@ -677,7 +677,7 @@ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<
677
677
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
678
678
  }, {
679
679
  name: z.ZodString;
680
- email: z.ZodDefault<z.ZodOptional<z.ZodString>>;
680
+ email: z.ZodOptional<z.ZodString>;
681
681
  phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
682
682
  isAnonymous: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
683
683
  submissionId: z.ZodOptional<z.ZodString>;
@@ -685,7 +685,6 @@ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<
685
685
  }>, "strip", z.ZodTypeAny, {
686
686
  id: string;
687
687
  tenant: string;
688
- email: string;
689
688
  name: string;
690
689
  phone: string;
691
690
  isAnonymous: boolean;
@@ -695,6 +694,7 @@ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<
695
694
  created_at?: Date | null | undefined;
696
695
  updated_at?: Date | null | undefined;
697
696
  deleted_at?: Date | null | undefined;
697
+ email?: string | undefined;
698
698
  submissionId?: string | undefined;
699
699
  }, {
700
700
  id: string;
@@ -734,9 +734,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
734
734
  }, {
735
735
  name: z.ZodString;
736
736
  description: z.ZodOptional<z.ZodString>;
737
- status: z.ZodDefault<z.ZodEnum<["draft", "ready", "archived"]>>;
738
- permission: z.ZodDefault<z.ZodEnum<["private", "company", "public"]>>;
739
- type: z.ZodDefault<z.ZodEnum<["360", "general"]>>;
737
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
738
+ permission: z.ZodEnum<["private", "company", "public"]>;
739
+ type: z.ZodEnum<["360", "general"]>;
740
740
  section_counters: z.ZodOptional<z.ZodAny>;
741
741
  question_counters: z.ZodOptional<z.ZodAny>;
742
742
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -763,9 +763,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
763
763
  }, {
764
764
  name: z.ZodString;
765
765
  description: z.ZodOptional<z.ZodString>;
766
- status: z.ZodDefault<z.ZodEnum<["draft", "ready", "archived"]>>;
767
- permission: z.ZodDefault<z.ZodEnum<["private", "company", "public"]>>;
768
- type: z.ZodDefault<z.ZodEnum<["360", "general"]>>;
766
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
767
+ permission: z.ZodEnum<["private", "company", "public"]>;
768
+ type: z.ZodEnum<["360", "general"]>;
769
769
  section_counters: z.ZodOptional<z.ZodAny>;
770
770
  question_counters: z.ZodOptional<z.ZodAny>;
771
771
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -792,9 +792,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
792
792
  }, {
793
793
  name: z.ZodString;
794
794
  description: z.ZodOptional<z.ZodString>;
795
- status: z.ZodDefault<z.ZodEnum<["draft", "ready", "archived"]>>;
796
- permission: z.ZodDefault<z.ZodEnum<["private", "company", "public"]>>;
797
- type: z.ZodDefault<z.ZodEnum<["360", "general"]>>;
795
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
796
+ permission: z.ZodEnum<["private", "company", "public"]>;
797
+ type: z.ZodEnum<["360", "general"]>;
798
798
  section_counters: z.ZodOptional<z.ZodAny>;
799
799
  question_counters: z.ZodOptional<z.ZodAny>;
800
800
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -826,7 +826,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
826
826
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
827
827
  }, {
828
828
  name: z.ZodString;
829
- email: z.ZodDefault<z.ZodOptional<z.ZodString>>;
829
+ email: z.ZodOptional<z.ZodString>;
830
830
  phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
831
831
  isAnonymous: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
832
832
  submissionId: z.ZodOptional<z.ZodString>;
@@ -834,7 +834,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
834
834
  }>, "strip", z.ZodTypeAny, {
835
835
  id: string;
836
836
  tenant: string;
837
- email: string;
838
837
  name: string;
839
838
  phone: string;
840
839
  isAnonymous: boolean;
@@ -844,6 +843,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
844
843
  created_at?: Date | null | undefined;
845
844
  updated_at?: Date | null | undefined;
846
845
  deleted_at?: Date | null | undefined;
846
+ email?: string | undefined;
847
847
  submissionId?: string | undefined;
848
848
  }, {
849
849
  id: string;
@@ -872,10 +872,10 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
872
872
  }, {
873
873
  deploymentId: z.ZodOptional<z.ZodString>;
874
874
  submission_date: z.ZodOptional<z.ZodDate>;
875
- status: z.ZodDefault<z.ZodEnum<["not_started", "in_progress", "completed"]>>;
875
+ status: z.ZodEnum<["not_started", "in_progress", "completed"]>;
876
876
  modified_after_completion: z.ZodBoolean;
877
877
  inviteeId: z.ZodOptional<z.ZodString>;
878
- user_name: z.ZodOptional<z.ZodString>;
878
+ user_name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
879
879
  responses: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
880
880
  id: z.ZodString;
881
881
  ref: z.ZodAny;
@@ -916,6 +916,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
916
916
  tenant: string;
917
917
  status: "not_started" | "in_progress" | "completed";
918
918
  modified_after_completion: boolean;
919
+ user_name: string;
919
920
  ref?: any;
920
921
  model_ver?: number | undefined;
921
922
  created_at?: Date | null | undefined;
@@ -924,7 +925,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
924
925
  deploymentId?: string | undefined;
925
926
  submission_date?: Date | undefined;
926
927
  inviteeId?: string | undefined;
927
- user_name?: string | undefined;
928
928
  responses?: {
929
929
  id: string;
930
930
  tenant: string;
@@ -940,13 +940,13 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
940
940
  }, {
941
941
  id: string;
942
942
  tenant: string;
943
+ status: "not_started" | "in_progress" | "completed";
943
944
  modified_after_completion: boolean;
944
945
  ref?: any;
945
946
  model_ver?: number | undefined;
946
947
  created_at?: Date | null | undefined;
947
948
  updated_at?: Date | null | undefined;
948
949
  deleted_at?: Date | null | undefined;
949
- status?: "not_started" | "in_progress" | "completed" | undefined;
950
950
  deploymentId?: string | undefined;
951
951
  submission_date?: Date | undefined;
952
952
  inviteeId?: string | undefined;
@@ -988,6 +988,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
988
988
  tenant: string;
989
989
  status: "not_started" | "in_progress" | "completed";
990
990
  modified_after_completion: boolean;
991
+ user_name: string;
991
992
  ref?: any;
992
993
  model_ver?: number | undefined;
993
994
  created_at?: Date | null | undefined;
@@ -996,7 +997,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
996
997
  deploymentId?: string | undefined;
997
998
  submission_date?: Date | undefined;
998
999
  inviteeId?: string | undefined;
999
- user_name?: string | undefined;
1000
1000
  responses?: {
1001
1001
  id: string;
1002
1002
  tenant: string;
@@ -1023,9 +1023,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1023
1023
  }, {
1024
1024
  name: z.ZodString;
1025
1025
  description: z.ZodOptional<z.ZodString>;
1026
- status: z.ZodDefault<z.ZodEnum<["draft", "ready", "archived"]>>;
1027
- permission: z.ZodDefault<z.ZodEnum<["private", "company", "public"]>>;
1028
- type: z.ZodDefault<z.ZodEnum<["360", "general"]>>;
1026
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
1027
+ permission: z.ZodEnum<["private", "company", "public"]>;
1028
+ type: z.ZodEnum<["360", "general"]>;
1029
1029
  section_counters: z.ZodOptional<z.ZodAny>;
1030
1030
  question_counters: z.ZodOptional<z.ZodAny>;
1031
1031
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1045,7 +1045,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1045
1045
  invitees?: {
1046
1046
  id: string;
1047
1047
  tenant: string;
1048
- email: string;
1049
1048
  name: string;
1050
1049
  phone: string;
1051
1050
  isAnonymous: boolean;
@@ -1055,6 +1054,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1055
1054
  created_at?: Date | null | undefined;
1056
1055
  updated_at?: Date | null | undefined;
1057
1056
  deleted_at?: Date | null | undefined;
1057
+ email?: string | undefined;
1058
1058
  submissionId?: string | undefined;
1059
1059
  }[] | null | undefined;
1060
1060
  invitee_count?: number | undefined;
@@ -1079,13 +1079,13 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1079
1079
  submissions?: {
1080
1080
  id: string;
1081
1081
  tenant: string;
1082
+ status: "not_started" | "in_progress" | "completed";
1082
1083
  modified_after_completion: boolean;
1083
1084
  ref?: any;
1084
1085
  model_ver?: number | undefined;
1085
1086
  created_at?: Date | null | undefined;
1086
1087
  updated_at?: Date | null | undefined;
1087
1088
  deleted_at?: Date | null | undefined;
1088
- status?: "not_started" | "in_progress" | "completed" | undefined;
1089
1089
  deploymentId?: string | undefined;
1090
1090
  submission_date?: Date | undefined;
1091
1091
  inviteeId?: string | undefined;
@@ -1116,9 +1116,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1116
1116
  }, {
1117
1117
  name: z.ZodString;
1118
1118
  description: z.ZodOptional<z.ZodString>;
1119
- status: z.ZodDefault<z.ZodEnum<["draft", "ready", "archived"]>>;
1120
- permission: z.ZodDefault<z.ZodEnum<["private", "company", "public"]>>;
1121
- type: z.ZodDefault<z.ZodEnum<["360", "general"]>>;
1119
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
1120
+ permission: z.ZodEnum<["private", "company", "public"]>;
1121
+ type: z.ZodEnum<["360", "general"]>;
1122
1122
  section_counters: z.ZodOptional<z.ZodAny>;
1123
1123
  question_counters: z.ZodOptional<z.ZodAny>;
1124
1124
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -92,9 +92,9 @@ exports.zSurveySchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchem
92
92
  .extend({
93
93
  name: zod_1.z.string().min(1).max(255),
94
94
  description: zod_1.z.string().max(2048).optional(),
95
- status: exports.zSurveyStatusSchema.default("draft"),
96
- permission: exports.zSurveyPermissionSchema.default("private"),
97
- type: exports.zSurveyTypeSchema.default("general"),
95
+ status: exports.zSurveyStatusSchema,
96
+ permission: exports.zSurveyPermissionSchema,
97
+ type: exports.zSurveyTypeSchema,
98
98
  //sections: z.array(zSurveySectionSchema).optional(),
99
99
  section_counters: zod_1.z.any().optional(),
100
100
  question_counters: zod_1.z.any().optional(),
@@ -113,17 +113,17 @@ exports.zSurveySubmissionSchema = zod_schemas_1.zFireDocSchema // Extend from Fi
113
113
  .extend({
114
114
  deploymentId: zod_1.z.string().optional(),
115
115
  submission_date: zod_1.z.coerce.date().optional(),
116
- status: exports.zSurveySubmissionStatusSchema.default("not_started"),
116
+ status: exports.zSurveySubmissionStatusSchema,
117
117
  modified_after_completion: zod_1.z.boolean(),
118
118
  inviteeId: zod_1.z.string().optional(),
119
- user_name: zod_1.z.string().optional(),
119
+ user_name: zod_1.z.string().optional().default(""),
120
120
  responses: zod_1.z.array(exports.zSurveyResponseSchema).optional(),
121
121
  });
122
122
  // Survey Invitee
123
123
  exports.zSurveyInviteeSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
124
124
  .extend({
125
125
  name: zod_1.z.string().max(255),
126
- email: zod_1.z.string().max(255).email().optional().default(""),
126
+ email: zod_1.z.string().max(255).email().optional(),
127
127
  phone: zod_1.z.string().max(60).optional().default(""),
128
128
  isAnonymous: zod_1.z.boolean().optional().default(false),
129
129
  submissionId: zod_1.z.string().optional(),
@@ -103,9 +103,9 @@ export const zSurveySchema = zFireDocSchema // Extend from FireDocSchema
103
103
  .extend({
104
104
  name: z.string().min(1).max(255),
105
105
  description: z.string().max(2048).optional(),
106
- status: zSurveyStatusSchema.default("draft"),
107
- permission: zSurveyPermissionSchema.default("private"),
108
- type: zSurveyTypeSchema.default("general"),
106
+ status: zSurveyStatusSchema,
107
+ permission: zSurveyPermissionSchema,
108
+ type: zSurveyTypeSchema,
109
109
  //sections: z.array(zSurveySectionSchema).optional(),
110
110
  section_counters: z.any().optional(),
111
111
  question_counters: z.any().optional(),
@@ -126,10 +126,10 @@ export const zSurveySubmissionSchema = zFireDocSchema // Extend from FireDocSche
126
126
  .extend({
127
127
  deploymentId: z.string().optional(),
128
128
  submission_date: z.coerce.date().optional(),
129
- status: zSurveySubmissionStatusSchema.default("not_started"),
129
+ status: zSurveySubmissionStatusSchema,
130
130
  modified_after_completion: z.boolean(),
131
131
  inviteeId: z.string().optional(),
132
- user_name: z.string().optional(),
132
+ user_name: z.string().optional().default(""),
133
133
  responses: z.array(zSurveyResponseSchema).optional(),
134
134
  });
135
135
 
@@ -137,7 +137,7 @@ export const zSurveySubmissionSchema = zFireDocSchema // Extend from FireDocSche
137
137
  export const zSurveyInviteeSchema = zFireDocSchema // Extend from FireDocSchema
138
138
  .extend({
139
139
  name: z.string().max(255),
140
- email: z.string().max(255).email().optional().default(""),
140
+ email: z.string().max(255).email().optional(),
141
141
  phone: z.string().max(60).optional().default(""),
142
142
  isAnonymous: z.boolean().optional().default(false),
143
143
  submissionId: z.string().optional(),
@@ -127,28 +127,6 @@ export enum ISurveyDeploymentStatus {
127
127
  Paused = "paused", // A aplicação está pausada, está sem receber submissões temporariamente
128
128
  }
129
129
 
130
- // export interface IDepSurvey {
131
- // sourceRef: FirestoreDocumentReference;
132
- // name: string;
133
- // description?: string;
134
- // type: SurveyType;
135
- // sections: IDepSurveySection[];
136
- // readonly section_counters?: ISectionCounters;
137
- // readonly question_counters?: IQuestionCounters;
138
- // }
139
-
140
- // export interface IDepSurveySection {
141
- // name: string;
142
- // description?: string;
143
- // order?: number;
144
- // questions?: (
145
- // | ISurveyQuestionEssay
146
- // | ISurveyQuestionScale
147
- // | ISurveyQuestionMultipleChoice
148
- // )[];
149
- // readonly question_counters?: IQuestionCounters;
150
- // }
151
-
152
130
  export type SurveySubmissionStatus =
153
131
  | "not_started"
154
132
  | "in_progress"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.1.56",
3
+ "version": "1.1.58",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",