@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.
- package/README.md +1 -1
- package/dist/common.d.ts +14 -138
- package/dist/common.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/models/activity.d.ts +83 -756
- package/dist/models/activity.d.ts.map +1 -1
- package/dist/models/agent.d.ts +2 -12
- package/dist/models/agent.d.ts.map +1 -1
- package/dist/models/auth.d.ts +41 -247
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/ci.d.ts +3 -61
- package/dist/models/ci.d.ts.map +1 -1
- package/dist/models/doc-group.d.ts +14 -111
- package/dist/models/doc-group.d.ts.map +1 -1
- package/dist/models/doc.d.ts +19 -198
- package/dist/models/doc.d.ts.map +1 -1
- package/dist/models/invitation.d.ts +23 -200
- package/dist/models/invitation.d.ts.map +1 -1
- package/dist/models/organization.d.ts +29 -284
- package/dist/models/organization.d.ts.map +1 -1
- package/dist/models/sprint.d.ts +33 -183
- package/dist/models/sprint.d.ts.map +1 -1
- package/dist/models/task.d.ts +98 -1053
- package/dist/models/task.d.ts.map +1 -1
- package/dist/models/user.d.ts +9 -72
- package/dist/models/user.d.ts.map +1 -1
- package/dist/models/workspace.d.ts +25 -252
- package/dist/models/workspace.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/models/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAIlE,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/models/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAIlE,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;iBAa3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWzB,CAAC;AAEL,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D,eAAO,MAAM,iBAAiB;;iBAE5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,eAAe,gCAAe,CAAC;AAE5C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAMxD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/models/user.d.ts
CHANGED
|
@@ -2,13 +2,12 @@ import { z } from "zod";
|
|
|
2
2
|
import { UserRole } from "../enums";
|
|
3
3
|
export declare const UserSchema: 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
|
email: z.ZodString;
|
|
9
8
|
name: z.ZodString;
|
|
10
9
|
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
role: z.
|
|
10
|
+
role: z.ZodEnum<typeof UserRole>;
|
|
12
11
|
orgId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
12
|
workspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
13
|
companyName: z.ZodOptional<z.ZodString>;
|
|
@@ -16,86 +15,24 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
16
15
|
teamSize: z.ZodOptional<z.ZodString>;
|
|
17
16
|
onboardingCompleted: z.ZodDefault<z.ZodBoolean>;
|
|
18
17
|
emailVerified: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
-
},
|
|
20
|
-
id: string;
|
|
21
|
-
createdAt: number | Date;
|
|
22
|
-
updatedAt: number | Date;
|
|
23
|
-
name: string;
|
|
24
|
-
role: UserRole;
|
|
25
|
-
email: string;
|
|
26
|
-
onboardingCompleted: boolean;
|
|
27
|
-
emailVerified: boolean;
|
|
28
|
-
workspaceId?: string | null | undefined;
|
|
29
|
-
avatarUrl?: string | null | undefined;
|
|
30
|
-
orgId?: string | null | undefined;
|
|
31
|
-
companyName?: string | undefined;
|
|
32
|
-
userRole?: string | undefined;
|
|
33
|
-
teamSize?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
id: string;
|
|
36
|
-
createdAt: number | Date;
|
|
37
|
-
updatedAt: number | Date;
|
|
38
|
-
name: string;
|
|
39
|
-
role: UserRole;
|
|
40
|
-
email: string;
|
|
41
|
-
workspaceId?: string | null | undefined;
|
|
42
|
-
avatarUrl?: string | null | undefined;
|
|
43
|
-
orgId?: string | null | undefined;
|
|
44
|
-
companyName?: string | undefined;
|
|
45
|
-
userRole?: string | undefined;
|
|
46
|
-
teamSize?: string | undefined;
|
|
47
|
-
onboardingCompleted?: boolean | undefined;
|
|
48
|
-
emailVerified?: boolean | undefined;
|
|
49
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
50
19
|
export type User = z.infer<typeof UserSchema>;
|
|
51
20
|
export declare const CreateUserSchema: z.ZodObject<{
|
|
52
21
|
email: z.ZodString;
|
|
53
22
|
name: z.ZodString;
|
|
54
|
-
},
|
|
55
|
-
name: string;
|
|
56
|
-
email: string;
|
|
57
|
-
}, {
|
|
58
|
-
name: string;
|
|
59
|
-
email: string;
|
|
60
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
61
24
|
export type CreateUser = z.infer<typeof CreateUserSchema>;
|
|
62
|
-
export declare const UpdateUserSchema: z.ZodObject<
|
|
63
|
-
id: z.ZodOptional<z.ZodString>;
|
|
64
|
-
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
65
|
-
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
66
|
-
email: z.ZodOptional<z.ZodString>;
|
|
25
|
+
export declare const UpdateUserSchema: z.ZodObject<{
|
|
67
26
|
name: z.ZodOptional<z.ZodString>;
|
|
27
|
+
role: z.ZodOptional<z.ZodEnum<typeof UserRole>>;
|
|
28
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
68
29
|
avatarUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
69
|
-
role: z.ZodOptional<z.ZodNativeEnum<typeof UserRole>>;
|
|
70
30
|
orgId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
71
|
-
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
72
31
|
companyName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
73
32
|
userRole: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
74
33
|
teamSize: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
75
34
|
onboardingCompleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
76
35
|
emailVerified: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
77
|
-
},
|
|
78
|
-
name?: string | undefined;
|
|
79
|
-
role?: UserRole | undefined;
|
|
80
|
-
workspaceId?: string | null | undefined;
|
|
81
|
-
avatarUrl?: string | null | undefined;
|
|
82
|
-
orgId?: string | null | undefined;
|
|
83
|
-
companyName?: string | undefined;
|
|
84
|
-
userRole?: string | undefined;
|
|
85
|
-
teamSize?: string | undefined;
|
|
86
|
-
onboardingCompleted?: boolean | undefined;
|
|
87
|
-
emailVerified?: boolean | undefined;
|
|
88
|
-
}, {
|
|
89
|
-
name?: string | undefined;
|
|
90
|
-
role?: UserRole | undefined;
|
|
91
|
-
workspaceId?: string | null | undefined;
|
|
92
|
-
avatarUrl?: string | null | undefined;
|
|
93
|
-
orgId?: string | null | undefined;
|
|
94
|
-
companyName?: string | undefined;
|
|
95
|
-
userRole?: string | undefined;
|
|
96
|
-
teamSize?: string | undefined;
|
|
97
|
-
onboardingCompleted?: boolean | undefined;
|
|
98
|
-
emailVerified?: boolean | undefined;
|
|
99
|
-
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
100
37
|
export type UpdateUser = z.infer<typeof UpdateUserSchema>;
|
|
101
38
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;iBAYrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAK3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -3,317 +3,90 @@ export declare const ChecklistItemSchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
text: z.ZodString;
|
|
5
5
|
done: z.ZodBoolean;
|
|
6
|
-
},
|
|
7
|
-
id: string;
|
|
8
|
-
text: string;
|
|
9
|
-
done: boolean;
|
|
10
|
-
}, {
|
|
11
|
-
id: string;
|
|
12
|
-
text: string;
|
|
13
|
-
done: boolean;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type ChecklistItem = z.infer<typeof ChecklistItemSchema>;
|
|
16
8
|
export declare const WorkspaceSchema: z.ZodObject<{
|
|
17
9
|
id: z.ZodString;
|
|
18
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
19
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
20
|
-
} & {
|
|
10
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
11
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
21
12
|
orgId: z.ZodString;
|
|
22
13
|
name: z.ZodString;
|
|
23
14
|
defaultChecklist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
24
15
|
id: z.ZodString;
|
|
25
16
|
text: z.ZodString;
|
|
26
17
|
done: z.ZodBoolean;
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
text: string;
|
|
30
|
-
done: boolean;
|
|
31
|
-
}, {
|
|
32
|
-
id: string;
|
|
33
|
-
text: string;
|
|
34
|
-
done: boolean;
|
|
35
|
-
}>, "many">>>;
|
|
36
|
-
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
id: string;
|
|
38
|
-
createdAt: number | Date;
|
|
39
|
-
updatedAt: number | Date;
|
|
40
|
-
name: string;
|
|
41
|
-
orgId: string;
|
|
42
|
-
defaultChecklist?: {
|
|
43
|
-
id: string;
|
|
44
|
-
text: string;
|
|
45
|
-
done: boolean;
|
|
46
|
-
}[] | null | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
id: string;
|
|
49
|
-
createdAt: number | Date;
|
|
50
|
-
updatedAt: number | Date;
|
|
51
|
-
name: string;
|
|
52
|
-
orgId: string;
|
|
53
|
-
defaultChecklist?: {
|
|
54
|
-
id: string;
|
|
55
|
-
text: string;
|
|
56
|
-
done: boolean;
|
|
57
|
-
}[] | null | undefined;
|
|
58
|
-
}>;
|
|
18
|
+
}, z.core.$strip>>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
59
20
|
export type Workspace = z.infer<typeof WorkspaceSchema>;
|
|
60
21
|
export declare const CreateWorkspaceSchema: z.ZodObject<{
|
|
61
22
|
name: z.ZodString;
|
|
62
|
-
},
|
|
63
|
-
name: string;
|
|
64
|
-
}, {
|
|
65
|
-
name: string;
|
|
66
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
67
24
|
export type CreateWorkspace = z.infer<typeof CreateWorkspaceSchema>;
|
|
68
|
-
export declare const UpdateWorkspaceSchema: z.ZodObject<
|
|
69
|
-
id: z.ZodOptional<z.ZodString>;
|
|
70
|
-
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
71
|
-
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
72
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
export declare const UpdateWorkspaceSchema: z.ZodObject<{
|
|
73
26
|
name: z.ZodOptional<z.ZodString>;
|
|
74
27
|
defaultChecklist: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
75
28
|
id: z.ZodString;
|
|
76
29
|
text: z.ZodString;
|
|
77
30
|
done: z.ZodBoolean;
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
text: string;
|
|
81
|
-
done: boolean;
|
|
82
|
-
}, {
|
|
83
|
-
id: string;
|
|
84
|
-
text: string;
|
|
85
|
-
done: boolean;
|
|
86
|
-
}>, "many">>>>;
|
|
87
|
-
}, "id" | "createdAt" | "updatedAt" | "orgId">, "strip", z.ZodTypeAny, {
|
|
88
|
-
name?: string | undefined;
|
|
89
|
-
defaultChecklist?: {
|
|
90
|
-
id: string;
|
|
91
|
-
text: string;
|
|
92
|
-
done: boolean;
|
|
93
|
-
}[] | null | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
name?: string | undefined;
|
|
96
|
-
defaultChecklist?: {
|
|
97
|
-
id: string;
|
|
98
|
-
text: string;
|
|
99
|
-
done: boolean;
|
|
100
|
-
}[] | null | undefined;
|
|
101
|
-
}>;
|
|
31
|
+
}, z.core.$strip>>>>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
102
33
|
export type UpdateWorkspace = z.infer<typeof UpdateWorkspaceSchema>;
|
|
103
34
|
export declare const AddWorkspaceMemberSchema: z.ZodObject<{
|
|
104
35
|
userId: z.ZodString;
|
|
105
36
|
role: z.ZodOptional<z.ZodString>;
|
|
106
|
-
},
|
|
107
|
-
userId: string;
|
|
108
|
-
role?: string | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
userId: string;
|
|
111
|
-
role?: string | undefined;
|
|
112
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
113
38
|
export type AddWorkspaceMember = z.infer<typeof AddWorkspaceMemberSchema>;
|
|
114
39
|
export declare const WorkspaceIdParamSchema: z.ZodObject<{
|
|
115
40
|
workspaceId: z.ZodString;
|
|
116
|
-
},
|
|
117
|
-
workspaceId: string;
|
|
118
|
-
}, {
|
|
119
|
-
workspaceId: string;
|
|
120
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
121
42
|
export type WorkspaceIdParam = z.infer<typeof WorkspaceIdParamSchema>;
|
|
122
43
|
export declare const WorkspaceAndUserParamSchema: z.ZodObject<{
|
|
123
44
|
workspaceId: z.ZodString;
|
|
124
45
|
userId: z.ZodString;
|
|
125
|
-
},
|
|
126
|
-
userId: string;
|
|
127
|
-
workspaceId: string;
|
|
128
|
-
}, {
|
|
129
|
-
userId: string;
|
|
130
|
-
workspaceId: string;
|
|
131
|
-
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
132
47
|
export type WorkspaceAndUserParam = z.infer<typeof WorkspaceAndUserParamSchema>;
|
|
133
48
|
export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
134
49
|
workspace: z.ZodObject<{
|
|
135
50
|
id: z.ZodString;
|
|
136
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
137
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
138
|
-
} & {
|
|
51
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
52
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
139
53
|
orgId: z.ZodString;
|
|
140
54
|
name: z.ZodString;
|
|
141
55
|
defaultChecklist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
142
56
|
id: z.ZodString;
|
|
143
57
|
text: z.ZodString;
|
|
144
58
|
done: z.ZodBoolean;
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
done: boolean;
|
|
149
|
-
}, {
|
|
150
|
-
id: string;
|
|
151
|
-
text: string;
|
|
152
|
-
done: boolean;
|
|
153
|
-
}>, "many">>>;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
id: string;
|
|
156
|
-
createdAt: number | Date;
|
|
157
|
-
updatedAt: number | Date;
|
|
158
|
-
name: string;
|
|
159
|
-
orgId: string;
|
|
160
|
-
defaultChecklist?: {
|
|
161
|
-
id: string;
|
|
162
|
-
text: string;
|
|
163
|
-
done: boolean;
|
|
164
|
-
}[] | null | undefined;
|
|
165
|
-
}, {
|
|
166
|
-
id: string;
|
|
167
|
-
createdAt: number | Date;
|
|
168
|
-
updatedAt: number | Date;
|
|
169
|
-
name: string;
|
|
170
|
-
orgId: string;
|
|
171
|
-
defaultChecklist?: {
|
|
172
|
-
id: string;
|
|
173
|
-
text: string;
|
|
174
|
-
done: boolean;
|
|
175
|
-
}[] | null | undefined;
|
|
176
|
-
}>;
|
|
177
|
-
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
workspace: {
|
|
179
|
-
id: string;
|
|
180
|
-
createdAt: number | Date;
|
|
181
|
-
updatedAt: number | Date;
|
|
182
|
-
name: string;
|
|
183
|
-
orgId: string;
|
|
184
|
-
defaultChecklist?: {
|
|
185
|
-
id: string;
|
|
186
|
-
text: string;
|
|
187
|
-
done: boolean;
|
|
188
|
-
}[] | null | undefined;
|
|
189
|
-
};
|
|
190
|
-
}, {
|
|
191
|
-
workspace: {
|
|
192
|
-
id: string;
|
|
193
|
-
createdAt: number | Date;
|
|
194
|
-
updatedAt: number | Date;
|
|
195
|
-
name: string;
|
|
196
|
-
orgId: string;
|
|
197
|
-
defaultChecklist?: {
|
|
198
|
-
id: string;
|
|
199
|
-
text: string;
|
|
200
|
-
done: boolean;
|
|
201
|
-
}[] | null | undefined;
|
|
202
|
-
};
|
|
203
|
-
}>;
|
|
59
|
+
}, z.core.$strip>>>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
}, z.core.$strip>;
|
|
204
62
|
export type WorkspaceResponse = z.infer<typeof WorkspaceResponseSchema>;
|
|
205
63
|
export declare const WorkspacesResponseSchema: z.ZodObject<{
|
|
206
64
|
workspaces: z.ZodArray<z.ZodObject<{
|
|
207
65
|
id: z.ZodString;
|
|
208
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
209
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
210
|
-
} & {
|
|
66
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
67
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
211
68
|
orgId: z.ZodString;
|
|
212
69
|
name: z.ZodString;
|
|
213
70
|
defaultChecklist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
214
71
|
id: z.ZodString;
|
|
215
72
|
text: z.ZodString;
|
|
216
73
|
done: z.ZodBoolean;
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
done: boolean;
|
|
221
|
-
}, {
|
|
222
|
-
id: string;
|
|
223
|
-
text: string;
|
|
224
|
-
done: boolean;
|
|
225
|
-
}>, "many">>>;
|
|
226
|
-
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
id: string;
|
|
228
|
-
createdAt: number | Date;
|
|
229
|
-
updatedAt: number | Date;
|
|
230
|
-
name: string;
|
|
231
|
-
orgId: string;
|
|
232
|
-
defaultChecklist?: {
|
|
233
|
-
id: string;
|
|
234
|
-
text: string;
|
|
235
|
-
done: boolean;
|
|
236
|
-
}[] | null | undefined;
|
|
237
|
-
}, {
|
|
238
|
-
id: string;
|
|
239
|
-
createdAt: number | Date;
|
|
240
|
-
updatedAt: number | Date;
|
|
241
|
-
name: string;
|
|
242
|
-
orgId: string;
|
|
243
|
-
defaultChecklist?: {
|
|
244
|
-
id: string;
|
|
245
|
-
text: string;
|
|
246
|
-
done: boolean;
|
|
247
|
-
}[] | null | undefined;
|
|
248
|
-
}>, "many">;
|
|
249
|
-
}, "strip", z.ZodTypeAny, {
|
|
250
|
-
workspaces: {
|
|
251
|
-
id: string;
|
|
252
|
-
createdAt: number | Date;
|
|
253
|
-
updatedAt: number | Date;
|
|
254
|
-
name: string;
|
|
255
|
-
orgId: string;
|
|
256
|
-
defaultChecklist?: {
|
|
257
|
-
id: string;
|
|
258
|
-
text: string;
|
|
259
|
-
done: boolean;
|
|
260
|
-
}[] | null | undefined;
|
|
261
|
-
}[];
|
|
262
|
-
}, {
|
|
263
|
-
workspaces: {
|
|
264
|
-
id: string;
|
|
265
|
-
createdAt: number | Date;
|
|
266
|
-
updatedAt: number | Date;
|
|
267
|
-
name: string;
|
|
268
|
-
orgId: string;
|
|
269
|
-
defaultChecklist?: {
|
|
270
|
-
id: string;
|
|
271
|
-
text: string;
|
|
272
|
-
done: boolean;
|
|
273
|
-
}[] | null | undefined;
|
|
274
|
-
}[];
|
|
275
|
-
}>;
|
|
74
|
+
}, z.core.$strip>>>>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
276
77
|
export type WorkspacesResponse = z.infer<typeof WorkspacesResponseSchema>;
|
|
277
78
|
export declare const WorkspaceStatsSchema: z.ZodObject<{
|
|
278
79
|
workspaceName: z.ZodString;
|
|
279
80
|
taskCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
280
81
|
memberCount: z.ZodNumber;
|
|
281
|
-
},
|
|
282
|
-
workspaceName: string;
|
|
283
|
-
taskCounts: Record<string, number>;
|
|
284
|
-
memberCount: number;
|
|
285
|
-
}, {
|
|
286
|
-
workspaceName: string;
|
|
287
|
-
taskCounts: Record<string, number>;
|
|
288
|
-
memberCount: number;
|
|
289
|
-
}>;
|
|
82
|
+
}, z.core.$strip>;
|
|
290
83
|
export type WorkspaceStats = z.infer<typeof WorkspaceStatsSchema>;
|
|
291
84
|
export declare const WorkspaceStatsResponseSchema: z.ZodObject<{
|
|
292
85
|
stats: z.ZodObject<{
|
|
293
86
|
workspaceName: z.ZodString;
|
|
294
87
|
taskCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
295
88
|
memberCount: z.ZodNumber;
|
|
296
|
-
},
|
|
297
|
-
|
|
298
|
-
taskCounts: Record<string, number>;
|
|
299
|
-
memberCount: number;
|
|
300
|
-
}, {
|
|
301
|
-
workspaceName: string;
|
|
302
|
-
taskCounts: Record<string, number>;
|
|
303
|
-
memberCount: number;
|
|
304
|
-
}>;
|
|
305
|
-
}, "strip", z.ZodTypeAny, {
|
|
306
|
-
stats: {
|
|
307
|
-
workspaceName: string;
|
|
308
|
-
taskCounts: Record<string, number>;
|
|
309
|
-
memberCount: number;
|
|
310
|
-
};
|
|
311
|
-
}, {
|
|
312
|
-
stats: {
|
|
313
|
-
workspaceName: string;
|
|
314
|
-
taskCounts: Record<string, number>;
|
|
315
|
-
memberCount: number;
|
|
316
|
-
};
|
|
317
|
-
}>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
}, z.core.$strip>;
|
|
318
91
|
export type WorkspaceStatsResponse = z.infer<typeof WorkspaceStatsResponseSchema>;
|
|
319
92
|
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/models/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/models/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe;;;;;;;;;;;iBAI1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,qBAAqB;;;;;;;iBAKhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM1E,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMhF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAElC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;iBAEnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,4BAA4B;;;;;;iBAEvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"main": "./src/index.ts",
|
|
5
5
|
"types": "./src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
"README.md"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "bun build ./src/index.ts --outdir ./dist --target node --format cjs --external zod && tsc -p tsconfig.build.json --emitDeclarationOnly"
|
|
11
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target node --format cjs --external zod && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
12
|
+
"clean": "rm -rf node_modules"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"zod": "^3.
|
|
15
|
+
"zod": "^4.3.6"
|
|
15
16
|
}
|
|
16
17
|
}
|