@middlewr/contracts 0.0.46 → 0.0.48
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 +84 -88
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +15 -18
- package/dist/cjs/link-templates.schema.d.ts +12 -0
- package/dist/cjs/link-templates.schema.d.ts.map +1 -1
- package/dist/cjs/links.schema.d.ts +12 -32
- package/dist/cjs/links.schema.d.ts.map +1 -1
- package/dist/cjs/rules.schema.d.ts +101 -0
- package/dist/cjs/rules.schema.d.ts.map +1 -1
- package/dist/esm/index.d.ts +84 -88
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +14 -18
- package/dist/esm/link-templates.schema.d.ts +12 -0
- package/dist/esm/link-templates.schema.d.ts.map +1 -1
- package/dist/esm/links.schema.d.ts +12 -32
- package/dist/esm/links.schema.d.ts.map +1 -1
- package/dist/esm/rules.schema.d.ts +101 -0
- package/dist/esm/rules.schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/link-templates.schema.ts +2 -2
- package/src/links.schema.ts +2 -15
- package/src/rules.schema.ts +17 -9
package/dist/cjs/index.d.ts
CHANGED
|
@@ -492,6 +492,9 @@ export declare const linkTemplatesContract: {
|
|
|
492
492
|
y: z.ZodNumber;
|
|
493
493
|
}, z.core.$strip>;
|
|
494
494
|
next: z.ZodNullable<z.ZodString>;
|
|
495
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
496
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
497
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
495
498
|
}, z.core.$strip>], "type">>;
|
|
496
499
|
}, z.core.$strip>>>;
|
|
497
500
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -589,6 +592,9 @@ export declare const linkTemplatesContract: {
|
|
|
589
592
|
y: z.ZodNumber;
|
|
590
593
|
}, z.core.$strip>;
|
|
591
594
|
next: z.ZodNullable<z.ZodString>;
|
|
595
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
596
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
597
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
592
598
|
}, z.core.$strip>], "type">>;
|
|
593
599
|
}, z.core.$strip>>;
|
|
594
600
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -695,6 +701,9 @@ export declare const linkTemplatesContract: {
|
|
|
695
701
|
y: z.ZodNumber;
|
|
696
702
|
}, z.core.$strip>;
|
|
697
703
|
next: z.ZodNullable<z.ZodString>;
|
|
704
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
705
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
706
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
698
707
|
}, z.core.$strip>], "type">>;
|
|
699
708
|
}, z.core.$strip>>;
|
|
700
709
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -803,6 +812,9 @@ export declare const linkTemplatesContract: {
|
|
|
803
812
|
y: z.ZodNumber;
|
|
804
813
|
}, z.core.$strip>;
|
|
805
814
|
next: z.ZodNullable<z.ZodString>;
|
|
815
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
816
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
817
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
806
818
|
}, z.core.$strip>], "type">>;
|
|
807
819
|
}, z.core.$strip>>;
|
|
808
820
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -903,6 +915,9 @@ export declare const linkTemplatesContract: {
|
|
|
903
915
|
y: z.ZodNumber;
|
|
904
916
|
}, z.core.$strip>;
|
|
905
917
|
next: z.ZodNullable<z.ZodString>;
|
|
918
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
919
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
920
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
906
921
|
}, z.core.$strip>], "type">>;
|
|
907
922
|
}, z.core.$strip>>;
|
|
908
923
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1000,6 +1015,9 @@ export declare const linkTemplatesContract: {
|
|
|
1000
1015
|
y: z.ZodNumber;
|
|
1001
1016
|
}, z.core.$strip>;
|
|
1002
1017
|
next: z.ZodNullable<z.ZodString>;
|
|
1018
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
1019
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
1020
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1003
1021
|
}, z.core.$strip>], "type">>;
|
|
1004
1022
|
}, z.core.$strip>>;
|
|
1005
1023
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -1024,9 +1042,6 @@ export declare const linksContract: {
|
|
|
1024
1042
|
utm_term: z.ZodOptional<z.ZodString>;
|
|
1025
1043
|
utm_content: z.ZodOptional<z.ZodString>;
|
|
1026
1044
|
password: z.ZodOptional<z.ZodString>;
|
|
1027
|
-
starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1028
|
-
expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1029
|
-
fallback_url: z.ZodOptional<z.ZodString>;
|
|
1030
1045
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1031
1046
|
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1032
1047
|
fg_color: z.ZodString;
|
|
@@ -1149,6 +1164,9 @@ export declare const linksContract: {
|
|
|
1149
1164
|
y: z.ZodNumber;
|
|
1150
1165
|
}, z.core.$strip>;
|
|
1151
1166
|
next: z.ZodNullable<z.ZodString>;
|
|
1167
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
1168
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
1169
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1152
1170
|
}, z.core.$strip>], "type">>;
|
|
1153
1171
|
}, z.core.$strip>>>;
|
|
1154
1172
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1166,9 +1184,6 @@ export declare const linksContract: {
|
|
|
1166
1184
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
1167
1185
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
1168
1186
|
password: z.ZodNullable<z.ZodString>;
|
|
1169
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1170
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1171
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1172
1187
|
is_active: z.ZodBoolean;
|
|
1173
1188
|
redirect_type: z.ZodNumber;
|
|
1174
1189
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -1297,6 +1312,9 @@ export declare const linksContract: {
|
|
|
1297
1312
|
y: z.ZodNumber;
|
|
1298
1313
|
}, z.core.$strip>;
|
|
1299
1314
|
next: z.ZodNullable<z.ZodString>;
|
|
1315
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
1316
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
1317
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1300
1318
|
}, z.core.$strip>], "type">>;
|
|
1301
1319
|
}, z.core.$strip>>>;
|
|
1302
1320
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -1316,18 +1334,8 @@ export declare const linksContract: {
|
|
|
1316
1334
|
true: "true";
|
|
1317
1335
|
false: "false";
|
|
1318
1336
|
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1319
|
-
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1320
|
-
true: "true";
|
|
1321
|
-
false: "false";
|
|
1322
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1323
|
-
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1324
|
-
true: "true";
|
|
1325
|
-
false: "false";
|
|
1326
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1327
1337
|
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1328
1338
|
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1329
|
-
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1330
|
-
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1331
1339
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1332
1340
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
1333
1341
|
created_at: "created_at";
|
|
@@ -1357,9 +1365,6 @@ export declare const linksContract: {
|
|
|
1357
1365
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
1358
1366
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
1359
1367
|
password: z.ZodNullable<z.ZodString>;
|
|
1360
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1361
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1362
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1363
1368
|
is_active: z.ZodBoolean;
|
|
1364
1369
|
redirect_type: z.ZodNumber;
|
|
1365
1370
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -1488,6 +1493,9 @@ export declare const linksContract: {
|
|
|
1488
1493
|
y: z.ZodNumber;
|
|
1489
1494
|
}, z.core.$strip>;
|
|
1490
1495
|
next: z.ZodNullable<z.ZodString>;
|
|
1496
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
1497
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
1498
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1491
1499
|
}, z.core.$strip>], "type">>;
|
|
1492
1500
|
}, z.core.$strip>>>;
|
|
1493
1501
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -1513,18 +1521,8 @@ export declare const linksContract: {
|
|
|
1513
1521
|
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1514
1522
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1515
1523
|
domain_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1516
|
-
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1517
|
-
true: "true";
|
|
1518
|
-
false: "false";
|
|
1519
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1520
|
-
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1521
|
-
true: "true";
|
|
1522
|
-
false: "false";
|
|
1523
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1524
1524
|
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1525
1525
|
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1526
|
-
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1527
|
-
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1528
1526
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
1529
1527
|
created_at: "created_at";
|
|
1530
1528
|
title: "title";
|
|
@@ -1554,9 +1552,6 @@ export declare const linksContract: {
|
|
|
1554
1552
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
1555
1553
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
1556
1554
|
password: z.ZodNullable<z.ZodString>;
|
|
1557
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1558
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1559
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1560
1555
|
is_active: z.ZodBoolean;
|
|
1561
1556
|
redirect_type: z.ZodNumber;
|
|
1562
1557
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -1685,6 +1680,9 @@ export declare const linksContract: {
|
|
|
1685
1680
|
y: z.ZodNumber;
|
|
1686
1681
|
}, z.core.$strip>;
|
|
1687
1682
|
next: z.ZodNullable<z.ZodString>;
|
|
1683
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
1684
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
1685
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1688
1686
|
}, z.core.$strip>], "type">>;
|
|
1689
1687
|
}, z.core.$strip>>>;
|
|
1690
1688
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -1710,9 +1708,6 @@ export declare const linksContract: {
|
|
|
1710
1708
|
utm_term: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1711
1709
|
utm_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1712
1710
|
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1713
|
-
starts_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
1714
|
-
expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
1715
|
-
fallback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1716
1711
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
1717
1712
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1718
1713
|
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -1836,6 +1831,9 @@ export declare const linksContract: {
|
|
|
1836
1831
|
y: z.ZodNumber;
|
|
1837
1832
|
}, z.core.$strip>;
|
|
1838
1833
|
next: z.ZodNullable<z.ZodString>;
|
|
1834
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
1835
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
1836
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1839
1837
|
}, z.core.$strip>], "type">>;
|
|
1840
1838
|
}, z.core.$strip>>>;
|
|
1841
1839
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1853,9 +1851,6 @@ export declare const linksContract: {
|
|
|
1853
1851
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
1854
1852
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
1855
1853
|
password: z.ZodNullable<z.ZodString>;
|
|
1856
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1857
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1858
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1859
1854
|
is_active: z.ZodBoolean;
|
|
1860
1855
|
redirect_type: z.ZodNumber;
|
|
1861
1856
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -1984,6 +1979,9 @@ export declare const linksContract: {
|
|
|
1984
1979
|
y: z.ZodNumber;
|
|
1985
1980
|
}, z.core.$strip>;
|
|
1986
1981
|
next: z.ZodNullable<z.ZodString>;
|
|
1982
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
1983
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
1984
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1987
1985
|
}, z.core.$strip>], "type">>;
|
|
1988
1986
|
}, z.core.$strip>>>;
|
|
1989
1987
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -2028,9 +2026,6 @@ export declare const linksContract: {
|
|
|
2028
2026
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
2029
2027
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
2030
2028
|
password: z.ZodNullable<z.ZodString>;
|
|
2031
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2032
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2033
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
2034
2029
|
is_active: z.ZodBoolean;
|
|
2035
2030
|
redirect_type: z.ZodNumber;
|
|
2036
2031
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -2159,6 +2154,9 @@ export declare const linksContract: {
|
|
|
2159
2154
|
y: z.ZodNumber;
|
|
2160
2155
|
}, z.core.$strip>;
|
|
2161
2156
|
next: z.ZodNullable<z.ZodString>;
|
|
2157
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
2158
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
2159
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
2162
2160
|
}, z.core.$strip>], "type">>;
|
|
2163
2161
|
}, z.core.$strip>>>;
|
|
2164
2162
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -2188,9 +2186,6 @@ export declare const linksContract: {
|
|
|
2188
2186
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
2189
2187
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
2190
2188
|
password: z.ZodNullable<z.ZodString>;
|
|
2191
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2192
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2193
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
2194
2189
|
is_active: z.ZodBoolean;
|
|
2195
2190
|
redirect_type: z.ZodNumber;
|
|
2196
2191
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -2319,6 +2314,9 @@ export declare const linksContract: {
|
|
|
2319
2314
|
y: z.ZodNumber;
|
|
2320
2315
|
}, z.core.$strip>;
|
|
2321
2316
|
next: z.ZodNullable<z.ZodString>;
|
|
2317
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
2318
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
2319
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
2322
2320
|
}, z.core.$strip>], "type">>;
|
|
2323
2321
|
}, z.core.$strip>>>;
|
|
2324
2322
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -3073,6 +3071,9 @@ export declare const contract: {
|
|
|
3073
3071
|
y: z.ZodNumber;
|
|
3074
3072
|
}, z.core.$strip>;
|
|
3075
3073
|
next: z.ZodNullable<z.ZodString>;
|
|
3074
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3075
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
3076
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3076
3077
|
}, z.core.$strip>], "type">>;
|
|
3077
3078
|
}, z.core.$strip>>>;
|
|
3078
3079
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3170,6 +3171,9 @@ export declare const contract: {
|
|
|
3170
3171
|
y: z.ZodNumber;
|
|
3171
3172
|
}, z.core.$strip>;
|
|
3172
3173
|
next: z.ZodNullable<z.ZodString>;
|
|
3174
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3175
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
3176
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3173
3177
|
}, z.core.$strip>], "type">>;
|
|
3174
3178
|
}, z.core.$strip>>;
|
|
3175
3179
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -3276,6 +3280,9 @@ export declare const contract: {
|
|
|
3276
3280
|
y: z.ZodNumber;
|
|
3277
3281
|
}, z.core.$strip>;
|
|
3278
3282
|
next: z.ZodNullable<z.ZodString>;
|
|
3283
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3284
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
3285
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3279
3286
|
}, z.core.$strip>], "type">>;
|
|
3280
3287
|
}, z.core.$strip>>;
|
|
3281
3288
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -3384,6 +3391,9 @@ export declare const contract: {
|
|
|
3384
3391
|
y: z.ZodNumber;
|
|
3385
3392
|
}, z.core.$strip>;
|
|
3386
3393
|
next: z.ZodNullable<z.ZodString>;
|
|
3394
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3395
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
3396
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3387
3397
|
}, z.core.$strip>], "type">>;
|
|
3388
3398
|
}, z.core.$strip>>;
|
|
3389
3399
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -3484,6 +3494,9 @@ export declare const contract: {
|
|
|
3484
3494
|
y: z.ZodNumber;
|
|
3485
3495
|
}, z.core.$strip>;
|
|
3486
3496
|
next: z.ZodNullable<z.ZodString>;
|
|
3497
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3498
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
3499
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3487
3500
|
}, z.core.$strip>], "type">>;
|
|
3488
3501
|
}, z.core.$strip>>;
|
|
3489
3502
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3581,6 +3594,9 @@ export declare const contract: {
|
|
|
3581
3594
|
y: z.ZodNumber;
|
|
3582
3595
|
}, z.core.$strip>;
|
|
3583
3596
|
next: z.ZodNullable<z.ZodString>;
|
|
3597
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3598
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
3599
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3584
3600
|
}, z.core.$strip>], "type">>;
|
|
3585
3601
|
}, z.core.$strip>>;
|
|
3586
3602
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -3605,9 +3621,6 @@ export declare const contract: {
|
|
|
3605
3621
|
utm_term: z.ZodOptional<z.ZodString>;
|
|
3606
3622
|
utm_content: z.ZodOptional<z.ZodString>;
|
|
3607
3623
|
password: z.ZodOptional<z.ZodString>;
|
|
3608
|
-
starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
3609
|
-
expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
3610
|
-
fallback_url: z.ZodOptional<z.ZodString>;
|
|
3611
3624
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3612
3625
|
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3613
3626
|
fg_color: z.ZodString;
|
|
@@ -3730,6 +3743,9 @@ export declare const contract: {
|
|
|
3730
3743
|
y: z.ZodNumber;
|
|
3731
3744
|
}, z.core.$strip>;
|
|
3732
3745
|
next: z.ZodNullable<z.ZodString>;
|
|
3746
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3747
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
3748
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3733
3749
|
}, z.core.$strip>], "type">>;
|
|
3734
3750
|
}, z.core.$strip>>>;
|
|
3735
3751
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3747,9 +3763,6 @@ export declare const contract: {
|
|
|
3747
3763
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
3748
3764
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
3749
3765
|
password: z.ZodNullable<z.ZodString>;
|
|
3750
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3751
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3752
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3753
3766
|
is_active: z.ZodBoolean;
|
|
3754
3767
|
redirect_type: z.ZodNumber;
|
|
3755
3768
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -3878,6 +3891,9 @@ export declare const contract: {
|
|
|
3878
3891
|
y: z.ZodNumber;
|
|
3879
3892
|
}, z.core.$strip>;
|
|
3880
3893
|
next: z.ZodNullable<z.ZodString>;
|
|
3894
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3895
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
3896
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3881
3897
|
}, z.core.$strip>], "type">>;
|
|
3882
3898
|
}, z.core.$strip>>>;
|
|
3883
3899
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -3897,18 +3913,8 @@ export declare const contract: {
|
|
|
3897
3913
|
true: "true";
|
|
3898
3914
|
false: "false";
|
|
3899
3915
|
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
3900
|
-
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
3901
|
-
true: "true";
|
|
3902
|
-
false: "false";
|
|
3903
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
3904
|
-
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
3905
|
-
true: "true";
|
|
3906
|
-
false: "false";
|
|
3907
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
3908
3916
|
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
3909
3917
|
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
3910
|
-
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
3911
|
-
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
3912
3918
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3913
3919
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
3914
3920
|
created_at: "created_at";
|
|
@@ -3938,9 +3944,6 @@ export declare const contract: {
|
|
|
3938
3944
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
3939
3945
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
3940
3946
|
password: z.ZodNullable<z.ZodString>;
|
|
3941
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3942
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3943
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3944
3947
|
is_active: z.ZodBoolean;
|
|
3945
3948
|
redirect_type: z.ZodNumber;
|
|
3946
3949
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -4069,6 +4072,9 @@ export declare const contract: {
|
|
|
4069
4072
|
y: z.ZodNumber;
|
|
4070
4073
|
}, z.core.$strip>;
|
|
4071
4074
|
next: z.ZodNullable<z.ZodString>;
|
|
4075
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
4076
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
4077
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4072
4078
|
}, z.core.$strip>], "type">>;
|
|
4073
4079
|
}, z.core.$strip>>>;
|
|
4074
4080
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -4094,18 +4100,8 @@ export declare const contract: {
|
|
|
4094
4100
|
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
4095
4101
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4096
4102
|
domain_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4097
|
-
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
4098
|
-
true: "true";
|
|
4099
|
-
false: "false";
|
|
4100
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
4101
|
-
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
4102
|
-
true: "true";
|
|
4103
|
-
false: "false";
|
|
4104
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
4105
4103
|
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
4106
4104
|
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
4107
|
-
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
4108
|
-
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
4109
4105
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
4110
4106
|
created_at: "created_at";
|
|
4111
4107
|
title: "title";
|
|
@@ -4135,9 +4131,6 @@ export declare const contract: {
|
|
|
4135
4131
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
4136
4132
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
4137
4133
|
password: z.ZodNullable<z.ZodString>;
|
|
4138
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
4139
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
4140
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4141
4134
|
is_active: z.ZodBoolean;
|
|
4142
4135
|
redirect_type: z.ZodNumber;
|
|
4143
4136
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -4266,6 +4259,9 @@ export declare const contract: {
|
|
|
4266
4259
|
y: z.ZodNumber;
|
|
4267
4260
|
}, z.core.$strip>;
|
|
4268
4261
|
next: z.ZodNullable<z.ZodString>;
|
|
4262
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
4263
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
4264
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4269
4265
|
}, z.core.$strip>], "type">>;
|
|
4270
4266
|
}, z.core.$strip>>>;
|
|
4271
4267
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -4291,9 +4287,6 @@ export declare const contract: {
|
|
|
4291
4287
|
utm_term: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4292
4288
|
utm_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4293
4289
|
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4294
|
-
starts_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
4295
|
-
expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
4296
|
-
fallback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4297
4290
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
4298
4291
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4299
4292
|
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -4417,6 +4410,9 @@ export declare const contract: {
|
|
|
4417
4410
|
y: z.ZodNumber;
|
|
4418
4411
|
}, z.core.$strip>;
|
|
4419
4412
|
next: z.ZodNullable<z.ZodString>;
|
|
4413
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
4414
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
4415
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4420
4416
|
}, z.core.$strip>], "type">>;
|
|
4421
4417
|
}, z.core.$strip>>>;
|
|
4422
4418
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4434,9 +4430,6 @@ export declare const contract: {
|
|
|
4434
4430
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
4435
4431
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
4436
4432
|
password: z.ZodNullable<z.ZodString>;
|
|
4437
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
4438
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
4439
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4440
4433
|
is_active: z.ZodBoolean;
|
|
4441
4434
|
redirect_type: z.ZodNumber;
|
|
4442
4435
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -4565,6 +4558,9 @@ export declare const contract: {
|
|
|
4565
4558
|
y: z.ZodNumber;
|
|
4566
4559
|
}, z.core.$strip>;
|
|
4567
4560
|
next: z.ZodNullable<z.ZodString>;
|
|
4561
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
4562
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
4563
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4568
4564
|
}, z.core.$strip>], "type">>;
|
|
4569
4565
|
}, z.core.$strip>>>;
|
|
4570
4566
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -4609,9 +4605,6 @@ export declare const contract: {
|
|
|
4609
4605
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
4610
4606
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
4611
4607
|
password: z.ZodNullable<z.ZodString>;
|
|
4612
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
4613
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
4614
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4615
4608
|
is_active: z.ZodBoolean;
|
|
4616
4609
|
redirect_type: z.ZodNumber;
|
|
4617
4610
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -4740,6 +4733,9 @@ export declare const contract: {
|
|
|
4740
4733
|
y: z.ZodNumber;
|
|
4741
4734
|
}, z.core.$strip>;
|
|
4742
4735
|
next: z.ZodNullable<z.ZodString>;
|
|
4736
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
4737
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
4738
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4743
4739
|
}, z.core.$strip>], "type">>;
|
|
4744
4740
|
}, z.core.$strip>>>;
|
|
4745
4741
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -4769,9 +4765,6 @@ export declare const contract: {
|
|
|
4769
4765
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
4770
4766
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
4771
4767
|
password: z.ZodNullable<z.ZodString>;
|
|
4772
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
4773
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
4774
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4775
4768
|
is_active: z.ZodBoolean;
|
|
4776
4769
|
redirect_type: z.ZodNumber;
|
|
4777
4770
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -4900,6 +4893,9 @@ export declare const contract: {
|
|
|
4900
4893
|
y: z.ZodNumber;
|
|
4901
4894
|
}, z.core.$strip>;
|
|
4902
4895
|
next: z.ZodNullable<z.ZodString>;
|
|
4896
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
4897
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
4898
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
4903
4899
|
}, z.core.$strip>], "type">>;
|
|
4904
4900
|
}, z.core.$strip>>>;
|
|
4905
4901
|
tags: z.ZodArray<z.ZodObject<{
|
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;AA+DxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,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;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYpB,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
|
@@ -60,6 +60,7 @@ __export(index_exports, {
|
|
|
60
60
|
PlansOutputSchema: () => PlansOutputSchema,
|
|
61
61
|
QrCodeSettingsSchema: () => QrCodeSettingsSchema,
|
|
62
62
|
RuleGraphNodeSchema: () => RuleGraphNodeSchema,
|
|
63
|
+
RuleGraphOutputSchema: () => RuleGraphOutputSchema,
|
|
63
64
|
RuleGraphSchema: () => RuleGraphSchema,
|
|
64
65
|
SignInInputSchema: () => SignInInputSchema,
|
|
65
66
|
TagIdParamSchema: () => TagIdParamSchema,
|
|
@@ -376,7 +377,10 @@ var EntryNodeSchema = import_zod6.z.object({
|
|
|
376
377
|
id: import_zod6.z.string(),
|
|
377
378
|
type: import_zod6.z.literal("entry"),
|
|
378
379
|
position: PositionSchema,
|
|
379
|
-
next: import_zod6.z.string().nullable()
|
|
380
|
+
next: import_zod6.z.string().nullable(),
|
|
381
|
+
starts_at: import_zod6.z.string().nullable(),
|
|
382
|
+
expires_at: import_zod6.z.string().nullable(),
|
|
383
|
+
fallback_url: import_zod6.z.string().nullable()
|
|
380
384
|
});
|
|
381
385
|
var RuleGraphNodeSchema = import_zod6.z.discriminatedUnion("type", [
|
|
382
386
|
ConditionNodeSchema,
|
|
@@ -386,10 +390,15 @@ var RuleGraphNodeSchema = import_zod6.z.discriminatedUnion("type", [
|
|
|
386
390
|
PasswordNodeSchema,
|
|
387
391
|
EntryNodeSchema
|
|
388
392
|
]);
|
|
389
|
-
var
|
|
393
|
+
var BaseRuleGraphSchema = import_zod6.z.object({
|
|
390
394
|
entry: import_zod6.z.string(),
|
|
391
395
|
nodes: import_zod6.z.record(import_zod6.z.string(), RuleGraphNodeSchema)
|
|
392
|
-
})
|
|
396
|
+
});
|
|
397
|
+
var RuleGraphOutputSchema = BaseRuleGraphSchema.refine((data) => data.nodes[data.entry] !== void 0, {
|
|
398
|
+
message: "Entry node must reference an existing node in the graph",
|
|
399
|
+
path: ["entry"]
|
|
400
|
+
});
|
|
401
|
+
var RuleGraphSchema = BaseRuleGraphSchema.refine((data) => data.nodes[data.entry] !== void 0, {
|
|
393
402
|
message: "Entry node must reference an existing node in the graph",
|
|
394
403
|
path: ["entry"]
|
|
395
404
|
}).refine(
|
|
@@ -418,7 +427,7 @@ var LinkTemplateSchema = import_zod7.z.object({
|
|
|
418
427
|
workspace_id: import_zod7.z.string().uuid(),
|
|
419
428
|
title: import_zod7.z.string(),
|
|
420
429
|
description: import_zod7.z.string().nullable(),
|
|
421
|
-
rule_graph:
|
|
430
|
+
rule_graph: RuleGraphOutputSchema.nullable(),
|
|
422
431
|
created_at: import_zod7.z.coerce.date(),
|
|
423
432
|
updated_at: import_zod7.z.coerce.date().nullable()
|
|
424
433
|
});
|
|
@@ -498,9 +507,6 @@ var LinkSchema = import_zod9.z.object({
|
|
|
498
507
|
utm_term: import_zod9.z.string().nullable(),
|
|
499
508
|
utm_content: import_zod9.z.string().nullable(),
|
|
500
509
|
password: import_zod9.z.string().nullable(),
|
|
501
|
-
starts_at: import_zod9.z.coerce.date().nullable(),
|
|
502
|
-
expires_at: import_zod9.z.coerce.date().nullable(),
|
|
503
|
-
fallback_url: import_zod9.z.string().nullable(),
|
|
504
510
|
is_active: import_zod9.z.boolean(),
|
|
505
511
|
redirect_type: import_zod9.z.number().int(),
|
|
506
512
|
click_count: import_zod9.z.coerce.number().int(),
|
|
@@ -511,7 +517,7 @@ var LinkSchema = import_zod9.z.object({
|
|
|
511
517
|
qr_logo_key: import_zod9.z.string().nullable(),
|
|
512
518
|
logo_url: import_zod9.z.string().nullable(),
|
|
513
519
|
link_type: import_zod9.z.enum(["redirect", "rules"]).default("redirect"),
|
|
514
|
-
rule_graph:
|
|
520
|
+
rule_graph: RuleGraphOutputSchema.nullable().optional(),
|
|
515
521
|
tags: import_zod9.z.array(TagSchema)
|
|
516
522
|
});
|
|
517
523
|
var CreateLinkInputSchema = import_zod9.z.object({
|
|
@@ -526,9 +532,6 @@ var CreateLinkInputSchema = import_zod9.z.object({
|
|
|
526
532
|
utm_term: import_zod9.z.string().max(255).optional(),
|
|
527
533
|
utm_content: import_zod9.z.string().max(255).optional(),
|
|
528
534
|
password: import_zod9.z.string().min(4).max(100).optional(),
|
|
529
|
-
starts_at: import_zod9.z.coerce.date().optional(),
|
|
530
|
-
expires_at: import_zod9.z.coerce.date().optional(),
|
|
531
|
-
fallback_url: import_zod9.z.string().url().max(2048).optional(),
|
|
532
535
|
redirect_type: import_zod9.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
533
536
|
qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
|
|
534
537
|
tag_ids: import_zod9.z.array(import_zod9.z.string().uuid()).optional(),
|
|
@@ -550,9 +553,6 @@ var UpdateLinkInputSchema = import_zod9.z.object({
|
|
|
550
553
|
utm_term: import_zod9.z.string().max(255).nullable().optional(),
|
|
551
554
|
utm_content: import_zod9.z.string().max(255).nullable().optional(),
|
|
552
555
|
password: import_zod9.z.string().min(4).max(100).nullable().optional(),
|
|
553
|
-
starts_at: import_zod9.z.coerce.date().nullable().optional(),
|
|
554
|
-
expires_at: import_zod9.z.coerce.date().nullable().optional(),
|
|
555
|
-
fallback_url: import_zod9.z.string().url().max(2048).nullable().optional(),
|
|
556
556
|
is_active: import_zod9.z.boolean().optional(),
|
|
557
557
|
redirect_type: import_zod9.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
558
558
|
qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
|
|
@@ -568,12 +568,8 @@ var LinkFiltersSchema = import_zod9.z.object({
|
|
|
568
568
|
search: import_zod9.z.string().optional(),
|
|
569
569
|
domain_ids: import_zod9.z.array(import_zod9.z.string().uuid()).optional(),
|
|
570
570
|
is_active: stringToBoolean.optional(),
|
|
571
|
-
has_expiration: stringToBoolean.optional(),
|
|
572
|
-
expired: stringToBoolean.optional(),
|
|
573
571
|
created_from: import_zod9.z.coerce.date().optional(),
|
|
574
572
|
created_to: import_zod9.z.coerce.date().optional(),
|
|
575
|
-
expires_from: import_zod9.z.coerce.date().optional(),
|
|
576
|
-
expires_to: import_zod9.z.coerce.date().optional(),
|
|
577
573
|
tag_ids: import_zod9.z.array(import_zod9.z.string().uuid()).optional(),
|
|
578
574
|
sort_by: import_zod9.z.enum(["created_at", "title", "click_count", "original_url"]).default("created_at"),
|
|
579
575
|
sort_order: import_zod9.z.enum(["asc", "desc"]).default("desc"),
|
|
@@ -835,6 +831,7 @@ var contract = {
|
|
|
835
831
|
PlansOutputSchema,
|
|
836
832
|
QrCodeSettingsSchema,
|
|
837
833
|
RuleGraphNodeSchema,
|
|
834
|
+
RuleGraphOutputSchema,
|
|
838
835
|
RuleGraphSchema,
|
|
839
836
|
SignInInputSchema,
|
|
840
837
|
TagIdParamSchema,
|