@middlewr/contracts 0.0.15 → 0.0.17
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/dist/cjs/index.d.ts +324 -6
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +23 -3
- package/dist/cjs/links.schema.d.ts +137 -3
- package/dist/cjs/links.schema.d.ts.map +1 -1
- package/dist/esm/index.d.ts +324 -6
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +22 -3
- package/dist/esm/links.schema.d.ts +137 -3
- package/dist/esm/links.schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/links.schema.ts +26 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -352,6 +352,31 @@ export declare const linksContract: {
|
|
|
352
352
|
starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
353
353
|
expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
354
354
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
355
|
+
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
356
|
+
fg_color: z.ZodString;
|
|
357
|
+
bg_color: z.ZodString;
|
|
358
|
+
dot_style: z.ZodEnum<{
|
|
359
|
+
square: "square";
|
|
360
|
+
dots: "dots";
|
|
361
|
+
rounded: "rounded";
|
|
362
|
+
classy: "classy";
|
|
363
|
+
"classy-rounded": "classy-rounded";
|
|
364
|
+
"extra-rounded": "extra-rounded";
|
|
365
|
+
}>;
|
|
366
|
+
eye_outer_style: z.ZodEnum<{
|
|
367
|
+
square: "square";
|
|
368
|
+
"extra-rounded": "extra-rounded";
|
|
369
|
+
dot: "dot";
|
|
370
|
+
}>;
|
|
371
|
+
eye_inner_style: z.ZodEnum<{
|
|
372
|
+
square: "square";
|
|
373
|
+
dot: "dot";
|
|
374
|
+
}>;
|
|
375
|
+
frame_enabled: z.ZodBoolean;
|
|
376
|
+
frame_text: z.ZodString;
|
|
377
|
+
frame_color: z.ZodString;
|
|
378
|
+
frame_text_color: z.ZodString;
|
|
379
|
+
}, z.core.$strip>>>;
|
|
355
380
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
356
381
|
}, z.core.$strip>, z.ZodObject<{
|
|
357
382
|
id: z.ZodString;
|
|
@@ -376,6 +401,31 @@ export declare const linksContract: {
|
|
|
376
401
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
377
402
|
created_at: z.ZodCoercedDate<unknown>;
|
|
378
403
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
404
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
405
|
+
fg_color: z.ZodString;
|
|
406
|
+
bg_color: z.ZodString;
|
|
407
|
+
dot_style: z.ZodEnum<{
|
|
408
|
+
square: "square";
|
|
409
|
+
dots: "dots";
|
|
410
|
+
rounded: "rounded";
|
|
411
|
+
classy: "classy";
|
|
412
|
+
"classy-rounded": "classy-rounded";
|
|
413
|
+
"extra-rounded": "extra-rounded";
|
|
414
|
+
}>;
|
|
415
|
+
eye_outer_style: z.ZodEnum<{
|
|
416
|
+
square: "square";
|
|
417
|
+
"extra-rounded": "extra-rounded";
|
|
418
|
+
dot: "dot";
|
|
419
|
+
}>;
|
|
420
|
+
eye_inner_style: z.ZodEnum<{
|
|
421
|
+
square: "square";
|
|
422
|
+
dot: "dot";
|
|
423
|
+
}>;
|
|
424
|
+
frame_enabled: z.ZodBoolean;
|
|
425
|
+
frame_text: z.ZodString;
|
|
426
|
+
frame_color: z.ZodString;
|
|
427
|
+
frame_text_color: z.ZodString;
|
|
428
|
+
}, z.core.$strip>>;
|
|
379
429
|
tags: z.ZodArray<z.ZodObject<{
|
|
380
430
|
id: z.ZodString;
|
|
381
431
|
workspace_id: z.ZodString;
|
|
@@ -389,9 +439,18 @@ export declare const linksContract: {
|
|
|
389
439
|
workspace_id: z.ZodString;
|
|
390
440
|
search: z.ZodOptional<z.ZodString>;
|
|
391
441
|
domain_id: z.ZodOptional<z.ZodString>;
|
|
392
|
-
is_active: z.ZodOptional<z.
|
|
393
|
-
|
|
394
|
-
|
|
442
|
+
is_active: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
443
|
+
true: "true";
|
|
444
|
+
false: "false";
|
|
445
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
446
|
+
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
447
|
+
true: "true";
|
|
448
|
+
false: "false";
|
|
449
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
450
|
+
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
451
|
+
true: "true";
|
|
452
|
+
false: "false";
|
|
453
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
395
454
|
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
396
455
|
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
397
456
|
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -432,6 +491,31 @@ export declare const linksContract: {
|
|
|
432
491
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
433
492
|
created_at: z.ZodCoercedDate<unknown>;
|
|
434
493
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
494
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
495
|
+
fg_color: z.ZodString;
|
|
496
|
+
bg_color: z.ZodString;
|
|
497
|
+
dot_style: z.ZodEnum<{
|
|
498
|
+
square: "square";
|
|
499
|
+
dots: "dots";
|
|
500
|
+
rounded: "rounded";
|
|
501
|
+
classy: "classy";
|
|
502
|
+
"classy-rounded": "classy-rounded";
|
|
503
|
+
"extra-rounded": "extra-rounded";
|
|
504
|
+
}>;
|
|
505
|
+
eye_outer_style: z.ZodEnum<{
|
|
506
|
+
square: "square";
|
|
507
|
+
"extra-rounded": "extra-rounded";
|
|
508
|
+
dot: "dot";
|
|
509
|
+
}>;
|
|
510
|
+
eye_inner_style: z.ZodEnum<{
|
|
511
|
+
square: "square";
|
|
512
|
+
dot: "dot";
|
|
513
|
+
}>;
|
|
514
|
+
frame_enabled: z.ZodBoolean;
|
|
515
|
+
frame_text: z.ZodString;
|
|
516
|
+
frame_color: z.ZodString;
|
|
517
|
+
frame_text_color: z.ZodString;
|
|
518
|
+
}, z.core.$strip>>;
|
|
435
519
|
tags: z.ZodArray<z.ZodObject<{
|
|
436
520
|
id: z.ZodString;
|
|
437
521
|
workspace_id: z.ZodString;
|
|
@@ -472,6 +556,31 @@ export declare const linksContract: {
|
|
|
472
556
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
473
557
|
created_at: z.ZodCoercedDate<unknown>;
|
|
474
558
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
559
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
560
|
+
fg_color: z.ZodString;
|
|
561
|
+
bg_color: z.ZodString;
|
|
562
|
+
dot_style: z.ZodEnum<{
|
|
563
|
+
square: "square";
|
|
564
|
+
dots: "dots";
|
|
565
|
+
rounded: "rounded";
|
|
566
|
+
classy: "classy";
|
|
567
|
+
"classy-rounded": "classy-rounded";
|
|
568
|
+
"extra-rounded": "extra-rounded";
|
|
569
|
+
}>;
|
|
570
|
+
eye_outer_style: z.ZodEnum<{
|
|
571
|
+
square: "square";
|
|
572
|
+
"extra-rounded": "extra-rounded";
|
|
573
|
+
dot: "dot";
|
|
574
|
+
}>;
|
|
575
|
+
eye_inner_style: z.ZodEnum<{
|
|
576
|
+
square: "square";
|
|
577
|
+
dot: "dot";
|
|
578
|
+
}>;
|
|
579
|
+
frame_enabled: z.ZodBoolean;
|
|
580
|
+
frame_text: z.ZodString;
|
|
581
|
+
frame_color: z.ZodString;
|
|
582
|
+
frame_text_color: z.ZodString;
|
|
583
|
+
}, z.core.$strip>>;
|
|
475
584
|
tags: z.ZodArray<z.ZodObject<{
|
|
476
585
|
id: z.ZodString;
|
|
477
586
|
workspace_id: z.ZodString;
|
|
@@ -499,6 +608,31 @@ export declare const linksContract: {
|
|
|
499
608
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
500
609
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
501
610
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
611
|
+
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
612
|
+
fg_color: z.ZodString;
|
|
613
|
+
bg_color: z.ZodString;
|
|
614
|
+
dot_style: z.ZodEnum<{
|
|
615
|
+
square: "square";
|
|
616
|
+
dots: "dots";
|
|
617
|
+
rounded: "rounded";
|
|
618
|
+
classy: "classy";
|
|
619
|
+
"classy-rounded": "classy-rounded";
|
|
620
|
+
"extra-rounded": "extra-rounded";
|
|
621
|
+
}>;
|
|
622
|
+
eye_outer_style: z.ZodEnum<{
|
|
623
|
+
square: "square";
|
|
624
|
+
"extra-rounded": "extra-rounded";
|
|
625
|
+
dot: "dot";
|
|
626
|
+
}>;
|
|
627
|
+
eye_inner_style: z.ZodEnum<{
|
|
628
|
+
square: "square";
|
|
629
|
+
dot: "dot";
|
|
630
|
+
}>;
|
|
631
|
+
frame_enabled: z.ZodBoolean;
|
|
632
|
+
frame_text: z.ZodString;
|
|
633
|
+
frame_color: z.ZodString;
|
|
634
|
+
frame_text_color: z.ZodString;
|
|
635
|
+
}, z.core.$strip>>>;
|
|
502
636
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
503
637
|
}, z.core.$strip>, z.ZodObject<{
|
|
504
638
|
id: z.ZodString;
|
|
@@ -523,6 +657,31 @@ export declare const linksContract: {
|
|
|
523
657
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
524
658
|
created_at: z.ZodCoercedDate<unknown>;
|
|
525
659
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
660
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
661
|
+
fg_color: z.ZodString;
|
|
662
|
+
bg_color: z.ZodString;
|
|
663
|
+
dot_style: z.ZodEnum<{
|
|
664
|
+
square: "square";
|
|
665
|
+
dots: "dots";
|
|
666
|
+
rounded: "rounded";
|
|
667
|
+
classy: "classy";
|
|
668
|
+
"classy-rounded": "classy-rounded";
|
|
669
|
+
"extra-rounded": "extra-rounded";
|
|
670
|
+
}>;
|
|
671
|
+
eye_outer_style: z.ZodEnum<{
|
|
672
|
+
square: "square";
|
|
673
|
+
"extra-rounded": "extra-rounded";
|
|
674
|
+
dot: "dot";
|
|
675
|
+
}>;
|
|
676
|
+
eye_inner_style: z.ZodEnum<{
|
|
677
|
+
square: "square";
|
|
678
|
+
dot: "dot";
|
|
679
|
+
}>;
|
|
680
|
+
frame_enabled: z.ZodBoolean;
|
|
681
|
+
frame_text: z.ZodString;
|
|
682
|
+
frame_color: z.ZodString;
|
|
683
|
+
frame_text_color: z.ZodString;
|
|
684
|
+
}, z.core.$strip>>;
|
|
526
685
|
tags: z.ZodArray<z.ZodObject<{
|
|
527
686
|
id: z.ZodString;
|
|
528
687
|
workspace_id: z.ZodString;
|
|
@@ -1068,6 +1227,31 @@ export declare const contract: {
|
|
|
1068
1227
|
starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1069
1228
|
expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1070
1229
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1230
|
+
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1231
|
+
fg_color: z.ZodString;
|
|
1232
|
+
bg_color: z.ZodString;
|
|
1233
|
+
dot_style: z.ZodEnum<{
|
|
1234
|
+
square: "square";
|
|
1235
|
+
dots: "dots";
|
|
1236
|
+
rounded: "rounded";
|
|
1237
|
+
classy: "classy";
|
|
1238
|
+
"classy-rounded": "classy-rounded";
|
|
1239
|
+
"extra-rounded": "extra-rounded";
|
|
1240
|
+
}>;
|
|
1241
|
+
eye_outer_style: z.ZodEnum<{
|
|
1242
|
+
square: "square";
|
|
1243
|
+
"extra-rounded": "extra-rounded";
|
|
1244
|
+
dot: "dot";
|
|
1245
|
+
}>;
|
|
1246
|
+
eye_inner_style: z.ZodEnum<{
|
|
1247
|
+
square: "square";
|
|
1248
|
+
dot: "dot";
|
|
1249
|
+
}>;
|
|
1250
|
+
frame_enabled: z.ZodBoolean;
|
|
1251
|
+
frame_text: z.ZodString;
|
|
1252
|
+
frame_color: z.ZodString;
|
|
1253
|
+
frame_text_color: z.ZodString;
|
|
1254
|
+
}, z.core.$strip>>>;
|
|
1071
1255
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1072
1256
|
}, z.core.$strip>, z.ZodObject<{
|
|
1073
1257
|
id: z.ZodString;
|
|
@@ -1092,6 +1276,31 @@ export declare const contract: {
|
|
|
1092
1276
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1093
1277
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1094
1278
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1279
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
1280
|
+
fg_color: z.ZodString;
|
|
1281
|
+
bg_color: z.ZodString;
|
|
1282
|
+
dot_style: z.ZodEnum<{
|
|
1283
|
+
square: "square";
|
|
1284
|
+
dots: "dots";
|
|
1285
|
+
rounded: "rounded";
|
|
1286
|
+
classy: "classy";
|
|
1287
|
+
"classy-rounded": "classy-rounded";
|
|
1288
|
+
"extra-rounded": "extra-rounded";
|
|
1289
|
+
}>;
|
|
1290
|
+
eye_outer_style: z.ZodEnum<{
|
|
1291
|
+
square: "square";
|
|
1292
|
+
"extra-rounded": "extra-rounded";
|
|
1293
|
+
dot: "dot";
|
|
1294
|
+
}>;
|
|
1295
|
+
eye_inner_style: z.ZodEnum<{
|
|
1296
|
+
square: "square";
|
|
1297
|
+
dot: "dot";
|
|
1298
|
+
}>;
|
|
1299
|
+
frame_enabled: z.ZodBoolean;
|
|
1300
|
+
frame_text: z.ZodString;
|
|
1301
|
+
frame_color: z.ZodString;
|
|
1302
|
+
frame_text_color: z.ZodString;
|
|
1303
|
+
}, z.core.$strip>>;
|
|
1095
1304
|
tags: z.ZodArray<z.ZodObject<{
|
|
1096
1305
|
id: z.ZodString;
|
|
1097
1306
|
workspace_id: z.ZodString;
|
|
@@ -1105,9 +1314,18 @@ export declare const contract: {
|
|
|
1105
1314
|
workspace_id: z.ZodString;
|
|
1106
1315
|
search: z.ZodOptional<z.ZodString>;
|
|
1107
1316
|
domain_id: z.ZodOptional<z.ZodString>;
|
|
1108
|
-
is_active: z.ZodOptional<z.
|
|
1109
|
-
|
|
1110
|
-
|
|
1317
|
+
is_active: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1318
|
+
true: "true";
|
|
1319
|
+
false: "false";
|
|
1320
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1321
|
+
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1322
|
+
true: "true";
|
|
1323
|
+
false: "false";
|
|
1324
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1325
|
+
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1326
|
+
true: "true";
|
|
1327
|
+
false: "false";
|
|
1328
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1111
1329
|
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1112
1330
|
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1113
1331
|
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -1148,6 +1366,31 @@ export declare const contract: {
|
|
|
1148
1366
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1149
1367
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1150
1368
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1369
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
1370
|
+
fg_color: z.ZodString;
|
|
1371
|
+
bg_color: z.ZodString;
|
|
1372
|
+
dot_style: z.ZodEnum<{
|
|
1373
|
+
square: "square";
|
|
1374
|
+
dots: "dots";
|
|
1375
|
+
rounded: "rounded";
|
|
1376
|
+
classy: "classy";
|
|
1377
|
+
"classy-rounded": "classy-rounded";
|
|
1378
|
+
"extra-rounded": "extra-rounded";
|
|
1379
|
+
}>;
|
|
1380
|
+
eye_outer_style: z.ZodEnum<{
|
|
1381
|
+
square: "square";
|
|
1382
|
+
"extra-rounded": "extra-rounded";
|
|
1383
|
+
dot: "dot";
|
|
1384
|
+
}>;
|
|
1385
|
+
eye_inner_style: z.ZodEnum<{
|
|
1386
|
+
square: "square";
|
|
1387
|
+
dot: "dot";
|
|
1388
|
+
}>;
|
|
1389
|
+
frame_enabled: z.ZodBoolean;
|
|
1390
|
+
frame_text: z.ZodString;
|
|
1391
|
+
frame_color: z.ZodString;
|
|
1392
|
+
frame_text_color: z.ZodString;
|
|
1393
|
+
}, z.core.$strip>>;
|
|
1151
1394
|
tags: z.ZodArray<z.ZodObject<{
|
|
1152
1395
|
id: z.ZodString;
|
|
1153
1396
|
workspace_id: z.ZodString;
|
|
@@ -1188,6 +1431,31 @@ export declare const contract: {
|
|
|
1188
1431
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1189
1432
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1190
1433
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1434
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
1435
|
+
fg_color: z.ZodString;
|
|
1436
|
+
bg_color: z.ZodString;
|
|
1437
|
+
dot_style: z.ZodEnum<{
|
|
1438
|
+
square: "square";
|
|
1439
|
+
dots: "dots";
|
|
1440
|
+
rounded: "rounded";
|
|
1441
|
+
classy: "classy";
|
|
1442
|
+
"classy-rounded": "classy-rounded";
|
|
1443
|
+
"extra-rounded": "extra-rounded";
|
|
1444
|
+
}>;
|
|
1445
|
+
eye_outer_style: z.ZodEnum<{
|
|
1446
|
+
square: "square";
|
|
1447
|
+
"extra-rounded": "extra-rounded";
|
|
1448
|
+
dot: "dot";
|
|
1449
|
+
}>;
|
|
1450
|
+
eye_inner_style: z.ZodEnum<{
|
|
1451
|
+
square: "square";
|
|
1452
|
+
dot: "dot";
|
|
1453
|
+
}>;
|
|
1454
|
+
frame_enabled: z.ZodBoolean;
|
|
1455
|
+
frame_text: z.ZodString;
|
|
1456
|
+
frame_color: z.ZodString;
|
|
1457
|
+
frame_text_color: z.ZodString;
|
|
1458
|
+
}, z.core.$strip>>;
|
|
1191
1459
|
tags: z.ZodArray<z.ZodObject<{
|
|
1192
1460
|
id: z.ZodString;
|
|
1193
1461
|
workspace_id: z.ZodString;
|
|
@@ -1215,6 +1483,31 @@ export declare const contract: {
|
|
|
1215
1483
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
1216
1484
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
1217
1485
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1486
|
+
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1487
|
+
fg_color: z.ZodString;
|
|
1488
|
+
bg_color: z.ZodString;
|
|
1489
|
+
dot_style: z.ZodEnum<{
|
|
1490
|
+
square: "square";
|
|
1491
|
+
dots: "dots";
|
|
1492
|
+
rounded: "rounded";
|
|
1493
|
+
classy: "classy";
|
|
1494
|
+
"classy-rounded": "classy-rounded";
|
|
1495
|
+
"extra-rounded": "extra-rounded";
|
|
1496
|
+
}>;
|
|
1497
|
+
eye_outer_style: z.ZodEnum<{
|
|
1498
|
+
square: "square";
|
|
1499
|
+
"extra-rounded": "extra-rounded";
|
|
1500
|
+
dot: "dot";
|
|
1501
|
+
}>;
|
|
1502
|
+
eye_inner_style: z.ZodEnum<{
|
|
1503
|
+
square: "square";
|
|
1504
|
+
dot: "dot";
|
|
1505
|
+
}>;
|
|
1506
|
+
frame_enabled: z.ZodBoolean;
|
|
1507
|
+
frame_text: z.ZodString;
|
|
1508
|
+
frame_color: z.ZodString;
|
|
1509
|
+
frame_text_color: z.ZodString;
|
|
1510
|
+
}, z.core.$strip>>>;
|
|
1218
1511
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1219
1512
|
}, z.core.$strip>, z.ZodObject<{
|
|
1220
1513
|
id: z.ZodString;
|
|
@@ -1239,6 +1532,31 @@ export declare const contract: {
|
|
|
1239
1532
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1240
1533
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1241
1534
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1535
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
1536
|
+
fg_color: z.ZodString;
|
|
1537
|
+
bg_color: z.ZodString;
|
|
1538
|
+
dot_style: z.ZodEnum<{
|
|
1539
|
+
square: "square";
|
|
1540
|
+
dots: "dots";
|
|
1541
|
+
rounded: "rounded";
|
|
1542
|
+
classy: "classy";
|
|
1543
|
+
"classy-rounded": "classy-rounded";
|
|
1544
|
+
"extra-rounded": "extra-rounded";
|
|
1545
|
+
}>;
|
|
1546
|
+
eye_outer_style: z.ZodEnum<{
|
|
1547
|
+
square: "square";
|
|
1548
|
+
"extra-rounded": "extra-rounded";
|
|
1549
|
+
dot: "dot";
|
|
1550
|
+
}>;
|
|
1551
|
+
eye_inner_style: z.ZodEnum<{
|
|
1552
|
+
square: "square";
|
|
1553
|
+
dot: "dot";
|
|
1554
|
+
}>;
|
|
1555
|
+
frame_enabled: z.ZodBoolean;
|
|
1556
|
+
frame_text: z.ZodString;
|
|
1557
|
+
frame_color: z.ZodString;
|
|
1558
|
+
frame_text_color: z.ZodString;
|
|
1559
|
+
}, z.core.$strip>>;
|
|
1242
1560
|
tags: z.ZodArray<z.ZodObject<{
|
|
1243
1561
|
id: z.ZodString;
|
|
1244
1562
|
workspace_id: z.ZodString;
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +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;AAgCxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,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,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU7B,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;CAM3B,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __export(index_exports, {
|
|
|
46
46
|
LinkSchema: () => LinkSchema,
|
|
47
47
|
MemberIdParamSchema: () => MemberIdParamSchema,
|
|
48
48
|
PaginatedLinksSchema: () => PaginatedLinksSchema,
|
|
49
|
+
QrCodeSettingsSchema: () => QrCodeSettingsSchema,
|
|
49
50
|
SignInInputSchema: () => SignInInputSchema,
|
|
50
51
|
TagIdParamSchema: () => TagIdParamSchema,
|
|
51
52
|
TagSchema: () => TagSchema,
|
|
@@ -244,6 +245,20 @@ var UpdateTagInputSchema = import_zod6.z.object({
|
|
|
244
245
|
});
|
|
245
246
|
|
|
246
247
|
// src/links.schema.ts
|
|
248
|
+
var DotStyleSchema = import_zod7.z.enum(["square", "dots", "rounded", "classy", "classy-rounded", "extra-rounded"]);
|
|
249
|
+
var EyeOuterStyleSchema = import_zod7.z.enum(["square", "dot", "extra-rounded"]);
|
|
250
|
+
var EyeInnerStyleSchema = import_zod7.z.enum(["square", "dot"]);
|
|
251
|
+
var QrCodeSettingsSchema = import_zod7.z.object({
|
|
252
|
+
fg_color: import_zod7.z.string().max(20),
|
|
253
|
+
bg_color: import_zod7.z.string().max(20),
|
|
254
|
+
dot_style: DotStyleSchema,
|
|
255
|
+
eye_outer_style: EyeOuterStyleSchema,
|
|
256
|
+
eye_inner_style: EyeInnerStyleSchema,
|
|
257
|
+
frame_enabled: import_zod7.z.boolean(),
|
|
258
|
+
frame_text: import_zod7.z.string().max(255),
|
|
259
|
+
frame_color: import_zod7.z.string().max(20),
|
|
260
|
+
frame_text_color: import_zod7.z.string().max(20)
|
|
261
|
+
});
|
|
247
262
|
var LinkSchema = import_zod7.z.object({
|
|
248
263
|
id: import_zod7.z.string().uuid(),
|
|
249
264
|
workspace_id: import_zod7.z.string().uuid(),
|
|
@@ -267,6 +282,7 @@ var LinkSchema = import_zod7.z.object({
|
|
|
267
282
|
click_count_updated_at: import_zod7.z.coerce.date().nullable(),
|
|
268
283
|
created_at: import_zod7.z.coerce.date(),
|
|
269
284
|
updated_at: import_zod7.z.coerce.date().nullable(),
|
|
285
|
+
qr_code_settings: QrCodeSettingsSchema.nullable(),
|
|
270
286
|
tags: import_zod7.z.array(TagSchema)
|
|
271
287
|
});
|
|
272
288
|
var CreateLinkInputSchema = import_zod7.z.object({
|
|
@@ -284,6 +300,7 @@ var CreateLinkInputSchema = import_zod7.z.object({
|
|
|
284
300
|
starts_at: import_zod7.z.coerce.date().optional(),
|
|
285
301
|
expires_at: import_zod7.z.coerce.date().optional(),
|
|
286
302
|
redirect_type: import_zod7.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
303
|
+
qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
|
|
287
304
|
tag_ids: import_zod7.z.array(import_zod7.z.string().uuid()).optional()
|
|
288
305
|
});
|
|
289
306
|
var UpdateLinkInputSchema = import_zod7.z.object({
|
|
@@ -302,14 +319,16 @@ var UpdateLinkInputSchema = import_zod7.z.object({
|
|
|
302
319
|
expires_at: import_zod7.z.coerce.date().nullable().optional(),
|
|
303
320
|
is_active: import_zod7.z.boolean().optional(),
|
|
304
321
|
redirect_type: import_zod7.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
322
|
+
qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
|
|
305
323
|
tag_ids: import_zod7.z.array(import_zod7.z.string().uuid()).optional()
|
|
306
324
|
});
|
|
325
|
+
var stringToBoolean = import_zod7.z.union([import_zod7.z.boolean(), import_zod7.z.enum(["true", "false"])]).transform((val) => typeof val === "string" ? val === "true" : val);
|
|
307
326
|
var LinkFiltersSchema = import_zod7.z.object({
|
|
308
327
|
search: import_zod7.z.string().optional(),
|
|
309
328
|
domain_id: import_zod7.z.string().uuid().optional(),
|
|
310
|
-
is_active:
|
|
311
|
-
has_expiration:
|
|
312
|
-
expired:
|
|
329
|
+
is_active: stringToBoolean.optional(),
|
|
330
|
+
has_expiration: stringToBoolean.optional(),
|
|
331
|
+
expired: stringToBoolean.optional(),
|
|
313
332
|
created_from: import_zod7.z.coerce.date().optional(),
|
|
314
333
|
created_to: import_zod7.z.coerce.date().optional(),
|
|
315
334
|
expires_from: import_zod7.z.coerce.date().optional(),
|
|
@@ -517,6 +536,7 @@ var contract = {
|
|
|
517
536
|
LinkSchema,
|
|
518
537
|
MemberIdParamSchema,
|
|
519
538
|
PaginatedLinksSchema,
|
|
539
|
+
QrCodeSettingsSchema,
|
|
520
540
|
SignInInputSchema,
|
|
521
541
|
TagIdParamSchema,
|
|
522
542
|
TagSchema,
|