@tmlmobilidade/types 20251009.1641.12 → 20251009.1648.44
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.
|
@@ -1,54 +1,37 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const TimeGranularitySchema: z.ZodEnum<["daily", "monthly", "yearly", "custom"]>;
|
|
3
|
-
export type TimeGranularity = z.infer<typeof TimeGranularitySchema>;
|
|
4
|
-
export declare const MetricScopeSchema: z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>;
|
|
5
|
-
export type MetricScope = z.infer<typeof MetricScopeSchema>;
|
|
6
|
-
export declare const MetricsSchema: z.ZodEnum<["demand_by_line"]>;
|
|
7
|
-
export type Metrics = z.infer<typeof MetricsSchema>;
|
|
8
2
|
export declare const MetricBasePropertiesSchema: z.ZodObject<{
|
|
9
3
|
interval: z.ZodNumber;
|
|
10
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
11
4
|
}, "strip", z.ZodTypeAny, {
|
|
12
5
|
interval: number;
|
|
13
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
14
6
|
}, {
|
|
15
7
|
interval: number;
|
|
16
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
17
8
|
}>;
|
|
18
9
|
export declare const MetricBaseSchema: z.ZodObject<{
|
|
19
10
|
_id: z.ZodString;
|
|
20
11
|
description: z.ZodOptional<z.ZodString>;
|
|
21
12
|
generated_at: z.ZodDate;
|
|
22
|
-
metric: z.
|
|
13
|
+
metric: z.ZodString;
|
|
23
14
|
properties: z.ZodObject<{
|
|
24
15
|
interval: z.ZodNumber;
|
|
25
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
26
16
|
}, "strip", z.ZodTypeAny, {
|
|
27
17
|
interval: number;
|
|
28
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
29
18
|
}, {
|
|
30
19
|
interval: number;
|
|
31
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
32
20
|
}>;
|
|
33
|
-
scope: z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>;
|
|
34
21
|
}, "strip", z.ZodTypeAny, {
|
|
35
22
|
_id: string;
|
|
36
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
37
23
|
properties: {
|
|
38
24
|
interval: number;
|
|
39
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
40
25
|
};
|
|
41
26
|
generated_at: Date;
|
|
42
|
-
metric:
|
|
27
|
+
metric: string;
|
|
43
28
|
description?: string | undefined;
|
|
44
29
|
}, {
|
|
45
30
|
_id: string;
|
|
46
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
47
31
|
properties: {
|
|
48
32
|
interval: number;
|
|
49
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
50
33
|
};
|
|
51
34
|
generated_at: Date;
|
|
52
|
-
metric:
|
|
35
|
+
metric: string;
|
|
53
36
|
description?: string | undefined;
|
|
54
37
|
}>;
|
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/* * */
|
|
3
|
-
const TIME_GRANULARITY_VALUES = ['daily', 'monthly', 'yearly', 'custom'];
|
|
4
|
-
export const TimeGranularitySchema = z.enum(TIME_GRANULARITY_VALUES);
|
|
5
|
-
/* * */
|
|
6
|
-
const METRIC_SCOPE_VALUES = ['service_compliance', 'resource_management', 'demand', 'contract_compliance', 'financial'];
|
|
7
|
-
export const MetricScopeSchema = z.enum(METRIC_SCOPE_VALUES);
|
|
8
|
-
/* * */
|
|
9
|
-
const METRIC_VALUES = ['demand_by_line'];
|
|
10
|
-
export const MetricsSchema = z.enum(METRIC_VALUES);
|
|
11
|
-
/* * */
|
|
12
3
|
export const MetricBasePropertiesSchema = z.object({
|
|
13
4
|
interval: z.number(),
|
|
14
|
-
time_granularity: TimeGranularitySchema.optional(),
|
|
15
5
|
});
|
|
16
6
|
export const MetricBaseSchema = z.object({
|
|
17
7
|
_id: z.string(),
|
|
18
8
|
description: z.string().optional(),
|
|
19
9
|
generated_at: z.date(),
|
|
20
|
-
metric:
|
|
10
|
+
metric: z.string(),
|
|
21
11
|
properties: MetricBasePropertiesSchema,
|
|
22
|
-
scope: MetricScopeSchema,
|
|
23
12
|
});
|
|
@@ -3,7 +3,6 @@ export declare const DemandByLineByYearSchema: z.ZodObject<{
|
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
description: z.ZodOptional<z.ZodString>;
|
|
5
5
|
generated_at: z.ZodDate;
|
|
6
|
-
scope: z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>;
|
|
7
6
|
} & {
|
|
8
7
|
data: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9
8
|
qty: z.ZodNumber;
|
|
@@ -13,27 +12,21 @@ export declare const DemandByLineByYearSchema: z.ZodObject<{
|
|
|
13
12
|
qty: number;
|
|
14
13
|
}>>;
|
|
15
14
|
metric: z.ZodLiteral<"demand_by_line_by_year">;
|
|
16
|
-
properties: z.ZodObject<{
|
|
17
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
18
|
-
} & {
|
|
15
|
+
properties: z.ZodObject<{} & {
|
|
19
16
|
interval: z.ZodLiteral<300000>;
|
|
20
17
|
line_id: z.ZodString;
|
|
21
18
|
}, "strip", z.ZodTypeAny, {
|
|
22
19
|
line_id: string;
|
|
23
20
|
interval: 300000;
|
|
24
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
25
21
|
}, {
|
|
26
22
|
line_id: string;
|
|
27
23
|
interval: 300000;
|
|
28
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
29
24
|
}>;
|
|
30
25
|
}, "strip", z.ZodTypeAny, {
|
|
31
26
|
_id: string;
|
|
32
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
33
27
|
properties: {
|
|
34
28
|
line_id: string;
|
|
35
29
|
interval: 300000;
|
|
36
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
37
30
|
};
|
|
38
31
|
generated_at: Date;
|
|
39
32
|
metric: "demand_by_line_by_year";
|
|
@@ -43,11 +36,9 @@ export declare const DemandByLineByYearSchema: z.ZodObject<{
|
|
|
43
36
|
description?: string | undefined;
|
|
44
37
|
}, {
|
|
45
38
|
_id: string;
|
|
46
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
47
39
|
properties: {
|
|
48
40
|
line_id: string;
|
|
49
41
|
interval: 300000;
|
|
50
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
51
42
|
};
|
|
52
43
|
generated_at: Date;
|
|
53
44
|
metric: "demand_by_line_by_year";
|
|
@@ -60,7 +51,6 @@ export declare const DemandByLineByMonthSchema: z.ZodObject<{
|
|
|
60
51
|
_id: z.ZodString;
|
|
61
52
|
description: z.ZodOptional<z.ZodString>;
|
|
62
53
|
generated_at: z.ZodDate;
|
|
63
|
-
scope: z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>;
|
|
64
54
|
} & {
|
|
65
55
|
data: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
66
56
|
qty: z.ZodNumber;
|
|
@@ -70,27 +60,21 @@ export declare const DemandByLineByMonthSchema: z.ZodObject<{
|
|
|
70
60
|
qty: number;
|
|
71
61
|
}>>;
|
|
72
62
|
metric: z.ZodLiteral<"demand_by_line_by_month">;
|
|
73
|
-
properties: z.ZodObject<{
|
|
74
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
75
|
-
} & {
|
|
63
|
+
properties: z.ZodObject<{} & {
|
|
76
64
|
interval: z.ZodLiteral<300000>;
|
|
77
65
|
line_id: z.ZodString;
|
|
78
66
|
}, "strip", z.ZodTypeAny, {
|
|
79
67
|
line_id: string;
|
|
80
68
|
interval: 300000;
|
|
81
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
82
69
|
}, {
|
|
83
70
|
line_id: string;
|
|
84
71
|
interval: 300000;
|
|
85
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
86
72
|
}>;
|
|
87
73
|
}, "strip", z.ZodTypeAny, {
|
|
88
74
|
_id: string;
|
|
89
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
90
75
|
properties: {
|
|
91
76
|
line_id: string;
|
|
92
77
|
interval: 300000;
|
|
93
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
94
78
|
};
|
|
95
79
|
generated_at: Date;
|
|
96
80
|
metric: "demand_by_line_by_month";
|
|
@@ -100,11 +84,9 @@ export declare const DemandByLineByMonthSchema: z.ZodObject<{
|
|
|
100
84
|
description?: string | undefined;
|
|
101
85
|
}, {
|
|
102
86
|
_id: string;
|
|
103
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
104
87
|
properties: {
|
|
105
88
|
line_id: string;
|
|
106
89
|
interval: 300000;
|
|
107
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
108
90
|
};
|
|
109
91
|
generated_at: Date;
|
|
110
92
|
metric: "demand_by_line_by_month";
|
|
@@ -3,7 +3,6 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
|
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
description: z.ZodOptional<z.ZodString>;
|
|
5
5
|
generated_at: z.ZodDate;
|
|
6
|
-
scope: z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>;
|
|
7
6
|
} & {
|
|
8
7
|
data: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9
8
|
qty: z.ZodNumber;
|
|
@@ -13,27 +12,21 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
|
|
|
13
12
|
qty: number;
|
|
14
13
|
}>>;
|
|
15
14
|
metric: z.ZodLiteral<"demand_by_line_by_year">;
|
|
16
|
-
properties: z.ZodObject<{
|
|
17
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
18
|
-
} & {
|
|
15
|
+
properties: z.ZodObject<{} & {
|
|
19
16
|
interval: z.ZodLiteral<300000>;
|
|
20
17
|
line_id: z.ZodString;
|
|
21
18
|
}, "strip", z.ZodTypeAny, {
|
|
22
19
|
line_id: string;
|
|
23
20
|
interval: 300000;
|
|
24
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
25
21
|
}, {
|
|
26
22
|
line_id: string;
|
|
27
23
|
interval: 300000;
|
|
28
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
29
24
|
}>;
|
|
30
25
|
}, "strip", z.ZodTypeAny, {
|
|
31
26
|
_id: string;
|
|
32
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
33
27
|
properties: {
|
|
34
28
|
line_id: string;
|
|
35
29
|
interval: 300000;
|
|
36
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
37
30
|
};
|
|
38
31
|
generated_at: Date;
|
|
39
32
|
metric: "demand_by_line_by_year";
|
|
@@ -43,11 +36,9 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
|
|
|
43
36
|
description?: string | undefined;
|
|
44
37
|
}, {
|
|
45
38
|
_id: string;
|
|
46
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
47
39
|
properties: {
|
|
48
40
|
line_id: string;
|
|
49
41
|
interval: 300000;
|
|
50
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
51
42
|
};
|
|
52
43
|
generated_at: Date;
|
|
53
44
|
metric: "demand_by_line_by_year";
|
|
@@ -59,7 +50,6 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
|
|
|
59
50
|
_id: z.ZodString;
|
|
60
51
|
description: z.ZodOptional<z.ZodString>;
|
|
61
52
|
generated_at: z.ZodDate;
|
|
62
|
-
scope: z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>;
|
|
63
53
|
} & {
|
|
64
54
|
data: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
65
55
|
qty: z.ZodNumber;
|
|
@@ -69,27 +59,21 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
|
|
|
69
59
|
qty: number;
|
|
70
60
|
}>>;
|
|
71
61
|
metric: z.ZodLiteral<"demand_by_line_by_month">;
|
|
72
|
-
properties: z.ZodObject<{
|
|
73
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
74
|
-
} & {
|
|
62
|
+
properties: z.ZodObject<{} & {
|
|
75
63
|
interval: z.ZodLiteral<300000>;
|
|
76
64
|
line_id: z.ZodString;
|
|
77
65
|
}, "strip", z.ZodTypeAny, {
|
|
78
66
|
line_id: string;
|
|
79
67
|
interval: 300000;
|
|
80
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
81
68
|
}, {
|
|
82
69
|
line_id: string;
|
|
83
70
|
interval: 300000;
|
|
84
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
85
71
|
}>;
|
|
86
72
|
}, "strip", z.ZodTypeAny, {
|
|
87
73
|
_id: string;
|
|
88
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
89
74
|
properties: {
|
|
90
75
|
line_id: string;
|
|
91
76
|
interval: 300000;
|
|
92
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
93
77
|
};
|
|
94
78
|
generated_at: Date;
|
|
95
79
|
metric: "demand_by_line_by_month";
|
|
@@ -99,11 +83,9 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
|
|
|
99
83
|
description?: string | undefined;
|
|
100
84
|
}, {
|
|
101
85
|
_id: string;
|
|
102
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
103
86
|
properties: {
|
|
104
87
|
line_id: string;
|
|
105
88
|
interval: 300000;
|
|
106
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
107
89
|
};
|
|
108
90
|
generated_at: Date;
|
|
109
91
|
metric: "demand_by_line_by_month";
|
|
@@ -116,7 +98,6 @@ export declare const CreateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
116
98
|
_id: z.ZodString;
|
|
117
99
|
description: z.ZodOptional<z.ZodString>;
|
|
118
100
|
generated_at: z.ZodDate;
|
|
119
|
-
scope: z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>;
|
|
120
101
|
} & {
|
|
121
102
|
data: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
122
103
|
qty: z.ZodNumber;
|
|
@@ -126,26 +107,20 @@ export declare const CreateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
126
107
|
qty: number;
|
|
127
108
|
}>>;
|
|
128
109
|
metric: z.ZodLiteral<"demand_by_line_by_year">;
|
|
129
|
-
properties: z.ZodObject<{
|
|
130
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
131
|
-
} & {
|
|
110
|
+
properties: z.ZodObject<{} & {
|
|
132
111
|
interval: z.ZodLiteral<300000>;
|
|
133
112
|
line_id: z.ZodString;
|
|
134
113
|
}, "strip", z.ZodTypeAny, {
|
|
135
114
|
line_id: string;
|
|
136
115
|
interval: 300000;
|
|
137
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
138
116
|
}, {
|
|
139
117
|
line_id: string;
|
|
140
118
|
interval: 300000;
|
|
141
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
142
119
|
}>;
|
|
143
120
|
}, "_id">, "strip", z.ZodTypeAny, {
|
|
144
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
145
121
|
properties: {
|
|
146
122
|
line_id: string;
|
|
147
123
|
interval: 300000;
|
|
148
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
149
124
|
};
|
|
150
125
|
generated_at: Date;
|
|
151
126
|
metric: "demand_by_line_by_year";
|
|
@@ -154,11 +129,9 @@ export declare const CreateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
154
129
|
}>;
|
|
155
130
|
description?: string | undefined;
|
|
156
131
|
}, {
|
|
157
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
158
132
|
properties: {
|
|
159
133
|
line_id: string;
|
|
160
134
|
interval: 300000;
|
|
161
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
162
135
|
};
|
|
163
136
|
generated_at: Date;
|
|
164
137
|
metric: "demand_by_line_by_year";
|
|
@@ -170,7 +143,6 @@ export declare const CreateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
170
143
|
_id: z.ZodString;
|
|
171
144
|
description: z.ZodOptional<z.ZodString>;
|
|
172
145
|
generated_at: z.ZodDate;
|
|
173
|
-
scope: z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>;
|
|
174
146
|
} & {
|
|
175
147
|
data: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
176
148
|
qty: z.ZodNumber;
|
|
@@ -180,26 +152,20 @@ export declare const CreateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
180
152
|
qty: number;
|
|
181
153
|
}>>;
|
|
182
154
|
metric: z.ZodLiteral<"demand_by_line_by_month">;
|
|
183
|
-
properties: z.ZodObject<{
|
|
184
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
185
|
-
} & {
|
|
155
|
+
properties: z.ZodObject<{} & {
|
|
186
156
|
interval: z.ZodLiteral<300000>;
|
|
187
157
|
line_id: z.ZodString;
|
|
188
158
|
}, "strip", z.ZodTypeAny, {
|
|
189
159
|
line_id: string;
|
|
190
160
|
interval: 300000;
|
|
191
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
192
161
|
}, {
|
|
193
162
|
line_id: string;
|
|
194
163
|
interval: 300000;
|
|
195
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
196
164
|
}>;
|
|
197
165
|
}, "_id">, "strip", z.ZodTypeAny, {
|
|
198
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
199
166
|
properties: {
|
|
200
167
|
line_id: string;
|
|
201
168
|
interval: 300000;
|
|
202
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
203
169
|
};
|
|
204
170
|
generated_at: Date;
|
|
205
171
|
metric: "demand_by_line_by_month";
|
|
@@ -208,11 +174,9 @@ export declare const CreateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
208
174
|
}>;
|
|
209
175
|
description?: string | undefined;
|
|
210
176
|
}, {
|
|
211
|
-
scope: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial";
|
|
212
177
|
properties: {
|
|
213
178
|
line_id: string;
|
|
214
179
|
interval: 300000;
|
|
215
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
216
180
|
};
|
|
217
181
|
generated_at: Date;
|
|
218
182
|
metric: "demand_by_line_by_month";
|
|
@@ -222,21 +186,16 @@ export declare const CreateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
222
186
|
description?: string | undefined;
|
|
223
187
|
}>]>;
|
|
224
188
|
export declare const UpdateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObject<{
|
|
225
|
-
scope: z.ZodOptional<z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>>;
|
|
226
189
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
227
|
-
properties: z.ZodOptional<z.ZodObject<{
|
|
228
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
229
|
-
} & {
|
|
190
|
+
properties: z.ZodOptional<z.ZodObject<{} & {
|
|
230
191
|
interval: z.ZodLiteral<300000>;
|
|
231
192
|
line_id: z.ZodString;
|
|
232
193
|
}, "strip", z.ZodTypeAny, {
|
|
233
194
|
line_id: string;
|
|
234
195
|
interval: 300000;
|
|
235
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
236
196
|
}, {
|
|
237
197
|
line_id: string;
|
|
238
198
|
interval: 300000;
|
|
239
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
240
199
|
}>>;
|
|
241
200
|
generated_at: z.ZodOptional<z.ZodDate>;
|
|
242
201
|
metric: z.ZodOptional<z.ZodLiteral<"demand_by_line_by_year">>;
|
|
@@ -248,12 +207,10 @@ export declare const UpdateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
248
207
|
qty: number;
|
|
249
208
|
}>>>;
|
|
250
209
|
}, "strip", z.ZodTypeAny, {
|
|
251
|
-
scope?: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial" | undefined;
|
|
252
210
|
description?: string | undefined;
|
|
253
211
|
properties?: {
|
|
254
212
|
line_id: string;
|
|
255
213
|
interval: 300000;
|
|
256
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
257
214
|
} | undefined;
|
|
258
215
|
generated_at?: Date | undefined;
|
|
259
216
|
metric?: "demand_by_line_by_year" | undefined;
|
|
@@ -261,12 +218,10 @@ export declare const UpdateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
261
218
|
qty: number;
|
|
262
219
|
}> | undefined;
|
|
263
220
|
}, {
|
|
264
|
-
scope?: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial" | undefined;
|
|
265
221
|
description?: string | undefined;
|
|
266
222
|
properties?: {
|
|
267
223
|
line_id: string;
|
|
268
224
|
interval: 300000;
|
|
269
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
270
225
|
} | undefined;
|
|
271
226
|
generated_at?: Date | undefined;
|
|
272
227
|
metric?: "demand_by_line_by_year" | undefined;
|
|
@@ -274,21 +229,16 @@ export declare const UpdateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
274
229
|
qty: number;
|
|
275
230
|
}> | undefined;
|
|
276
231
|
}>, z.ZodObject<{
|
|
277
|
-
scope: z.ZodOptional<z.ZodEnum<["service_compliance", "resource_management", "demand", "contract_compliance", "financial"]>>;
|
|
278
232
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
279
|
-
properties: z.ZodOptional<z.ZodObject<{
|
|
280
|
-
time_granularity: z.ZodOptional<z.ZodEnum<["daily", "monthly", "yearly", "custom"]>>;
|
|
281
|
-
} & {
|
|
233
|
+
properties: z.ZodOptional<z.ZodObject<{} & {
|
|
282
234
|
interval: z.ZodLiteral<300000>;
|
|
283
235
|
line_id: z.ZodString;
|
|
284
236
|
}, "strip", z.ZodTypeAny, {
|
|
285
237
|
line_id: string;
|
|
286
238
|
interval: 300000;
|
|
287
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
288
239
|
}, {
|
|
289
240
|
line_id: string;
|
|
290
241
|
interval: 300000;
|
|
291
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
292
242
|
}>>;
|
|
293
243
|
generated_at: z.ZodOptional<z.ZodDate>;
|
|
294
244
|
metric: z.ZodOptional<z.ZodLiteral<"demand_by_line_by_month">>;
|
|
@@ -300,12 +250,10 @@ export declare const UpdateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
300
250
|
qty: number;
|
|
301
251
|
}>>>;
|
|
302
252
|
}, "strip", z.ZodTypeAny, {
|
|
303
|
-
scope?: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial" | undefined;
|
|
304
253
|
description?: string | undefined;
|
|
305
254
|
properties?: {
|
|
306
255
|
line_id: string;
|
|
307
256
|
interval: 300000;
|
|
308
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
309
257
|
} | undefined;
|
|
310
258
|
generated_at?: Date | undefined;
|
|
311
259
|
metric?: "demand_by_line_by_month" | undefined;
|
|
@@ -313,12 +261,10 @@ export declare const UpdateMetricSchema: z.ZodDiscriminatedUnion<"metric", [z.Zo
|
|
|
313
261
|
qty: number;
|
|
314
262
|
}> | undefined;
|
|
315
263
|
}, {
|
|
316
|
-
scope?: "service_compliance" | "resource_management" | "demand" | "contract_compliance" | "financial" | undefined;
|
|
317
264
|
description?: string | undefined;
|
|
318
265
|
properties?: {
|
|
319
266
|
line_id: string;
|
|
320
267
|
interval: 300000;
|
|
321
|
-
time_granularity?: "custom" | "daily" | "monthly" | "yearly" | undefined;
|
|
322
268
|
} | undefined;
|
|
323
269
|
generated_at?: Date | undefined;
|
|
324
270
|
metric?: "demand_by_line_by_month" | undefined;
|
package/package.json
CHANGED