@critical-path/core 0.55.0 → 0.57.0
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.
- package/CHANGELOG.md +26 -0
- package/README.md +1 -1
- package/dist/domain/authorization.d.ts.map +1 -1
- package/dist/domain/authorization.js +3 -0
- package/dist/domain/authorization.js.map +1 -1
- package/dist/domain/cpm.d.ts.map +1 -1
- package/dist/domain/cpm.js +111 -158
- package/dist/domain/cpm.js.map +1 -1
- package/dist/domain/events.d.ts +18 -2
- package/dist/domain/events.d.ts.map +1 -1
- package/dist/domain/events.js +2 -0
- package/dist/domain/events.js.map +1 -1
- package/dist/engine/index.d.ts +15 -1
- package/dist/engine/index.d.ts.map +1 -1
- package/dist/engine/index.js +104 -29
- package/dist/engine/index.js.map +1 -1
- package/dist/schemas/index.d.ts +301 -153
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +55 -21
- package/dist/schemas/index.js.map +1 -1
- package/dist/store/firebase.d.ts +56 -13
- package/dist/store/firebase.d.ts.map +1 -1
- package/dist/store/firebase.js +83 -71
- package/dist/store/firebase.js.map +1 -1
- package/dist/store/index.d.ts +5 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +11 -0
- package/dist/store/index.js.map +1 -1
- package/dist/store/sqlite.d.ts +2 -0
- package/dist/store/sqlite.d.ts.map +1 -1
- package/dist/store/sqlite.js +15 -0
- package/dist/store/sqlite.js.map +1 -1
- package/dist/testing/conformance.d.ts.map +1 -1
- package/dist/testing/conformance.js +6 -0
- package/dist/testing/conformance.js.map +1 -1
- package/dist/types/index.d.ts +16 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/update.d.ts +7 -0
- package/dist/utils/update.d.ts.map +1 -0
- package/dist/utils/update.js +16 -0
- package/dist/utils/update.js.map +1 -0
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -559,8 +559,8 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
559
559
|
halfDay?: boolean | undefined;
|
|
560
560
|
}[] | undefined;
|
|
561
561
|
}>>;
|
|
562
|
-
startDate: z.ZodOptional<z.ZodString
|
|
563
|
-
targetEndDate: z.ZodOptional<z.ZodString
|
|
562
|
+
startDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
563
|
+
targetEndDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
564
564
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
565
565
|
}, "strict", z.ZodTypeAny, {
|
|
566
566
|
name: string;
|
|
@@ -690,11 +690,9 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
690
690
|
customFields?: Record<string, unknown> | undefined;
|
|
691
691
|
}>;
|
|
692
692
|
export declare const UpdateProjectSchema: z.ZodObject<{
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
ownerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
697
|
-
members: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
693
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
694
|
+
ownerId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
695
|
+
members: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
698
696
|
userId: z.ZodString;
|
|
699
697
|
role: z.ZodEnum<["admin", "project_manager", "contributor", "viewer"]>;
|
|
700
698
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -712,10 +710,22 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
712
710
|
}, {
|
|
713
711
|
teamId: string;
|
|
714
712
|
role: "admin" | "project_manager" | "contributor" | "viewer";
|
|
715
|
-
}>]>, "many"
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
713
|
+
}>]>, "many">>>, ({
|
|
714
|
+
userId: string;
|
|
715
|
+
role: "admin" | "project_manager" | "contributor" | "viewer";
|
|
716
|
+
} | {
|
|
717
|
+
teamId: string;
|
|
718
|
+
role: "admin" | "project_manager" | "contributor" | "viewer";
|
|
719
|
+
})[] | undefined, ({
|
|
720
|
+
userId: string;
|
|
721
|
+
role: "admin" | "project_manager" | "contributor" | "viewer";
|
|
722
|
+
} | {
|
|
723
|
+
teamId: string;
|
|
724
|
+
role: "admin" | "project_manager" | "contributor" | "viewer";
|
|
725
|
+
})[] | null | undefined>>>;
|
|
726
|
+
teamIds: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>, string[] | undefined, string[] | null | undefined>>>;
|
|
727
|
+
workflowId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
728
|
+
taskTypes: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
719
729
|
key: z.ZodString;
|
|
720
730
|
label: z.ZodString;
|
|
721
731
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -736,8 +746,22 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
736
746
|
workflowId?: string | undefined;
|
|
737
747
|
defaultStatusKey?: string | undefined;
|
|
738
748
|
icon?: string | undefined;
|
|
739
|
-
}>, "many"
|
|
740
|
-
|
|
749
|
+
}>, "many">>>, {
|
|
750
|
+
key: string;
|
|
751
|
+
label: string;
|
|
752
|
+
description?: string | undefined;
|
|
753
|
+
workflowId?: string | undefined;
|
|
754
|
+
defaultStatusKey?: string | undefined;
|
|
755
|
+
icon?: string | undefined;
|
|
756
|
+
}[] | undefined, {
|
|
757
|
+
key: string;
|
|
758
|
+
label: string;
|
|
759
|
+
description?: string | undefined;
|
|
760
|
+
workflowId?: string | undefined;
|
|
761
|
+
defaultStatusKey?: string | undefined;
|
|
762
|
+
icon?: string | undefined;
|
|
763
|
+
}[] | null | undefined>>>;
|
|
764
|
+
statusDefinitions: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
741
765
|
key: z.ZodString;
|
|
742
766
|
label: z.ZodString;
|
|
743
767
|
category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
|
|
@@ -749,8 +773,16 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
749
773
|
key: string;
|
|
750
774
|
category: "in_progress" | "canceled" | "not_started" | "completed";
|
|
751
775
|
label: string;
|
|
752
|
-
}>, "many"
|
|
753
|
-
|
|
776
|
+
}>, "many">>>, {
|
|
777
|
+
key: string;
|
|
778
|
+
category: "in_progress" | "canceled" | "not_started" | "completed";
|
|
779
|
+
label: string;
|
|
780
|
+
}[] | undefined, {
|
|
781
|
+
key: string;
|
|
782
|
+
category: "in_progress" | "canceled" | "not_started" | "completed";
|
|
783
|
+
label: string;
|
|
784
|
+
}[] | null | undefined>>>;
|
|
785
|
+
priorityDefinitions: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
754
786
|
key: z.ZodString;
|
|
755
787
|
label: z.ZodString;
|
|
756
788
|
level: z.ZodOptional<z.ZodNumber>;
|
|
@@ -762,8 +794,16 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
762
794
|
key: string;
|
|
763
795
|
label: string;
|
|
764
796
|
level?: number | undefined;
|
|
765
|
-
}>, "many"
|
|
766
|
-
|
|
797
|
+
}>, "many">>>, {
|
|
798
|
+
key: string;
|
|
799
|
+
label: string;
|
|
800
|
+
level?: number | undefined;
|
|
801
|
+
}[] | undefined, {
|
|
802
|
+
key: string;
|
|
803
|
+
label: string;
|
|
804
|
+
level?: number | undefined;
|
|
805
|
+
}[] | null | undefined>>>;
|
|
806
|
+
customFieldDefinitions: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
767
807
|
id: z.ZodString;
|
|
768
808
|
key: z.ZodString;
|
|
769
809
|
label: z.ZodString;
|
|
@@ -788,8 +828,24 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
788
828
|
options?: string[] | undefined;
|
|
789
829
|
required?: boolean | undefined;
|
|
790
830
|
defaultValue?: unknown;
|
|
791
|
-
}>, "many"
|
|
792
|
-
|
|
831
|
+
}>, "many">>>, {
|
|
832
|
+
id: string;
|
|
833
|
+
key: string;
|
|
834
|
+
type: string;
|
|
835
|
+
label: string;
|
|
836
|
+
options?: string[] | undefined;
|
|
837
|
+
required?: boolean | undefined;
|
|
838
|
+
defaultValue?: unknown;
|
|
839
|
+
}[] | undefined, {
|
|
840
|
+
id: string;
|
|
841
|
+
key: string;
|
|
842
|
+
type: string;
|
|
843
|
+
label: string;
|
|
844
|
+
options?: string[] | undefined;
|
|
845
|
+
required?: boolean | undefined;
|
|
846
|
+
defaultValue?: unknown;
|
|
847
|
+
}[] | null | undefined>>>;
|
|
848
|
+
schedule: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
793
849
|
id: z.ZodOptional<z.ZodString>;
|
|
794
850
|
name: z.ZodOptional<z.ZodString>;
|
|
795
851
|
timezone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -871,10 +927,48 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
871
927
|
name?: string | undefined;
|
|
872
928
|
halfDay?: boolean | undefined;
|
|
873
929
|
}[] | undefined;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
930
|
+
}>>>, {
|
|
931
|
+
days: {
|
|
932
|
+
isWorkingDay: boolean;
|
|
933
|
+
dayOfWeek: number;
|
|
934
|
+
hours?: {
|
|
935
|
+
end: string;
|
|
936
|
+
start: string;
|
|
937
|
+
}[] | undefined;
|
|
938
|
+
}[];
|
|
939
|
+
name?: string | undefined;
|
|
940
|
+
id?: string | undefined;
|
|
941
|
+
timezone?: string | undefined;
|
|
942
|
+
defaultHoursPerDay?: number | undefined;
|
|
943
|
+
holidays?: {
|
|
944
|
+
date: string;
|
|
945
|
+
name?: string | undefined;
|
|
946
|
+
halfDay?: boolean | undefined;
|
|
947
|
+
}[] | undefined;
|
|
948
|
+
} | undefined, {
|
|
949
|
+
days: {
|
|
950
|
+
isWorkingDay: boolean;
|
|
951
|
+
dayOfWeek: number;
|
|
952
|
+
hours?: {
|
|
953
|
+
end: string;
|
|
954
|
+
start: string;
|
|
955
|
+
}[] | undefined;
|
|
956
|
+
}[];
|
|
957
|
+
name?: string | undefined;
|
|
958
|
+
id?: string | undefined;
|
|
959
|
+
timezone?: string | undefined;
|
|
960
|
+
defaultHoursPerDay?: number | undefined;
|
|
961
|
+
holidays?: {
|
|
962
|
+
date: string;
|
|
963
|
+
name?: string | undefined;
|
|
964
|
+
halfDay?: boolean | undefined;
|
|
965
|
+
}[] | undefined;
|
|
966
|
+
} | null | undefined>>>;
|
|
967
|
+
startDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
968
|
+
targetEndDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
969
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
970
|
+
name: z.ZodOptional<z.ZodString>;
|
|
971
|
+
key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
878
972
|
} & {
|
|
879
973
|
/**
|
|
880
974
|
* Not stored. When the update changes the project's statuses, maps each status tasks are in that
|
|
@@ -948,17 +1042,17 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
948
1042
|
}, {
|
|
949
1043
|
name?: string | undefined;
|
|
950
1044
|
key?: string | undefined;
|
|
951
|
-
description?: string | undefined;
|
|
952
|
-
ownerId?: string | undefined;
|
|
1045
|
+
description?: string | null | undefined;
|
|
1046
|
+
ownerId?: string | null | undefined;
|
|
953
1047
|
members?: ({
|
|
954
1048
|
userId: string;
|
|
955
1049
|
role: "admin" | "project_manager" | "contributor" | "viewer";
|
|
956
1050
|
} | {
|
|
957
1051
|
teamId: string;
|
|
958
1052
|
role: "admin" | "project_manager" | "contributor" | "viewer";
|
|
959
|
-
})[] | undefined;
|
|
960
|
-
teamIds?: string[] | undefined;
|
|
961
|
-
workflowId?: string | undefined;
|
|
1053
|
+
})[] | null | undefined;
|
|
1054
|
+
teamIds?: string[] | null | undefined;
|
|
1055
|
+
workflowId?: string | null | undefined;
|
|
962
1056
|
taskTypes?: {
|
|
963
1057
|
key: string;
|
|
964
1058
|
label: string;
|
|
@@ -966,17 +1060,17 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
966
1060
|
workflowId?: string | undefined;
|
|
967
1061
|
defaultStatusKey?: string | undefined;
|
|
968
1062
|
icon?: string | undefined;
|
|
969
|
-
}[] | undefined;
|
|
1063
|
+
}[] | null | undefined;
|
|
970
1064
|
statusDefinitions?: {
|
|
971
1065
|
key: string;
|
|
972
1066
|
category: "in_progress" | "canceled" | "not_started" | "completed";
|
|
973
1067
|
label: string;
|
|
974
|
-
}[] | undefined;
|
|
1068
|
+
}[] | null | undefined;
|
|
975
1069
|
priorityDefinitions?: {
|
|
976
1070
|
key: string;
|
|
977
1071
|
label: string;
|
|
978
1072
|
level?: number | undefined;
|
|
979
|
-
}[] | undefined;
|
|
1073
|
+
}[] | null | undefined;
|
|
980
1074
|
customFieldDefinitions?: {
|
|
981
1075
|
id: string;
|
|
982
1076
|
key: string;
|
|
@@ -985,7 +1079,7 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
985
1079
|
options?: string[] | undefined;
|
|
986
1080
|
required?: boolean | undefined;
|
|
987
1081
|
defaultValue?: unknown;
|
|
988
|
-
}[] | undefined;
|
|
1082
|
+
}[] | null | undefined;
|
|
989
1083
|
schedule?: {
|
|
990
1084
|
days: {
|
|
991
1085
|
isWorkingDay: boolean;
|
|
@@ -1004,10 +1098,10 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
1004
1098
|
name?: string | undefined;
|
|
1005
1099
|
halfDay?: boolean | undefined;
|
|
1006
1100
|
}[] | undefined;
|
|
1007
|
-
} | undefined;
|
|
1008
|
-
startDate?: string | undefined;
|
|
1009
|
-
targetEndDate?: string | undefined;
|
|
1010
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1101
|
+
} | null | undefined;
|
|
1102
|
+
startDate?: string | null | undefined;
|
|
1103
|
+
targetEndDate?: string | null | undefined;
|
|
1104
|
+
customFields?: Record<string, unknown> | null | undefined;
|
|
1011
1105
|
statusMapping?: Record<string, string> | undefined;
|
|
1012
1106
|
}>;
|
|
1013
1107
|
export declare const CreateTaskSchema: z.ZodObject<{
|
|
@@ -1042,12 +1136,13 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1042
1136
|
teamId: z.ZodOptional<z.ZodString>;
|
|
1043
1137
|
containerId: z.ZodOptional<z.ZodString>;
|
|
1044
1138
|
deliverableId: z.ZodOptional<z.ZodString>;
|
|
1045
|
-
plannedStartDate: z.ZodOptional<z.ZodString
|
|
1046
|
-
actualStartDate: z.ZodOptional<z.ZodString
|
|
1047
|
-
actualEndDate: z.ZodOptional<z.ZodString
|
|
1048
|
-
completedAt: z.ZodOptional<z.ZodString
|
|
1049
|
-
dueDate: z.ZodOptional<z.ZodString
|
|
1139
|
+
plannedStartDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1140
|
+
actualStartDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1141
|
+
actualEndDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1142
|
+
completedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1143
|
+
dueDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1050
1144
|
deadline: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1145
|
+
earliestStart: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1051
1146
|
isMilestone: z.ZodOptional<z.ZodBoolean>;
|
|
1052
1147
|
estimatedHours: z.ZodOptional<z.ZodNumber>;
|
|
1053
1148
|
allocation: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1060,8 +1155,8 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1060
1155
|
id: z.ZodString;
|
|
1061
1156
|
title: z.ZodString;
|
|
1062
1157
|
completed: z.ZodBoolean;
|
|
1063
|
-
createdAt: z.ZodOptional<z.ZodString
|
|
1064
|
-
completedAt: z.ZodOptional<z.ZodString
|
|
1158
|
+
createdAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1159
|
+
completedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1065
1160
|
}, "strict", z.ZodTypeAny, {
|
|
1066
1161
|
id: string;
|
|
1067
1162
|
title: string;
|
|
@@ -1106,6 +1201,7 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1106
1201
|
completedAt?: string | undefined;
|
|
1107
1202
|
dueDate?: string | undefined;
|
|
1108
1203
|
deadline?: string | undefined;
|
|
1204
|
+
earliestStart?: string | undefined;
|
|
1109
1205
|
isMilestone?: boolean | undefined;
|
|
1110
1206
|
estimatedHours?: number | undefined;
|
|
1111
1207
|
allocation?: number | undefined;
|
|
@@ -1150,6 +1246,7 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1150
1246
|
completedAt?: string | undefined;
|
|
1151
1247
|
dueDate?: string | undefined;
|
|
1152
1248
|
deadline?: string | undefined;
|
|
1249
|
+
earliestStart?: string | undefined;
|
|
1153
1250
|
isMilestone?: boolean | undefined;
|
|
1154
1251
|
estimatedHours?: number | undefined;
|
|
1155
1252
|
allocation?: number | undefined;
|
|
@@ -1168,13 +1265,10 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1168
1265
|
parentId?: string | undefined;
|
|
1169
1266
|
}>;
|
|
1170
1267
|
export declare const UpdateTaskSchema: z.ZodObject<{
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
taskType: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1176
|
-
assigneeId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1177
|
-
assignees: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1268
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1269
|
+
taskType: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1270
|
+
assigneeId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1271
|
+
assignees: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1178
1272
|
id: z.ZodString;
|
|
1179
1273
|
name: z.ZodOptional<z.ZodString>;
|
|
1180
1274
|
role: z.ZodOptional<z.ZodString>;
|
|
@@ -1192,33 +1286,45 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1192
1286
|
type?: "user" | "agent" | "team" | undefined;
|
|
1193
1287
|
role?: string | undefined;
|
|
1194
1288
|
avatarUrl?: string | undefined;
|
|
1195
|
-
}>, "many"
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1289
|
+
}>, "many">>>, {
|
|
1290
|
+
id: string;
|
|
1291
|
+
name?: string | undefined;
|
|
1292
|
+
type?: "user" | "agent" | "team" | undefined;
|
|
1293
|
+
role?: string | undefined;
|
|
1294
|
+
avatarUrl?: string | undefined;
|
|
1295
|
+
}[] | undefined, {
|
|
1296
|
+
id: string;
|
|
1297
|
+
name?: string | undefined;
|
|
1298
|
+
type?: "user" | "agent" | "team" | undefined;
|
|
1299
|
+
role?: string | undefined;
|
|
1300
|
+
avatarUrl?: string | undefined;
|
|
1301
|
+
}[] | null | undefined>>>;
|
|
1302
|
+
reporterId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1303
|
+
reviewerId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1304
|
+
iterationId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1305
|
+
teamId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1306
|
+
containerId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1307
|
+
deliverableId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1308
|
+
plannedStartDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1309
|
+
actualStartDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1310
|
+
actualEndDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1311
|
+
completedAt: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1312
|
+
dueDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1313
|
+
deadline: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1314
|
+
earliestStart: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1315
|
+
isMilestone: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>>>;
|
|
1316
|
+
estimatedHours: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | undefined, number | null | undefined>>>;
|
|
1317
|
+
allocation: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | undefined, number | null | undefined>>>;
|
|
1318
|
+
estimatedDurationMinutes: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | undefined, number | null | undefined>>>;
|
|
1319
|
+
progress: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | undefined, number | null | undefined>>>;
|
|
1320
|
+
isBlocked: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>>>;
|
|
1321
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>, string[] | undefined, string[] | null | undefined>>>;
|
|
1322
|
+
todos: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1217
1323
|
id: z.ZodString;
|
|
1218
1324
|
title: z.ZodString;
|
|
1219
1325
|
completed: z.ZodBoolean;
|
|
1220
|
-
createdAt: z.ZodOptional<z.ZodString
|
|
1221
|
-
completedAt: z.ZodOptional<z.ZodString
|
|
1326
|
+
createdAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1327
|
+
completedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1222
1328
|
}, "strict", z.ZodTypeAny, {
|
|
1223
1329
|
id: string;
|
|
1224
1330
|
title: string;
|
|
@@ -1231,9 +1337,25 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1231
1337
|
completed: boolean;
|
|
1232
1338
|
createdAt?: string | undefined;
|
|
1233
1339
|
completedAt?: string | undefined;
|
|
1234
|
-
}>, "many"
|
|
1235
|
-
|
|
1236
|
-
|
|
1340
|
+
}>, "many">>>, {
|
|
1341
|
+
id: string;
|
|
1342
|
+
title: string;
|
|
1343
|
+
completed: boolean;
|
|
1344
|
+
createdAt?: string | undefined;
|
|
1345
|
+
completedAt?: string | undefined;
|
|
1346
|
+
}[] | undefined, {
|
|
1347
|
+
id: string;
|
|
1348
|
+
title: string;
|
|
1349
|
+
completed: boolean;
|
|
1350
|
+
createdAt?: string | undefined;
|
|
1351
|
+
completedAt?: string | undefined;
|
|
1352
|
+
}[] | null | undefined>>>;
|
|
1353
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
1354
|
+
parentId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1355
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1356
|
+
status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1357
|
+
priority: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1358
|
+
blockedReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1237
1359
|
}, "strict", z.ZodTypeAny, {
|
|
1238
1360
|
description?: string | undefined;
|
|
1239
1361
|
customFields?: Record<string, unknown> | undefined;
|
|
@@ -1261,6 +1383,7 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1261
1383
|
completedAt?: string | undefined;
|
|
1262
1384
|
dueDate?: string | undefined;
|
|
1263
1385
|
deadline?: string | undefined;
|
|
1386
|
+
earliestStart?: string | undefined;
|
|
1264
1387
|
isMilestone?: boolean | undefined;
|
|
1265
1388
|
estimatedHours?: number | undefined;
|
|
1266
1389
|
allocation?: number | undefined;
|
|
@@ -1278,48 +1401,49 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1278
1401
|
}[] | undefined;
|
|
1279
1402
|
parentId?: string | undefined;
|
|
1280
1403
|
}, {
|
|
1281
|
-
description?: string | undefined;
|
|
1282
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1404
|
+
description?: string | null | undefined;
|
|
1405
|
+
customFields?: Record<string, unknown> | null | undefined;
|
|
1283
1406
|
title?: string | undefined;
|
|
1284
1407
|
status?: string | undefined;
|
|
1285
1408
|
priority?: string | undefined;
|
|
1286
|
-
taskType?: string | undefined;
|
|
1287
|
-
assigneeId?: string | undefined;
|
|
1409
|
+
taskType?: string | null | undefined;
|
|
1410
|
+
assigneeId?: string | null | undefined;
|
|
1288
1411
|
assignees?: {
|
|
1289
1412
|
id: string;
|
|
1290
1413
|
name?: string | undefined;
|
|
1291
1414
|
type?: "user" | "agent" | "team" | undefined;
|
|
1292
1415
|
role?: string | undefined;
|
|
1293
1416
|
avatarUrl?: string | undefined;
|
|
1294
|
-
}[] | undefined;
|
|
1295
|
-
reporterId?: string | undefined;
|
|
1296
|
-
reviewerId?: string | undefined;
|
|
1297
|
-
iterationId?: string | undefined;
|
|
1298
|
-
teamId?: string | undefined;
|
|
1299
|
-
containerId?: string | undefined;
|
|
1300
|
-
deliverableId?: string | undefined;
|
|
1301
|
-
plannedStartDate?: string | undefined;
|
|
1302
|
-
actualStartDate?: string | undefined;
|
|
1303
|
-
actualEndDate?: string | undefined;
|
|
1304
|
-
completedAt?: string | undefined;
|
|
1305
|
-
dueDate?: string | undefined;
|
|
1306
|
-
deadline?: string | undefined;
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1417
|
+
}[] | null | undefined;
|
|
1418
|
+
reporterId?: string | null | undefined;
|
|
1419
|
+
reviewerId?: string | null | undefined;
|
|
1420
|
+
iterationId?: string | null | undefined;
|
|
1421
|
+
teamId?: string | null | undefined;
|
|
1422
|
+
containerId?: string | null | undefined;
|
|
1423
|
+
deliverableId?: string | null | undefined;
|
|
1424
|
+
plannedStartDate?: string | null | undefined;
|
|
1425
|
+
actualStartDate?: string | null | undefined;
|
|
1426
|
+
actualEndDate?: string | null | undefined;
|
|
1427
|
+
completedAt?: string | null | undefined;
|
|
1428
|
+
dueDate?: string | null | undefined;
|
|
1429
|
+
deadline?: string | null | undefined;
|
|
1430
|
+
earliestStart?: string | null | undefined;
|
|
1431
|
+
isMilestone?: boolean | null | undefined;
|
|
1432
|
+
estimatedHours?: number | null | undefined;
|
|
1433
|
+
allocation?: number | null | undefined;
|
|
1434
|
+
estimatedDurationMinutes?: number | null | undefined;
|
|
1435
|
+
progress?: number | null | undefined;
|
|
1436
|
+
isBlocked?: boolean | null | undefined;
|
|
1313
1437
|
blockedReason?: string | null | undefined;
|
|
1314
|
-
tags?: string[] | undefined;
|
|
1438
|
+
tags?: string[] | null | undefined;
|
|
1315
1439
|
todos?: {
|
|
1316
1440
|
id: string;
|
|
1317
1441
|
title: string;
|
|
1318
1442
|
completed: boolean;
|
|
1319
1443
|
createdAt?: string | undefined;
|
|
1320
1444
|
completedAt?: string | undefined;
|
|
1321
|
-
}[] | undefined;
|
|
1322
|
-
parentId?: string | undefined;
|
|
1445
|
+
}[] | null | undefined;
|
|
1446
|
+
parentId?: string | null | undefined;
|
|
1323
1447
|
}>;
|
|
1324
1448
|
export declare const ReportAgentStatusSchema: z.ZodEffects<z.ZodObject<{
|
|
1325
1449
|
status: z.ZodDefault<z.ZodString>;
|
|
@@ -1356,15 +1480,18 @@ export type ReportAgentStatusBody = z.infer<typeof ReportAgentStatusSchema>;
|
|
|
1356
1480
|
export declare const CreateDependencySchema: z.ZodObject<{
|
|
1357
1481
|
dependsOnTaskId: z.ZodString;
|
|
1358
1482
|
type: z.ZodDefault<z.ZodEnum<["blocking", "relates_to"]>>;
|
|
1483
|
+
lagHours: z.ZodOptional<z.ZodNumber>;
|
|
1359
1484
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1360
1485
|
}, "strict", z.ZodTypeAny, {
|
|
1361
1486
|
type: "blocking" | "relates_to";
|
|
1362
1487
|
dependsOnTaskId: string;
|
|
1363
1488
|
customFields?: Record<string, unknown> | undefined;
|
|
1489
|
+
lagHours?: number | undefined;
|
|
1364
1490
|
}, {
|
|
1365
1491
|
dependsOnTaskId: string;
|
|
1366
1492
|
customFields?: Record<string, unknown> | undefined;
|
|
1367
1493
|
type?: "blocking" | "relates_to" | undefined;
|
|
1494
|
+
lagHours?: number | undefined;
|
|
1368
1495
|
}>;
|
|
1369
1496
|
export declare const CreateDeliverableSchema: z.ZodObject<{
|
|
1370
1497
|
title: z.ZodString;
|
|
@@ -1374,8 +1501,8 @@ export declare const CreateDeliverableSchema: z.ZodObject<{
|
|
|
1374
1501
|
specs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1375
1502
|
leadId: z.ZodOptional<z.ZodString>;
|
|
1376
1503
|
reviewerId: z.ZodOptional<z.ZodString>;
|
|
1377
|
-
dueDate: z.ZodOptional<z.ZodString
|
|
1378
|
-
deliveredAt: z.ZodOptional<z.ZodString
|
|
1504
|
+
dueDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1505
|
+
deliveredAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1379
1506
|
outputUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1380
1507
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1381
1508
|
projectId: z.ZodString;
|
|
@@ -1407,17 +1534,17 @@ export declare const CreateDeliverableSchema: z.ZodObject<{
|
|
|
1407
1534
|
outputUrls?: string[] | undefined;
|
|
1408
1535
|
}>;
|
|
1409
1536
|
export declare const UpdateDeliverableSchema: z.ZodObject<{
|
|
1537
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1538
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1539
|
+
specs: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
1540
|
+
leadId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1541
|
+
reviewerId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1542
|
+
dueDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1543
|
+
deliveredAt: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1544
|
+
outputUrls: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>, string[] | undefined, string[] | null | undefined>>>;
|
|
1545
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
1410
1546
|
title: z.ZodOptional<z.ZodString>;
|
|
1411
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1412
1547
|
status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1413
|
-
format: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1414
|
-
specs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1415
|
-
leadId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1416
|
-
reviewerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1417
|
-
dueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1418
|
-
deliveredAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1419
|
-
outputUrls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1420
|
-
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1421
1548
|
}, "strict", z.ZodTypeAny, {
|
|
1422
1549
|
description?: string | undefined;
|
|
1423
1550
|
customFields?: Record<string, unknown> | undefined;
|
|
@@ -1431,17 +1558,17 @@ export declare const UpdateDeliverableSchema: z.ZodObject<{
|
|
|
1431
1558
|
deliveredAt?: string | undefined;
|
|
1432
1559
|
outputUrls?: string[] | undefined;
|
|
1433
1560
|
}, {
|
|
1434
|
-
description?: string | undefined;
|
|
1435
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1561
|
+
description?: string | null | undefined;
|
|
1562
|
+
customFields?: Record<string, unknown> | null | undefined;
|
|
1436
1563
|
title?: string | undefined;
|
|
1437
1564
|
status?: string | undefined;
|
|
1438
|
-
reviewerId?: string | undefined;
|
|
1439
|
-
dueDate?: string | undefined;
|
|
1440
|
-
format?: string | undefined;
|
|
1441
|
-
specs?: Record<string, unknown> | undefined;
|
|
1442
|
-
leadId?: string | undefined;
|
|
1443
|
-
deliveredAt?: string | undefined;
|
|
1444
|
-
outputUrls?: string[] | undefined;
|
|
1565
|
+
reviewerId?: string | null | undefined;
|
|
1566
|
+
dueDate?: string | null | undefined;
|
|
1567
|
+
format?: string | null | undefined;
|
|
1568
|
+
specs?: Record<string, unknown> | null | undefined;
|
|
1569
|
+
leadId?: string | null | undefined;
|
|
1570
|
+
deliveredAt?: string | null | undefined;
|
|
1571
|
+
outputUrls?: string[] | null | undefined;
|
|
1445
1572
|
}>;
|
|
1446
1573
|
export declare const CreateTeamSchema: z.ZodObject<{
|
|
1447
1574
|
name: z.ZodString;
|
|
@@ -1761,12 +1888,12 @@ export declare const CreateContainerSchema: z.ZodObject<{
|
|
|
1761
1888
|
color?: string | undefined;
|
|
1762
1889
|
}>;
|
|
1763
1890
|
export declare const UpdateContainerSchema: z.ZodObject<{
|
|
1891
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1892
|
+
parentId: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1893
|
+
type: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1894
|
+
color: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1895
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
1764
1896
|
name: z.ZodOptional<z.ZodString>;
|
|
1765
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1766
|
-
parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1767
|
-
type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1768
|
-
color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1769
|
-
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1770
1897
|
}, "strict", z.ZodTypeAny, {
|
|
1771
1898
|
name?: string | undefined;
|
|
1772
1899
|
description?: string | undefined;
|
|
@@ -1776,18 +1903,18 @@ export declare const UpdateContainerSchema: z.ZodObject<{
|
|
|
1776
1903
|
color?: string | undefined;
|
|
1777
1904
|
}, {
|
|
1778
1905
|
name?: string | undefined;
|
|
1779
|
-
description?: string | undefined;
|
|
1780
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1781
|
-
parentId?: string | undefined;
|
|
1782
|
-
type?: string | undefined;
|
|
1783
|
-
color?: string | undefined;
|
|
1906
|
+
description?: string | null | undefined;
|
|
1907
|
+
customFields?: Record<string, unknown> | null | undefined;
|
|
1908
|
+
parentId?: string | null | undefined;
|
|
1909
|
+
type?: string | null | undefined;
|
|
1910
|
+
color?: string | null | undefined;
|
|
1784
1911
|
}>;
|
|
1785
1912
|
export declare const CreateIterationSchema: z.ZodObject<{
|
|
1786
1913
|
name: z.ZodString;
|
|
1787
1914
|
goal: z.ZodOptional<z.ZodString>;
|
|
1788
1915
|
type: z.ZodOptional<z.ZodString>;
|
|
1789
|
-
startDate: z.ZodOptional<z.ZodString
|
|
1790
|
-
endDate: z.ZodOptional<z.ZodString
|
|
1916
|
+
startDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1917
|
+
endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1791
1918
|
status: z.ZodDefault<z.ZodEnum<["planning", "active", "completed"]>>;
|
|
1792
1919
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1793
1920
|
projectId: z.ZodString;
|
|
@@ -1811,13 +1938,13 @@ export declare const CreateIterationSchema: z.ZodObject<{
|
|
|
1811
1938
|
endDate?: string | undefined;
|
|
1812
1939
|
}>;
|
|
1813
1940
|
export declare const UpdateIterationSchema: z.ZodObject<{
|
|
1814
|
-
|
|
1941
|
+
goal: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1942
|
+
type: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>>>;
|
|
1943
|
+
startDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1944
|
+
endDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>, string | undefined, string | null | undefined>>>;
|
|
1945
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
1815
1946
|
name: z.ZodOptional<z.ZodString>;
|
|
1816
|
-
|
|
1817
|
-
type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1818
|
-
startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1819
|
-
endDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1820
|
-
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1947
|
+
status: z.ZodOptional<z.ZodEnum<["planning", "active", "completed"]>>;
|
|
1821
1948
|
}, "strict", z.ZodTypeAny, {
|
|
1822
1949
|
name?: string | undefined;
|
|
1823
1950
|
startDate?: string | undefined;
|
|
@@ -1828,12 +1955,12 @@ export declare const UpdateIterationSchema: z.ZodObject<{
|
|
|
1828
1955
|
endDate?: string | undefined;
|
|
1829
1956
|
}, {
|
|
1830
1957
|
name?: string | undefined;
|
|
1831
|
-
startDate?: string | undefined;
|
|
1832
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1958
|
+
startDate?: string | null | undefined;
|
|
1959
|
+
customFields?: Record<string, unknown> | null | undefined;
|
|
1833
1960
|
status?: "active" | "completed" | "planning" | undefined;
|
|
1834
|
-
type?: string | undefined;
|
|
1835
|
-
goal?: string | undefined;
|
|
1836
|
-
endDate?: string | undefined;
|
|
1961
|
+
type?: string | null | undefined;
|
|
1962
|
+
goal?: string | null | undefined;
|
|
1963
|
+
endDate?: string | null | undefined;
|
|
1837
1964
|
}>;
|
|
1838
1965
|
export declare const CreateCommentSchema: z.ZodObject<{
|
|
1839
1966
|
taskId: z.ZodString;
|
|
@@ -1974,7 +2101,7 @@ export declare const LogTimeSchema: z.ZodObject<{
|
|
|
1974
2101
|
hours: z.ZodNumber;
|
|
1975
2102
|
isBillable: z.ZodOptional<z.ZodBoolean>;
|
|
1976
2103
|
description: z.ZodOptional<z.ZodString>;
|
|
1977
|
-
loggedAt: z.ZodOptional<z.ZodString
|
|
2104
|
+
loggedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1978
2105
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1979
2106
|
}, "strict", z.ZodTypeAny, {
|
|
1980
2107
|
taskId: string;
|
|
@@ -1991,6 +2118,26 @@ export declare const LogTimeSchema: z.ZodObject<{
|
|
|
1991
2118
|
loggedAt?: string | undefined;
|
|
1992
2119
|
isBillable?: boolean | undefined;
|
|
1993
2120
|
}>;
|
|
2121
|
+
/** Correcting a time entry; the task and author stay as they are. `null` clears the description. */
|
|
2122
|
+
export declare const UpdateTimeEntrySchema: z.ZodObject<{
|
|
2123
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodString>, string | undefined, string | null>>>;
|
|
2124
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>, Record<string, unknown> | undefined, Record<string, unknown> | null>>>;
|
|
2125
|
+
hours: z.ZodOptional<z.ZodNumber>;
|
|
2126
|
+
isBillable: z.ZodOptional<z.ZodBoolean>;
|
|
2127
|
+
loggedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2128
|
+
}, "strict", z.ZodTypeAny, {
|
|
2129
|
+
description?: string | undefined;
|
|
2130
|
+
customFields?: Record<string, unknown> | undefined;
|
|
2131
|
+
loggedAt?: string | undefined;
|
|
2132
|
+
hours?: number | undefined;
|
|
2133
|
+
isBillable?: boolean | undefined;
|
|
2134
|
+
}, {
|
|
2135
|
+
description?: string | null | undefined;
|
|
2136
|
+
customFields?: Record<string, unknown> | null | undefined;
|
|
2137
|
+
loggedAt?: string | undefined;
|
|
2138
|
+
hours?: number | undefined;
|
|
2139
|
+
isBillable?: boolean | undefined;
|
|
2140
|
+
}>;
|
|
1994
2141
|
/** `GET /tasks` query parameters. `status` and `priority` are comma-separated; `parentId=none` means top-level. */
|
|
1995
2142
|
export declare const TaskListQuerySchema: z.ZodObject<{
|
|
1996
2143
|
projectId: z.ZodOptional<z.ZodString>;
|
|
@@ -2088,21 +2235,21 @@ export declare const CreateWebhookSchema: z.ZodObject<{
|
|
|
2088
2235
|
/** http(s) URL; private and local addresses are rejected unless the engine allows them. */
|
|
2089
2236
|
url: z.ZodString;
|
|
2090
2237
|
/** Domain event names (e.g. `task.created`) or `'*'` for all events. */
|
|
2091
|
-
events: z.ZodArray<z.ZodEnum<["*", "agent.status_updated", "attachment.created", "attachment.deleted", "comment.created", "comment.deleted", "comment.reaction.added", "comment.reaction.removed", "comment.updated", "container.created", "container.deleted", "container.updated", "deliverable.created", "deliverable.deleted", "deliverable.status_changed", "deliverable.updated", "dependency.added", "dependency.removed", "iteration.completed", "iteration.created", "iteration.deleted", "iteration.started", "iteration.updated", "project.created", "project.deleted", "project.updated", "task.blocked", "task.created", "task.deleted", "task.status_changed", "task.unblocked", "task.updated", "team.created", "team.deleted", "team.updated", "time.logged", "workflow.created", "workflow.deleted", "workflow.updated"]>, "many">;
|
|
2238
|
+
events: z.ZodArray<z.ZodEnum<["*", "agent.status_updated", "attachment.created", "attachment.deleted", "comment.created", "comment.deleted", "comment.reaction.added", "comment.reaction.removed", "comment.updated", "container.created", "container.deleted", "container.updated", "deliverable.created", "deliverable.deleted", "deliverable.status_changed", "deliverable.updated", "dependency.added", "dependency.removed", "iteration.completed", "iteration.created", "iteration.deleted", "iteration.started", "iteration.updated", "project.created", "project.deleted", "project.updated", "task.blocked", "task.created", "task.deleted", "task.status_changed", "task.unblocked", "task.updated", "team.created", "team.deleted", "team.updated", "time.logged", "time.updated", "time.deleted", "workflow.created", "workflow.deleted", "workflow.updated"]>, "many">;
|
|
2092
2239
|
/** Signing secret (at least 16 characters). Generated when omitted and returned once. */
|
|
2093
2240
|
secret: z.ZodOptional<z.ZodString>;
|
|
2094
2241
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
2095
2242
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2096
2243
|
}, "strict", z.ZodTypeAny, {
|
|
2097
2244
|
name: string;
|
|
2098
|
-
events: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[];
|
|
2245
|
+
events: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "time.updated" | "time.deleted" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[];
|
|
2099
2246
|
url: string;
|
|
2100
2247
|
customFields?: Record<string, unknown> | undefined;
|
|
2101
2248
|
secret?: string | undefined;
|
|
2102
2249
|
active?: boolean | undefined;
|
|
2103
2250
|
}, {
|
|
2104
2251
|
name: string;
|
|
2105
|
-
events: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[];
|
|
2252
|
+
events: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "time.updated" | "time.deleted" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[];
|
|
2106
2253
|
url: string;
|
|
2107
2254
|
customFields?: Record<string, unknown> | undefined;
|
|
2108
2255
|
secret?: string | undefined;
|
|
@@ -2111,20 +2258,20 @@ export declare const CreateWebhookSchema: z.ZodObject<{
|
|
|
2111
2258
|
export declare const UpdateWebhookSchema: z.ZodObject<{
|
|
2112
2259
|
name: z.ZodOptional<z.ZodString>;
|
|
2113
2260
|
url: z.ZodOptional<z.ZodString>;
|
|
2114
|
-
events: z.ZodOptional<z.ZodArray<z.ZodEnum<["*", "agent.status_updated", "attachment.created", "attachment.deleted", "comment.created", "comment.deleted", "comment.reaction.added", "comment.reaction.removed", "comment.updated", "container.created", "container.deleted", "container.updated", "deliverable.created", "deliverable.deleted", "deliverable.status_changed", "deliverable.updated", "dependency.added", "dependency.removed", "iteration.completed", "iteration.created", "iteration.deleted", "iteration.started", "iteration.updated", "project.created", "project.deleted", "project.updated", "task.blocked", "task.created", "task.deleted", "task.status_changed", "task.unblocked", "task.updated", "team.created", "team.deleted", "team.updated", "time.logged", "workflow.created", "workflow.deleted", "workflow.updated"]>, "many">>;
|
|
2261
|
+
events: z.ZodOptional<z.ZodArray<z.ZodEnum<["*", "agent.status_updated", "attachment.created", "attachment.deleted", "comment.created", "comment.deleted", "comment.reaction.added", "comment.reaction.removed", "comment.updated", "container.created", "container.deleted", "container.updated", "deliverable.created", "deliverable.deleted", "deliverable.status_changed", "deliverable.updated", "dependency.added", "dependency.removed", "iteration.completed", "iteration.created", "iteration.deleted", "iteration.started", "iteration.updated", "project.created", "project.deleted", "project.updated", "task.blocked", "task.created", "task.deleted", "task.status_changed", "task.unblocked", "task.updated", "team.created", "team.deleted", "team.updated", "time.logged", "time.updated", "time.deleted", "workflow.created", "workflow.deleted", "workflow.updated"]>, "many">>;
|
|
2115
2262
|
secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2116
2263
|
active: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2117
2264
|
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2118
2265
|
}, "strict", z.ZodTypeAny, {
|
|
2119
2266
|
name?: string | undefined;
|
|
2120
|
-
events?: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[] | undefined;
|
|
2267
|
+
events?: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "time.updated" | "time.deleted" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[] | undefined;
|
|
2121
2268
|
customFields?: Record<string, unknown> | undefined;
|
|
2122
2269
|
url?: string | undefined;
|
|
2123
2270
|
secret?: string | undefined;
|
|
2124
2271
|
active?: boolean | undefined;
|
|
2125
2272
|
}, {
|
|
2126
2273
|
name?: string | undefined;
|
|
2127
|
-
events?: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[] | undefined;
|
|
2274
|
+
events?: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "time.updated" | "time.deleted" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[] | undefined;
|
|
2128
2275
|
customFields?: Record<string, unknown> | undefined;
|
|
2129
2276
|
url?: string | undefined;
|
|
2130
2277
|
secret?: string | undefined;
|
|
@@ -2148,6 +2295,7 @@ export type CreateTeamBody = z.input<typeof CreateTeamSchema>;
|
|
|
2148
2295
|
export type UpdateTeamBody = z.input<typeof UpdateTeamSchema>;
|
|
2149
2296
|
export type CreateContainerBody = z.input<typeof CreateContainerSchema>;
|
|
2150
2297
|
export type UpdateContainerBody = z.input<typeof UpdateContainerSchema>;
|
|
2298
|
+
export type UpdateTimeEntryBody = z.input<typeof UpdateTimeEntrySchema>;
|
|
2151
2299
|
export type CreateIterationBody = z.input<typeof CreateIterationSchema>;
|
|
2152
2300
|
export type UpdateIterationBody = z.input<typeof UpdateIterationSchema>;
|
|
2153
2301
|
export type CreateCommentBody = z.input<typeof CreateCommentSchema>;
|