@middlewr/contracts 0.0.47 → 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 +4 -14
- 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 +9 -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 +4 -14
- 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 +9 -0
- package/dist/esm/rules.schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/links.schema.ts +0 -13
- package/src/rules.schema.ts +3 -0
package/dist/esm/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,CA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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/esm/index.js
CHANGED
|
@@ -276,7 +276,10 @@ var EntryNodeSchema = z6.object({
|
|
|
276
276
|
id: z6.string(),
|
|
277
277
|
type: z6.literal("entry"),
|
|
278
278
|
position: PositionSchema,
|
|
279
|
-
next: z6.string().nullable()
|
|
279
|
+
next: z6.string().nullable(),
|
|
280
|
+
starts_at: z6.string().nullable(),
|
|
281
|
+
expires_at: z6.string().nullable(),
|
|
282
|
+
fallback_url: z6.string().nullable()
|
|
280
283
|
});
|
|
281
284
|
var RuleGraphNodeSchema = z6.discriminatedUnion("type", [
|
|
282
285
|
ConditionNodeSchema,
|
|
@@ -403,9 +406,6 @@ var LinkSchema = z9.object({
|
|
|
403
406
|
utm_term: z9.string().nullable(),
|
|
404
407
|
utm_content: z9.string().nullable(),
|
|
405
408
|
password: z9.string().nullable(),
|
|
406
|
-
starts_at: z9.coerce.date().nullable(),
|
|
407
|
-
expires_at: z9.coerce.date().nullable(),
|
|
408
|
-
fallback_url: z9.string().nullable(),
|
|
409
409
|
is_active: z9.boolean(),
|
|
410
410
|
redirect_type: z9.number().int(),
|
|
411
411
|
click_count: z9.coerce.number().int(),
|
|
@@ -431,9 +431,6 @@ var CreateLinkInputSchema = z9.object({
|
|
|
431
431
|
utm_term: z9.string().max(255).optional(),
|
|
432
432
|
utm_content: z9.string().max(255).optional(),
|
|
433
433
|
password: z9.string().min(4).max(100).optional(),
|
|
434
|
-
starts_at: z9.coerce.date().optional(),
|
|
435
|
-
expires_at: z9.coerce.date().optional(),
|
|
436
|
-
fallback_url: z9.string().url().max(2048).optional(),
|
|
437
434
|
redirect_type: z9.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
438
435
|
qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
|
|
439
436
|
tag_ids: z9.array(z9.string().uuid()).optional(),
|
|
@@ -455,9 +452,6 @@ var UpdateLinkInputSchema = z9.object({
|
|
|
455
452
|
utm_term: z9.string().max(255).nullable().optional(),
|
|
456
453
|
utm_content: z9.string().max(255).nullable().optional(),
|
|
457
454
|
password: z9.string().min(4).max(100).nullable().optional(),
|
|
458
|
-
starts_at: z9.coerce.date().nullable().optional(),
|
|
459
|
-
expires_at: z9.coerce.date().nullable().optional(),
|
|
460
|
-
fallback_url: z9.string().url().max(2048).nullable().optional(),
|
|
461
455
|
is_active: z9.boolean().optional(),
|
|
462
456
|
redirect_type: z9.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
463
457
|
qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
|
|
@@ -473,12 +467,8 @@ var LinkFiltersSchema = z9.object({
|
|
|
473
467
|
search: z9.string().optional(),
|
|
474
468
|
domain_ids: z9.array(z9.string().uuid()).optional(),
|
|
475
469
|
is_active: stringToBoolean.optional(),
|
|
476
|
-
has_expiration: stringToBoolean.optional(),
|
|
477
|
-
expired: stringToBoolean.optional(),
|
|
478
470
|
created_from: z9.coerce.date().optional(),
|
|
479
471
|
created_to: z9.coerce.date().optional(),
|
|
480
|
-
expires_from: z9.coerce.date().optional(),
|
|
481
|
-
expires_to: z9.coerce.date().optional(),
|
|
482
472
|
tag_ids: z9.array(z9.string().uuid()).optional(),
|
|
483
473
|
sort_by: z9.enum(["created_at", "title", "click_count", "original_url"]).default("created_at"),
|
|
484
474
|
sort_order: z9.enum(["asc", "desc"]).default("desc"),
|
|
@@ -94,6 +94,9 @@ export declare const LinkTemplateSchema: z.ZodObject<{
|
|
|
94
94
|
y: z.ZodNumber;
|
|
95
95
|
}, z.core.$strip>;
|
|
96
96
|
next: z.ZodNullable<z.ZodString>;
|
|
97
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
98
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
99
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
97
100
|
}, z.core.$strip>], "type">>;
|
|
98
101
|
}, z.core.$strip>>;
|
|
99
102
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -192,6 +195,9 @@ export declare const CreateLinkTemplateInputSchema: z.ZodObject<{
|
|
|
192
195
|
y: z.ZodNumber;
|
|
193
196
|
}, z.core.$strip>;
|
|
194
197
|
next: z.ZodNullable<z.ZodString>;
|
|
198
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
199
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
200
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
195
201
|
}, z.core.$strip>], "type">>;
|
|
196
202
|
}, z.core.$strip>>>;
|
|
197
203
|
}, z.core.$strip>;
|
|
@@ -288,6 +294,9 @@ export declare const UpdateLinkTemplateInputSchema: z.ZodObject<{
|
|
|
288
294
|
y: z.ZodNumber;
|
|
289
295
|
}, z.core.$strip>;
|
|
290
296
|
next: z.ZodNullable<z.ZodString>;
|
|
297
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
298
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
299
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
291
300
|
}, z.core.$strip>], "type">>;
|
|
292
301
|
}, z.core.$strip>>;
|
|
293
302
|
}, z.core.$strip>;
|
|
@@ -392,6 +401,9 @@ export declare const PaginatedLinkTemplatesSchema: z.ZodObject<{
|
|
|
392
401
|
y: z.ZodNumber;
|
|
393
402
|
}, z.core.$strip>;
|
|
394
403
|
next: z.ZodNullable<z.ZodString>;
|
|
404
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
405
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
406
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
395
407
|
}, z.core.$strip>], "type">>;
|
|
396
408
|
}, z.core.$strip>>;
|
|
397
409
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-templates.schema.d.ts","sourceRoot":"","sources":["../../src/link-templates.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"link-templates.schema.d.ts","sourceRoot":"","sources":["../../src/link-templates.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIxC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMvC,CAAC"}
|
|
@@ -40,9 +40,6 @@ export declare const LinkSchema: z.ZodObject<{
|
|
|
40
40
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
41
41
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
42
42
|
password: z.ZodNullable<z.ZodString>;
|
|
43
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
44
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
45
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
46
43
|
is_active: z.ZodBoolean;
|
|
47
44
|
redirect_type: z.ZodNumber;
|
|
48
45
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -171,6 +168,9 @@ export declare const LinkSchema: z.ZodObject<{
|
|
|
171
168
|
y: z.ZodNumber;
|
|
172
169
|
}, z.core.$strip>;
|
|
173
170
|
next: z.ZodNullable<z.ZodString>;
|
|
171
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
172
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
173
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
174
174
|
}, z.core.$strip>], "type">>;
|
|
175
175
|
}, z.core.$strip>>>;
|
|
176
176
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -194,9 +194,6 @@ export declare const CreateLinkInputSchema: z.ZodObject<{
|
|
|
194
194
|
utm_term: z.ZodOptional<z.ZodString>;
|
|
195
195
|
utm_content: z.ZodOptional<z.ZodString>;
|
|
196
196
|
password: z.ZodOptional<z.ZodString>;
|
|
197
|
-
starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
198
|
-
expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
199
|
-
fallback_url: z.ZodOptional<z.ZodString>;
|
|
200
197
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
201
198
|
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
202
199
|
fg_color: z.ZodString;
|
|
@@ -319,6 +316,9 @@ export declare const CreateLinkInputSchema: z.ZodObject<{
|
|
|
319
316
|
y: z.ZodNumber;
|
|
320
317
|
}, z.core.$strip>;
|
|
321
318
|
next: z.ZodNullable<z.ZodString>;
|
|
319
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
320
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
321
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
322
322
|
}, z.core.$strip>], "type">>;
|
|
323
323
|
}, z.core.$strip>>>;
|
|
324
324
|
}, z.core.$strip>;
|
|
@@ -334,9 +334,6 @@ export declare const UpdateLinkInputSchema: z.ZodObject<{
|
|
|
334
334
|
utm_term: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
335
|
utm_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
336
|
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
-
starts_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
338
|
-
expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
339
|
-
fallback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
337
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
341
338
|
redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
342
339
|
qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -460,6 +457,9 @@ export declare const UpdateLinkInputSchema: z.ZodObject<{
|
|
|
460
457
|
y: z.ZodNumber;
|
|
461
458
|
}, z.core.$strip>;
|
|
462
459
|
next: z.ZodNullable<z.ZodString>;
|
|
460
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
461
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
462
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
463
463
|
}, z.core.$strip>], "type">>;
|
|
464
464
|
}, z.core.$strip>>>;
|
|
465
465
|
}, z.core.$strip>;
|
|
@@ -470,18 +470,8 @@ export declare const LinkFiltersSchema: z.ZodObject<{
|
|
|
470
470
|
true: "true";
|
|
471
471
|
false: "false";
|
|
472
472
|
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
473
|
-
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
474
|
-
true: "true";
|
|
475
|
-
false: "false";
|
|
476
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
477
|
-
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
478
|
-
true: "true";
|
|
479
|
-
false: "false";
|
|
480
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
481
473
|
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
482
474
|
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
483
|
-
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
484
|
-
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
485
475
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
486
476
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
487
477
|
created_at: "created_at";
|
|
@@ -504,18 +494,8 @@ export declare const ExportLinksFiltersSchema: z.ZodObject<{
|
|
|
504
494
|
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
505
495
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
506
496
|
domain_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
507
|
-
has_expiration: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
508
|
-
true: "true";
|
|
509
|
-
false: "false";
|
|
510
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
511
|
-
expired: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
512
|
-
true: "true";
|
|
513
|
-
false: "false";
|
|
514
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
515
497
|
created_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
516
498
|
created_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
517
|
-
expires_from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
518
|
-
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
519
499
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
520
500
|
created_at: "created_at";
|
|
521
501
|
title: "title";
|
|
@@ -543,9 +523,6 @@ export declare const PaginatedLinksSchema: z.ZodObject<{
|
|
|
543
523
|
utm_term: z.ZodNullable<z.ZodString>;
|
|
544
524
|
utm_content: z.ZodNullable<z.ZodString>;
|
|
545
525
|
password: z.ZodNullable<z.ZodString>;
|
|
546
|
-
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
547
|
-
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
548
|
-
fallback_url: z.ZodNullable<z.ZodString>;
|
|
549
526
|
is_active: z.ZodBoolean;
|
|
550
527
|
redirect_type: z.ZodNumber;
|
|
551
528
|
click_count: z.ZodCoercedNumber<unknown>;
|
|
@@ -674,6 +651,9 @@ export declare const PaginatedLinksSchema: z.ZodObject<{
|
|
|
674
651
|
y: z.ZodNumber;
|
|
675
652
|
}, z.core.$strip>;
|
|
676
653
|
next: z.ZodNullable<z.ZodString>;
|
|
654
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
655
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
656
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
677
657
|
}, z.core.$strip>], "type">>;
|
|
678
658
|
}, z.core.$strip>>>;
|
|
679
659
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.schema.d.ts","sourceRoot":"","sources":["../../src/links.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;iBAW/B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"links.schema.d.ts","sourceRoot":"","sources":["../../src/links.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;iBAW/B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BrB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8B5B,CAAC;AAEP,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+B5B,CAAC;AAMP,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;iBAW5B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;iBAAyD,CAAC;AAE/F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;iBAYxB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC"}
|
|
@@ -87,6 +87,9 @@ export declare const RuleGraphNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
87
87
|
y: z.ZodNumber;
|
|
88
88
|
}, z.core.$strip>;
|
|
89
89
|
next: z.ZodNullable<z.ZodString>;
|
|
90
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
91
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
92
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
90
93
|
}, z.core.$strip>], "type">;
|
|
91
94
|
export declare const RuleGraphOutputSchema: z.ZodObject<{
|
|
92
95
|
entry: z.ZodString;
|
|
@@ -178,6 +181,9 @@ export declare const RuleGraphOutputSchema: z.ZodObject<{
|
|
|
178
181
|
y: z.ZodNumber;
|
|
179
182
|
}, z.core.$strip>;
|
|
180
183
|
next: z.ZodNullable<z.ZodString>;
|
|
184
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
185
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
186
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
181
187
|
}, z.core.$strip>], "type">>;
|
|
182
188
|
}, z.core.$strip>;
|
|
183
189
|
export declare const RuleGraphSchema: z.ZodObject<{
|
|
@@ -270,6 +276,9 @@ export declare const RuleGraphSchema: z.ZodObject<{
|
|
|
270
276
|
y: z.ZodNumber;
|
|
271
277
|
}, z.core.$strip>;
|
|
272
278
|
next: z.ZodNullable<z.ZodString>;
|
|
279
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
280
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
281
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
273
282
|
}, z.core.$strip>], "type">>;
|
|
274
283
|
}, z.core.$strip>;
|
|
275
284
|
//# sourceMappingURL=rules.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.schema.d.ts","sourceRoot":"","sources":["../../src/rules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"rules.schema.d.ts","sourceRoot":"","sources":["../../src/rules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkGxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAO9B,CAAC;AAOH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBvB,CAAC"}
|
package/package.json
CHANGED
package/src/links.schema.ts
CHANGED
|
@@ -35,9 +35,6 @@ export const LinkSchema = z.object({
|
|
|
35
35
|
utm_term: z.string().nullable(),
|
|
36
36
|
utm_content: z.string().nullable(),
|
|
37
37
|
password: z.string().nullable(),
|
|
38
|
-
starts_at: z.coerce.date().nullable(),
|
|
39
|
-
expires_at: z.coerce.date().nullable(),
|
|
40
|
-
fallback_url: z.string().nullable(),
|
|
41
38
|
is_active: z.boolean(),
|
|
42
39
|
redirect_type: z.number().int(),
|
|
43
40
|
click_count: z.coerce.number().int(),
|
|
@@ -70,9 +67,6 @@ export const CreateLinkInputSchema = z
|
|
|
70
67
|
utm_term: z.string().max(255).optional(),
|
|
71
68
|
utm_content: z.string().max(255).optional(),
|
|
72
69
|
password: z.string().min(4).max(100).optional(),
|
|
73
|
-
starts_at: z.coerce.date().optional(),
|
|
74
|
-
expires_at: z.coerce.date().optional(),
|
|
75
|
-
fallback_url: z.string().url().max(2048).optional(),
|
|
76
70
|
redirect_type: z.coerce
|
|
77
71
|
.number()
|
|
78
72
|
.refine((v) => [301, 302, 307, 308].includes(v))
|
|
@@ -105,9 +99,6 @@ export const UpdateLinkInputSchema = z
|
|
|
105
99
|
utm_term: z.string().max(255).nullable().optional(),
|
|
106
100
|
utm_content: z.string().max(255).nullable().optional(),
|
|
107
101
|
password: z.string().min(4).max(100).nullable().optional(),
|
|
108
|
-
starts_at: z.coerce.date().nullable().optional(),
|
|
109
|
-
expires_at: z.coerce.date().nullable().optional(),
|
|
110
|
-
fallback_url: z.string().url().max(2048).nullable().optional(),
|
|
111
102
|
is_active: z.boolean().optional(),
|
|
112
103
|
redirect_type: z.coerce
|
|
113
104
|
.number()
|
|
@@ -131,12 +122,8 @@ export const LinkFiltersSchema = z.object({
|
|
|
131
122
|
search: z.string().optional(),
|
|
132
123
|
domain_ids: z.array(z.string().uuid()).optional(),
|
|
133
124
|
is_active: stringToBoolean.optional(),
|
|
134
|
-
has_expiration: stringToBoolean.optional(),
|
|
135
|
-
expired: stringToBoolean.optional(),
|
|
136
125
|
created_from: z.coerce.date().optional(),
|
|
137
126
|
created_to: z.coerce.date().optional(),
|
|
138
|
-
expires_from: z.coerce.date().optional(),
|
|
139
|
-
expires_to: z.coerce.date().optional(),
|
|
140
127
|
tag_ids: z.array(z.string().uuid()).optional(),
|
|
141
128
|
sort_by: z.enum(['created_at', 'title', 'click_count', 'original_url']).default('created_at'),
|
|
142
129
|
sort_order: z.enum(['asc', 'desc']).default('desc'),
|
package/src/rules.schema.ts
CHANGED
|
@@ -91,6 +91,9 @@ const EntryNodeSchema = z.object({
|
|
|
91
91
|
type: z.literal('entry'),
|
|
92
92
|
position: PositionSchema,
|
|
93
93
|
next: z.string().nullable(),
|
|
94
|
+
starts_at: z.string().nullable(),
|
|
95
|
+
expires_at: z.string().nullable(),
|
|
96
|
+
fallback_url: z.string().nullable(),
|
|
94
97
|
});
|
|
95
98
|
|
|
96
99
|
export const RuleGraphNodeSchema = z.discriminatedUnion('type', [
|