@middlewr/contracts 0.0.7 → 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 +197 -10
- package/dist/cjs/index.d.ts.map +1 -0
- package/{cjs → dist/cjs}/index.js +196 -145
- 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/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 +197 -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/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 -286
- 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/{cjs → dist/cjs}/workspaces.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
- /package/{esm → dist/esm}/workspaces.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';
|
|
@@ -200,6 +201,7 @@ export declare const linksContract: {
|
|
|
200
201
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
201
202
|
workspace_id: z.ZodString;
|
|
202
203
|
original_url: z.ZodString;
|
|
204
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
203
205
|
short_code: z.ZodOptional<z.ZodString>;
|
|
204
206
|
title: z.ZodOptional<z.ZodString>;
|
|
205
207
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -216,6 +218,7 @@ export declare const linksContract: {
|
|
|
216
218
|
}, z.core.$strip>, z.ZodObject<{
|
|
217
219
|
id: z.ZodString;
|
|
218
220
|
workspace_id: z.ZodString;
|
|
221
|
+
domain_id: z.ZodString;
|
|
219
222
|
created_by_id: z.ZodString;
|
|
220
223
|
original_url: z.ZodString;
|
|
221
224
|
short_code: z.ZodString;
|
|
@@ -231,14 +234,23 @@ export declare const linksContract: {
|
|
|
231
234
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
232
235
|
is_active: z.ZodBoolean;
|
|
233
236
|
redirect_type: z.ZodNumber;
|
|
234
|
-
click_count: z.
|
|
237
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
235
238
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
236
239
|
created_at: z.ZodCoercedDate<unknown>;
|
|
237
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>>;
|
|
238
249
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
239
250
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
240
251
|
workspace_id: z.ZodString;
|
|
241
252
|
search: z.ZodOptional<z.ZodString>;
|
|
253
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
242
254
|
is_active: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
243
255
|
has_expiration: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
244
256
|
expired: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
@@ -248,9 +260,9 @@ export declare const linksContract: {
|
|
|
248
260
|
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
249
261
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
250
262
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
263
|
+
created_at: "created_at";
|
|
251
264
|
title: "title";
|
|
252
265
|
click_count: "click_count";
|
|
253
|
-
created_at: "created_at";
|
|
254
266
|
}>>;
|
|
255
267
|
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
256
268
|
asc: "asc";
|
|
@@ -262,6 +274,7 @@ export declare const linksContract: {
|
|
|
262
274
|
links: z.ZodArray<z.ZodObject<{
|
|
263
275
|
id: z.ZodString;
|
|
264
276
|
workspace_id: z.ZodString;
|
|
277
|
+
domain_id: z.ZodString;
|
|
265
278
|
created_by_id: z.ZodString;
|
|
266
279
|
original_url: z.ZodString;
|
|
267
280
|
short_code: z.ZodString;
|
|
@@ -277,10 +290,18 @@ export declare const linksContract: {
|
|
|
277
290
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
278
291
|
is_active: z.ZodBoolean;
|
|
279
292
|
redirect_type: z.ZodNumber;
|
|
280
|
-
click_count: z.
|
|
293
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
281
294
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
282
295
|
created_at: z.ZodCoercedDate<unknown>;
|
|
283
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>>;
|
|
284
305
|
}, z.core.$strip>>;
|
|
285
306
|
total: z.ZodNumber;
|
|
286
307
|
page: z.ZodNumber;
|
|
@@ -293,6 +314,7 @@ export declare const linksContract: {
|
|
|
293
314
|
}, z.core.$strip>, z.ZodObject<{
|
|
294
315
|
id: z.ZodString;
|
|
295
316
|
workspace_id: z.ZodString;
|
|
317
|
+
domain_id: z.ZodString;
|
|
296
318
|
created_by_id: z.ZodString;
|
|
297
319
|
original_url: z.ZodString;
|
|
298
320
|
short_code: z.ZodString;
|
|
@@ -308,15 +330,24 @@ export declare const linksContract: {
|
|
|
308
330
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
309
331
|
is_active: z.ZodBoolean;
|
|
310
332
|
redirect_type: z.ZodNumber;
|
|
311
|
-
click_count: z.
|
|
333
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
312
334
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
313
335
|
created_at: z.ZodCoercedDate<unknown>;
|
|
314
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>>;
|
|
315
345
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
316
346
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
317
347
|
workspace_id: z.ZodString;
|
|
318
348
|
link_id: z.ZodString;
|
|
319
349
|
original_url: z.ZodOptional<z.ZodString>;
|
|
350
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
320
351
|
short_code: z.ZodOptional<z.ZodString>;
|
|
321
352
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
353
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -334,6 +365,7 @@ export declare const linksContract: {
|
|
|
334
365
|
}, z.core.$strip>, z.ZodObject<{
|
|
335
366
|
id: z.ZodString;
|
|
336
367
|
workspace_id: z.ZodString;
|
|
368
|
+
domain_id: z.ZodString;
|
|
337
369
|
created_by_id: z.ZodString;
|
|
338
370
|
original_url: z.ZodString;
|
|
339
371
|
short_code: z.ZodString;
|
|
@@ -349,10 +381,18 @@ export declare const linksContract: {
|
|
|
349
381
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
350
382
|
is_active: z.ZodBoolean;
|
|
351
383
|
redirect_type: z.ZodNumber;
|
|
352
|
-
click_count: z.
|
|
384
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
353
385
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
354
386
|
created_at: z.ZodCoercedDate<unknown>;
|
|
355
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>>;
|
|
356
396
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
357
397
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
358
398
|
workspace_id: z.ZodString;
|
|
@@ -411,6 +451,60 @@ export declare const tagsContract: {
|
|
|
411
451
|
tag_id: z.ZodString;
|
|
412
452
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
413
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
|
+
};
|
|
414
508
|
export declare const contract: {
|
|
415
509
|
users: {
|
|
416
510
|
me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
@@ -607,6 +701,7 @@ export declare const contract: {
|
|
|
607
701
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
608
702
|
workspace_id: z.ZodString;
|
|
609
703
|
original_url: z.ZodString;
|
|
704
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
610
705
|
short_code: z.ZodOptional<z.ZodString>;
|
|
611
706
|
title: z.ZodOptional<z.ZodString>;
|
|
612
707
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -623,6 +718,7 @@ export declare const contract: {
|
|
|
623
718
|
}, z.core.$strip>, z.ZodObject<{
|
|
624
719
|
id: z.ZodString;
|
|
625
720
|
workspace_id: z.ZodString;
|
|
721
|
+
domain_id: z.ZodString;
|
|
626
722
|
created_by_id: z.ZodString;
|
|
627
723
|
original_url: z.ZodString;
|
|
628
724
|
short_code: z.ZodString;
|
|
@@ -638,14 +734,23 @@ export declare const contract: {
|
|
|
638
734
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
639
735
|
is_active: z.ZodBoolean;
|
|
640
736
|
redirect_type: z.ZodNumber;
|
|
641
|
-
click_count: z.
|
|
737
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
642
738
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
643
739
|
created_at: z.ZodCoercedDate<unknown>;
|
|
644
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>>;
|
|
645
749
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
646
750
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
647
751
|
workspace_id: z.ZodString;
|
|
648
752
|
search: z.ZodOptional<z.ZodString>;
|
|
753
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
649
754
|
is_active: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
650
755
|
has_expiration: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
651
756
|
expired: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
@@ -655,9 +760,9 @@ export declare const contract: {
|
|
|
655
760
|
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
656
761
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
657
762
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
763
|
+
created_at: "created_at";
|
|
658
764
|
title: "title";
|
|
659
765
|
click_count: "click_count";
|
|
660
|
-
created_at: "created_at";
|
|
661
766
|
}>>;
|
|
662
767
|
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
663
768
|
asc: "asc";
|
|
@@ -669,6 +774,7 @@ export declare const contract: {
|
|
|
669
774
|
links: z.ZodArray<z.ZodObject<{
|
|
670
775
|
id: z.ZodString;
|
|
671
776
|
workspace_id: z.ZodString;
|
|
777
|
+
domain_id: z.ZodString;
|
|
672
778
|
created_by_id: z.ZodString;
|
|
673
779
|
original_url: z.ZodString;
|
|
674
780
|
short_code: z.ZodString;
|
|
@@ -684,10 +790,18 @@ export declare const contract: {
|
|
|
684
790
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
685
791
|
is_active: z.ZodBoolean;
|
|
686
792
|
redirect_type: z.ZodNumber;
|
|
687
|
-
click_count: z.
|
|
793
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
688
794
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
689
795
|
created_at: z.ZodCoercedDate<unknown>;
|
|
690
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>>;
|
|
691
805
|
}, z.core.$strip>>;
|
|
692
806
|
total: z.ZodNumber;
|
|
693
807
|
page: z.ZodNumber;
|
|
@@ -700,6 +814,7 @@ export declare const contract: {
|
|
|
700
814
|
}, z.core.$strip>, z.ZodObject<{
|
|
701
815
|
id: z.ZodString;
|
|
702
816
|
workspace_id: z.ZodString;
|
|
817
|
+
domain_id: z.ZodString;
|
|
703
818
|
created_by_id: z.ZodString;
|
|
704
819
|
original_url: z.ZodString;
|
|
705
820
|
short_code: z.ZodString;
|
|
@@ -715,15 +830,24 @@ export declare const contract: {
|
|
|
715
830
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
716
831
|
is_active: z.ZodBoolean;
|
|
717
832
|
redirect_type: z.ZodNumber;
|
|
718
|
-
click_count: z.
|
|
833
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
719
834
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
720
835
|
created_at: z.ZodCoercedDate<unknown>;
|
|
721
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>>;
|
|
722
845
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
723
846
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
724
847
|
workspace_id: z.ZodString;
|
|
725
848
|
link_id: z.ZodString;
|
|
726
849
|
original_url: z.ZodOptional<z.ZodString>;
|
|
850
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
727
851
|
short_code: z.ZodOptional<z.ZodString>;
|
|
728
852
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
729
853
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -741,6 +865,7 @@ export declare const contract: {
|
|
|
741
865
|
}, z.core.$strip>, z.ZodObject<{
|
|
742
866
|
id: z.ZodString;
|
|
743
867
|
workspace_id: z.ZodString;
|
|
868
|
+
domain_id: z.ZodString;
|
|
744
869
|
created_by_id: z.ZodString;
|
|
745
870
|
original_url: z.ZodString;
|
|
746
871
|
short_code: z.ZodString;
|
|
@@ -756,10 +881,18 @@ export declare const contract: {
|
|
|
756
881
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
757
882
|
is_active: z.ZodBoolean;
|
|
758
883
|
redirect_type: z.ZodNumber;
|
|
759
|
-
click_count: z.
|
|
884
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
760
885
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
761
886
|
created_at: z.ZodCoercedDate<unknown>;
|
|
762
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>>;
|
|
763
896
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
764
897
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
765
898
|
workspace_id: z.ZodString;
|
|
@@ -818,6 +951,60 @@ export declare const contract: {
|
|
|
818
951
|
tag_id: z.ZodString;
|
|
819
952
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
820
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
|
+
};
|
|
821
1008
|
};
|
|
822
1009
|
export type Contract = typeof contract;
|
|
823
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"}
|