@middlewr/contracts 0.0.2 → 0.0.4
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/cjs/common.schema.d.ts.map +1 -0
- package/{index.d.ts → cjs/index.d.ts} +54 -54
- package/cjs/index.d.ts.map +1 -0
- package/cjs/index.js +334 -0
- package/cjs/links.schema.d.ts.map +1 -0
- package/cjs/package.json +3 -0
- package/cjs/tags.schema.d.ts.map +1 -0
- package/cjs/users.schema.d.ts.map +1 -0
- package/cjs/workspaces.schema.d.ts.map +1 -0
- package/esm/common.schema.d.ts +24 -0
- package/esm/common.schema.d.ts.map +1 -0
- package/esm/index.d.ts +780 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +278 -0
- package/esm/links.schema.d.ts +109 -0
- package/esm/links.schema.d.ts.map +1 -0
- package/esm/package.json +3 -0
- package/esm/tags.schema.d.ts +18 -0
- package/esm/tags.schema.d.ts.map +1 -0
- package/esm/users.schema.d.ts +20 -0
- package/esm/users.schema.d.ts.map +1 -0
- package/esm/workspaces.schema.d.ts +50 -0
- package/esm/workspaces.schema.d.ts.map +1 -0
- package/package.json +7 -6
- package/common.schema.d.ts.map +0 -1
- package/common.schema.js +0 -26
- package/index.d.ts.map +0 -1
- package/index.js +0 -124
- package/links.schema.d.ts.map +0 -1
- package/links.schema.js +0 -98
- package/tags.schema.d.ts.map +0 -1
- package/tags.schema.js +0 -27
- package/users.schema.d.ts.map +0 -1
- package/users.schema.js +0 -22
- package/workspaces.schema.d.ts.map +0 -1
- package/workspaces.schema.js +0 -50
- /package/{common.schema.d.ts → cjs/common.schema.d.ts} +0 -0
- /package/{links.schema.d.ts → cjs/links.schema.d.ts} +0 -0
- /package/{tags.schema.d.ts → cjs/tags.schema.d.ts} +0 -0
- /package/{users.schema.d.ts → cjs/users.schema.d.ts} +0 -0
- /package/{workspaces.schema.d.ts → cjs/workspaces.schema.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASzB,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD9B,CAAC;AAGF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBzB,CAAC;AAGF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
// src/contracts/index.ts
|
|
2
|
+
import { oc } from "@orpc/contract";
|
|
3
|
+
import { z as z6 } from "zod";
|
|
4
|
+
|
|
5
|
+
// src/contracts/common.schema.ts
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
var WorkspaceIdParamSchema = z.object({
|
|
8
|
+
workspace_id: z.string().uuid()
|
|
9
|
+
});
|
|
10
|
+
var LinkIdParamSchema = z.object({
|
|
11
|
+
workspace_id: z.string().uuid(),
|
|
12
|
+
link_id: z.string().uuid()
|
|
13
|
+
});
|
|
14
|
+
var TagIdParamSchema = z.object({
|
|
15
|
+
workspace_id: z.string().uuid(),
|
|
16
|
+
tag_id: z.string().uuid()
|
|
17
|
+
});
|
|
18
|
+
var MemberIdParamSchema = z.object({
|
|
19
|
+
workspace_id: z.string().uuid(),
|
|
20
|
+
user_id: z.string().uuid()
|
|
21
|
+
});
|
|
22
|
+
var InvitationIdParamSchema = z.object({
|
|
23
|
+
workspace_id: z.string().uuid(),
|
|
24
|
+
invitation_id: z.string().uuid()
|
|
25
|
+
});
|
|
26
|
+
var TokenParamSchema = z.object({
|
|
27
|
+
token: z.string()
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// src/contracts/links.schema.ts
|
|
31
|
+
import { z as z2 } from "zod";
|
|
32
|
+
var LinkSchema = z2.object({
|
|
33
|
+
id: z2.string().uuid(),
|
|
34
|
+
workspace_id: z2.string().uuid(),
|
|
35
|
+
created_by_id: z2.string().uuid(),
|
|
36
|
+
original_url: z2.string().url(),
|
|
37
|
+
short_code: z2.string(),
|
|
38
|
+
title: z2.string().nullable(),
|
|
39
|
+
description: z2.string().nullable(),
|
|
40
|
+
utm_source: z2.string().nullable(),
|
|
41
|
+
utm_medium: z2.string().nullable(),
|
|
42
|
+
utm_campaign: z2.string().nullable(),
|
|
43
|
+
utm_term: z2.string().nullable(),
|
|
44
|
+
utm_content: z2.string().nullable(),
|
|
45
|
+
password: z2.string().nullable(),
|
|
46
|
+
starts_at: z2.coerce.date().nullable(),
|
|
47
|
+
expires_at: z2.coerce.date().nullable(),
|
|
48
|
+
is_active: z2.boolean(),
|
|
49
|
+
redirect_type: z2.number().int(),
|
|
50
|
+
click_count: z2.number().int(),
|
|
51
|
+
click_count_updated_at: z2.coerce.date().nullable(),
|
|
52
|
+
created_at: z2.coerce.date(),
|
|
53
|
+
updated_at: z2.coerce.date().nullable()
|
|
54
|
+
});
|
|
55
|
+
var CreateLinkInputSchema = z2.object({
|
|
56
|
+
original_url: z2.string().url().max(2048),
|
|
57
|
+
short_code: z2.string().min(3).max(50).regex(/^[a-zA-Z0-9-]+$/).optional(),
|
|
58
|
+
title: z2.string().max(255).optional(),
|
|
59
|
+
description: z2.string().max(2e3).optional(),
|
|
60
|
+
utm_source: z2.string().max(255).optional(),
|
|
61
|
+
utm_medium: z2.string().max(255).optional(),
|
|
62
|
+
utm_campaign: z2.string().max(255).optional(),
|
|
63
|
+
utm_term: z2.string().max(255).optional(),
|
|
64
|
+
utm_content: z2.string().max(255).optional(),
|
|
65
|
+
password: z2.string().min(4).max(100).optional(),
|
|
66
|
+
starts_at: z2.coerce.date().optional(),
|
|
67
|
+
expires_at: z2.coerce.date().optional(),
|
|
68
|
+
redirect_type: z2.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
69
|
+
tag_ids: z2.array(z2.string().uuid()).optional()
|
|
70
|
+
});
|
|
71
|
+
var UpdateLinkInputSchema = z2.object({
|
|
72
|
+
original_url: z2.string().url().max(2048).optional(),
|
|
73
|
+
short_code: z2.string().min(3).max(50).regex(/^[a-zA-Z0-9-]+$/).optional(),
|
|
74
|
+
title: z2.string().max(255).nullable().optional(),
|
|
75
|
+
description: z2.string().max(2e3).nullable().optional(),
|
|
76
|
+
utm_source: z2.string().max(255).nullable().optional(),
|
|
77
|
+
utm_medium: z2.string().max(255).nullable().optional(),
|
|
78
|
+
utm_campaign: z2.string().max(255).nullable().optional(),
|
|
79
|
+
utm_term: z2.string().max(255).nullable().optional(),
|
|
80
|
+
utm_content: z2.string().max(255).nullable().optional(),
|
|
81
|
+
password: z2.string().min(4).max(100).nullable().optional(),
|
|
82
|
+
starts_at: z2.coerce.date().nullable().optional(),
|
|
83
|
+
expires_at: z2.coerce.date().nullable().optional(),
|
|
84
|
+
is_active: z2.boolean().optional(),
|
|
85
|
+
redirect_type: z2.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
86
|
+
tag_ids: z2.array(z2.string().uuid()).optional()
|
|
87
|
+
});
|
|
88
|
+
var LinkFiltersSchema = z2.object({
|
|
89
|
+
search: z2.string().optional(),
|
|
90
|
+
is_active: z2.coerce.boolean().optional(),
|
|
91
|
+
has_expiration: z2.coerce.boolean().optional(),
|
|
92
|
+
expired: z2.coerce.boolean().optional(),
|
|
93
|
+
created_from: z2.coerce.date().optional(),
|
|
94
|
+
created_to: z2.coerce.date().optional(),
|
|
95
|
+
expires_from: z2.coerce.date().optional(),
|
|
96
|
+
expires_to: z2.coerce.date().optional(),
|
|
97
|
+
tag_ids: z2.array(z2.string().uuid()).optional(),
|
|
98
|
+
sort_by: z2.enum(["created_at", "title", "click_count"]).default("created_at"),
|
|
99
|
+
sort_order: z2.enum(["asc", "desc"]).default("desc"),
|
|
100
|
+
page: z2.coerce.number().int().min(1).default(1),
|
|
101
|
+
per_page: z2.coerce.number().int().min(1).max(100).default(20)
|
|
102
|
+
});
|
|
103
|
+
var PaginatedLinksSchema = z2.object({
|
|
104
|
+
links: z2.array(LinkSchema),
|
|
105
|
+
total: z2.number().int(),
|
|
106
|
+
page: z2.number().int(),
|
|
107
|
+
per_page: z2.number().int(),
|
|
108
|
+
total_pages: z2.number().int()
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// src/contracts/tags.schema.ts
|
|
112
|
+
import { z as z3 } from "zod";
|
|
113
|
+
var TagSchema = z3.object({
|
|
114
|
+
id: z3.string().uuid(),
|
|
115
|
+
workspace_id: z3.string().uuid(),
|
|
116
|
+
name: z3.string(),
|
|
117
|
+
color: z3.string().nullable(),
|
|
118
|
+
created_at: z3.coerce.date(),
|
|
119
|
+
updated_at: z3.coerce.date().nullable()
|
|
120
|
+
});
|
|
121
|
+
var CreateTagInputSchema = z3.object({
|
|
122
|
+
name: z3.string().min(1).max(50),
|
|
123
|
+
color: z3.string().regex(/^#[0-9A-Fa-f]{6}$/).optional()
|
|
124
|
+
});
|
|
125
|
+
var UpdateTagInputSchema = z3.object({
|
|
126
|
+
name: z3.string().min(1).max(50).optional(),
|
|
127
|
+
color: z3.string().regex(/^#[0-9A-Fa-f]{6}$/).nullable().optional()
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// src/contracts/users.schema.ts
|
|
131
|
+
import { z as z4 } from "zod";
|
|
132
|
+
var UserSchema = z4.object({
|
|
133
|
+
id: z4.string().uuid(),
|
|
134
|
+
external_id: z4.string(),
|
|
135
|
+
email: z4.string().email(),
|
|
136
|
+
email_verified_at: z4.coerce.date().nullable(),
|
|
137
|
+
first_name: z4.string().nullable(),
|
|
138
|
+
last_name: z4.string().nullable(),
|
|
139
|
+
created_at: z4.coerce.date(),
|
|
140
|
+
updated_at: z4.coerce.date().nullable()
|
|
141
|
+
});
|
|
142
|
+
var SignInInputSchema = z4.object({
|
|
143
|
+
first_name: z4.string().min(1).max(100).optional(),
|
|
144
|
+
last_name: z4.string().min(1).max(100).optional()
|
|
145
|
+
});
|
|
146
|
+
var UpdateUserInputSchema = z4.object({
|
|
147
|
+
first_name: z4.string().min(1).max(100).optional(),
|
|
148
|
+
last_name: z4.string().min(1).max(100).optional()
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
// src/contracts/workspaces.schema.ts
|
|
152
|
+
import { z as z5 } from "zod";
|
|
153
|
+
var WorkspaceSchema = z5.object({
|
|
154
|
+
id: z5.string().uuid(),
|
|
155
|
+
name: z5.string(),
|
|
156
|
+
created_at: z5.coerce.date(),
|
|
157
|
+
updated_at: z5.coerce.date().nullable()
|
|
158
|
+
});
|
|
159
|
+
var WorkspaceWithCountSchema = WorkspaceSchema.extend({
|
|
160
|
+
member_count: z5.number().int()
|
|
161
|
+
});
|
|
162
|
+
var CreateWorkspaceInputSchema = z5.object({
|
|
163
|
+
name: z5.string().min(1).max(100)
|
|
164
|
+
});
|
|
165
|
+
var UpdateWorkspaceInputSchema = z5.object({
|
|
166
|
+
name: z5.string().min(1).max(100).optional()
|
|
167
|
+
});
|
|
168
|
+
var TransferOwnershipInputSchema = z5.object({
|
|
169
|
+
to_user_id: z5.string().uuid()
|
|
170
|
+
});
|
|
171
|
+
var WorkspaceMemberSchema = z5.object({
|
|
172
|
+
id: z5.string().uuid(),
|
|
173
|
+
workspace_id: z5.string().uuid(),
|
|
174
|
+
user_id: z5.string().uuid(),
|
|
175
|
+
permissions: z5.number().int(),
|
|
176
|
+
joined_at: z5.coerce.date(),
|
|
177
|
+
created_at: z5.coerce.date(),
|
|
178
|
+
updated_at: z5.coerce.date().nullable()
|
|
179
|
+
});
|
|
180
|
+
var UpdateMemberInputSchema = z5.object({
|
|
181
|
+
permissions: z5.number().int().min(1)
|
|
182
|
+
});
|
|
183
|
+
var WorkspaceInvitationSchema = z5.object({
|
|
184
|
+
id: z5.string().uuid(),
|
|
185
|
+
workspace_id: z5.string().uuid(),
|
|
186
|
+
email: z5.string().email(),
|
|
187
|
+
token: z5.string(),
|
|
188
|
+
permissions: z5.number().int(),
|
|
189
|
+
invited_by_id: z5.string().uuid(),
|
|
190
|
+
expires_at: z5.coerce.date(),
|
|
191
|
+
created_at: z5.coerce.date()
|
|
192
|
+
});
|
|
193
|
+
var CreateInvitationInputSchema = z5.object({
|
|
194
|
+
email: z5.string().email(),
|
|
195
|
+
permissions: z5.number().int().min(1)
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
// src/contracts/index.ts
|
|
199
|
+
var usersContract = {
|
|
200
|
+
me: oc.route({ method: "GET", path: "/api/users/me" }).output(UserSchema),
|
|
201
|
+
signIn: oc.route({ method: "POST", path: "/api/users" }).input(SignInInputSchema).output(z6.object({ user: UserSchema, status: z6.enum(["created", "existing"]) })),
|
|
202
|
+
update: oc.route({ method: "PATCH", path: "/api/users/me" }).input(UpdateUserInputSchema).output(UserSchema)
|
|
203
|
+
};
|
|
204
|
+
var workspacesContract = {
|
|
205
|
+
create: oc.route({ method: "POST", path: "/api/workspaces" }).input(CreateWorkspaceInputSchema).output(WorkspaceSchema),
|
|
206
|
+
list: oc.route({ method: "GET", path: "/api/workspaces" }).output(z6.array(WorkspaceWithCountSchema)),
|
|
207
|
+
get: oc.route({ method: "GET", path: "/api/workspaces/{workspaceId}" }).input(WorkspaceIdParamSchema).output(WorkspaceWithCountSchema),
|
|
208
|
+
update: oc.route({ method: "PATCH", path: "/api/workspaces/{workspaceId}" }).input(WorkspaceIdParamSchema.merge(UpdateWorkspaceInputSchema)).output(WorkspaceSchema),
|
|
209
|
+
delete: oc.route({ method: "DELETE", path: "/api/workspaces/{workspaceId}" }).input(WorkspaceIdParamSchema).output(z6.void()),
|
|
210
|
+
transfer: oc.route({ method: "POST", path: "/api/workspaces/{workspaceId}/transfer" }).input(WorkspaceIdParamSchema.merge(TransferOwnershipInputSchema)).output(z6.void()),
|
|
211
|
+
// Members
|
|
212
|
+
listMembers: oc.route({ method: "GET", path: "/api/workspaces/{workspaceId}/members" }).input(WorkspaceIdParamSchema).output(z6.array(WorkspaceMemberSchema)),
|
|
213
|
+
updateMember: oc.route({ method: "PATCH", path: "/api/workspaces/{workspaceId}/members/{userId}" }).input(MemberIdParamSchema.merge(UpdateMemberInputSchema)).output(WorkspaceMemberSchema),
|
|
214
|
+
removeMember: oc.route({ method: "DELETE", path: "/api/workspaces/{workspaceId}/members/{userId}" }).input(MemberIdParamSchema).output(z6.void()),
|
|
215
|
+
// Invitations
|
|
216
|
+
listInvitations: oc.route({ method: "GET", path: "/api/workspaces/{workspaceId}/invitations" }).input(WorkspaceIdParamSchema).output(z6.array(WorkspaceInvitationSchema)),
|
|
217
|
+
createInvitation: oc.route({ method: "POST", path: "/api/workspaces/{workspaceId}/invitations" }).input(WorkspaceIdParamSchema.merge(CreateInvitationInputSchema)).output(WorkspaceInvitationSchema),
|
|
218
|
+
revokeInvitation: oc.route({ method: "DELETE", path: "/api/workspaces/{workspaceId}/invitations/{invitationId}" }).input(InvitationIdParamSchema).output(z6.void())
|
|
219
|
+
};
|
|
220
|
+
var invitationsContract = {
|
|
221
|
+
get: oc.route({ method: "GET", path: "/api/invitations/{token}" }).input(TokenParamSchema).output(WorkspaceInvitationSchema),
|
|
222
|
+
accept: oc.route({ method: "POST", path: "/api/invitations/{token}/accept" }).input(TokenParamSchema).output(WorkspaceMemberSchema)
|
|
223
|
+
};
|
|
224
|
+
var linksContract = {
|
|
225
|
+
create: oc.route({ method: "POST", path: "/api/workspaces/{workspaceId}/links" }).input(WorkspaceIdParamSchema.merge(CreateLinkInputSchema)).output(LinkSchema),
|
|
226
|
+
list: oc.route({ method: "GET", path: "/api/workspaces/{workspaceId}/links" }).input(WorkspaceIdParamSchema.merge(LinkFiltersSchema)).output(PaginatedLinksSchema),
|
|
227
|
+
get: oc.route({ method: "GET", path: "/api/workspaces/{workspaceId}/links/{linkId}" }).input(LinkIdParamSchema).output(LinkSchema),
|
|
228
|
+
update: oc.route({ method: "PATCH", path: "/api/workspaces/{workspaceId}/links/{linkId}" }).input(LinkIdParamSchema.merge(UpdateLinkInputSchema)).output(LinkSchema),
|
|
229
|
+
delete: oc.route({ method: "DELETE", path: "/api/workspaces/{workspaceId}/links/{linkId}" }).input(LinkIdParamSchema).output(z6.void())
|
|
230
|
+
};
|
|
231
|
+
var tagsContract = {
|
|
232
|
+
create: oc.route({ method: "POST", path: "/api/workspaces/{workspaceId}/tags" }).input(WorkspaceIdParamSchema.merge(CreateTagInputSchema)).output(TagSchema),
|
|
233
|
+
list: oc.route({ method: "GET", path: "/api/workspaces/{workspaceId}/tags" }).input(WorkspaceIdParamSchema).output(z6.array(TagSchema)),
|
|
234
|
+
get: oc.route({ method: "GET", path: "/api/workspaces/{workspaceId}/tags/{tagId}" }).input(TagIdParamSchema).output(TagSchema),
|
|
235
|
+
update: oc.route({ method: "PATCH", path: "/api/workspaces/{workspaceId}/tags/{tagId}" }).input(TagIdParamSchema.merge(UpdateTagInputSchema)).output(TagSchema),
|
|
236
|
+
delete: oc.route({ method: "DELETE", path: "/api/workspaces/{workspaceId}/tags/{tagId}" }).input(TagIdParamSchema).output(z6.void())
|
|
237
|
+
};
|
|
238
|
+
var contract = {
|
|
239
|
+
users: usersContract,
|
|
240
|
+
workspaces: workspacesContract,
|
|
241
|
+
invitations: invitationsContract,
|
|
242
|
+
links: linksContract,
|
|
243
|
+
tags: tagsContract
|
|
244
|
+
};
|
|
245
|
+
export {
|
|
246
|
+
CreateInvitationInputSchema,
|
|
247
|
+
CreateLinkInputSchema,
|
|
248
|
+
CreateTagInputSchema,
|
|
249
|
+
CreateWorkspaceInputSchema,
|
|
250
|
+
InvitationIdParamSchema,
|
|
251
|
+
LinkFiltersSchema,
|
|
252
|
+
LinkIdParamSchema,
|
|
253
|
+
LinkSchema,
|
|
254
|
+
MemberIdParamSchema,
|
|
255
|
+
PaginatedLinksSchema,
|
|
256
|
+
SignInInputSchema,
|
|
257
|
+
TagIdParamSchema,
|
|
258
|
+
TagSchema,
|
|
259
|
+
TokenParamSchema,
|
|
260
|
+
TransferOwnershipInputSchema,
|
|
261
|
+
UpdateLinkInputSchema,
|
|
262
|
+
UpdateMemberInputSchema,
|
|
263
|
+
UpdateTagInputSchema,
|
|
264
|
+
UpdateUserInputSchema,
|
|
265
|
+
UpdateWorkspaceInputSchema,
|
|
266
|
+
UserSchema,
|
|
267
|
+
WorkspaceIdParamSchema,
|
|
268
|
+
WorkspaceInvitationSchema,
|
|
269
|
+
WorkspaceMemberSchema,
|
|
270
|
+
WorkspaceSchema,
|
|
271
|
+
WorkspaceWithCountSchema,
|
|
272
|
+
contract,
|
|
273
|
+
invitationsContract,
|
|
274
|
+
linksContract,
|
|
275
|
+
tagsContract,
|
|
276
|
+
usersContract,
|
|
277
|
+
workspacesContract
|
|
278
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LinkSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
created_by_id: z.ZodString;
|
|
6
|
+
original_url: z.ZodString;
|
|
7
|
+
short_code: z.ZodString;
|
|
8
|
+
title: z.ZodNullable<z.ZodString>;
|
|
9
|
+
description: z.ZodNullable<z.ZodString>;
|
|
10
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
11
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
12
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
13
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
14
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
15
|
+
password: z.ZodNullable<z.ZodString>;
|
|
16
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
17
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
18
|
+
is_active: z.ZodBoolean;
|
|
19
|
+
redirect_type: z.ZodNumber;
|
|
20
|
+
click_count: z.ZodNumber;
|
|
21
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
22
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
23
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const CreateLinkInputSchema: z.ZodObject<{
|
|
26
|
+
original_url: z.ZodString;
|
|
27
|
+
short_code: z.ZodOptional<z.ZodString>;
|
|
28
|
+
title: z.ZodOptional<z.ZodString>;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
utm_source: z.ZodOptional<z.ZodString>;
|
|
31
|
+
utm_medium: z.ZodOptional<z.ZodString>;
|
|
32
|
+
utm_campaign: z.ZodOptional<z.ZodString>;
|
|
33
|
+
utm_term: z.ZodOptional<z.ZodString>;
|
|
34
|
+
utm_content: z.ZodOptional<z.ZodString>;
|
|
35
|
+
password: z.ZodOptional<z.ZodString>;
|
|
36
|
+
starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
37
|
+
expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
38
|
+
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
39
|
+
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const UpdateLinkInputSchema: z.ZodObject<{
|
|
42
|
+
original_url: z.ZodOptional<z.ZodString>;
|
|
43
|
+
short_code: z.ZodOptional<z.ZodString>;
|
|
44
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
utm_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
utm_medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
utm_campaign: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
utm_term: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
utm_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
53
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
54
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
56
|
+
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export declare const LinkFiltersSchema: z.ZodObject<{
|
|
59
|
+
search: z.ZodOptional<z.ZodString>;
|
|
60
|
+
is_active: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
61
|
+
has_expiration: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
62
|
+
expired: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
63
|
+
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
64
|
+
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
65
|
+
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
66
|
+
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
67
|
+
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
+
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
69
|
+
title: "title";
|
|
70
|
+
click_count: "click_count";
|
|
71
|
+
created_at: "created_at";
|
|
72
|
+
}>>;
|
|
73
|
+
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
74
|
+
asc: "asc";
|
|
75
|
+
desc: "desc";
|
|
76
|
+
}>>;
|
|
77
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
78
|
+
per_page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export declare const PaginatedLinksSchema: z.ZodObject<{
|
|
81
|
+
links: z.ZodArray<z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
workspace_id: z.ZodString;
|
|
84
|
+
created_by_id: z.ZodString;
|
|
85
|
+
original_url: z.ZodString;
|
|
86
|
+
short_code: z.ZodString;
|
|
87
|
+
title: z.ZodNullable<z.ZodString>;
|
|
88
|
+
description: z.ZodNullable<z.ZodString>;
|
|
89
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
90
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
91
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
92
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
93
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
94
|
+
password: z.ZodNullable<z.ZodString>;
|
|
95
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
96
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
97
|
+
is_active: z.ZodBoolean;
|
|
98
|
+
redirect_type: z.ZodNumber;
|
|
99
|
+
click_count: z.ZodNumber;
|
|
100
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
101
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
102
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
total: z.ZodNumber;
|
|
105
|
+
page: z.ZodNumber;
|
|
106
|
+
per_page: z.ZodNumber;
|
|
107
|
+
total_pages: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
//# sourceMappingURL=links.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.schema.d.ts","sourceRoot":"","sources":["../../src/contracts/links.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;iBAsBrB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;iBAuBhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAwBhC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;iBAc5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC"}
|
package/esm/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TagSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
color: z.ZodNullable<z.ZodString>;
|
|
7
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
8
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const CreateTagInputSchema: z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
color: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const UpdateTagInputSchema: z.ZodObject<{
|
|
15
|
+
name: z.ZodOptional<z.ZodString>;
|
|
16
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
//# sourceMappingURL=tags.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.schema.d.ts","sourceRoot":"","sources":["../../src/contracts/tags.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;iBAOpB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAM/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAO/B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const UserSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
external_id: z.ZodString;
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
email_verified_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
7
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
8
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
10
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const SignInInputSchema: z.ZodObject<{
|
|
13
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const UpdateUserInputSchema: z.ZodObject<{
|
|
17
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
18
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
//# sourceMappingURL=users.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../src/contracts/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;;;;iBASrB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WorkspaceSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
6
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const WorkspaceWithCountSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
12
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
13
|
+
member_count: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const CreateWorkspaceInputSchema: z.ZodObject<{
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const UpdateWorkspaceInputSchema: z.ZodObject<{
|
|
19
|
+
name: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const TransferOwnershipInputSchema: z.ZodObject<{
|
|
22
|
+
to_user_id: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const WorkspaceMemberSchema: z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
workspace_id: z.ZodString;
|
|
27
|
+
user_id: z.ZodString;
|
|
28
|
+
permissions: z.ZodNumber;
|
|
29
|
+
joined_at: z.ZodCoercedDate<unknown>;
|
|
30
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
31
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export declare const UpdateMemberInputSchema: z.ZodObject<{
|
|
34
|
+
permissions: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const WorkspaceInvitationSchema: z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
workspace_id: z.ZodString;
|
|
39
|
+
email: z.ZodString;
|
|
40
|
+
token: z.ZodString;
|
|
41
|
+
permissions: z.ZodNumber;
|
|
42
|
+
invited_by_id: z.ZodString;
|
|
43
|
+
expires_at: z.ZodCoercedDate<unknown>;
|
|
44
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export declare const CreateInvitationInputSchema: z.ZodObject<{
|
|
47
|
+
email: z.ZodString;
|
|
48
|
+
permissions: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
//# sourceMappingURL=workspaces.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.schema.d.ts","sourceRoot":"","sources":["../../src/contracts/workspaces.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;iBAK1B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;iBAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;iBAQhC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;iBASpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middlewr/contracts",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "index.js",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "0.0.4",
|
|
4
|
+
"main": "./cjs/index.js",
|
|
5
|
+
"module": "./esm/index.js",
|
|
6
|
+
"types": "./esm/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"types": "./index.d.ts",
|
|
10
|
-
"
|
|
9
|
+
"types": "./esm/index.d.ts",
|
|
10
|
+
"import": "./esm/index.js",
|
|
11
|
+
"require": "./cjs/index.js"
|
|
11
12
|
}
|
|
12
13
|
},
|
|
13
14
|
"peerDependencies": {
|
package/common.schema.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.schema.d.ts","sourceRoot":"","sources":["../src/contracts/common.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;iBAE3B,CAAC"}
|
package/common.schema.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TokenParamSchema = exports.InvitationIdParamSchema = exports.MemberIdParamSchema = exports.TagIdParamSchema = exports.LinkIdParamSchema = exports.WorkspaceIdParamSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.WorkspaceIdParamSchema = zod_1.z.object({
|
|
6
|
-
workspace_id: zod_1.z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
exports.LinkIdParamSchema = zod_1.z.object({
|
|
9
|
-
workspace_id: zod_1.z.string().uuid(),
|
|
10
|
-
link_id: zod_1.z.string().uuid(),
|
|
11
|
-
});
|
|
12
|
-
exports.TagIdParamSchema = zod_1.z.object({
|
|
13
|
-
workspace_id: zod_1.z.string().uuid(),
|
|
14
|
-
tag_id: zod_1.z.string().uuid(),
|
|
15
|
-
});
|
|
16
|
-
exports.MemberIdParamSchema = zod_1.z.object({
|
|
17
|
-
workspace_id: zod_1.z.string().uuid(),
|
|
18
|
-
user_id: zod_1.z.string().uuid(),
|
|
19
|
-
});
|
|
20
|
-
exports.InvitationIdParamSchema = zod_1.z.object({
|
|
21
|
-
workspace_id: zod_1.z.string().uuid(),
|
|
22
|
-
invitation_id: zod_1.z.string().uuid(),
|
|
23
|
-
});
|
|
24
|
-
exports.TokenParamSchema = zod_1.z.object({
|
|
25
|
-
token: zod_1.z.string(),
|
|
26
|
-
});
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASzB,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD9B,CAAC;AAGF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBzB,CAAC;AAGF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
|