@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
package/dist/models/doc.d.ts
CHANGED
|
@@ -2,18 +2,11 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const DocGroupSchemaForDoc: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}, {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
export declare const DocSchema: z.ZodObject<{
|
|
13
7
|
id: z.ZodString;
|
|
14
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
15
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
16
|
-
} & {
|
|
8
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
9
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
17
10
|
workspaceId: z.ZodString;
|
|
18
11
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
12
|
title: z.ZodString;
|
|
@@ -21,73 +14,26 @@ export declare const DocSchema: z.ZodObject<{
|
|
|
21
14
|
group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
15
|
id: z.ZodString;
|
|
23
16
|
name: z.ZodString;
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
name: string;
|
|
27
|
-
}, {
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
}>>>;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
id: string;
|
|
33
|
-
createdAt: number | Date;
|
|
34
|
-
updatedAt: number | Date;
|
|
35
|
-
title: string;
|
|
36
|
-
workspaceId: string;
|
|
37
|
-
content: string;
|
|
38
|
-
groupId?: string | null | undefined;
|
|
39
|
-
group?: {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
} | null | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
id: string;
|
|
45
|
-
createdAt: number | Date;
|
|
46
|
-
updatedAt: number | Date;
|
|
47
|
-
title: string;
|
|
48
|
-
workspaceId: string;
|
|
49
|
-
groupId?: string | null | undefined;
|
|
50
|
-
content?: string | undefined;
|
|
51
|
-
group?: {
|
|
52
|
-
id: string;
|
|
53
|
-
name: string;
|
|
54
|
-
} | null | undefined;
|
|
55
|
-
}>;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
56
19
|
export type Doc = z.infer<typeof DocSchema>;
|
|
57
20
|
export declare const CreateDocSchema: z.ZodObject<{
|
|
58
21
|
title: z.ZodString;
|
|
59
22
|
content: z.ZodOptional<z.ZodString>;
|
|
60
23
|
groupId: z.ZodOptional<z.ZodString>;
|
|
61
|
-
},
|
|
62
|
-
title: string;
|
|
63
|
-
groupId?: string | undefined;
|
|
64
|
-
content?: string | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
title: string;
|
|
67
|
-
groupId?: string | undefined;
|
|
68
|
-
content?: string | undefined;
|
|
69
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
70
25
|
export type CreateDoc = z.infer<typeof CreateDocSchema>;
|
|
71
26
|
export declare const UpdateDocSchema: z.ZodObject<{
|
|
72
27
|
title: z.ZodOptional<z.ZodString>;
|
|
73
28
|
content: z.ZodOptional<z.ZodString>;
|
|
74
29
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
-
},
|
|
76
|
-
title?: string | undefined;
|
|
77
|
-
groupId?: string | null | undefined;
|
|
78
|
-
content?: string | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
title?: string | undefined;
|
|
81
|
-
groupId?: string | null | undefined;
|
|
82
|
-
content?: string | undefined;
|
|
83
|
-
}>;
|
|
30
|
+
}, z.core.$strip>;
|
|
84
31
|
export type UpdateDoc = z.infer<typeof UpdateDocSchema>;
|
|
85
32
|
export declare const DocResponseSchema: z.ZodObject<{
|
|
86
33
|
doc: z.ZodObject<{
|
|
87
34
|
id: z.ZodString;
|
|
88
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
89
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
90
|
-
} & {
|
|
35
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
36
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
91
37
|
workspaceId: z.ZodString;
|
|
92
38
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
39
|
title: z.ZodString;
|
|
@@ -95,74 +41,15 @@ export declare const DocResponseSchema: z.ZodObject<{
|
|
|
95
41
|
group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
96
42
|
id: z.ZodString;
|
|
97
43
|
name: z.ZodString;
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}, {
|
|
102
|
-
id: string;
|
|
103
|
-
name: string;
|
|
104
|
-
}>>>;
|
|
105
|
-
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
id: string;
|
|
107
|
-
createdAt: number | Date;
|
|
108
|
-
updatedAt: number | Date;
|
|
109
|
-
title: string;
|
|
110
|
-
workspaceId: string;
|
|
111
|
-
content: string;
|
|
112
|
-
groupId?: string | null | undefined;
|
|
113
|
-
group?: {
|
|
114
|
-
id: string;
|
|
115
|
-
name: string;
|
|
116
|
-
} | null | undefined;
|
|
117
|
-
}, {
|
|
118
|
-
id: string;
|
|
119
|
-
createdAt: number | Date;
|
|
120
|
-
updatedAt: number | Date;
|
|
121
|
-
title: string;
|
|
122
|
-
workspaceId: string;
|
|
123
|
-
groupId?: string | null | undefined;
|
|
124
|
-
content?: string | undefined;
|
|
125
|
-
group?: {
|
|
126
|
-
id: string;
|
|
127
|
-
name: string;
|
|
128
|
-
} | null | undefined;
|
|
129
|
-
}>;
|
|
130
|
-
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
doc: {
|
|
132
|
-
id: string;
|
|
133
|
-
createdAt: number | Date;
|
|
134
|
-
updatedAt: number | Date;
|
|
135
|
-
title: string;
|
|
136
|
-
workspaceId: string;
|
|
137
|
-
content: string;
|
|
138
|
-
groupId?: string | null | undefined;
|
|
139
|
-
group?: {
|
|
140
|
-
id: string;
|
|
141
|
-
name: string;
|
|
142
|
-
} | null | undefined;
|
|
143
|
-
};
|
|
144
|
-
}, {
|
|
145
|
-
doc: {
|
|
146
|
-
id: string;
|
|
147
|
-
createdAt: number | Date;
|
|
148
|
-
updatedAt: number | Date;
|
|
149
|
-
title: string;
|
|
150
|
-
workspaceId: string;
|
|
151
|
-
groupId?: string | null | undefined;
|
|
152
|
-
content?: string | undefined;
|
|
153
|
-
group?: {
|
|
154
|
-
id: string;
|
|
155
|
-
name: string;
|
|
156
|
-
} | null | undefined;
|
|
157
|
-
};
|
|
158
|
-
}>;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$strip>;
|
|
159
47
|
export type DocResponse = z.infer<typeof DocResponseSchema>;
|
|
160
48
|
export declare const DocsResponseSchema: z.ZodObject<{
|
|
161
49
|
docs: z.ZodArray<z.ZodObject<{
|
|
162
50
|
id: z.ZodString;
|
|
163
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
164
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
165
|
-
} & {
|
|
51
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
52
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
166
53
|
workspaceId: z.ZodString;
|
|
167
54
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
55
|
title: z.ZodString;
|
|
@@ -170,82 +57,16 @@ export declare const DocsResponseSchema: z.ZodObject<{
|
|
|
170
57
|
group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
171
58
|
id: z.ZodString;
|
|
172
59
|
name: z.ZodString;
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}, {
|
|
177
|
-
id: string;
|
|
178
|
-
name: string;
|
|
179
|
-
}>>>;
|
|
180
|
-
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
id: string;
|
|
182
|
-
createdAt: number | Date;
|
|
183
|
-
updatedAt: number | Date;
|
|
184
|
-
title: string;
|
|
185
|
-
workspaceId: string;
|
|
186
|
-
content: string;
|
|
187
|
-
groupId?: string | null | undefined;
|
|
188
|
-
group?: {
|
|
189
|
-
id: string;
|
|
190
|
-
name: string;
|
|
191
|
-
} | null | undefined;
|
|
192
|
-
}, {
|
|
193
|
-
id: string;
|
|
194
|
-
createdAt: number | Date;
|
|
195
|
-
updatedAt: number | Date;
|
|
196
|
-
title: string;
|
|
197
|
-
workspaceId: string;
|
|
198
|
-
groupId?: string | null | undefined;
|
|
199
|
-
content?: string | undefined;
|
|
200
|
-
group?: {
|
|
201
|
-
id: string;
|
|
202
|
-
name: string;
|
|
203
|
-
} | null | undefined;
|
|
204
|
-
}>, "many">;
|
|
205
|
-
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
docs: {
|
|
207
|
-
id: string;
|
|
208
|
-
createdAt: number | Date;
|
|
209
|
-
updatedAt: number | Date;
|
|
210
|
-
title: string;
|
|
211
|
-
workspaceId: string;
|
|
212
|
-
content: string;
|
|
213
|
-
groupId?: string | null | undefined;
|
|
214
|
-
group?: {
|
|
215
|
-
id: string;
|
|
216
|
-
name: string;
|
|
217
|
-
} | null | undefined;
|
|
218
|
-
}[];
|
|
219
|
-
}, {
|
|
220
|
-
docs: {
|
|
221
|
-
id: string;
|
|
222
|
-
createdAt: number | Date;
|
|
223
|
-
updatedAt: number | Date;
|
|
224
|
-
title: string;
|
|
225
|
-
workspaceId: string;
|
|
226
|
-
groupId?: string | null | undefined;
|
|
227
|
-
content?: string | undefined;
|
|
228
|
-
group?: {
|
|
229
|
-
id: string;
|
|
230
|
-
name: string;
|
|
231
|
-
} | null | undefined;
|
|
232
|
-
}[];
|
|
233
|
-
}>;
|
|
60
|
+
}, z.core.$strip>>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
234
63
|
export type DocsResponse = z.infer<typeof DocsResponseSchema>;
|
|
235
64
|
export declare const DocIdParamSchema: z.ZodObject<{
|
|
236
65
|
id: z.ZodString;
|
|
237
|
-
},
|
|
238
|
-
id: string;
|
|
239
|
-
}, {
|
|
240
|
-
id: string;
|
|
241
|
-
}>;
|
|
66
|
+
}, z.core.$strip>;
|
|
242
67
|
export type DocIdParam = z.infer<typeof DocIdParamSchema>;
|
|
243
68
|
export declare const DocQuerySchema: z.ZodObject<{
|
|
244
69
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
245
|
-
},
|
|
246
|
-
workspaceId?: string | undefined;
|
|
247
|
-
}, {
|
|
248
|
-
workspaceId?: string | undefined;
|
|
249
|
-
}>;
|
|
70
|
+
}, z.core.$strip>;
|
|
250
71
|
export type DocQuery = z.infer<typeof DocQuerySchema>;
|
|
251
72
|
//# sourceMappingURL=doc.d.ts.map
|
package/dist/models/doc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doc.d.ts","sourceRoot":"","sources":["../../src/models/doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"doc.d.ts","sourceRoot":"","sources":["../../src/models/doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;iBAMpB,CAAC;AAEH,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAE5C,eAAO,MAAM,eAAe;;;;iBAI1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,eAAe;;;;iBAI1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAMxD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;iBAE5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;iBAE7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D,eAAO,MAAM,gBAAgB;;iBAE3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc;;iBAEzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -2,256 +2,79 @@ import { z } from "zod";
|
|
|
2
2
|
import { MembershipRole } from "../enums";
|
|
3
3
|
export declare const InvitationSchema: 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
|
orgId: z.ZodString;
|
|
9
8
|
email: z.ZodString;
|
|
10
|
-
role: z.
|
|
9
|
+
role: z.ZodEnum<typeof MembershipRole>;
|
|
11
10
|
token: z.ZodString;
|
|
12
11
|
expiresAt: z.ZodNumber;
|
|
13
12
|
acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
13
|
invitedBy: z.ZodString;
|
|
15
|
-
},
|
|
16
|
-
id: string;
|
|
17
|
-
createdAt: number | Date;
|
|
18
|
-
updatedAt: number | Date;
|
|
19
|
-
role: MembershipRole;
|
|
20
|
-
email: string;
|
|
21
|
-
orgId: string;
|
|
22
|
-
token: string;
|
|
23
|
-
expiresAt: number;
|
|
24
|
-
invitedBy: string;
|
|
25
|
-
acceptedAt?: number | null | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
id: string;
|
|
28
|
-
createdAt: number | Date;
|
|
29
|
-
updatedAt: number | Date;
|
|
30
|
-
role: MembershipRole;
|
|
31
|
-
email: string;
|
|
32
|
-
orgId: string;
|
|
33
|
-
token: string;
|
|
34
|
-
expiresAt: number;
|
|
35
|
-
invitedBy: string;
|
|
36
|
-
acceptedAt?: number | null | undefined;
|
|
37
|
-
}>;
|
|
14
|
+
}, z.core.$strip>;
|
|
38
15
|
export type Invitation = z.infer<typeof InvitationSchema>;
|
|
39
16
|
export declare const CreateInvitationSchema: z.ZodObject<{
|
|
40
17
|
orgId: z.ZodString;
|
|
41
18
|
email: z.ZodString;
|
|
42
|
-
role: z.ZodDefault<z.
|
|
43
|
-
},
|
|
44
|
-
role: MembershipRole;
|
|
45
|
-
email: string;
|
|
46
|
-
orgId: string;
|
|
47
|
-
}, {
|
|
48
|
-
email: string;
|
|
49
|
-
orgId: string;
|
|
50
|
-
role?: MembershipRole | undefined;
|
|
51
|
-
}>;
|
|
19
|
+
role: z.ZodDefault<z.ZodEnum<typeof MembershipRole>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
52
21
|
export type CreateInvitation = z.infer<typeof CreateInvitationSchema>;
|
|
53
22
|
export declare const AcceptInvitationSchema: z.ZodObject<{
|
|
54
23
|
token: z.ZodString;
|
|
55
24
|
name: z.ZodOptional<z.ZodString>;
|
|
56
|
-
},
|
|
57
|
-
token: string;
|
|
58
|
-
name?: string | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
token: string;
|
|
61
|
-
name?: string | undefined;
|
|
62
|
-
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
63
26
|
export type AcceptInvitation = z.infer<typeof AcceptInvitationSchema>;
|
|
64
27
|
export declare const InvitationIdParamSchema: z.ZodObject<{
|
|
65
28
|
id: z.ZodString;
|
|
66
|
-
},
|
|
67
|
-
id: string;
|
|
68
|
-
}, {
|
|
69
|
-
id: string;
|
|
70
|
-
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
71
30
|
export type InvitationIdParam = z.infer<typeof InvitationIdParamSchema>;
|
|
72
31
|
export declare const InvitationVerifyParamSchema: z.ZodObject<{
|
|
73
32
|
token: z.ZodString;
|
|
74
|
-
},
|
|
75
|
-
token: string;
|
|
76
|
-
}, {
|
|
77
|
-
token: string;
|
|
78
|
-
}>;
|
|
33
|
+
}, z.core.$strip>;
|
|
79
34
|
export type InvitationVerifyParam = z.infer<typeof InvitationVerifyParamSchema>;
|
|
80
35
|
export declare const InvitationQuerySchema: z.ZodObject<{
|
|
81
36
|
orgId: z.ZodOptional<z.ZodString>;
|
|
82
|
-
},
|
|
83
|
-
orgId?: string | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
orgId?: string | undefined;
|
|
86
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
87
38
|
export type InvitationQuery = z.infer<typeof InvitationQuerySchema>;
|
|
88
39
|
export declare const InvitationResponseSchema: z.ZodObject<{
|
|
89
40
|
invitation: z.ZodObject<{
|
|
90
41
|
id: z.ZodString;
|
|
91
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
92
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
93
|
-
} & {
|
|
42
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
43
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
94
44
|
orgId: z.ZodString;
|
|
95
45
|
email: z.ZodString;
|
|
96
|
-
role: z.
|
|
46
|
+
role: z.ZodEnum<typeof MembershipRole>;
|
|
97
47
|
token: z.ZodString;
|
|
98
48
|
expiresAt: z.ZodNumber;
|
|
99
49
|
acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
100
50
|
invitedBy: z.ZodString;
|
|
101
|
-
},
|
|
102
|
-
id: string;
|
|
103
|
-
createdAt: number | Date;
|
|
104
|
-
updatedAt: number | Date;
|
|
105
|
-
role: MembershipRole;
|
|
106
|
-
email: string;
|
|
107
|
-
orgId: string;
|
|
108
|
-
token: string;
|
|
109
|
-
expiresAt: number;
|
|
110
|
-
invitedBy: string;
|
|
111
|
-
acceptedAt?: number | null | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
id: string;
|
|
114
|
-
createdAt: number | Date;
|
|
115
|
-
updatedAt: number | Date;
|
|
116
|
-
role: MembershipRole;
|
|
117
|
-
email: string;
|
|
118
|
-
orgId: string;
|
|
119
|
-
token: string;
|
|
120
|
-
expiresAt: number;
|
|
121
|
-
invitedBy: string;
|
|
122
|
-
acceptedAt?: number | null | undefined;
|
|
123
|
-
}>;
|
|
51
|
+
}, z.core.$strip>;
|
|
124
52
|
userExists: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
-
},
|
|
126
|
-
invitation: {
|
|
127
|
-
id: string;
|
|
128
|
-
createdAt: number | Date;
|
|
129
|
-
updatedAt: number | Date;
|
|
130
|
-
role: MembershipRole;
|
|
131
|
-
email: string;
|
|
132
|
-
orgId: string;
|
|
133
|
-
token: string;
|
|
134
|
-
expiresAt: number;
|
|
135
|
-
invitedBy: string;
|
|
136
|
-
acceptedAt?: number | null | undefined;
|
|
137
|
-
};
|
|
138
|
-
userExists?: boolean | undefined;
|
|
139
|
-
}, {
|
|
140
|
-
invitation: {
|
|
141
|
-
id: string;
|
|
142
|
-
createdAt: number | Date;
|
|
143
|
-
updatedAt: number | Date;
|
|
144
|
-
role: MembershipRole;
|
|
145
|
-
email: string;
|
|
146
|
-
orgId: string;
|
|
147
|
-
token: string;
|
|
148
|
-
expiresAt: number;
|
|
149
|
-
invitedBy: string;
|
|
150
|
-
acceptedAt?: number | null | undefined;
|
|
151
|
-
};
|
|
152
|
-
userExists?: boolean | undefined;
|
|
153
|
-
}>;
|
|
53
|
+
}, z.core.$strip>;
|
|
154
54
|
export type InvitationResponse = z.infer<typeof InvitationResponseSchema>;
|
|
155
55
|
export declare const InvitationsResponseSchema: z.ZodObject<{
|
|
156
56
|
invitations: z.ZodArray<z.ZodObject<{
|
|
157
57
|
id: z.ZodString;
|
|
158
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
159
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
160
|
-
} & {
|
|
58
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
59
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
161
60
|
orgId: z.ZodString;
|
|
162
61
|
email: z.ZodString;
|
|
163
|
-
role: z.
|
|
62
|
+
role: z.ZodEnum<typeof MembershipRole>;
|
|
164
63
|
token: z.ZodString;
|
|
165
64
|
expiresAt: z.ZodNumber;
|
|
166
65
|
acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
167
66
|
invitedBy: z.ZodString;
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
createdAt: number | Date;
|
|
171
|
-
updatedAt: number | Date;
|
|
172
|
-
role: MembershipRole;
|
|
173
|
-
email: string;
|
|
174
|
-
orgId: string;
|
|
175
|
-
token: string;
|
|
176
|
-
expiresAt: number;
|
|
177
|
-
invitedBy: string;
|
|
178
|
-
acceptedAt?: number | null | undefined;
|
|
179
|
-
}, {
|
|
180
|
-
id: string;
|
|
181
|
-
createdAt: number | Date;
|
|
182
|
-
updatedAt: number | Date;
|
|
183
|
-
role: MembershipRole;
|
|
184
|
-
email: string;
|
|
185
|
-
orgId: string;
|
|
186
|
-
token: string;
|
|
187
|
-
expiresAt: number;
|
|
188
|
-
invitedBy: string;
|
|
189
|
-
acceptedAt?: number | null | undefined;
|
|
190
|
-
}>, "many">;
|
|
191
|
-
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
invitations: {
|
|
193
|
-
id: string;
|
|
194
|
-
createdAt: number | Date;
|
|
195
|
-
updatedAt: number | Date;
|
|
196
|
-
role: MembershipRole;
|
|
197
|
-
email: string;
|
|
198
|
-
orgId: string;
|
|
199
|
-
token: string;
|
|
200
|
-
expiresAt: number;
|
|
201
|
-
invitedBy: string;
|
|
202
|
-
acceptedAt?: number | null | undefined;
|
|
203
|
-
}[];
|
|
204
|
-
}, {
|
|
205
|
-
invitations: {
|
|
206
|
-
id: string;
|
|
207
|
-
createdAt: number | Date;
|
|
208
|
-
updatedAt: number | Date;
|
|
209
|
-
role: MembershipRole;
|
|
210
|
-
email: string;
|
|
211
|
-
orgId: string;
|
|
212
|
-
token: string;
|
|
213
|
-
expiresAt: number;
|
|
214
|
-
invitedBy: string;
|
|
215
|
-
acceptedAt?: number | null | undefined;
|
|
216
|
-
}[];
|
|
217
|
-
}>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
218
69
|
export type InvitationsResponse = z.infer<typeof InvitationsResponseSchema>;
|
|
219
70
|
export declare const AcceptInvitationResponseSchema: z.ZodObject<{
|
|
220
71
|
membership: z.ZodObject<{
|
|
221
72
|
id: z.ZodString;
|
|
222
73
|
userId: z.ZodString;
|
|
223
74
|
orgId: z.ZodString;
|
|
224
|
-
role: z.
|
|
75
|
+
role: z.ZodEnum<typeof MembershipRole>;
|
|
225
76
|
createdAt: z.ZodNumber;
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
createdAt: number;
|
|
229
|
-
userId: string;
|
|
230
|
-
role: MembershipRole;
|
|
231
|
-
orgId: string;
|
|
232
|
-
}, {
|
|
233
|
-
id: string;
|
|
234
|
-
createdAt: number;
|
|
235
|
-
userId: string;
|
|
236
|
-
role: MembershipRole;
|
|
237
|
-
orgId: string;
|
|
238
|
-
}>;
|
|
239
|
-
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
membership: {
|
|
241
|
-
id: string;
|
|
242
|
-
createdAt: number;
|
|
243
|
-
userId: string;
|
|
244
|
-
role: MembershipRole;
|
|
245
|
-
orgId: string;
|
|
246
|
-
};
|
|
247
|
-
}, {
|
|
248
|
-
membership: {
|
|
249
|
-
id: string;
|
|
250
|
-
createdAt: number;
|
|
251
|
-
userId: string;
|
|
252
|
-
role: MembershipRole;
|
|
253
|
-
orgId: string;
|
|
254
|
-
};
|
|
255
|
-
}>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
}, z.core.$strip>;
|
|
256
79
|
export type AcceptInvitationResponse = z.infer<typeof AcceptInvitationResponseSchema>;
|
|
257
80
|
//# sourceMappingURL=invitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invitation.d.ts","sourceRoot":"","sources":["../../src/models/invitation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"invitation.d.ts","sourceRoot":"","sources":["../../src/models/invitation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAQ3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAMtE,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,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;AAMpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,8BAA8B;;;;;;;;iBAQzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC"}
|