@middlewr/contracts 0.0.6 → 0.0.8
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 → dist/cjs}/common.schema.d.ts +4 -0
- package/dist/cjs/common.schema.d.ts.map +1 -0
- package/dist/cjs/domains.schema.d.ts +17 -0
- package/dist/cjs/domains.schema.d.ts.map +1 -0
- package/{esm → dist/cjs}/index.d.ts +233 -10
- package/dist/cjs/index.d.ts.map +1 -0
- package/{cjs → dist/cjs}/index.js +200 -140
- package/{cjs → dist/cjs}/links.schema.d.ts +24 -3
- package/dist/cjs/links.schema.d.ts.map +1 -0
- package/dist/cjs/tags.schema.d.ts.map +1 -0
- package/dist/cjs/users.schema.d.ts.map +1 -0
- package/{cjs → dist/cjs}/workspaces.schema.d.ts +12 -0
- package/dist/cjs/workspaces.schema.d.ts.map +1 -0
- package/{esm → dist/esm}/common.schema.d.ts +4 -0
- package/dist/esm/common.schema.d.ts.map +1 -0
- package/dist/esm/domains.schema.d.ts +17 -0
- package/dist/esm/domains.schema.d.ts.map +1 -0
- package/{cjs → dist/esm}/index.d.ts +233 -10
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +332 -0
- package/{esm → dist/esm}/links.schema.d.ts +24 -3
- package/dist/esm/links.schema.d.ts.map +1 -0
- package/dist/esm/tags.schema.d.ts.map +1 -0
- package/dist/esm/users.schema.d.ts.map +1 -0
- package/{esm → dist/esm}/workspaces.schema.d.ts +12 -0
- package/dist/esm/workspaces.schema.d.ts.map +1 -0
- package/package.json +20 -7
- package/scripts/build.sh +55 -0
- package/src/common.schema.ts +34 -0
- package/src/domains.schema.ts +32 -0
- package/src/index.ts +196 -0
- package/src/links.schema.ts +107 -0
- package/src/tags.schema.ts +27 -0
- package/src/users.schema.ts +22 -0
- package/src/workspaces.schema.ts +64 -0
- package/tsconfig.json +17 -0
- package/cjs/common.schema.d.ts.map +0 -1
- package/cjs/index.d.ts.map +0 -1
- package/cjs/links.schema.d.ts.map +0 -1
- package/cjs/tags.schema.d.ts.map +0 -1
- package/cjs/users.schema.d.ts.map +0 -1
- package/cjs/workspaces.schema.d.ts.map +0 -1
- package/esm/common.schema.d.ts.map +0 -1
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js +0 -278
- package/esm/links.schema.d.ts.map +0 -1
- package/esm/tags.schema.d.ts.map +0 -1
- package/esm/users.schema.d.ts.map +0 -1
- package/esm/workspaces.schema.d.ts.map +0 -1
- /package/{cjs → dist/cjs}/package.json +0 -0
- /package/{cjs → dist/cjs}/tags.schema.d.ts +0 -0
- /package/{cjs → dist/cjs}/users.schema.d.ts +0 -0
- /package/{esm → dist/esm}/package.json +0 -0
- /package/{esm → dist/esm}/tags.schema.d.ts +0 -0
- /package/{esm → dist/esm}/users.schema.d.ts +0 -0
|
@@ -18,6 +18,10 @@ export declare const InvitationIdParamSchema: z.ZodObject<{
|
|
|
18
18
|
workspace_id: z.ZodString;
|
|
19
19
|
invitation_id: z.ZodString;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
|
+
export declare const DomainIdParamSchema: z.ZodObject<{
|
|
22
|
+
workspace_id: z.ZodString;
|
|
23
|
+
domain_id: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
21
25
|
export declare const TokenParamSchema: z.ZodObject<{
|
|
22
26
|
token: z.ZodString;
|
|
23
27
|
}, z.core.$strip>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.schema.d.ts","sourceRoot":"","sources":["../../src/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,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;iBAE3B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DomainSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
5
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
6
|
+
domain: z.ZodString;
|
|
7
|
+
is_verified: z.ZodBoolean;
|
|
8
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
9
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const CreateDomainInputSchema: z.ZodObject<{
|
|
12
|
+
domain: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const UpdateDomainInputSchema: z.ZodObject<{
|
|
15
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
//# sourceMappingURL=domains.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domains.schema.d.ts","sourceRoot":"","sources":["../../src/domains.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;iBAQvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBAQlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBASlC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ContractRouterClient } from '@orpc/contract';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export * from './common.schema';
|
|
4
|
+
export * from './domains.schema';
|
|
4
5
|
export * from './links.schema';
|
|
5
6
|
export * from './tags.schema';
|
|
6
7
|
export * from './users.schema';
|
|
@@ -100,6 +101,12 @@ export declare const workspacesContract: {
|
|
|
100
101
|
id: z.ZodString;
|
|
101
102
|
workspace_id: z.ZodString;
|
|
102
103
|
user_id: z.ZodString;
|
|
104
|
+
user: z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
email: z.ZodString;
|
|
107
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
108
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>;
|
|
103
110
|
permissions: z.ZodNumber;
|
|
104
111
|
joined_at: z.ZodCoercedDate<unknown>;
|
|
105
112
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -113,6 +120,12 @@ export declare const workspacesContract: {
|
|
|
113
120
|
id: z.ZodString;
|
|
114
121
|
workspace_id: z.ZodString;
|
|
115
122
|
user_id: z.ZodString;
|
|
123
|
+
user: z.ZodObject<{
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
email: z.ZodString;
|
|
126
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
127
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>;
|
|
116
129
|
permissions: z.ZodNumber;
|
|
117
130
|
joined_at: z.ZodCoercedDate<unknown>;
|
|
118
131
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -172,6 +185,12 @@ export declare const invitationsContract: {
|
|
|
172
185
|
id: z.ZodString;
|
|
173
186
|
workspace_id: z.ZodString;
|
|
174
187
|
user_id: z.ZodString;
|
|
188
|
+
user: z.ZodObject<{
|
|
189
|
+
id: z.ZodString;
|
|
190
|
+
email: z.ZodString;
|
|
191
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
192
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
193
|
+
}, z.core.$strip>;
|
|
175
194
|
permissions: z.ZodNumber;
|
|
176
195
|
joined_at: z.ZodCoercedDate<unknown>;
|
|
177
196
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -182,6 +201,7 @@ export declare const linksContract: {
|
|
|
182
201
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
183
202
|
workspace_id: z.ZodString;
|
|
184
203
|
original_url: z.ZodString;
|
|
204
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
185
205
|
short_code: z.ZodOptional<z.ZodString>;
|
|
186
206
|
title: z.ZodOptional<z.ZodString>;
|
|
187
207
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -198,6 +218,7 @@ export declare const linksContract: {
|
|
|
198
218
|
}, z.core.$strip>, z.ZodObject<{
|
|
199
219
|
id: z.ZodString;
|
|
200
220
|
workspace_id: z.ZodString;
|
|
221
|
+
domain_id: z.ZodString;
|
|
201
222
|
created_by_id: z.ZodString;
|
|
202
223
|
original_url: z.ZodString;
|
|
203
224
|
short_code: z.ZodString;
|
|
@@ -213,14 +234,23 @@ export declare const linksContract: {
|
|
|
213
234
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
214
235
|
is_active: z.ZodBoolean;
|
|
215
236
|
redirect_type: z.ZodNumber;
|
|
216
|
-
click_count: z.
|
|
237
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
217
238
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
218
239
|
created_at: z.ZodCoercedDate<unknown>;
|
|
219
240
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
241
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
workspace_id: z.ZodString;
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
color: z.ZodNullable<z.ZodString>;
|
|
246
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
247
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
220
249
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
221
250
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
222
251
|
workspace_id: z.ZodString;
|
|
223
252
|
search: z.ZodOptional<z.ZodString>;
|
|
253
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
224
254
|
is_active: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
225
255
|
has_expiration: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
226
256
|
expired: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
@@ -230,9 +260,9 @@ export declare const linksContract: {
|
|
|
230
260
|
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
231
261
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
262
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
263
|
+
created_at: "created_at";
|
|
233
264
|
title: "title";
|
|
234
265
|
click_count: "click_count";
|
|
235
|
-
created_at: "created_at";
|
|
236
266
|
}>>;
|
|
237
267
|
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
238
268
|
asc: "asc";
|
|
@@ -244,6 +274,7 @@ export declare const linksContract: {
|
|
|
244
274
|
links: z.ZodArray<z.ZodObject<{
|
|
245
275
|
id: z.ZodString;
|
|
246
276
|
workspace_id: z.ZodString;
|
|
277
|
+
domain_id: z.ZodString;
|
|
247
278
|
created_by_id: z.ZodString;
|
|
248
279
|
original_url: z.ZodString;
|
|
249
280
|
short_code: z.ZodString;
|
|
@@ -259,10 +290,18 @@ export declare const linksContract: {
|
|
|
259
290
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
260
291
|
is_active: z.ZodBoolean;
|
|
261
292
|
redirect_type: z.ZodNumber;
|
|
262
|
-
click_count: z.
|
|
293
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
263
294
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
264
295
|
created_at: z.ZodCoercedDate<unknown>;
|
|
265
296
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
297
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
298
|
+
id: z.ZodString;
|
|
299
|
+
workspace_id: z.ZodString;
|
|
300
|
+
name: z.ZodString;
|
|
301
|
+
color: z.ZodNullable<z.ZodString>;
|
|
302
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
303
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
304
|
+
}, z.core.$strip>>;
|
|
266
305
|
}, z.core.$strip>>;
|
|
267
306
|
total: z.ZodNumber;
|
|
268
307
|
page: z.ZodNumber;
|
|
@@ -275,6 +314,7 @@ export declare const linksContract: {
|
|
|
275
314
|
}, z.core.$strip>, z.ZodObject<{
|
|
276
315
|
id: z.ZodString;
|
|
277
316
|
workspace_id: z.ZodString;
|
|
317
|
+
domain_id: z.ZodString;
|
|
278
318
|
created_by_id: z.ZodString;
|
|
279
319
|
original_url: z.ZodString;
|
|
280
320
|
short_code: z.ZodString;
|
|
@@ -290,15 +330,24 @@ export declare const linksContract: {
|
|
|
290
330
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
291
331
|
is_active: z.ZodBoolean;
|
|
292
332
|
redirect_type: z.ZodNumber;
|
|
293
|
-
click_count: z.
|
|
333
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
294
334
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
295
335
|
created_at: z.ZodCoercedDate<unknown>;
|
|
296
336
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
337
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
workspace_id: z.ZodString;
|
|
340
|
+
name: z.ZodString;
|
|
341
|
+
color: z.ZodNullable<z.ZodString>;
|
|
342
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
343
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
344
|
+
}, z.core.$strip>>;
|
|
297
345
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
298
346
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
299
347
|
workspace_id: z.ZodString;
|
|
300
348
|
link_id: z.ZodString;
|
|
301
349
|
original_url: z.ZodOptional<z.ZodString>;
|
|
350
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
302
351
|
short_code: z.ZodOptional<z.ZodString>;
|
|
303
352
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
353
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -316,6 +365,7 @@ export declare const linksContract: {
|
|
|
316
365
|
}, z.core.$strip>, z.ZodObject<{
|
|
317
366
|
id: z.ZodString;
|
|
318
367
|
workspace_id: z.ZodString;
|
|
368
|
+
domain_id: z.ZodString;
|
|
319
369
|
created_by_id: z.ZodString;
|
|
320
370
|
original_url: z.ZodString;
|
|
321
371
|
short_code: z.ZodString;
|
|
@@ -331,10 +381,18 @@ export declare const linksContract: {
|
|
|
331
381
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
332
382
|
is_active: z.ZodBoolean;
|
|
333
383
|
redirect_type: z.ZodNumber;
|
|
334
|
-
click_count: z.
|
|
384
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
335
385
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
336
386
|
created_at: z.ZodCoercedDate<unknown>;
|
|
337
387
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
388
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
389
|
+
id: z.ZodString;
|
|
390
|
+
workspace_id: z.ZodString;
|
|
391
|
+
name: z.ZodString;
|
|
392
|
+
color: z.ZodNullable<z.ZodString>;
|
|
393
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
394
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
395
|
+
}, z.core.$strip>>;
|
|
338
396
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
339
397
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
340
398
|
workspace_id: z.ZodString;
|
|
@@ -393,6 +451,60 @@ export declare const tagsContract: {
|
|
|
393
451
|
tag_id: z.ZodString;
|
|
394
452
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
395
453
|
};
|
|
454
|
+
export declare const domainsContract: {
|
|
455
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
456
|
+
workspace_id: z.ZodString;
|
|
457
|
+
domain: z.ZodString;
|
|
458
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
459
|
+
id: z.ZodString;
|
|
460
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
461
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
462
|
+
domain: z.ZodString;
|
|
463
|
+
is_verified: z.ZodBoolean;
|
|
464
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
465
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
466
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
467
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
468
|
+
workspace_id: z.ZodString;
|
|
469
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
470
|
+
id: z.ZodString;
|
|
471
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
472
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
473
|
+
domain: z.ZodString;
|
|
474
|
+
is_verified: z.ZodBoolean;
|
|
475
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
476
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
477
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
478
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
479
|
+
workspace_id: z.ZodString;
|
|
480
|
+
domain_id: z.ZodString;
|
|
481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
484
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
485
|
+
domain: z.ZodString;
|
|
486
|
+
is_verified: z.ZodBoolean;
|
|
487
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
488
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
489
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
490
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
491
|
+
workspace_id: z.ZodString;
|
|
492
|
+
domain_id: z.ZodString;
|
|
493
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
495
|
+
id: z.ZodString;
|
|
496
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
497
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
498
|
+
domain: z.ZodString;
|
|
499
|
+
is_verified: z.ZodBoolean;
|
|
500
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
501
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
502
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
503
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
504
|
+
workspace_id: z.ZodString;
|
|
505
|
+
domain_id: z.ZodString;
|
|
506
|
+
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
507
|
+
};
|
|
396
508
|
export declare const contract: {
|
|
397
509
|
users: {
|
|
398
510
|
me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
@@ -489,6 +601,12 @@ export declare const contract: {
|
|
|
489
601
|
id: z.ZodString;
|
|
490
602
|
workspace_id: z.ZodString;
|
|
491
603
|
user_id: z.ZodString;
|
|
604
|
+
user: z.ZodObject<{
|
|
605
|
+
id: z.ZodString;
|
|
606
|
+
email: z.ZodString;
|
|
607
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
608
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
609
|
+
}, z.core.$strip>;
|
|
492
610
|
permissions: z.ZodNumber;
|
|
493
611
|
joined_at: z.ZodCoercedDate<unknown>;
|
|
494
612
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -502,6 +620,12 @@ export declare const contract: {
|
|
|
502
620
|
id: z.ZodString;
|
|
503
621
|
workspace_id: z.ZodString;
|
|
504
622
|
user_id: z.ZodString;
|
|
623
|
+
user: z.ZodObject<{
|
|
624
|
+
id: z.ZodString;
|
|
625
|
+
email: z.ZodString;
|
|
626
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
627
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>;
|
|
505
629
|
permissions: z.ZodNumber;
|
|
506
630
|
joined_at: z.ZodCoercedDate<unknown>;
|
|
507
631
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -561,6 +685,12 @@ export declare const contract: {
|
|
|
561
685
|
id: z.ZodString;
|
|
562
686
|
workspace_id: z.ZodString;
|
|
563
687
|
user_id: z.ZodString;
|
|
688
|
+
user: z.ZodObject<{
|
|
689
|
+
id: z.ZodString;
|
|
690
|
+
email: z.ZodString;
|
|
691
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
692
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
693
|
+
}, z.core.$strip>;
|
|
564
694
|
permissions: z.ZodNumber;
|
|
565
695
|
joined_at: z.ZodCoercedDate<unknown>;
|
|
566
696
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -571,6 +701,7 @@ export declare const contract: {
|
|
|
571
701
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
572
702
|
workspace_id: z.ZodString;
|
|
573
703
|
original_url: z.ZodString;
|
|
704
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
574
705
|
short_code: z.ZodOptional<z.ZodString>;
|
|
575
706
|
title: z.ZodOptional<z.ZodString>;
|
|
576
707
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -587,6 +718,7 @@ export declare const contract: {
|
|
|
587
718
|
}, z.core.$strip>, z.ZodObject<{
|
|
588
719
|
id: z.ZodString;
|
|
589
720
|
workspace_id: z.ZodString;
|
|
721
|
+
domain_id: z.ZodString;
|
|
590
722
|
created_by_id: z.ZodString;
|
|
591
723
|
original_url: z.ZodString;
|
|
592
724
|
short_code: z.ZodString;
|
|
@@ -602,14 +734,23 @@ export declare const contract: {
|
|
|
602
734
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
603
735
|
is_active: z.ZodBoolean;
|
|
604
736
|
redirect_type: z.ZodNumber;
|
|
605
|
-
click_count: z.
|
|
737
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
606
738
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
607
739
|
created_at: z.ZodCoercedDate<unknown>;
|
|
608
740
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
741
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
742
|
+
id: z.ZodString;
|
|
743
|
+
workspace_id: z.ZodString;
|
|
744
|
+
name: z.ZodString;
|
|
745
|
+
color: z.ZodNullable<z.ZodString>;
|
|
746
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
747
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
748
|
+
}, z.core.$strip>>;
|
|
609
749
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
610
750
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
611
751
|
workspace_id: z.ZodString;
|
|
612
752
|
search: z.ZodOptional<z.ZodString>;
|
|
753
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
613
754
|
is_active: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
614
755
|
has_expiration: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
615
756
|
expired: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
@@ -619,9 +760,9 @@ export declare const contract: {
|
|
|
619
760
|
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
620
761
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
621
762
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
763
|
+
created_at: "created_at";
|
|
622
764
|
title: "title";
|
|
623
765
|
click_count: "click_count";
|
|
624
|
-
created_at: "created_at";
|
|
625
766
|
}>>;
|
|
626
767
|
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
627
768
|
asc: "asc";
|
|
@@ -633,6 +774,7 @@ export declare const contract: {
|
|
|
633
774
|
links: z.ZodArray<z.ZodObject<{
|
|
634
775
|
id: z.ZodString;
|
|
635
776
|
workspace_id: z.ZodString;
|
|
777
|
+
domain_id: z.ZodString;
|
|
636
778
|
created_by_id: z.ZodString;
|
|
637
779
|
original_url: z.ZodString;
|
|
638
780
|
short_code: z.ZodString;
|
|
@@ -648,10 +790,18 @@ export declare const contract: {
|
|
|
648
790
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
649
791
|
is_active: z.ZodBoolean;
|
|
650
792
|
redirect_type: z.ZodNumber;
|
|
651
|
-
click_count: z.
|
|
793
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
652
794
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
653
795
|
created_at: z.ZodCoercedDate<unknown>;
|
|
654
796
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
797
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
798
|
+
id: z.ZodString;
|
|
799
|
+
workspace_id: z.ZodString;
|
|
800
|
+
name: z.ZodString;
|
|
801
|
+
color: z.ZodNullable<z.ZodString>;
|
|
802
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
803
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
804
|
+
}, z.core.$strip>>;
|
|
655
805
|
}, z.core.$strip>>;
|
|
656
806
|
total: z.ZodNumber;
|
|
657
807
|
page: z.ZodNumber;
|
|
@@ -664,6 +814,7 @@ export declare const contract: {
|
|
|
664
814
|
}, z.core.$strip>, z.ZodObject<{
|
|
665
815
|
id: z.ZodString;
|
|
666
816
|
workspace_id: z.ZodString;
|
|
817
|
+
domain_id: z.ZodString;
|
|
667
818
|
created_by_id: z.ZodString;
|
|
668
819
|
original_url: z.ZodString;
|
|
669
820
|
short_code: z.ZodString;
|
|
@@ -679,15 +830,24 @@ export declare const contract: {
|
|
|
679
830
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
680
831
|
is_active: z.ZodBoolean;
|
|
681
832
|
redirect_type: z.ZodNumber;
|
|
682
|
-
click_count: z.
|
|
833
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
683
834
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
684
835
|
created_at: z.ZodCoercedDate<unknown>;
|
|
685
836
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
837
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
838
|
+
id: z.ZodString;
|
|
839
|
+
workspace_id: z.ZodString;
|
|
840
|
+
name: z.ZodString;
|
|
841
|
+
color: z.ZodNullable<z.ZodString>;
|
|
842
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
843
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
844
|
+
}, z.core.$strip>>;
|
|
686
845
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
687
846
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
688
847
|
workspace_id: z.ZodString;
|
|
689
848
|
link_id: z.ZodString;
|
|
690
849
|
original_url: z.ZodOptional<z.ZodString>;
|
|
850
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
691
851
|
short_code: z.ZodOptional<z.ZodString>;
|
|
692
852
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
693
853
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -705,6 +865,7 @@ export declare const contract: {
|
|
|
705
865
|
}, z.core.$strip>, z.ZodObject<{
|
|
706
866
|
id: z.ZodString;
|
|
707
867
|
workspace_id: z.ZodString;
|
|
868
|
+
domain_id: z.ZodString;
|
|
708
869
|
created_by_id: z.ZodString;
|
|
709
870
|
original_url: z.ZodString;
|
|
710
871
|
short_code: z.ZodString;
|
|
@@ -720,10 +881,18 @@ export declare const contract: {
|
|
|
720
881
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
721
882
|
is_active: z.ZodBoolean;
|
|
722
883
|
redirect_type: z.ZodNumber;
|
|
723
|
-
click_count: z.
|
|
884
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
724
885
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
725
886
|
created_at: z.ZodCoercedDate<unknown>;
|
|
726
887
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
888
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
889
|
+
id: z.ZodString;
|
|
890
|
+
workspace_id: z.ZodString;
|
|
891
|
+
name: z.ZodString;
|
|
892
|
+
color: z.ZodNullable<z.ZodString>;
|
|
893
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
894
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
895
|
+
}, z.core.$strip>>;
|
|
727
896
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
728
897
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
729
898
|
workspace_id: z.ZodString;
|
|
@@ -782,6 +951,60 @@ export declare const contract: {
|
|
|
782
951
|
tag_id: z.ZodString;
|
|
783
952
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
784
953
|
};
|
|
954
|
+
domains: {
|
|
955
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
956
|
+
workspace_id: z.ZodString;
|
|
957
|
+
domain: z.ZodString;
|
|
958
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
959
|
+
id: z.ZodString;
|
|
960
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
961
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
962
|
+
domain: z.ZodString;
|
|
963
|
+
is_verified: z.ZodBoolean;
|
|
964
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
965
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
966
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
967
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
968
|
+
workspace_id: z.ZodString;
|
|
969
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
970
|
+
id: z.ZodString;
|
|
971
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
972
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
973
|
+
domain: z.ZodString;
|
|
974
|
+
is_verified: z.ZodBoolean;
|
|
975
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
976
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
977
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
978
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
979
|
+
workspace_id: z.ZodString;
|
|
980
|
+
domain_id: z.ZodString;
|
|
981
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
982
|
+
id: z.ZodString;
|
|
983
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
984
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
985
|
+
domain: z.ZodString;
|
|
986
|
+
is_verified: z.ZodBoolean;
|
|
987
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
988
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
989
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
990
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
991
|
+
workspace_id: z.ZodString;
|
|
992
|
+
domain_id: z.ZodString;
|
|
993
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
994
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
995
|
+
id: z.ZodString;
|
|
996
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
997
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
998
|
+
domain: z.ZodString;
|
|
999
|
+
is_verified: z.ZodBoolean;
|
|
1000
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1001
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1002
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1003
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1004
|
+
workspace_id: z.ZodString;
|
|
1005
|
+
domain_id: z.ZodString;
|
|
1006
|
+
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1007
|
+
};
|
|
785
1008
|
};
|
|
786
1009
|
export type Contract = typeof contract;
|
|
787
1010
|
export type Client = ContractRouterClient<Contract>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD9B,CAAC;AAGF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBzB,CAAC;AAGF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB3B,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
|