@middlewr/contracts 0.0.34 → 0.0.36
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 +681 -103
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/links.schema.d.ts +2 -0
- package/dist/cjs/links.schema.d.ts.map +1 -1
- package/dist/esm/index.d.ts +681 -103
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/links.schema.d.ts +2 -0
- package/dist/esm/links.schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +15 -5
- package/src/links.schema.ts +1 -0
package/dist/cjs/index.d.ts
CHANGED
|
@@ -564,6 +564,7 @@ export declare const linksContract: {
|
|
|
564
564
|
frame_color: z.ZodString;
|
|
565
565
|
frame_text_color: z.ZodString;
|
|
566
566
|
}, z.core.$strip>>;
|
|
567
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
567
568
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
568
569
|
redirect: "redirect";
|
|
569
570
|
rules: "rules";
|
|
@@ -736,6 +737,7 @@ export declare const linksContract: {
|
|
|
736
737
|
frame_color: z.ZodString;
|
|
737
738
|
frame_text_color: z.ZodString;
|
|
738
739
|
}, z.core.$strip>>;
|
|
740
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
739
741
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
740
742
|
redirect: "redirect";
|
|
741
743
|
rules: "rules";
|
|
@@ -830,6 +832,38 @@ export declare const linksContract: {
|
|
|
830
832
|
per_page: z.ZodNumber;
|
|
831
833
|
total_pages: z.ZodNumber;
|
|
832
834
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
835
|
+
exportCsv: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
836
|
+
workspace_id: z.ZodString;
|
|
837
|
+
is_active: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
838
|
+
true: "true";
|
|
839
|
+
false: "false";
|
|
840
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
841
|
+
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
842
|
+
search: z.ZodOptional<z.ZodString>;
|
|
843
|
+
domain_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
844
|
+
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
845
|
+
true: "true";
|
|
846
|
+
false: "false";
|
|
847
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
848
|
+
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
849
|
+
true: "true";
|
|
850
|
+
false: "false";
|
|
851
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
852
|
+
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
853
|
+
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
854
|
+
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
855
|
+
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
856
|
+
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
857
|
+
created_at: "created_at";
|
|
858
|
+
original_url: "original_url";
|
|
859
|
+
title: "title";
|
|
860
|
+
click_count: "click_count";
|
|
861
|
+
}>>;
|
|
862
|
+
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
863
|
+
asc: "asc";
|
|
864
|
+
desc: "desc";
|
|
865
|
+
}>>;
|
|
866
|
+
}, z.core.$strip>, z.ZodCustom<File, File>, Record<never, never>, Record<never, never>>;
|
|
833
867
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
834
868
|
workspace_id: z.ZodString;
|
|
835
869
|
link_id: z.ZodString;
|
|
@@ -882,6 +916,7 @@ export declare const linksContract: {
|
|
|
882
916
|
frame_color: z.ZodString;
|
|
883
917
|
frame_text_color: z.ZodString;
|
|
884
918
|
}, z.core.$strip>>;
|
|
919
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
885
920
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
886
921
|
redirect: "redirect";
|
|
887
922
|
rules: "rules";
|
|
@@ -1145,6 +1180,7 @@ export declare const linksContract: {
|
|
|
1145
1180
|
frame_color: z.ZodString;
|
|
1146
1181
|
frame_text_color: z.ZodString;
|
|
1147
1182
|
}, z.core.$strip>>;
|
|
1183
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
1148
1184
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
1149
1185
|
redirect: "redirect";
|
|
1150
1186
|
rules: "rules";
|
|
@@ -1238,38 +1274,6 @@ export declare const linksContract: {
|
|
|
1238
1274
|
workspace_id: z.ZodString;
|
|
1239
1275
|
link_id: z.ZodString;
|
|
1240
1276
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1241
|
-
exportCsv: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1242
|
-
workspace_id: z.ZodString;
|
|
1243
|
-
is_active: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1244
|
-
true: "true";
|
|
1245
|
-
false: "false";
|
|
1246
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1247
|
-
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1248
|
-
search: z.ZodOptional<z.ZodString>;
|
|
1249
|
-
domain_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1250
|
-
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1251
|
-
true: "true";
|
|
1252
|
-
false: "false";
|
|
1253
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1254
|
-
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1255
|
-
true: "true";
|
|
1256
|
-
false: "false";
|
|
1257
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1258
|
-
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1259
|
-
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1260
|
-
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1261
|
-
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1262
|
-
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
1263
|
-
created_at: "created_at";
|
|
1264
|
-
original_url: "original_url";
|
|
1265
|
-
title: "title";
|
|
1266
|
-
click_count: "click_count";
|
|
1267
|
-
}>>;
|
|
1268
|
-
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
1269
|
-
asc: "asc";
|
|
1270
|
-
desc: "desc";
|
|
1271
|
-
}>>;
|
|
1272
|
-
}, z.core.$strip>, z.ZodCustom<File, File>, Record<never, never>, Record<never, never>>;
|
|
1273
1277
|
edgeSync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1274
1278
|
workspace_id: z.ZodString;
|
|
1275
1279
|
link_id: z.ZodString;
|
|
@@ -1280,58 +1284,343 @@ export declare const linksContract: {
|
|
|
1280
1284
|
}, z.core.$strip>, z.ZodObject<{
|
|
1281
1285
|
synced: z.ZodBoolean;
|
|
1282
1286
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1283
|
-
|
|
1287
|
+
uploadLogo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1284
1288
|
workspace_id: z.ZodString;
|
|
1285
|
-
|
|
1289
|
+
link_id: z.ZodString;
|
|
1290
|
+
file: z.ZodFile;
|
|
1286
1291
|
}, z.core.$strip>, z.ZodObject<{
|
|
1287
1292
|
id: z.ZodString;
|
|
1288
1293
|
workspace_id: z.ZodString;
|
|
1289
|
-
|
|
1290
|
-
status: z.ZodEnum<{
|
|
1291
|
-
pending: "pending";
|
|
1292
|
-
processing: "processing";
|
|
1293
|
-
completed: "completed";
|
|
1294
|
-
failed: "failed";
|
|
1295
|
-
}>;
|
|
1296
|
-
total_rows: z.ZodNumber;
|
|
1297
|
-
succeeded_count: z.ZodNumber;
|
|
1298
|
-
failed_count: z.ZodNumber;
|
|
1299
|
-
error: z.ZodNullable<z.ZodString>;
|
|
1294
|
+
domain_id: z.ZodString;
|
|
1300
1295
|
created_by_id: z.ZodString;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
workspace_id: z.ZodString;
|
|
1319
|
-
name: z.ZodString;
|
|
1320
|
-
color: z.ZodNullable<z.ZodString>;
|
|
1296
|
+
original_url: z.ZodString;
|
|
1297
|
+
short_code: z.ZodString;
|
|
1298
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1299
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1300
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
1301
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
1302
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
1303
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
1304
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
1305
|
+
password: z.ZodNullable<z.ZodString>;
|
|
1306
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1307
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1308
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1309
|
+
is_active: z.ZodBoolean;
|
|
1310
|
+
redirect_type: z.ZodNumber;
|
|
1311
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
1312
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1321
1313
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1322
1314
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1315
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
1316
|
+
fg_color: z.ZodString;
|
|
1317
|
+
bg_color: z.ZodString;
|
|
1318
|
+
dot_style: z.ZodEnum<{
|
|
1319
|
+
square: "square";
|
|
1320
|
+
dots: "dots";
|
|
1321
|
+
rounded: "rounded";
|
|
1322
|
+
classy: "classy";
|
|
1323
|
+
"classy-rounded": "classy-rounded";
|
|
1324
|
+
"extra-rounded": "extra-rounded";
|
|
1325
|
+
}>;
|
|
1326
|
+
eye_outer_style: z.ZodEnum<{
|
|
1327
|
+
square: "square";
|
|
1328
|
+
"extra-rounded": "extra-rounded";
|
|
1329
|
+
dot: "dot";
|
|
1330
|
+
}>;
|
|
1331
|
+
eye_inner_style: z.ZodEnum<{
|
|
1332
|
+
square: "square";
|
|
1333
|
+
dot: "dot";
|
|
1334
|
+
}>;
|
|
1335
|
+
frame_enabled: z.ZodBoolean;
|
|
1336
|
+
frame_text: z.ZodString;
|
|
1337
|
+
frame_color: z.ZodString;
|
|
1338
|
+
frame_text_color: z.ZodString;
|
|
1339
|
+
}, z.core.$strip>>;
|
|
1340
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
1341
|
+
link_type: z.ZodDefault<z.ZodEnum<{
|
|
1342
|
+
redirect: "redirect";
|
|
1343
|
+
rules: "rules";
|
|
1344
|
+
}>>;
|
|
1345
|
+
rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1346
|
+
entry: z.ZodString;
|
|
1347
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1348
|
+
id: z.ZodString;
|
|
1349
|
+
type: z.ZodLiteral<"condition">;
|
|
1350
|
+
position: z.ZodObject<{
|
|
1351
|
+
x: z.ZodNumber;
|
|
1352
|
+
y: z.ZodNumber;
|
|
1353
|
+
}, z.core.$strip>;
|
|
1354
|
+
field: z.ZodString;
|
|
1355
|
+
operator: z.ZodEnum<{
|
|
1356
|
+
eq: "eq";
|
|
1357
|
+
neq: "neq";
|
|
1358
|
+
in: "in";
|
|
1359
|
+
not_in: "not_in";
|
|
1360
|
+
contains: "contains";
|
|
1361
|
+
not_contains: "not_contains";
|
|
1362
|
+
gt: "gt";
|
|
1363
|
+
lt: "lt";
|
|
1364
|
+
gte: "gte";
|
|
1365
|
+
lte: "lte";
|
|
1366
|
+
regex: "regex";
|
|
1367
|
+
}>;
|
|
1368
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber]>;
|
|
1369
|
+
outputs: z.ZodObject<{
|
|
1370
|
+
true: z.ZodNullable<z.ZodString>;
|
|
1371
|
+
false: z.ZodNullable<z.ZodString>;
|
|
1372
|
+
}, z.core.$strip>;
|
|
1373
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1374
|
+
id: z.ZodString;
|
|
1375
|
+
type: z.ZodLiteral<"split">;
|
|
1376
|
+
position: z.ZodObject<{
|
|
1377
|
+
x: z.ZodNumber;
|
|
1378
|
+
y: z.ZodNumber;
|
|
1379
|
+
}, z.core.$strip>;
|
|
1380
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
1381
|
+
weight: z.ZodNumber;
|
|
1382
|
+
target: z.ZodNullable<z.ZodString>;
|
|
1383
|
+
}, z.core.$strip>>;
|
|
1384
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1385
|
+
id: z.ZodString;
|
|
1386
|
+
type: z.ZodLiteral<"destination">;
|
|
1387
|
+
position: z.ZodObject<{
|
|
1388
|
+
x: z.ZodNumber;
|
|
1389
|
+
y: z.ZodNumber;
|
|
1390
|
+
}, z.core.$strip>;
|
|
1391
|
+
url: z.ZodString;
|
|
1392
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1393
|
+
id: z.ZodString;
|
|
1394
|
+
type: z.ZodLiteral<"transform">;
|
|
1395
|
+
position: z.ZodObject<{
|
|
1396
|
+
x: z.ZodNumber;
|
|
1397
|
+
y: z.ZodNumber;
|
|
1398
|
+
}, z.core.$strip>;
|
|
1399
|
+
transforms: z.ZodObject<{
|
|
1400
|
+
query_params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1401
|
+
key: z.ZodString;
|
|
1402
|
+
value: z.ZodString;
|
|
1403
|
+
mode: z.ZodEnum<{
|
|
1404
|
+
set: "set";
|
|
1405
|
+
append: "append";
|
|
1406
|
+
}>;
|
|
1407
|
+
}, z.core.$strip>>>;
|
|
1408
|
+
redirect_status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
1409
|
+
response_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1410
|
+
key: z.ZodString;
|
|
1411
|
+
value: z.ZodString;
|
|
1412
|
+
mode: z.ZodEnum<{
|
|
1413
|
+
set: "set";
|
|
1414
|
+
append: "append";
|
|
1415
|
+
}>;
|
|
1416
|
+
}, z.core.$strip>>>;
|
|
1417
|
+
}, z.core.$strip>;
|
|
1418
|
+
next: z.ZodNullable<z.ZodString>;
|
|
1419
|
+
}, z.core.$strip>], "type">>;
|
|
1420
|
+
}, z.core.$strip>>>;
|
|
1421
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1422
|
+
id: z.ZodString;
|
|
1423
|
+
workspace_id: z.ZodString;
|
|
1424
|
+
name: z.ZodString;
|
|
1425
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1426
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1427
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1428
|
+
}, z.core.$strip>>;
|
|
1323
1429
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1324
|
-
|
|
1430
|
+
deleteLogo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1325
1431
|
workspace_id: z.ZodString;
|
|
1326
|
-
|
|
1432
|
+
link_id: z.ZodString;
|
|
1433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1327
1434
|
id: z.ZodString;
|
|
1328
1435
|
workspace_id: z.ZodString;
|
|
1329
|
-
|
|
1330
|
-
|
|
1436
|
+
domain_id: z.ZodString;
|
|
1437
|
+
created_by_id: z.ZodString;
|
|
1438
|
+
original_url: z.ZodString;
|
|
1439
|
+
short_code: z.ZodString;
|
|
1440
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1441
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1442
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
1443
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
1444
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
1445
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
1446
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
1447
|
+
password: z.ZodNullable<z.ZodString>;
|
|
1448
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1449
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1450
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1451
|
+
is_active: z.ZodBoolean;
|
|
1452
|
+
redirect_type: z.ZodNumber;
|
|
1453
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
1454
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1331
1455
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1332
1456
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1333
|
-
|
|
1334
|
-
|
|
1457
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
1458
|
+
fg_color: z.ZodString;
|
|
1459
|
+
bg_color: z.ZodString;
|
|
1460
|
+
dot_style: z.ZodEnum<{
|
|
1461
|
+
square: "square";
|
|
1462
|
+
dots: "dots";
|
|
1463
|
+
rounded: "rounded";
|
|
1464
|
+
classy: "classy";
|
|
1465
|
+
"classy-rounded": "classy-rounded";
|
|
1466
|
+
"extra-rounded": "extra-rounded";
|
|
1467
|
+
}>;
|
|
1468
|
+
eye_outer_style: z.ZodEnum<{
|
|
1469
|
+
square: "square";
|
|
1470
|
+
"extra-rounded": "extra-rounded";
|
|
1471
|
+
dot: "dot";
|
|
1472
|
+
}>;
|
|
1473
|
+
eye_inner_style: z.ZodEnum<{
|
|
1474
|
+
square: "square";
|
|
1475
|
+
dot: "dot";
|
|
1476
|
+
}>;
|
|
1477
|
+
frame_enabled: z.ZodBoolean;
|
|
1478
|
+
frame_text: z.ZodString;
|
|
1479
|
+
frame_color: z.ZodString;
|
|
1480
|
+
frame_text_color: z.ZodString;
|
|
1481
|
+
}, z.core.$strip>>;
|
|
1482
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
1483
|
+
link_type: z.ZodDefault<z.ZodEnum<{
|
|
1484
|
+
redirect: "redirect";
|
|
1485
|
+
rules: "rules";
|
|
1486
|
+
}>>;
|
|
1487
|
+
rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1488
|
+
entry: z.ZodString;
|
|
1489
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1490
|
+
id: z.ZodString;
|
|
1491
|
+
type: z.ZodLiteral<"condition">;
|
|
1492
|
+
position: z.ZodObject<{
|
|
1493
|
+
x: z.ZodNumber;
|
|
1494
|
+
y: z.ZodNumber;
|
|
1495
|
+
}, z.core.$strip>;
|
|
1496
|
+
field: z.ZodString;
|
|
1497
|
+
operator: z.ZodEnum<{
|
|
1498
|
+
eq: "eq";
|
|
1499
|
+
neq: "neq";
|
|
1500
|
+
in: "in";
|
|
1501
|
+
not_in: "not_in";
|
|
1502
|
+
contains: "contains";
|
|
1503
|
+
not_contains: "not_contains";
|
|
1504
|
+
gt: "gt";
|
|
1505
|
+
lt: "lt";
|
|
1506
|
+
gte: "gte";
|
|
1507
|
+
lte: "lte";
|
|
1508
|
+
regex: "regex";
|
|
1509
|
+
}>;
|
|
1510
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber]>;
|
|
1511
|
+
outputs: z.ZodObject<{
|
|
1512
|
+
true: z.ZodNullable<z.ZodString>;
|
|
1513
|
+
false: z.ZodNullable<z.ZodString>;
|
|
1514
|
+
}, z.core.$strip>;
|
|
1515
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1516
|
+
id: z.ZodString;
|
|
1517
|
+
type: z.ZodLiteral<"split">;
|
|
1518
|
+
position: z.ZodObject<{
|
|
1519
|
+
x: z.ZodNumber;
|
|
1520
|
+
y: z.ZodNumber;
|
|
1521
|
+
}, z.core.$strip>;
|
|
1522
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
1523
|
+
weight: z.ZodNumber;
|
|
1524
|
+
target: z.ZodNullable<z.ZodString>;
|
|
1525
|
+
}, z.core.$strip>>;
|
|
1526
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1527
|
+
id: z.ZodString;
|
|
1528
|
+
type: z.ZodLiteral<"destination">;
|
|
1529
|
+
position: z.ZodObject<{
|
|
1530
|
+
x: z.ZodNumber;
|
|
1531
|
+
y: z.ZodNumber;
|
|
1532
|
+
}, z.core.$strip>;
|
|
1533
|
+
url: z.ZodString;
|
|
1534
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1535
|
+
id: z.ZodString;
|
|
1536
|
+
type: z.ZodLiteral<"transform">;
|
|
1537
|
+
position: z.ZodObject<{
|
|
1538
|
+
x: z.ZodNumber;
|
|
1539
|
+
y: z.ZodNumber;
|
|
1540
|
+
}, z.core.$strip>;
|
|
1541
|
+
transforms: z.ZodObject<{
|
|
1542
|
+
query_params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1543
|
+
key: z.ZodString;
|
|
1544
|
+
value: z.ZodString;
|
|
1545
|
+
mode: z.ZodEnum<{
|
|
1546
|
+
set: "set";
|
|
1547
|
+
append: "append";
|
|
1548
|
+
}>;
|
|
1549
|
+
}, z.core.$strip>>>;
|
|
1550
|
+
redirect_status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
1551
|
+
response_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1552
|
+
key: z.ZodString;
|
|
1553
|
+
value: z.ZodString;
|
|
1554
|
+
mode: z.ZodEnum<{
|
|
1555
|
+
set: "set";
|
|
1556
|
+
append: "append";
|
|
1557
|
+
}>;
|
|
1558
|
+
}, z.core.$strip>>>;
|
|
1559
|
+
}, z.core.$strip>;
|
|
1560
|
+
next: z.ZodNullable<z.ZodString>;
|
|
1561
|
+
}, z.core.$strip>], "type">>;
|
|
1562
|
+
}, z.core.$strip>>>;
|
|
1563
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1564
|
+
id: z.ZodString;
|
|
1565
|
+
workspace_id: z.ZodString;
|
|
1566
|
+
name: z.ZodString;
|
|
1567
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1568
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1569
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1570
|
+
}, z.core.$strip>>;
|
|
1571
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1572
|
+
getJob: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1573
|
+
workspace_id: z.ZodString;
|
|
1574
|
+
job_id: z.ZodString;
|
|
1575
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1576
|
+
id: z.ZodString;
|
|
1577
|
+
workspace_id: z.ZodString;
|
|
1578
|
+
type: z.ZodString;
|
|
1579
|
+
status: z.ZodEnum<{
|
|
1580
|
+
pending: "pending";
|
|
1581
|
+
processing: "processing";
|
|
1582
|
+
completed: "completed";
|
|
1583
|
+
failed: "failed";
|
|
1584
|
+
}>;
|
|
1585
|
+
total_rows: z.ZodNumber;
|
|
1586
|
+
succeeded_count: z.ZodNumber;
|
|
1587
|
+
failed_count: z.ZodNumber;
|
|
1588
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1589
|
+
created_by_id: z.ZodString;
|
|
1590
|
+
created_at: z.ZodDate;
|
|
1591
|
+
completed_at: z.ZodNullable<z.ZodDate>;
|
|
1592
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1593
|
+
jobResults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1594
|
+
workspace_id: z.ZodString;
|
|
1595
|
+
job_id: z.ZodString;
|
|
1596
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1597
|
+
url: z.ZodString;
|
|
1598
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1599
|
+
};
|
|
1600
|
+
export declare const tagsContract: {
|
|
1601
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1602
|
+
workspace_id: z.ZodString;
|
|
1603
|
+
name: z.ZodString;
|
|
1604
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1606
|
+
id: z.ZodString;
|
|
1607
|
+
workspace_id: z.ZodString;
|
|
1608
|
+
name: z.ZodString;
|
|
1609
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1610
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1611
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1612
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1613
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1614
|
+
workspace_id: z.ZodString;
|
|
1615
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1616
|
+
id: z.ZodString;
|
|
1617
|
+
workspace_id: z.ZodString;
|
|
1618
|
+
name: z.ZodString;
|
|
1619
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1620
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1621
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1622
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
1623
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1335
1624
|
workspace_id: z.ZodString;
|
|
1336
1625
|
tag_id: z.ZodString;
|
|
1337
1626
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2096,6 +2385,7 @@ export declare const contract: {
|
|
|
2096
2385
|
frame_color: z.ZodString;
|
|
2097
2386
|
frame_text_color: z.ZodString;
|
|
2098
2387
|
}, z.core.$strip>>;
|
|
2388
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
2099
2389
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
2100
2390
|
redirect: "redirect";
|
|
2101
2391
|
rules: "rules";
|
|
@@ -2268,6 +2558,7 @@ export declare const contract: {
|
|
|
2268
2558
|
frame_color: z.ZodString;
|
|
2269
2559
|
frame_text_color: z.ZodString;
|
|
2270
2560
|
}, z.core.$strip>>;
|
|
2561
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
2271
2562
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
2272
2563
|
redirect: "redirect";
|
|
2273
2564
|
rules: "rules";
|
|
@@ -2362,6 +2653,38 @@ export declare const contract: {
|
|
|
2362
2653
|
per_page: z.ZodNumber;
|
|
2363
2654
|
total_pages: z.ZodNumber;
|
|
2364
2655
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2656
|
+
exportCsv: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2657
|
+
workspace_id: z.ZodString;
|
|
2658
|
+
is_active: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
2659
|
+
true: "true";
|
|
2660
|
+
false: "false";
|
|
2661
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
2662
|
+
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2663
|
+
search: z.ZodOptional<z.ZodString>;
|
|
2664
|
+
domain_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2665
|
+
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
2666
|
+
true: "true";
|
|
2667
|
+
false: "false";
|
|
2668
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
2669
|
+
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
2670
|
+
true: "true";
|
|
2671
|
+
false: "false";
|
|
2672
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
2673
|
+
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
2674
|
+
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
2675
|
+
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
2676
|
+
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
2677
|
+
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
2678
|
+
created_at: "created_at";
|
|
2679
|
+
original_url: "original_url";
|
|
2680
|
+
title: "title";
|
|
2681
|
+
click_count: "click_count";
|
|
2682
|
+
}>>;
|
|
2683
|
+
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
2684
|
+
asc: "asc";
|
|
2685
|
+
desc: "desc";
|
|
2686
|
+
}>>;
|
|
2687
|
+
}, z.core.$strip>, z.ZodCustom<File, File>, Record<never, never>, Record<never, never>>;
|
|
2365
2688
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2366
2689
|
workspace_id: z.ZodString;
|
|
2367
2690
|
link_id: z.ZodString;
|
|
@@ -2414,6 +2737,7 @@ export declare const contract: {
|
|
|
2414
2737
|
frame_color: z.ZodString;
|
|
2415
2738
|
frame_text_color: z.ZodString;
|
|
2416
2739
|
}, z.core.$strip>>;
|
|
2740
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
2417
2741
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
2418
2742
|
redirect: "redirect";
|
|
2419
2743
|
rules: "rules";
|
|
@@ -2677,6 +3001,7 @@ export declare const contract: {
|
|
|
2677
3001
|
frame_color: z.ZodString;
|
|
2678
3002
|
frame_text_color: z.ZodString;
|
|
2679
3003
|
}, z.core.$strip>>;
|
|
3004
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
2680
3005
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
2681
3006
|
redirect: "redirect";
|
|
2682
3007
|
rules: "rules";
|
|
@@ -2770,38 +3095,6 @@ export declare const contract: {
|
|
|
2770
3095
|
workspace_id: z.ZodString;
|
|
2771
3096
|
link_id: z.ZodString;
|
|
2772
3097
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
2773
|
-
exportCsv: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2774
|
-
workspace_id: z.ZodString;
|
|
2775
|
-
is_active: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
2776
|
-
true: "true";
|
|
2777
|
-
false: "false";
|
|
2778
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
2779
|
-
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2780
|
-
search: z.ZodOptional<z.ZodString>;
|
|
2781
|
-
domain_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2782
|
-
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
2783
|
-
true: "true";
|
|
2784
|
-
false: "false";
|
|
2785
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
2786
|
-
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
2787
|
-
true: "true";
|
|
2788
|
-
false: "false";
|
|
2789
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
2790
|
-
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
2791
|
-
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
2792
|
-
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
2793
|
-
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
2794
|
-
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
2795
|
-
created_at: "created_at";
|
|
2796
|
-
original_url: "original_url";
|
|
2797
|
-
title: "title";
|
|
2798
|
-
click_count: "click_count";
|
|
2799
|
-
}>>;
|
|
2800
|
-
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
2801
|
-
asc: "asc";
|
|
2802
|
-
desc: "desc";
|
|
2803
|
-
}>>;
|
|
2804
|
-
}, z.core.$strip>, z.ZodCustom<File, File>, Record<never, never>, Record<never, never>>;
|
|
2805
3098
|
edgeSync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2806
3099
|
workspace_id: z.ZodString;
|
|
2807
3100
|
link_id: z.ZodString;
|
|
@@ -2812,6 +3105,291 @@ export declare const contract: {
|
|
|
2812
3105
|
}, z.core.$strip>, z.ZodObject<{
|
|
2813
3106
|
synced: z.ZodBoolean;
|
|
2814
3107
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
3108
|
+
uploadLogo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3109
|
+
workspace_id: z.ZodString;
|
|
3110
|
+
link_id: z.ZodString;
|
|
3111
|
+
file: z.ZodFile;
|
|
3112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3113
|
+
id: z.ZodString;
|
|
3114
|
+
workspace_id: z.ZodString;
|
|
3115
|
+
domain_id: z.ZodString;
|
|
3116
|
+
created_by_id: z.ZodString;
|
|
3117
|
+
original_url: z.ZodString;
|
|
3118
|
+
short_code: z.ZodString;
|
|
3119
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3120
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3121
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
3122
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
3123
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
3124
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
3125
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
3126
|
+
password: z.ZodNullable<z.ZodString>;
|
|
3127
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3128
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3129
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3130
|
+
is_active: z.ZodBoolean;
|
|
3131
|
+
redirect_type: z.ZodNumber;
|
|
3132
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
3133
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3134
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
3135
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3136
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
3137
|
+
fg_color: z.ZodString;
|
|
3138
|
+
bg_color: z.ZodString;
|
|
3139
|
+
dot_style: z.ZodEnum<{
|
|
3140
|
+
square: "square";
|
|
3141
|
+
dots: "dots";
|
|
3142
|
+
rounded: "rounded";
|
|
3143
|
+
classy: "classy";
|
|
3144
|
+
"classy-rounded": "classy-rounded";
|
|
3145
|
+
"extra-rounded": "extra-rounded";
|
|
3146
|
+
}>;
|
|
3147
|
+
eye_outer_style: z.ZodEnum<{
|
|
3148
|
+
square: "square";
|
|
3149
|
+
"extra-rounded": "extra-rounded";
|
|
3150
|
+
dot: "dot";
|
|
3151
|
+
}>;
|
|
3152
|
+
eye_inner_style: z.ZodEnum<{
|
|
3153
|
+
square: "square";
|
|
3154
|
+
dot: "dot";
|
|
3155
|
+
}>;
|
|
3156
|
+
frame_enabled: z.ZodBoolean;
|
|
3157
|
+
frame_text: z.ZodString;
|
|
3158
|
+
frame_color: z.ZodString;
|
|
3159
|
+
frame_text_color: z.ZodString;
|
|
3160
|
+
}, z.core.$strip>>;
|
|
3161
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
3162
|
+
link_type: z.ZodDefault<z.ZodEnum<{
|
|
3163
|
+
redirect: "redirect";
|
|
3164
|
+
rules: "rules";
|
|
3165
|
+
}>>;
|
|
3166
|
+
rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3167
|
+
entry: z.ZodString;
|
|
3168
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3169
|
+
id: z.ZodString;
|
|
3170
|
+
type: z.ZodLiteral<"condition">;
|
|
3171
|
+
position: z.ZodObject<{
|
|
3172
|
+
x: z.ZodNumber;
|
|
3173
|
+
y: z.ZodNumber;
|
|
3174
|
+
}, z.core.$strip>;
|
|
3175
|
+
field: z.ZodString;
|
|
3176
|
+
operator: z.ZodEnum<{
|
|
3177
|
+
eq: "eq";
|
|
3178
|
+
neq: "neq";
|
|
3179
|
+
in: "in";
|
|
3180
|
+
not_in: "not_in";
|
|
3181
|
+
contains: "contains";
|
|
3182
|
+
not_contains: "not_contains";
|
|
3183
|
+
gt: "gt";
|
|
3184
|
+
lt: "lt";
|
|
3185
|
+
gte: "gte";
|
|
3186
|
+
lte: "lte";
|
|
3187
|
+
regex: "regex";
|
|
3188
|
+
}>;
|
|
3189
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber]>;
|
|
3190
|
+
outputs: z.ZodObject<{
|
|
3191
|
+
true: z.ZodNullable<z.ZodString>;
|
|
3192
|
+
false: z.ZodNullable<z.ZodString>;
|
|
3193
|
+
}, z.core.$strip>;
|
|
3194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3195
|
+
id: z.ZodString;
|
|
3196
|
+
type: z.ZodLiteral<"split">;
|
|
3197
|
+
position: z.ZodObject<{
|
|
3198
|
+
x: z.ZodNumber;
|
|
3199
|
+
y: z.ZodNumber;
|
|
3200
|
+
}, z.core.$strip>;
|
|
3201
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
3202
|
+
weight: z.ZodNumber;
|
|
3203
|
+
target: z.ZodNullable<z.ZodString>;
|
|
3204
|
+
}, z.core.$strip>>;
|
|
3205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3206
|
+
id: z.ZodString;
|
|
3207
|
+
type: z.ZodLiteral<"destination">;
|
|
3208
|
+
position: z.ZodObject<{
|
|
3209
|
+
x: z.ZodNumber;
|
|
3210
|
+
y: z.ZodNumber;
|
|
3211
|
+
}, z.core.$strip>;
|
|
3212
|
+
url: z.ZodString;
|
|
3213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3214
|
+
id: z.ZodString;
|
|
3215
|
+
type: z.ZodLiteral<"transform">;
|
|
3216
|
+
position: z.ZodObject<{
|
|
3217
|
+
x: z.ZodNumber;
|
|
3218
|
+
y: z.ZodNumber;
|
|
3219
|
+
}, z.core.$strip>;
|
|
3220
|
+
transforms: z.ZodObject<{
|
|
3221
|
+
query_params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3222
|
+
key: z.ZodString;
|
|
3223
|
+
value: z.ZodString;
|
|
3224
|
+
mode: z.ZodEnum<{
|
|
3225
|
+
set: "set";
|
|
3226
|
+
append: "append";
|
|
3227
|
+
}>;
|
|
3228
|
+
}, z.core.$strip>>>;
|
|
3229
|
+
redirect_status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
3230
|
+
response_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3231
|
+
key: z.ZodString;
|
|
3232
|
+
value: z.ZodString;
|
|
3233
|
+
mode: z.ZodEnum<{
|
|
3234
|
+
set: "set";
|
|
3235
|
+
append: "append";
|
|
3236
|
+
}>;
|
|
3237
|
+
}, z.core.$strip>>>;
|
|
3238
|
+
}, z.core.$strip>;
|
|
3239
|
+
next: z.ZodNullable<z.ZodString>;
|
|
3240
|
+
}, z.core.$strip>], "type">>;
|
|
3241
|
+
}, z.core.$strip>>>;
|
|
3242
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
3243
|
+
id: z.ZodString;
|
|
3244
|
+
workspace_id: z.ZodString;
|
|
3245
|
+
name: z.ZodString;
|
|
3246
|
+
color: z.ZodNullable<z.ZodString>;
|
|
3247
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
3248
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3249
|
+
}, z.core.$strip>>;
|
|
3250
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
3251
|
+
deleteLogo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3252
|
+
workspace_id: z.ZodString;
|
|
3253
|
+
link_id: z.ZodString;
|
|
3254
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3255
|
+
id: z.ZodString;
|
|
3256
|
+
workspace_id: z.ZodString;
|
|
3257
|
+
domain_id: z.ZodString;
|
|
3258
|
+
created_by_id: z.ZodString;
|
|
3259
|
+
original_url: z.ZodString;
|
|
3260
|
+
short_code: z.ZodString;
|
|
3261
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3262
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3263
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
3264
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
3265
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
3266
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
3267
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
3268
|
+
password: z.ZodNullable<z.ZodString>;
|
|
3269
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3270
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3271
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3272
|
+
is_active: z.ZodBoolean;
|
|
3273
|
+
redirect_type: z.ZodNumber;
|
|
3274
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
3275
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3276
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
3277
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3278
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
3279
|
+
fg_color: z.ZodString;
|
|
3280
|
+
bg_color: z.ZodString;
|
|
3281
|
+
dot_style: z.ZodEnum<{
|
|
3282
|
+
square: "square";
|
|
3283
|
+
dots: "dots";
|
|
3284
|
+
rounded: "rounded";
|
|
3285
|
+
classy: "classy";
|
|
3286
|
+
"classy-rounded": "classy-rounded";
|
|
3287
|
+
"extra-rounded": "extra-rounded";
|
|
3288
|
+
}>;
|
|
3289
|
+
eye_outer_style: z.ZodEnum<{
|
|
3290
|
+
square: "square";
|
|
3291
|
+
"extra-rounded": "extra-rounded";
|
|
3292
|
+
dot: "dot";
|
|
3293
|
+
}>;
|
|
3294
|
+
eye_inner_style: z.ZodEnum<{
|
|
3295
|
+
square: "square";
|
|
3296
|
+
dot: "dot";
|
|
3297
|
+
}>;
|
|
3298
|
+
frame_enabled: z.ZodBoolean;
|
|
3299
|
+
frame_text: z.ZodString;
|
|
3300
|
+
frame_color: z.ZodString;
|
|
3301
|
+
frame_text_color: z.ZodString;
|
|
3302
|
+
}, z.core.$strip>>;
|
|
3303
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
3304
|
+
link_type: z.ZodDefault<z.ZodEnum<{
|
|
3305
|
+
redirect: "redirect";
|
|
3306
|
+
rules: "rules";
|
|
3307
|
+
}>>;
|
|
3308
|
+
rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3309
|
+
entry: z.ZodString;
|
|
3310
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3311
|
+
id: z.ZodString;
|
|
3312
|
+
type: z.ZodLiteral<"condition">;
|
|
3313
|
+
position: z.ZodObject<{
|
|
3314
|
+
x: z.ZodNumber;
|
|
3315
|
+
y: z.ZodNumber;
|
|
3316
|
+
}, z.core.$strip>;
|
|
3317
|
+
field: z.ZodString;
|
|
3318
|
+
operator: z.ZodEnum<{
|
|
3319
|
+
eq: "eq";
|
|
3320
|
+
neq: "neq";
|
|
3321
|
+
in: "in";
|
|
3322
|
+
not_in: "not_in";
|
|
3323
|
+
contains: "contains";
|
|
3324
|
+
not_contains: "not_contains";
|
|
3325
|
+
gt: "gt";
|
|
3326
|
+
lt: "lt";
|
|
3327
|
+
gte: "gte";
|
|
3328
|
+
lte: "lte";
|
|
3329
|
+
regex: "regex";
|
|
3330
|
+
}>;
|
|
3331
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber]>;
|
|
3332
|
+
outputs: z.ZodObject<{
|
|
3333
|
+
true: z.ZodNullable<z.ZodString>;
|
|
3334
|
+
false: z.ZodNullable<z.ZodString>;
|
|
3335
|
+
}, z.core.$strip>;
|
|
3336
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3337
|
+
id: z.ZodString;
|
|
3338
|
+
type: z.ZodLiteral<"split">;
|
|
3339
|
+
position: z.ZodObject<{
|
|
3340
|
+
x: z.ZodNumber;
|
|
3341
|
+
y: z.ZodNumber;
|
|
3342
|
+
}, z.core.$strip>;
|
|
3343
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
3344
|
+
weight: z.ZodNumber;
|
|
3345
|
+
target: z.ZodNullable<z.ZodString>;
|
|
3346
|
+
}, z.core.$strip>>;
|
|
3347
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3348
|
+
id: z.ZodString;
|
|
3349
|
+
type: z.ZodLiteral<"destination">;
|
|
3350
|
+
position: z.ZodObject<{
|
|
3351
|
+
x: z.ZodNumber;
|
|
3352
|
+
y: z.ZodNumber;
|
|
3353
|
+
}, z.core.$strip>;
|
|
3354
|
+
url: z.ZodString;
|
|
3355
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3356
|
+
id: z.ZodString;
|
|
3357
|
+
type: z.ZodLiteral<"transform">;
|
|
3358
|
+
position: z.ZodObject<{
|
|
3359
|
+
x: z.ZodNumber;
|
|
3360
|
+
y: z.ZodNumber;
|
|
3361
|
+
}, z.core.$strip>;
|
|
3362
|
+
transforms: z.ZodObject<{
|
|
3363
|
+
query_params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3364
|
+
key: z.ZodString;
|
|
3365
|
+
value: z.ZodString;
|
|
3366
|
+
mode: z.ZodEnum<{
|
|
3367
|
+
set: "set";
|
|
3368
|
+
append: "append";
|
|
3369
|
+
}>;
|
|
3370
|
+
}, z.core.$strip>>>;
|
|
3371
|
+
redirect_status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
3372
|
+
response_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3373
|
+
key: z.ZodString;
|
|
3374
|
+
value: z.ZodString;
|
|
3375
|
+
mode: z.ZodEnum<{
|
|
3376
|
+
set: "set";
|
|
3377
|
+
append: "append";
|
|
3378
|
+
}>;
|
|
3379
|
+
}, z.core.$strip>>>;
|
|
3380
|
+
}, z.core.$strip>;
|
|
3381
|
+
next: z.ZodNullable<z.ZodString>;
|
|
3382
|
+
}, z.core.$strip>], "type">>;
|
|
3383
|
+
}, z.core.$strip>>>;
|
|
3384
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
3385
|
+
id: z.ZodString;
|
|
3386
|
+
workspace_id: z.ZodString;
|
|
3387
|
+
name: z.ZodString;
|
|
3388
|
+
color: z.ZodNullable<z.ZodString>;
|
|
3389
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
3390
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3391
|
+
}, z.core.$strip>>;
|
|
3392
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2815
3393
|
getJob: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2816
3394
|
workspace_id: z.ZodString;
|
|
2817
3395
|
job_id: z.ZodString;
|