@new-project-media/client-frontends-shared-types 1.0.1 → 1.0.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@new-project-media/client-frontends-shared-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "tsc -p tsconfig.json",
|
|
6
6
|
"postbuild": "mkdir -p ../../dist/packages/client-frontends-shared-types/ && cp package.json ../../dist/packages/client-frontends-shared-types/",
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const queue: z.ZodObject<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, {
|
|
11
|
-
identifier?: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
}>, "many">;
|
|
14
|
-
planningGranted: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
15
|
-
totalMw: z.ZodOptional<z.ZodNumber>;
|
|
16
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
17
|
-
sourceUpdate: z.ZodEffects<z.ZodString, string, string>;
|
|
18
|
-
planningAuthority: z.ZodOptional<z.ZodString>;
|
|
3
|
+
actualOperationalDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
4
|
+
address: z.ZodOptional<z.ZodString>;
|
|
5
|
+
allSectors: z.ZodString;
|
|
6
|
+
applicationId: z.ZodString;
|
|
7
|
+
constructionDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
8
|
+
country: z.ZodOptional<z.ZodString>;
|
|
9
|
+
developmentStatus: z.ZodOptional<z.ZodString>;
|
|
19
10
|
geo: z.ZodObject<{
|
|
20
11
|
project: z.ZodObject<{
|
|
21
12
|
lon: z.ZodNumber;
|
|
@@ -38,36 +29,14 @@ declare const queue: z.ZodObject<{
|
|
|
38
29
|
lat?: number;
|
|
39
30
|
};
|
|
40
31
|
}>;
|
|
41
|
-
|
|
32
|
+
id: z.ZodString;
|
|
42
33
|
indexed_at: z.ZodEffects<z.ZodString, string, string>;
|
|
43
|
-
queueDate: z.ZodEffects<z.ZodString, string, string>;
|
|
44
|
-
localRegion: z.ZodOptional<z.ZodString>;
|
|
45
|
-
queueDataset: z.ZodOptional<z.ZodString>;
|
|
46
|
-
sectors: z.ZodArray<z.ZodObject<{
|
|
47
|
-
identifier: z.ZodString;
|
|
48
|
-
id: z.ZodString;
|
|
49
|
-
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
identifier?: string;
|
|
51
|
-
id?: string;
|
|
52
|
-
}, {
|
|
53
|
-
identifier?: string;
|
|
54
|
-
id?: string;
|
|
55
|
-
}>, "many">;
|
|
56
|
-
address: z.ZodOptional<z.ZodString>;
|
|
57
|
-
mwNet: z.ZodOptional<z.ZodNumber>;
|
|
58
|
-
technology: z.ZodOptional<z.ZodString>;
|
|
59
34
|
localCounty: z.ZodOptional<z.ZodString>;
|
|
60
|
-
|
|
61
|
-
allSectors: z.ZodString;
|
|
62
|
-
refId: z.ZodOptional<z.ZodNumber>;
|
|
63
|
-
projectName: z.ZodOptional<z.ZodString>;
|
|
64
|
-
applicationId: z.ZodString;
|
|
65
|
-
constructionDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
66
|
-
status: z.ZodString;
|
|
67
|
-
developmentStatus: z.ZodOptional<z.ZodString>;
|
|
35
|
+
localRegion: z.ZodOptional<z.ZodString>;
|
|
68
36
|
localState: z.ZodOptional<z.ZodString>;
|
|
69
37
|
localTown: z.ZodOptional<z.ZodString>;
|
|
70
38
|
mwGross: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
mwNet: z.ZodOptional<z.ZodNumber>;
|
|
71
40
|
organizations: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
72
41
|
identifier: z.ZodString;
|
|
73
42
|
id: z.ZodString;
|
|
@@ -83,9 +52,31 @@ declare const queue: z.ZodObject<{
|
|
|
83
52
|
role?: string;
|
|
84
53
|
}>, "many">>;
|
|
85
54
|
plannedOperationalDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
55
|
+
planningAuthority: z.ZodOptional<z.ZodString>;
|
|
56
|
+
planningGranted: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
57
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
58
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
59
|
+
queueDataset: z.ZodOptional<z.ZodString>;
|
|
60
|
+
queueDate: z.ZodEffects<z.ZodString, string, string>;
|
|
61
|
+
refId: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
reportDate: z.ZodEffects<z.ZodString, string, string>;
|
|
86
63
|
sectorDetail: z.ZodOptional<z.ZodString>;
|
|
64
|
+
sectors: z.ZodArray<z.ZodObject<{
|
|
65
|
+
identifier: z.ZodString;
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
identifier?: string;
|
|
69
|
+
id?: string;
|
|
70
|
+
}, {
|
|
71
|
+
identifier?: string;
|
|
72
|
+
id?: string;
|
|
73
|
+
}>, "many">;
|
|
74
|
+
sourceUpdate: z.ZodEffects<z.ZodString, string, string>;
|
|
75
|
+
status: z.ZodString;
|
|
87
76
|
storageCapacity: z.ZodOptional<z.ZodNumber>;
|
|
88
77
|
storageType: z.ZodOptional<z.ZodString>;
|
|
78
|
+
technology: z.ZodOptional<z.ZodString>;
|
|
79
|
+
totalMw: z.ZodOptional<z.ZodNumber>;
|
|
89
80
|
windFarmName: z.ZodOptional<z.ZodString>;
|
|
90
81
|
withdrawnDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
91
82
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -97,47 +88,44 @@ declare const queue: z.ZodObject<{
|
|
|
97
88
|
status?: string;
|
|
98
89
|
applicationId?: string;
|
|
99
90
|
queueDataset?: string;
|
|
100
|
-
country?:
|
|
101
|
-
identifier?: string;
|
|
102
|
-
id?: string;
|
|
103
|
-
}[];
|
|
91
|
+
country?: string;
|
|
104
92
|
organizations?: {
|
|
105
93
|
identifier?: string;
|
|
106
94
|
id?: string;
|
|
107
95
|
role?: string;
|
|
108
96
|
}[];
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
97
|
+
actualOperationalDate?: string;
|
|
98
|
+
address?: string;
|
|
99
|
+
allSectors?: string;
|
|
100
|
+
constructionDate?: string;
|
|
101
|
+
developmentStatus?: string;
|
|
114
102
|
geo?: {
|
|
115
103
|
project?: {
|
|
116
104
|
lon?: number;
|
|
117
105
|
lat?: number;
|
|
118
106
|
};
|
|
119
107
|
};
|
|
120
|
-
reportDate?: string;
|
|
121
108
|
indexed_at?: string;
|
|
122
|
-
queueDate?: string;
|
|
123
|
-
localRegion?: string;
|
|
124
|
-
address?: string;
|
|
125
|
-
mwNet?: number;
|
|
126
|
-
technology?: string;
|
|
127
109
|
localCounty?: string;
|
|
128
|
-
|
|
129
|
-
allSectors?: string;
|
|
130
|
-
refId?: number;
|
|
131
|
-
projectName?: string;
|
|
132
|
-
constructionDate?: string;
|
|
133
|
-
developmentStatus?: string;
|
|
110
|
+
localRegion?: string;
|
|
134
111
|
localState?: string;
|
|
135
112
|
localTown?: string;
|
|
136
113
|
mwGross?: number;
|
|
114
|
+
mwNet?: number;
|
|
137
115
|
plannedOperationalDate?: string;
|
|
116
|
+
planningAuthority?: string;
|
|
117
|
+
planningGranted?: string;
|
|
118
|
+
postalCode?: string;
|
|
119
|
+
projectName?: string;
|
|
120
|
+
queueDate?: string;
|
|
121
|
+
refId?: number;
|
|
122
|
+
reportDate?: string;
|
|
138
123
|
sectorDetail?: string;
|
|
124
|
+
sourceUpdate?: string;
|
|
139
125
|
storageCapacity?: number;
|
|
140
126
|
storageType?: string;
|
|
127
|
+
technology?: string;
|
|
128
|
+
totalMw?: number;
|
|
141
129
|
windFarmName?: string;
|
|
142
130
|
withdrawnDate?: string;
|
|
143
131
|
}, {
|
|
@@ -149,47 +137,44 @@ declare const queue: z.ZodObject<{
|
|
|
149
137
|
status?: string;
|
|
150
138
|
applicationId?: string;
|
|
151
139
|
queueDataset?: string;
|
|
152
|
-
country?:
|
|
153
|
-
identifier?: string;
|
|
154
|
-
id?: string;
|
|
155
|
-
}[];
|
|
140
|
+
country?: string;
|
|
156
141
|
organizations?: {
|
|
157
142
|
identifier?: string;
|
|
158
143
|
id?: string;
|
|
159
144
|
role?: string;
|
|
160
145
|
}[];
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
146
|
+
actualOperationalDate?: string;
|
|
147
|
+
address?: string;
|
|
148
|
+
allSectors?: string;
|
|
149
|
+
constructionDate?: string;
|
|
150
|
+
developmentStatus?: string;
|
|
166
151
|
geo?: {
|
|
167
152
|
project?: {
|
|
168
153
|
lon?: number;
|
|
169
154
|
lat?: number;
|
|
170
155
|
};
|
|
171
156
|
};
|
|
172
|
-
reportDate?: string;
|
|
173
157
|
indexed_at?: string;
|
|
174
|
-
queueDate?: string;
|
|
175
|
-
localRegion?: string;
|
|
176
|
-
address?: string;
|
|
177
|
-
mwNet?: number;
|
|
178
|
-
technology?: string;
|
|
179
158
|
localCounty?: string;
|
|
180
|
-
|
|
181
|
-
allSectors?: string;
|
|
182
|
-
refId?: number;
|
|
183
|
-
projectName?: string;
|
|
184
|
-
constructionDate?: string;
|
|
185
|
-
developmentStatus?: string;
|
|
159
|
+
localRegion?: string;
|
|
186
160
|
localState?: string;
|
|
187
161
|
localTown?: string;
|
|
188
162
|
mwGross?: number;
|
|
163
|
+
mwNet?: number;
|
|
189
164
|
plannedOperationalDate?: string;
|
|
165
|
+
planningAuthority?: string;
|
|
166
|
+
planningGranted?: string;
|
|
167
|
+
postalCode?: string;
|
|
168
|
+
projectName?: string;
|
|
169
|
+
queueDate?: string;
|
|
170
|
+
refId?: number;
|
|
171
|
+
reportDate?: string;
|
|
190
172
|
sectorDetail?: string;
|
|
173
|
+
sourceUpdate?: string;
|
|
191
174
|
storageCapacity?: number;
|
|
192
175
|
storageType?: string;
|
|
176
|
+
technology?: string;
|
|
177
|
+
totalMw?: number;
|
|
193
178
|
windFarmName?: string;
|
|
194
179
|
withdrawnDate?: string;
|
|
195
180
|
}>;
|
|
@@ -3,40 +3,40 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const zod_1 = require("zod");
|
|
4
4
|
const entity_1 = require("./entity");
|
|
5
5
|
const queue = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string(),
|
|
7
|
-
country: entity_1.EntityItemArraySchema,
|
|
8
|
-
planningGranted: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
9
|
-
totalMw: entity_1.OptionalNumberSchema,
|
|
10
|
-
postalCode: entity_1.OptionalStringSchema,
|
|
11
|
-
sourceUpdate: entity_1.YYYYMMDDRegexSchema,
|
|
12
|
-
planningAuthority: entity_1.OptionalStringSchema,
|
|
13
|
-
geo: entity_1.GeoSchema,
|
|
14
|
-
reportDate: entity_1.YYYYMMDDRegexSchema,
|
|
15
|
-
indexed_at: entity_1.YYYYMMDDRegexSchema,
|
|
16
|
-
queueDate: entity_1.YYYYMMDDRegexSchema,
|
|
17
|
-
localRegion: entity_1.OptionalStringSchema,
|
|
18
|
-
queueDataset: entity_1.OptionalStringSchema,
|
|
19
|
-
sectors: entity_1.EntityItemArraySchema,
|
|
20
|
-
address: entity_1.OptionalStringSchema,
|
|
21
|
-
mwNet: entity_1.OptionalNumberSchema,
|
|
22
|
-
technology: entity_1.OptionalStringSchema,
|
|
23
|
-
localCounty: entity_1.OptionalStringSchema,
|
|
24
6
|
actualOperationalDate: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
7
|
+
address: entity_1.OptionalStringSchema,
|
|
25
8
|
allSectors: zod_1.z.string(),
|
|
26
|
-
refId: entity_1.OptionalNumberSchema,
|
|
27
|
-
projectName: entity_1.OptionalStringSchema,
|
|
28
9
|
applicationId: zod_1.z.string(),
|
|
29
10
|
constructionDate: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
30
|
-
|
|
11
|
+
country: zod_1.z.string().optional(),
|
|
31
12
|
developmentStatus: entity_1.OptionalStringSchema,
|
|
13
|
+
geo: entity_1.GeoSchema,
|
|
14
|
+
id: zod_1.z.string(),
|
|
15
|
+
indexed_at: entity_1.YYYYMMDDRegexSchema,
|
|
16
|
+
localCounty: entity_1.OptionalStringSchema,
|
|
17
|
+
localRegion: entity_1.OptionalStringSchema,
|
|
32
18
|
localState: entity_1.OptionalStringSchema,
|
|
33
19
|
localTown: entity_1.OptionalStringSchema,
|
|
34
20
|
mwGross: entity_1.OptionalNumberSchema,
|
|
21
|
+
mwNet: entity_1.OptionalNumberSchema,
|
|
35
22
|
organizations: entity_1.OrganizationSchema,
|
|
36
23
|
plannedOperationalDate: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
24
|
+
planningAuthority: entity_1.OptionalStringSchema,
|
|
25
|
+
planningGranted: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
26
|
+
postalCode: entity_1.OptionalStringSchema,
|
|
27
|
+
projectName: entity_1.OptionalStringSchema,
|
|
28
|
+
queueDataset: entity_1.OptionalStringSchema,
|
|
29
|
+
queueDate: entity_1.YYYYMMDDRegexSchema,
|
|
30
|
+
refId: entity_1.OptionalNumberSchema,
|
|
31
|
+
reportDate: entity_1.YYYYMMDDRegexSchema,
|
|
37
32
|
sectorDetail: entity_1.OptionalStringSchema,
|
|
33
|
+
sectors: entity_1.EntityItemArraySchema,
|
|
34
|
+
sourceUpdate: entity_1.YYYYMMDDRegexSchema,
|
|
35
|
+
status: zod_1.z.string(),
|
|
38
36
|
storageCapacity: entity_1.OptionalNumberSchema,
|
|
39
37
|
storageType: entity_1.OptionalStringSchema,
|
|
38
|
+
technology: entity_1.OptionalStringSchema,
|
|
39
|
+
totalMw: entity_1.OptionalNumberSchema,
|
|
40
40
|
windFarmName: entity_1.OptionalStringSchema,
|
|
41
41
|
withdrawnDate: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
42
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queues.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/queues.ts"],"names":[],"mappings":";;AAAA,6BAAuB;AACvB,qCAQiB;AAEjB,MAAM,KAAK,GAAG,OAAC,CAAC,MAAM,CAAC;IACrB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"queues.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/queues.ts"],"names":[],"mappings":";;AAAA,6BAAuB;AACvB,qCAQiB;AAEjB,MAAM,KAAK,GAAG,OAAC,CAAC,MAAM,CAAC;IACrB,qBAAqB,EAAE,oCAA2B;IAClD,OAAO,EAAE,6BAAoB;IAC7B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,gBAAgB,EAAE,oCAA2B;IAC7C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,iBAAiB,EAAE,6BAAoB;IACvC,GAAG,EAAE,kBAAS;IACd,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,4BAAmB;IAC/B,WAAW,EAAE,6BAAoB;IACjC,WAAW,EAAE,6BAAoB;IACjC,UAAU,EAAE,6BAAoB;IAChC,SAAS,EAAE,6BAAoB;IAC/B,OAAO,EAAE,6BAAoB;IAC7B,KAAK,EAAE,6BAAoB;IAC3B,aAAa,EAAE,2BAAkB;IACjC,sBAAsB,EAAE,oCAA2B;IACnD,iBAAiB,EAAE,6BAAoB;IACvC,eAAe,EAAE,oCAA2B;IAC5C,UAAU,EAAE,6BAAoB;IAChC,WAAW,EAAE,6BAAoB;IACjC,YAAY,EAAE,6BAAoB;IAClC,SAAS,EAAE,4BAAmB;IAC9B,KAAK,EAAE,6BAAoB;IAC3B,UAAU,EAAE,4BAAmB;IAC/B,YAAY,EAAE,6BAAoB;IAClC,OAAO,EAAE,8BAAqB;IAC9B,YAAY,EAAE,4BAAmB;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,6BAAoB;IACrC,WAAW,EAAE,6BAAoB;IACjC,UAAU,EAAE,6BAAoB;IAChC,OAAO,EAAE,6BAAoB;IAC7B,YAAY,EAAE,6BAAoB;IAClC,aAAa,EAAE,oCAA2B;CAC3C,CAAC,CAAA"}
|