@locusai/shared 0.4.16 → 0.5.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.
@@ -1,60 +1,29 @@
1
1
  import { z } from "zod";
2
2
  export declare const OrganizationSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
- createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
5
- updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
6
- } & {
4
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
5
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
7
6
  name: z.ZodString;
8
7
  avatarUrl: z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodLiteral<"">]>;
9
- }, "strip", z.ZodTypeAny, {
10
- id: string;
11
- createdAt: number | Date;
12
- updatedAt: number | Date;
13
- name: string;
14
- avatarUrl?: string | null | undefined;
15
- }, {
16
- id: string;
17
- createdAt: number | Date;
18
- updatedAt: number | Date;
19
- name: string;
20
- avatarUrl?: string | null | undefined;
21
- }>;
8
+ }, z.core.$strip>;
22
9
  export type Organization = z.infer<typeof OrganizationSchema>;
23
10
  export declare const CreateOrganizationSchema: z.ZodObject<{
24
11
  name: z.ZodString;
25
12
  avatarUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
26
- }, "strip", z.ZodTypeAny, {
27
- name: string;
28
- avatarUrl?: string | undefined;
29
- }, {
30
- name: string;
31
- avatarUrl?: string | undefined;
32
- }>;
13
+ }, z.core.$strip>;
33
14
  export type CreateOrganization = z.infer<typeof CreateOrganizationSchema>;
34
- export declare const UpdateOrganizationSchema: z.ZodObject<Omit<{
35
- id: z.ZodOptional<z.ZodString>;
36
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
37
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
15
+ export declare const UpdateOrganizationSchema: z.ZodObject<{
38
16
  name: z.ZodOptional<z.ZodString>;
39
17
  avatarUrl: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodLiteral<"">]>>;
40
- }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
41
- name?: string | undefined;
42
- avatarUrl?: string | null | undefined;
43
- }, {
44
- name?: string | undefined;
45
- avatarUrl?: string | null | undefined;
46
- }>;
18
+ }, z.core.$strip>;
47
19
  export type UpdateOrganization = z.infer<typeof UpdateOrganizationSchema>;
48
20
  export declare const AddMemberSchema: z.ZodObject<{
49
21
  userId: z.ZodString;
50
- role: z.ZodDefault<z.ZodEnum<["ADMIN", "MEMBER"]>>;
51
- }, "strip", z.ZodTypeAny, {
52
- userId: string;
53
- role: "ADMIN" | "MEMBER";
54
- }, {
55
- userId: string;
56
- role?: "ADMIN" | "MEMBER" | undefined;
57
- }>;
22
+ role: z.ZodDefault<z.ZodEnum<{
23
+ ADMIN: "ADMIN";
24
+ MEMBER: "MEMBER";
25
+ }>>;
26
+ }, z.core.$strip>;
58
27
  export type AddMember = z.infer<typeof AddMemberSchema>;
59
28
  export declare const MembershipWithUserSchema: z.ZodObject<{
60
29
  id: z.ZodString;
@@ -67,136 +36,36 @@ export declare const MembershipWithUserSchema: z.ZodObject<{
67
36
  email: z.ZodString;
68
37
  name: z.ZodString;
69
38
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
- }, "strip", z.ZodTypeAny, {
71
- id: string;
72
- name: string;
73
- email: string;
74
- avatarUrl?: string | null | undefined;
75
- }, {
76
- id: string;
77
- name: string;
78
- email: string;
79
- avatarUrl?: string | null | undefined;
80
- }>;
81
- }, "strip", z.ZodTypeAny, {
82
- id: string;
83
- createdAt: number;
84
- userId: string;
85
- role: string;
86
- orgId: string;
87
- user: {
88
- id: string;
89
- name: string;
90
- email: string;
91
- avatarUrl?: string | null | undefined;
92
- };
93
- }, {
94
- id: string;
95
- createdAt: number;
96
- userId: string;
97
- role: string;
98
- orgId: string;
99
- user: {
100
- id: string;
101
- name: string;
102
- email: string;
103
- avatarUrl?: string | null | undefined;
104
- };
105
- }>;
39
+ }, z.core.$strip>;
40
+ }, z.core.$strip>;
106
41
  export type MembershipWithUser = z.infer<typeof MembershipWithUserSchema>;
107
42
  export declare const OrgIdParamSchema: z.ZodObject<{
108
43
  orgId: z.ZodString;
109
- }, "strip", z.ZodTypeAny, {
110
- orgId: string;
111
- }, {
112
- orgId: string;
113
- }>;
44
+ }, z.core.$strip>;
114
45
  export type OrgIdParam = z.infer<typeof OrgIdParamSchema>;
115
46
  export declare const MembershipIdParamSchema: z.ZodObject<{
116
47
  id: z.ZodString;
117
- }, "strip", z.ZodTypeAny, {
118
- id: string;
119
- }, {
120
- id: string;
121
- }>;
48
+ }, z.core.$strip>;
122
49
  export type MembershipIdParam = z.infer<typeof MembershipIdParamSchema>;
123
50
  export declare const OrganizationResponseSchema: z.ZodObject<{
124
51
  organization: z.ZodObject<{
125
52
  id: z.ZodString;
126
- createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
127
- updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
128
- } & {
53
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
54
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
129
55
  name: z.ZodString;
130
56
  avatarUrl: z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodLiteral<"">]>;
131
- }, "strip", z.ZodTypeAny, {
132
- id: string;
133
- createdAt: number | Date;
134
- updatedAt: number | Date;
135
- name: string;
136
- avatarUrl?: string | null | undefined;
137
- }, {
138
- id: string;
139
- createdAt: number | Date;
140
- updatedAt: number | Date;
141
- name: string;
142
- avatarUrl?: string | null | undefined;
143
- }>;
144
- }, "strip", z.ZodTypeAny, {
145
- organization: {
146
- id: string;
147
- createdAt: number | Date;
148
- updatedAt: number | Date;
149
- name: string;
150
- avatarUrl?: string | null | undefined;
151
- };
152
- }, {
153
- organization: {
154
- id: string;
155
- createdAt: number | Date;
156
- updatedAt: number | Date;
157
- name: string;
158
- avatarUrl?: string | null | undefined;
159
- };
160
- }>;
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>;
161
59
  export type OrganizationResponse = z.infer<typeof OrganizationResponseSchema>;
162
60
  export declare const OrganizationsResponseSchema: z.ZodObject<{
163
61
  organizations: z.ZodArray<z.ZodObject<{
164
62
  id: z.ZodString;
165
- createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
166
- updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
167
- } & {
63
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
64
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
168
65
  name: z.ZodString;
169
66
  avatarUrl: z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodLiteral<"">]>;
170
- }, "strip", z.ZodTypeAny, {
171
- id: string;
172
- createdAt: number | Date;
173
- updatedAt: number | Date;
174
- name: string;
175
- avatarUrl?: string | null | undefined;
176
- }, {
177
- id: string;
178
- createdAt: number | Date;
179
- updatedAt: number | Date;
180
- name: string;
181
- avatarUrl?: string | null | undefined;
182
- }>, "many">;
183
- }, "strip", z.ZodTypeAny, {
184
- organizations: {
185
- id: string;
186
- createdAt: number | Date;
187
- updatedAt: number | Date;
188
- name: string;
189
- avatarUrl?: string | null | undefined;
190
- }[];
191
- }, {
192
- organizations: {
193
- id: string;
194
- createdAt: number | Date;
195
- updatedAt: number | Date;
196
- name: string;
197
- avatarUrl?: string | null | undefined;
198
- }[];
199
- }>;
67
+ }, z.core.$strip>>;
68
+ }, z.core.$strip>;
200
69
  export type OrganizationsResponse = z.infer<typeof OrganizationsResponseSchema>;
201
70
  export declare const MembersResponseSchema: z.ZodObject<{
202
71
  members: z.ZodArray<z.ZodObject<{
@@ -210,71 +79,9 @@ export declare const MembersResponseSchema: z.ZodObject<{
210
79
  email: z.ZodString;
211
80
  name: z.ZodString;
212
81
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
- }, "strip", z.ZodTypeAny, {
214
- id: string;
215
- name: string;
216
- email: string;
217
- avatarUrl?: string | null | undefined;
218
- }, {
219
- id: string;
220
- name: string;
221
- email: string;
222
- avatarUrl?: string | null | undefined;
223
- }>;
224
- }, "strip", z.ZodTypeAny, {
225
- id: string;
226
- createdAt: number;
227
- userId: string;
228
- role: string;
229
- orgId: string;
230
- user: {
231
- id: string;
232
- name: string;
233
- email: string;
234
- avatarUrl?: string | null | undefined;
235
- };
236
- }, {
237
- id: string;
238
- createdAt: number;
239
- userId: string;
240
- role: string;
241
- orgId: string;
242
- user: {
243
- id: string;
244
- name: string;
245
- email: string;
246
- avatarUrl?: string | null | undefined;
247
- };
248
- }>, "many">;
249
- }, "strip", z.ZodTypeAny, {
250
- members: {
251
- id: string;
252
- createdAt: number;
253
- userId: string;
254
- role: string;
255
- orgId: string;
256
- user: {
257
- id: string;
258
- name: string;
259
- email: string;
260
- avatarUrl?: string | null | undefined;
261
- };
262
- }[];
263
- }, {
264
- members: {
265
- id: string;
266
- createdAt: number;
267
- userId: string;
268
- role: string;
269
- orgId: string;
270
- user: {
271
- id: string;
272
- name: string;
273
- email: string;
274
- avatarUrl?: string | null | undefined;
275
- };
276
- }[];
277
- }>;
82
+ }, z.core.$strip>;
83
+ }, z.core.$strip>>;
84
+ }, z.core.$strip>;
278
85
  export type MembersResponse = z.infer<typeof MembersResponseSchema>;
279
86
  export declare const MembershipResponseSchema: z.ZodObject<{
280
87
  membership: z.ZodObject<{
@@ -288,70 +95,8 @@ export declare const MembershipResponseSchema: z.ZodObject<{
288
95
  email: z.ZodString;
289
96
  name: z.ZodString;
290
97
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
- }, "strip", z.ZodTypeAny, {
292
- id: string;
293
- name: string;
294
- email: string;
295
- avatarUrl?: string | null | undefined;
296
- }, {
297
- id: string;
298
- name: string;
299
- email: string;
300
- avatarUrl?: string | null | undefined;
301
- }>;
302
- }, "strip", z.ZodTypeAny, {
303
- id: string;
304
- createdAt: number;
305
- userId: string;
306
- role: string;
307
- orgId: string;
308
- user: {
309
- id: string;
310
- name: string;
311
- email: string;
312
- avatarUrl?: string | null | undefined;
313
- };
314
- }, {
315
- id: string;
316
- createdAt: number;
317
- userId: string;
318
- role: string;
319
- orgId: string;
320
- user: {
321
- id: string;
322
- name: string;
323
- email: string;
324
- avatarUrl?: string | null | undefined;
325
- };
326
- }>;
327
- }, "strip", z.ZodTypeAny, {
328
- membership: {
329
- id: string;
330
- createdAt: number;
331
- userId: string;
332
- role: string;
333
- orgId: string;
334
- user: {
335
- id: string;
336
- name: string;
337
- email: string;
338
- avatarUrl?: string | null | undefined;
339
- };
340
- };
341
- }, {
342
- membership: {
343
- id: string;
344
- createdAt: number;
345
- userId: string;
346
- role: string;
347
- orgId: string;
348
- user: {
349
- id: string;
350
- name: string;
351
- email: string;
352
- avatarUrl?: string | null | undefined;
353
- };
354
- };
355
- }>;
98
+ }, z.core.$strip>;
99
+ }, z.core.$strip>;
100
+ }, z.core.$strip>;
356
101
  export type MembershipResponse = z.infer<typeof MembershipResponseSchema>;
357
102
  //# sourceMappingURL=organization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/models/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO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,OAAO,uBAAuB,CAAC,CAAC;AAMxE,eAAO,MAAM,0BAA0B;;;;;;;;iBAErC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;iBAEtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;iBAEnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -2,217 +2,67 @@ import { z } from "zod";
2
2
  import { SprintStatus } from "../enums";
3
3
  export declare const SprintSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
- createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
6
- updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
7
- } & {
5
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
6
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
8
7
  workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
8
  name: z.ZodString;
10
- status: z.ZodNativeEnum<typeof SprintStatus>;
11
- startDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
12
- endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
9
+ status: z.ZodEnum<typeof SprintStatus>;
10
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
11
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
13
12
  mindmap: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- mindmapUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
15
- }, "strip", z.ZodTypeAny, {
16
- id: string;
17
- createdAt: number | Date;
18
- status: SprintStatus;
19
- updatedAt: number | Date;
20
- name: string;
21
- workspaceId?: string | null | undefined;
22
- startDate?: number | Date | null | undefined;
23
- endDate?: number | Date | null | undefined;
24
- mindmap?: string | null | undefined;
25
- mindmapUpdatedAt?: number | Date | null | undefined;
26
- }, {
27
- id: string;
28
- createdAt: number | Date;
29
- status: SprintStatus;
30
- updatedAt: number | Date;
31
- name: string;
32
- workspaceId?: string | null | undefined;
33
- startDate?: number | Date | null | undefined;
34
- endDate?: number | Date | null | undefined;
35
- mindmap?: string | null | undefined;
36
- mindmapUpdatedAt?: number | Date | null | undefined;
37
- }>;
13
+ mindmapUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
14
+ }, z.core.$strip>;
38
15
  export type Sprint = z.infer<typeof SprintSchema>;
39
16
  export declare const CreateSprintSchema: z.ZodObject<{
40
17
  name: z.ZodString;
41
- startDate: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
42
- endDate: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
43
- }, "strip", z.ZodTypeAny, {
44
- name: string;
45
- startDate?: number | Date | undefined;
46
- endDate?: number | Date | undefined;
47
- }, {
48
- name: string;
49
- startDate?: number | Date | undefined;
50
- endDate?: number | Date | undefined;
51
- }>;
18
+ startDate: z.ZodOptional<z.ZodUnion<readonly [z.ZodCoercedDate<unknown>, z.ZodNumber]>>;
19
+ endDate: z.ZodOptional<z.ZodUnion<readonly [z.ZodCoercedDate<unknown>, z.ZodNumber]>>;
20
+ }, z.core.$strip>;
52
21
  export type CreateSprint = z.infer<typeof CreateSprintSchema>;
53
22
  export declare const UpdateSprintSchema: z.ZodObject<{
54
- status: z.ZodOptional<z.ZodNativeEnum<typeof SprintStatus>>;
55
23
  workspaceId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
24
+ status: z.ZodOptional<z.ZodEnum<typeof SprintStatus>>;
56
25
  mindmap: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
57
- } & {
58
26
  name: z.ZodOptional<z.ZodString>;
59
- startDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
60
- endDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
61
- mindmapUpdatedAt: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
62
- }, "strip", z.ZodTypeAny, {
63
- status?: SprintStatus | undefined;
64
- name?: string | undefined;
65
- workspaceId?: string | null | undefined;
66
- startDate?: number | Date | null | undefined;
67
- endDate?: number | Date | null | undefined;
68
- mindmap?: string | null | undefined;
69
- mindmapUpdatedAt?: number | Date | null | undefined;
70
- }, {
71
- status?: SprintStatus | undefined;
72
- name?: string | undefined;
73
- workspaceId?: string | null | undefined;
74
- startDate?: number | Date | null | undefined;
75
- endDate?: number | Date | null | undefined;
76
- mindmap?: string | null | undefined;
77
- mindmapUpdatedAt?: number | Date | null | undefined;
78
- }>;
27
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodCoercedDate<unknown>, z.ZodNumber]>>>;
28
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodCoercedDate<unknown>, z.ZodNumber]>>>;
29
+ mindmapUpdatedAt: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodCoercedDate<unknown>, z.ZodNumber]>>>;
30
+ }, z.core.$strip>;
79
31
  export type UpdateSprint = z.infer<typeof UpdateSprintSchema>;
80
32
  export declare const SprintIdParamSchema: z.ZodObject<{
81
33
  id: z.ZodString;
82
- }, "strip", z.ZodTypeAny, {
83
- id: string;
84
- }, {
85
- id: string;
86
- }>;
34
+ }, z.core.$strip>;
87
35
  export type SprintIdParam = z.infer<typeof SprintIdParamSchema>;
88
- export declare const SprintQuerySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
36
+ export declare const SprintQuerySchema: z.ZodObject<{}, z.core.$strip>;
89
37
  export type SprintQuery = z.infer<typeof SprintQuerySchema>;
90
38
  export declare const SprintResponseSchema: z.ZodObject<{
91
39
  sprint: z.ZodObject<{
92
40
  id: z.ZodString;
93
- createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
94
- updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
95
- } & {
41
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
42
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
96
43
  workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
44
  name: z.ZodString;
98
- status: z.ZodNativeEnum<typeof SprintStatus>;
99
- startDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
100
- endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
45
+ status: z.ZodEnum<typeof SprintStatus>;
46
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
47
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
101
48
  mindmap: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
- mindmapUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
103
- }, "strip", z.ZodTypeAny, {
104
- id: string;
105
- createdAt: number | Date;
106
- status: SprintStatus;
107
- updatedAt: number | Date;
108
- name: string;
109
- workspaceId?: string | null | undefined;
110
- startDate?: number | Date | null | undefined;
111
- endDate?: number | Date | null | undefined;
112
- mindmap?: string | null | undefined;
113
- mindmapUpdatedAt?: number | Date | null | undefined;
114
- }, {
115
- id: string;
116
- createdAt: number | Date;
117
- status: SprintStatus;
118
- updatedAt: number | Date;
119
- name: string;
120
- workspaceId?: string | null | undefined;
121
- startDate?: number | Date | null | undefined;
122
- endDate?: number | Date | null | undefined;
123
- mindmap?: string | null | undefined;
124
- mindmapUpdatedAt?: number | Date | null | undefined;
125
- }>;
126
- }, "strip", z.ZodTypeAny, {
127
- sprint: {
128
- id: string;
129
- createdAt: number | Date;
130
- status: SprintStatus;
131
- updatedAt: number | Date;
132
- name: string;
133
- workspaceId?: string | null | undefined;
134
- startDate?: number | Date | null | undefined;
135
- endDate?: number | Date | null | undefined;
136
- mindmap?: string | null | undefined;
137
- mindmapUpdatedAt?: number | Date | null | undefined;
138
- };
139
- }, {
140
- sprint: {
141
- id: string;
142
- createdAt: number | Date;
143
- status: SprintStatus;
144
- updatedAt: number | Date;
145
- name: string;
146
- workspaceId?: string | null | undefined;
147
- startDate?: number | Date | null | undefined;
148
- endDate?: number | Date | null | undefined;
149
- mindmap?: string | null | undefined;
150
- mindmapUpdatedAt?: number | Date | null | undefined;
151
- };
152
- }>;
49
+ mindmapUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
50
+ }, z.core.$strip>;
51
+ }, z.core.$strip>;
153
52
  export type SprintResponse = z.infer<typeof SprintResponseSchema>;
154
53
  export declare const SprintsResponseSchema: z.ZodObject<{
155
54
  sprints: z.ZodArray<z.ZodObject<{
156
55
  id: z.ZodString;
157
- createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
158
- updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
159
- } & {
56
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
57
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
160
58
  workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
59
  name: z.ZodString;
162
- status: z.ZodNativeEnum<typeof SprintStatus>;
163
- startDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
164
- endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
60
+ status: z.ZodEnum<typeof SprintStatus>;
61
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
62
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
165
63
  mindmap: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
- mindmapUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
167
- }, "strip", z.ZodTypeAny, {
168
- id: string;
169
- createdAt: number | Date;
170
- status: SprintStatus;
171
- updatedAt: number | Date;
172
- name: string;
173
- workspaceId?: string | null | undefined;
174
- startDate?: number | Date | null | undefined;
175
- endDate?: number | Date | null | undefined;
176
- mindmap?: string | null | undefined;
177
- mindmapUpdatedAt?: number | Date | null | undefined;
178
- }, {
179
- id: string;
180
- createdAt: number | Date;
181
- status: SprintStatus;
182
- updatedAt: number | Date;
183
- name: string;
184
- workspaceId?: string | null | undefined;
185
- startDate?: number | Date | null | undefined;
186
- endDate?: number | Date | null | undefined;
187
- mindmap?: string | null | undefined;
188
- mindmapUpdatedAt?: number | Date | null | undefined;
189
- }>, "many">;
190
- }, "strip", z.ZodTypeAny, {
191
- sprints: {
192
- id: string;
193
- createdAt: number | Date;
194
- status: SprintStatus;
195
- updatedAt: number | Date;
196
- name: string;
197
- workspaceId?: string | null | undefined;
198
- startDate?: number | Date | null | undefined;
199
- endDate?: number | Date | null | undefined;
200
- mindmap?: string | null | undefined;
201
- mindmapUpdatedAt?: number | Date | null | undefined;
202
- }[];
203
- }, {
204
- sprints: {
205
- id: string;
206
- createdAt: number | Date;
207
- status: SprintStatus;
208
- updatedAt: number | Date;
209
- name: string;
210
- workspaceId?: string | null | undefined;
211
- startDate?: number | Date | null | undefined;
212
- endDate?: number | Date | null | undefined;
213
- mindmap?: string | null | undefined;
214
- mindmapUpdatedAt?: number | Date | null | undefined;
215
- }[];
216
- }>;
64
+ mindmapUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$strip>;
217
67
  export type SprintsResponse = z.infer<typeof SprintsResponseSchema>;
218
68
  //# sourceMappingURL=sprint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sprint.d.ts","sourceRoot":"","sources":["../../src/models/sprint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;EAc3B,CAAC;AAEL,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D,eAAO,MAAM,mBAAmB;;;;;;EAE9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE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