@tmlmobilidade/go-types-shared 20260829.1628.14 → 20260830.2222.56
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/datetime/date-format.d.ts +1 -1
- package/dist/datetime/date-format.js +4 -1
- package/dist/datetime/time-slot.d.ts +1 -1
- package/dist/datetime/time-slot.js +4 -1
- package/dist/documents/proposed-change.d.ts +6 -6
- package/dist/status/approval.d.ts +1 -1
- package/dist/status/approval.js +4 -1
- package/dist/status/availability.d.ts +1 -1
- package/dist/status/availability.js +4 -1
- package/dist/status/condition.d.ts +1 -1
- package/dist/status/condition.js +4 -1
- package/dist/status/delay.d.ts +2 -2
- package/dist/status/delay.js +8 -2
- package/dist/status/grade.d.ts +2 -2
- package/dist/status/grade.js +8 -2
- package/dist/status/index.d.ts +1 -0
- package/dist/status/index.js +1 -0
- package/dist/status/lifecycle.d.ts +1 -1
- package/dist/status/lifecycle.js +4 -1
- package/dist/status/operational.d.ts +1 -1
- package/dist/status/operational.js +4 -1
- package/dist/status/processing.d.ts +1 -1
- package/dist/status/processing.js +4 -1
- package/dist/status/publish.d.ts +1 -1
- package/dist/status/publish.js +4 -1
- package/dist/status/seen.d.ts +1 -1
- package/dist/status/seen.js +4 -1
- package/dist/status/severity.d.ts +1 -1
- package/dist/status/severity.js +4 -1
- package/dist/status/system.d.ts +1 -1
- package/dist/status/system.js +4 -1
- package/dist/status/temporal.d.ts +7 -0
- package/dist/status/temporal.js +18 -0
- package/dist/status/ticketing.d.ts +1 -1
- package/dist/status/ticketing.js +4 -1
- package/dist/status/validity.d.ts +1 -1
- package/dist/status/validity.js +4 -1
- package/dist/theme/mode.d.ts +2 -2
- package/dist/theme/mode.js +8 -2
- package/dist/theme/scheme.d.ts +1 -1
- package/dist/theme/scheme.js +4 -1
- package/dist/utils/language-tag.d.ts +1 -1
- package/dist/utils/language-tag.js +4 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const DateFormatValues: readonly ["full", "short", "only_time", "only_time_with_seconds", "only_date", "iso"];
|
|
3
|
-
export declare const DateFormatSchema: z.ZodEnum<["full", "short", "only_time", "only_time_with_seconds", "only_date", "iso"]
|
|
3
|
+
export declare const DateFormatSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["full", "short", "only_time", "only_time_with_seconds", "only_date", "iso"]>>;
|
|
4
4
|
/**
|
|
5
5
|
* A date format.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const TimeSlotValues: readonly ["1s", "5s", "10s", "30s", "1m", "5m", "10m", "15m", "30m", "1h", "2h", "3h", "6h", "12h", "24h"];
|
|
3
|
-
export declare const TimeSlotSchema: z.ZodEnum<["1s", "5s", "10s", "30s", "1m", "5m", "10m", "15m", "30m", "1h", "2h", "3h", "6h", "12h", "24h"]
|
|
3
|
+
export declare const TimeSlotSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["1s", "5s", "10s", "30s", "1m", "5m", "10m", "15m", "30m", "1h", "2h", "3h", "6h", "12h", "24h"]>>;
|
|
4
4
|
/**
|
|
5
5
|
* A time slot in human readable format.
|
|
6
6
|
*/
|
|
@@ -18,7 +18,10 @@ export const TimeSlotValues = [
|
|
|
18
18
|
'12h',
|
|
19
19
|
'24h',
|
|
20
20
|
];
|
|
21
|
-
export const TimeSlotSchema = z
|
|
21
|
+
export const TimeSlotSchema = z
|
|
22
|
+
.string()
|
|
23
|
+
.transform(value => String(value).toLowerCase())
|
|
24
|
+
.pipe(z.enum(TimeSlotValues));
|
|
22
25
|
/* * */
|
|
23
26
|
export const TimeSlotMap = {
|
|
24
27
|
'10m': 600_000,
|
|
@@ -15,7 +15,7 @@ export declare const ProposedChangeSchema: z.ZodObject<{
|
|
|
15
15
|
field: z.ZodString;
|
|
16
16
|
related_id: z.ZodString;
|
|
17
17
|
scope: z.ZodEnum<["stop", "lines"]>;
|
|
18
|
-
status: z.ZodEnum<["pending", "approved", "rejected", "none"]
|
|
18
|
+
status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["pending", "approved", "rejected", "none"]>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
status: "pending" | "approved" | "rejected" | "none";
|
|
21
21
|
_id: string;
|
|
@@ -33,7 +33,7 @@ export declare const ProposedChangeSchema: z.ZodObject<{
|
|
|
33
33
|
updated_by?: string | undefined;
|
|
34
34
|
curr_value?: any;
|
|
35
35
|
}, {
|
|
36
|
-
status:
|
|
36
|
+
status: string;
|
|
37
37
|
_id: string;
|
|
38
38
|
created_at: string | number;
|
|
39
39
|
updated_at: string | number;
|
|
@@ -71,7 +71,7 @@ export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
|
|
|
71
71
|
field: z.ZodString;
|
|
72
72
|
related_id: z.ZodString;
|
|
73
73
|
scope: z.ZodEnum<["stop", "lines"]>;
|
|
74
|
-
status: z.ZodEnum<["pending", "approved", "rejected", "none"]
|
|
74
|
+
status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["pending", "approved", "rejected", "none"]>>;
|
|
75
75
|
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
76
76
|
status: "pending" | "approved" | "rejected" | "none";
|
|
77
77
|
created_by: string | null;
|
|
@@ -82,7 +82,7 @@ export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
|
|
|
82
82
|
updated_by?: string | undefined;
|
|
83
83
|
curr_value?: any;
|
|
84
84
|
}, {
|
|
85
|
-
status:
|
|
85
|
+
status: string;
|
|
86
86
|
field: string;
|
|
87
87
|
related_id: string;
|
|
88
88
|
scope: "stop" | "lines";
|
|
@@ -92,7 +92,7 @@ export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
|
|
|
92
92
|
curr_value?: any;
|
|
93
93
|
}>;
|
|
94
94
|
export declare const UpdateProposedChangeSchema: z.ZodObject<{
|
|
95
|
-
status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected", "none"]
|
|
95
|
+
status: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["pending", "approved", "rejected", "none"]>>>;
|
|
96
96
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
97
97
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
98
98
|
curr_value: z.ZodOptional<z.ZodAny>;
|
|
@@ -108,7 +108,7 @@ export declare const UpdateProposedChangeSchema: z.ZodObject<{
|
|
|
108
108
|
related_id?: string | undefined;
|
|
109
109
|
scope?: "stop" | "lines" | undefined;
|
|
110
110
|
}, {
|
|
111
|
-
status?:
|
|
111
|
+
status?: string | undefined;
|
|
112
112
|
is_locked?: boolean | undefined;
|
|
113
113
|
updated_by?: string | undefined;
|
|
114
114
|
curr_value?: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ApprovalStatusValues: readonly ["pending", "approved", "rejected", "none"];
|
|
3
|
-
export declare const ApprovalStatusSchema: z.ZodEnum<["pending", "approved", "rejected", "none"]
|
|
3
|
+
export declare const ApprovalStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["pending", "approved", "rejected", "none"]>>;
|
|
4
4
|
export type ApprovalStatus = z.infer<typeof ApprovalStatusSchema>;
|
package/dist/status/approval.js
CHANGED
|
@@ -7,4 +7,7 @@ export const ApprovalStatusValues = [
|
|
|
7
7
|
'rejected',
|
|
8
8
|
'none',
|
|
9
9
|
];
|
|
10
|
-
export const ApprovalStatusSchema = z
|
|
10
|
+
export const ApprovalStatusSchema = z
|
|
11
|
+
.string()
|
|
12
|
+
.transform(value => String(value).toLowerCase())
|
|
13
|
+
.pipe(z.enum(ApprovalStatusValues));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AvailabilityStatusValues: readonly ["available", "unavailable", "unknown"];
|
|
3
|
-
export declare const AvailabilityStatusSchema: z.ZodEnum<["available", "unavailable", "unknown"]
|
|
3
|
+
export declare const AvailabilityStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["available", "unavailable", "unknown"]>>;
|
|
4
4
|
export type AvailabilityStatus = z.infer<typeof AvailabilityStatusSchema>;
|
|
@@ -6,4 +6,7 @@ export const AvailabilityStatusValues = [
|
|
|
6
6
|
'unavailable',
|
|
7
7
|
'unknown',
|
|
8
8
|
];
|
|
9
|
-
export const AvailabilityStatusSchema = z
|
|
9
|
+
export const AvailabilityStatusSchema = z
|
|
10
|
+
.string()
|
|
11
|
+
.transform(value => String(value).toLowerCase())
|
|
12
|
+
.pipe(z.enum(AvailabilityStatusValues));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ConditionStatusValues: readonly ["not_applicable", "unknown", "missing", "damaged", "ok"];
|
|
3
|
-
export declare const ConditionStatusSchema: z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]
|
|
3
|
+
export declare const ConditionStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
|
|
4
4
|
export type ConditionStatus = z.infer<typeof ConditionStatusSchema>;
|
package/dist/status/condition.js
CHANGED
|
@@ -8,4 +8,7 @@ export const ConditionStatusValues = [
|
|
|
8
8
|
'damaged',
|
|
9
9
|
'ok',
|
|
10
10
|
];
|
|
11
|
-
export const ConditionStatusSchema = z
|
|
11
|
+
export const ConditionStatusSchema = z
|
|
12
|
+
.string()
|
|
13
|
+
.transform(value => String(value).toLowerCase())
|
|
14
|
+
.pipe(z.enum(ConditionStatusValues));
|
package/dist/status/delay.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const DelayStatusValues: readonly ["ontime", "delayed", "early"];
|
|
3
|
-
export declare const DelayStatusSchema: z.ZodEnum<["ontime", "delayed", "early"]
|
|
3
|
+
export declare const DelayStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ontime", "delayed", "early"]>>;
|
|
4
4
|
export type DelayStatus = z.infer<typeof DelayStatusSchema>;
|
|
5
5
|
export declare const DelayStatusFilterValues: readonly ["ontime", "delayed", "early", "none"];
|
|
6
|
-
export declare const DelayStatusFilterSchema: z.ZodEnum<["ontime", "delayed", "early", "none"]
|
|
6
|
+
export declare const DelayStatusFilterSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ontime", "delayed", "early", "none"]>>;
|
|
7
7
|
export type DelayStatusFilter = z.infer<typeof DelayStatusFilterSchema>;
|
package/dist/status/delay.js
CHANGED
|
@@ -6,7 +6,13 @@ export const DelayStatusValues = [
|
|
|
6
6
|
'delayed',
|
|
7
7
|
'early',
|
|
8
8
|
];
|
|
9
|
-
export const DelayStatusSchema = z
|
|
9
|
+
export const DelayStatusSchema = z
|
|
10
|
+
.string()
|
|
11
|
+
.transform(value => String(value).toLowerCase())
|
|
12
|
+
.pipe(z.enum(DelayStatusValues));
|
|
10
13
|
/* * */
|
|
11
14
|
export const DelayStatusFilterValues = [...DelayStatusValues, 'none'];
|
|
12
|
-
export const DelayStatusFilterSchema = z
|
|
15
|
+
export const DelayStatusFilterSchema = z
|
|
16
|
+
.string()
|
|
17
|
+
.transform(value => String(value).toLowerCase())
|
|
18
|
+
.pipe(z.enum(DelayStatusFilterValues));
|
package/dist/status/grade.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const GradeStatusValues: readonly ["skip", "pass", "fail", "error"];
|
|
3
|
-
export declare const GradeStatusSchema: z.ZodEnum<["skip", "pass", "fail", "error"]
|
|
3
|
+
export declare const GradeStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
|
|
4
4
|
export type GradeStatus = z.infer<typeof GradeStatusSchema>;
|
|
5
5
|
export declare const GradeStatusFilterValues: readonly ["skip", "pass", "fail", "error", "none"];
|
|
6
|
-
export declare const GradeStatusFilterSchema: z.ZodEnum<["skip", "pass", "fail", "error", "none"]
|
|
6
|
+
export declare const GradeStatusFilterSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error", "none"]>>;
|
|
7
7
|
export type GradeStatusFilter = z.infer<typeof GradeStatusFilterSchema>;
|
package/dist/status/grade.js
CHANGED
|
@@ -7,7 +7,13 @@ export const GradeStatusValues = [
|
|
|
7
7
|
'fail',
|
|
8
8
|
'error',
|
|
9
9
|
];
|
|
10
|
-
export const GradeStatusSchema = z
|
|
10
|
+
export const GradeStatusSchema = z
|
|
11
|
+
.string()
|
|
12
|
+
.transform(value => String(value).toLowerCase())
|
|
13
|
+
.pipe(z.enum(GradeStatusValues));
|
|
11
14
|
/* * */
|
|
12
15
|
export const GradeStatusFilterValues = [...GradeStatusValues, 'none'];
|
|
13
|
-
export const GradeStatusFilterSchema = z
|
|
16
|
+
export const GradeStatusFilterSchema = z
|
|
17
|
+
.string()
|
|
18
|
+
.transform(value => String(value).toLowerCase())
|
|
19
|
+
.pipe(z.enum(GradeStatusFilterValues));
|
package/dist/status/index.d.ts
CHANGED
package/dist/status/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const LifecycleStatusValues: readonly ["draft", "active", "inactive", "provisional", "seasonal", "voided"];
|
|
3
|
-
export declare const LifecycleStatusSchema: z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]
|
|
3
|
+
export declare const LifecycleStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
|
|
4
4
|
export type LifecycleStatus = z.infer<typeof LifecycleStatusSchema>;
|
package/dist/status/lifecycle.js
CHANGED
|
@@ -9,4 +9,7 @@ export const LifecycleStatusValues = [
|
|
|
9
9
|
'seasonal',
|
|
10
10
|
'voided',
|
|
11
11
|
];
|
|
12
|
-
export const LifecycleStatusSchema = z
|
|
12
|
+
export const LifecycleStatusSchema = z
|
|
13
|
+
.string()
|
|
14
|
+
.transform(value => String(value).toLowerCase())
|
|
15
|
+
.pipe(z.enum(LifecycleStatusValues));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const OperationalStatusValues: readonly ["ended", "missed", "running", "scheduled"];
|
|
3
|
-
export declare const OperationalStatusSchema: z.ZodEnum<["ended", "missed", "running", "scheduled"]
|
|
3
|
+
export declare const OperationalStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ended", "missed", "running", "scheduled"]>>;
|
|
4
4
|
export type OperationalStatus = z.infer<typeof OperationalStatusSchema>;
|
|
@@ -7,4 +7,7 @@ export const OperationalStatusValues = [
|
|
|
7
7
|
'running',
|
|
8
8
|
'scheduled',
|
|
9
9
|
];
|
|
10
|
-
export const OperationalStatusSchema = z
|
|
10
|
+
export const OperationalStatusSchema = z
|
|
11
|
+
.string()
|
|
12
|
+
.transform(value => String(value).toLowerCase())
|
|
13
|
+
.pipe(z.enum(OperationalStatusValues));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ProcessingStatusValues: readonly ["waiting", "processing", "complete", "error", "skipped"];
|
|
3
|
-
export declare const ProcessingStatusSchema: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]
|
|
3
|
+
export declare const ProcessingStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
|
|
4
4
|
export type ProcessingStatus = z.infer<typeof ProcessingStatusSchema>;
|
|
@@ -8,4 +8,7 @@ export const ProcessingStatusValues = [
|
|
|
8
8
|
'error',
|
|
9
9
|
'skipped',
|
|
10
10
|
];
|
|
11
|
-
export const ProcessingStatusSchema = z
|
|
11
|
+
export const ProcessingStatusSchema = z
|
|
12
|
+
.string()
|
|
13
|
+
.transform(value => String(value).toLowerCase())
|
|
14
|
+
.pipe(z.enum(ProcessingStatusValues));
|
package/dist/status/publish.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const PublishStatusValues: readonly ["published", "archived", "draft"];
|
|
3
|
-
export declare const PublishStatusSchema: z.ZodEnum<["published", "archived", "draft"]
|
|
3
|
+
export declare const PublishStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["published", "archived", "draft"]>>;
|
|
4
4
|
export type PublishStatus = z.infer<typeof PublishStatusSchema>;
|
package/dist/status/publish.js
CHANGED
|
@@ -6,4 +6,7 @@ export const PublishStatusValues = [
|
|
|
6
6
|
'archived',
|
|
7
7
|
'draft',
|
|
8
8
|
];
|
|
9
|
-
export const PublishStatusSchema = z
|
|
9
|
+
export const PublishStatusSchema = z
|
|
10
|
+
.string()
|
|
11
|
+
.transform(value => String(value).toLowerCase())
|
|
12
|
+
.pipe(z.enum(PublishStatusValues));
|
package/dist/status/seen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const SeenStatusValues: readonly ["unseen", "seen", "gone"];
|
|
3
|
-
export declare const SeenStatusSchema: z.ZodEnum<["unseen", "seen", "gone"]
|
|
3
|
+
export declare const SeenStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["unseen", "seen", "gone"]>>;
|
|
4
4
|
export type SeenStatus = z.infer<typeof SeenStatusSchema>;
|
package/dist/status/seen.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const SeverityStatusValues: readonly ["ignore", "info", "warning", "error", "forbidden"];
|
|
3
|
-
export declare const SeverityStatusSchema: z.ZodEnum<["ignore", "info", "warning", "error", "forbidden"]
|
|
3
|
+
export declare const SeverityStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ignore", "info", "warning", "error", "forbidden"]>>;
|
|
4
4
|
export type SeverityStatus = z.infer<typeof SeverityStatusSchema>;
|
package/dist/status/severity.js
CHANGED
|
@@ -8,4 +8,7 @@ export const SeverityStatusValues = [
|
|
|
8
8
|
'error',
|
|
9
9
|
'forbidden',
|
|
10
10
|
];
|
|
11
|
-
export const SeverityStatusSchema = z
|
|
11
|
+
export const SeverityStatusSchema = z
|
|
12
|
+
.string()
|
|
13
|
+
.transform(value => String(value).toLowerCase())
|
|
14
|
+
.pipe(z.enum(SeverityStatusValues));
|
package/dist/status/system.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const SystemStatusValues: readonly ["waiting", "incomplete", "com
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use ProcessingStatusSchema instead
|
|
8
8
|
*/
|
|
9
|
-
export declare const SystemStatusSchema: z.ZodEnum<["waiting", "incomplete", "complete", "error"]
|
|
9
|
+
export declare const SystemStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "incomplete", "complete", "error"]>>;
|
|
10
10
|
/**
|
|
11
11
|
* @deprecated Use ProcessingStatus instead
|
|
12
12
|
*/
|
package/dist/status/system.js
CHANGED
|
@@ -12,4 +12,7 @@ export const SystemStatusValues = [
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated Use ProcessingStatusSchema instead
|
|
14
14
|
*/
|
|
15
|
-
export const SystemStatusSchema = z
|
|
15
|
+
export const SystemStatusSchema = z
|
|
16
|
+
.string()
|
|
17
|
+
.transform(value => String(value).toLowerCase())
|
|
18
|
+
.pipe(z.enum(SystemStatusValues));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TemporalStatusValues: readonly ["active", "expired", "upcoming"];
|
|
3
|
+
export declare const TemporalStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["active", "expired", "upcoming"]>>;
|
|
4
|
+
export type TemporalStatus = z.infer<typeof TemporalStatusSchema>;
|
|
5
|
+
export declare const TemporalStatusFilterValues: readonly ["active", "expired", "upcoming", "none"];
|
|
6
|
+
export declare const TemporalStatusFilterSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["active", "expired", "upcoming", "none"]>>;
|
|
7
|
+
export type TemporalStatusFilter = z.infer<typeof TemporalStatusFilterSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/* * */
|
|
4
|
+
export const TemporalStatusValues = [
|
|
5
|
+
'active',
|
|
6
|
+
'expired',
|
|
7
|
+
'upcoming',
|
|
8
|
+
];
|
|
9
|
+
export const TemporalStatusSchema = z
|
|
10
|
+
.string()
|
|
11
|
+
.transform(value => String(value).toLowerCase())
|
|
12
|
+
.pipe(z.enum(TemporalStatusValues));
|
|
13
|
+
/* * */
|
|
14
|
+
export const TemporalStatusFilterValues = [...TemporalStatusValues, 'none'];
|
|
15
|
+
export const TemporalStatusFilterSchema = z
|
|
16
|
+
.string()
|
|
17
|
+
.transform(value => String(value).toLowerCase())
|
|
18
|
+
.pipe(z.enum(TemporalStatusFilterValues));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const TicketingStatusValues: readonly ["has_ticketing", "no_ticketing"];
|
|
3
|
-
export declare const TicketingStatusSchema: z.ZodEnum<["has_ticketing", "no_ticketing"]
|
|
3
|
+
export declare const TicketingStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["has_ticketing", "no_ticketing"]>>;
|
|
4
4
|
export type TicketingStatus = z.infer<typeof TicketingStatusSchema>;
|
package/dist/status/ticketing.js
CHANGED
|
@@ -5,4 +5,7 @@ export const TicketingStatusValues = [
|
|
|
5
5
|
'has_ticketing',
|
|
6
6
|
'no_ticketing',
|
|
7
7
|
];
|
|
8
|
-
export const TicketingStatusSchema = z
|
|
8
|
+
export const TicketingStatusSchema = z
|
|
9
|
+
.string()
|
|
10
|
+
.transform(value => String(value).toLowerCase())
|
|
11
|
+
.pipe(z.enum(TicketingStatusValues));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ValidityStatusValues: readonly ["valid", "invalid", "unknown"];
|
|
3
|
-
export declare const ValidityStatusSchema: z.ZodEnum<["valid", "invalid", "unknown"]
|
|
3
|
+
export declare const ValidityStatusSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["valid", "invalid", "unknown"]>>;
|
|
4
4
|
export type ValidityStatus = z.infer<typeof ValidityStatusSchema>;
|
package/dist/status/validity.js
CHANGED
|
@@ -6,4 +6,7 @@ export const ValidityStatusValues = [
|
|
|
6
6
|
'invalid',
|
|
7
7
|
'unknown',
|
|
8
8
|
];
|
|
9
|
-
export const ValidityStatusSchema = z
|
|
9
|
+
export const ValidityStatusSchema = z
|
|
10
|
+
.string()
|
|
11
|
+
.transform(value => String(value).toLowerCase())
|
|
12
|
+
.pipe(z.enum(ValidityStatusValues));
|
package/dist/theme/mode.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ThemeModeValues: readonly ["light", "dark"];
|
|
3
|
-
export declare const ThemeModeSchema: z.ZodEnum<["light", "dark"]
|
|
3
|
+
export declare const ThemeModeSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["light", "dark"]>>;
|
|
4
4
|
export type ThemeMode = z.infer<typeof ThemeModeSchema>;
|
|
5
5
|
export declare const ThemeModePreferenceValues: readonly ["light", "dark", "system"];
|
|
6
|
-
export declare const ThemeModePreferenceSchema: z.ZodEnum<["light", "dark", "system"]
|
|
6
|
+
export declare const ThemeModePreferenceSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["light", "dark", "system"]>>;
|
|
7
7
|
export type ThemeModePreference = z.infer<typeof ThemeModePreferenceSchema>;
|
package/dist/theme/mode.js
CHANGED
|
@@ -5,10 +5,16 @@ export const ThemeModeValues = [
|
|
|
5
5
|
'light',
|
|
6
6
|
'dark',
|
|
7
7
|
];
|
|
8
|
-
export const ThemeModeSchema = z
|
|
8
|
+
export const ThemeModeSchema = z
|
|
9
|
+
.string()
|
|
10
|
+
.transform(value => String(value).toLowerCase())
|
|
11
|
+
.pipe(z.enum(ThemeModeValues));
|
|
9
12
|
/* * */
|
|
10
13
|
export const ThemeModePreferenceValues = [
|
|
11
14
|
...ThemeModeValues,
|
|
12
15
|
'system',
|
|
13
16
|
];
|
|
14
|
-
export const ThemeModePreferenceSchema = z
|
|
17
|
+
export const ThemeModePreferenceSchema = z
|
|
18
|
+
.string()
|
|
19
|
+
.transform(value => String(value).toLowerCase())
|
|
20
|
+
.pipe(z.enum(ThemeModePreferenceValues));
|
package/dist/theme/scheme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ThemeSchemeValues: readonly ["park", "ocean"];
|
|
3
|
-
export declare const ThemeSchemeSchema: z.ZodEnum<["park", "ocean"]
|
|
3
|
+
export declare const ThemeSchemeSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["park", "ocean"]>>;
|
|
4
4
|
export type ThemeScheme = z.infer<typeof ThemeSchemeSchema>;
|
package/dist/theme/scheme.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const LanguageTagValues: readonly ["pt", "es", "en"];
|
|
3
|
-
export declare const LanguageTagSchema: z.ZodEnum<["pt", "es", "en"]
|
|
3
|
+
export declare const LanguageTagSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["pt", "es", "en"]>>;
|
|
4
4
|
/**
|
|
5
5
|
* A language tag as defined by the IANA language subtag registry.
|
|
6
6
|
* @see https://www.w3.org/International/articles/language-tags
|