@new-project-media/client-frontends-shared-types 2.0.19 → 2.0.21
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": "2.0.
|
|
3
|
+
"version": "2.0.21",
|
|
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/",
|
|
@@ -3,10 +3,22 @@ export declare enum RegionType {
|
|
|
3
3
|
Europe = "EUROPE",
|
|
4
4
|
NA = "NA"
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
declare const PowerWithStorageSchema: z.ZodObject<{
|
|
7
|
+
value: z.ZodNumber;
|
|
8
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
9
|
+
} & {
|
|
10
|
+
identifier: z.ZodEnum<["onsiteGeneration", "backupGeneration"]>;
|
|
11
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
value: z.ZodNumber;
|
|
13
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
value?: number;
|
|
16
|
+
unit?: string;
|
|
17
|
+
}, {
|
|
18
|
+
value?: number;
|
|
19
|
+
unit?: string;
|
|
20
|
+
}>>;
|
|
21
|
+
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
22
|
identifier: z.ZodString;
|
|
11
23
|
id: z.ZodString;
|
|
12
24
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -15,151 +27,47 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
15
27
|
}, {
|
|
16
28
|
id?: string;
|
|
17
29
|
identifier?: string;
|
|
18
|
-
}>, "many"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
lon: z.ZodNumber;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
lat?: number;
|
|
31
|
-
lon?: number;
|
|
32
|
-
}, {
|
|
33
|
-
lat?: number;
|
|
34
|
-
lon?: number;
|
|
35
|
-
}>>;
|
|
36
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
37
|
-
location: z.ZodOptional<z.ZodObject<{
|
|
38
|
-
lat: z.ZodNumber;
|
|
39
|
-
lon: z.ZodNumber;
|
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
lat?: number;
|
|
42
|
-
lon?: number;
|
|
43
|
-
}, {
|
|
44
|
-
lat?: number;
|
|
45
|
-
lon?: number;
|
|
46
|
-
}>>;
|
|
47
|
-
facility: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
lat: z.ZodNumber;
|
|
49
|
-
lon: z.ZodNumber;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
lat?: number;
|
|
52
|
-
lon?: number;
|
|
53
|
-
}, {
|
|
54
|
-
lat?: number;
|
|
55
|
-
lon?: number;
|
|
56
|
-
}>>;
|
|
57
|
-
county: z.ZodOptional<z.ZodObject<{
|
|
58
|
-
lat: z.ZodNumber;
|
|
59
|
-
lon: z.ZodNumber;
|
|
60
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
lat?: number;
|
|
62
|
-
lon?: number;
|
|
63
|
-
}, {
|
|
64
|
-
lat?: number;
|
|
65
|
-
lon?: number;
|
|
66
|
-
}>>;
|
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
county?: {
|
|
69
|
-
lat?: number;
|
|
70
|
-
lon?: number;
|
|
71
|
-
};
|
|
72
|
-
location?: {
|
|
73
|
-
lat?: number;
|
|
74
|
-
lon?: number;
|
|
75
|
-
};
|
|
76
|
-
defaultValue?: string;
|
|
77
|
-
default?: {
|
|
78
|
-
lat?: number;
|
|
79
|
-
lon?: number;
|
|
80
|
-
};
|
|
81
|
-
facility?: {
|
|
82
|
-
lat?: number;
|
|
83
|
-
lon?: number;
|
|
84
|
-
};
|
|
85
|
-
}, {
|
|
86
|
-
county?: {
|
|
87
|
-
lat?: number;
|
|
88
|
-
lon?: number;
|
|
89
|
-
};
|
|
90
|
-
location?: {
|
|
91
|
-
lat?: number;
|
|
92
|
-
lon?: number;
|
|
93
|
-
};
|
|
94
|
-
defaultValue?: string;
|
|
95
|
-
default?: {
|
|
96
|
-
lat?: number;
|
|
97
|
-
lon?: number;
|
|
98
|
-
};
|
|
99
|
-
facility?: {
|
|
100
|
-
lat?: number;
|
|
101
|
-
lon?: number;
|
|
102
|
-
};
|
|
103
|
-
}>;
|
|
104
|
-
region: z.ZodNativeEnum<typeof RegionType>;
|
|
105
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
106
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
107
|
-
unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
|
|
108
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodObject<{
|
|
109
|
-
identifier: z.ZodString;
|
|
110
|
-
id: z.ZodString;
|
|
111
|
-
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
id?: string;
|
|
113
|
-
identifier?: string;
|
|
114
|
-
}, {
|
|
115
|
-
id?: string;
|
|
116
|
-
identifier?: string;
|
|
117
|
-
}>>, "many">>;
|
|
118
|
-
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
sectors?: {
|
|
120
|
-
id?: string;
|
|
121
|
-
identifier?: string;
|
|
122
|
-
}[];
|
|
123
|
-
value?: number;
|
|
124
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
125
|
-
}, {
|
|
126
|
-
sectors?: {
|
|
127
|
-
id?: string;
|
|
128
|
-
identifier?: string;
|
|
129
|
-
}[];
|
|
130
|
-
value?: number;
|
|
131
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
132
|
-
}>>;
|
|
133
|
-
buildingSize: z.ZodOptional<z.ZodObject<{
|
|
134
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
|
|
136
|
-
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
value?: number;
|
|
138
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
139
|
-
}, {
|
|
140
|
-
value?: number;
|
|
141
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
142
|
-
}>>;
|
|
143
|
-
landSize: z.ZodOptional<z.ZodObject<{
|
|
144
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
145
|
-
unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
}>, "many">>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
sectors?: {
|
|
33
|
+
id?: string;
|
|
34
|
+
identifier?: string;
|
|
35
|
+
}[];
|
|
36
|
+
identifier?: "onsiteGeneration" | "backupGeneration";
|
|
37
|
+
value?: number;
|
|
38
|
+
unit?: string;
|
|
39
|
+
storage?: {
|
|
147
40
|
value?: number;
|
|
148
|
-
unit?:
|
|
149
|
-
}
|
|
41
|
+
unit?: string;
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
sectors?: {
|
|
45
|
+
id?: string;
|
|
46
|
+
identifier?: string;
|
|
47
|
+
}[];
|
|
48
|
+
identifier?: "onsiteGeneration" | "backupGeneration";
|
|
49
|
+
value?: number;
|
|
50
|
+
unit?: string;
|
|
51
|
+
storage?: {
|
|
150
52
|
value?: number;
|
|
151
|
-
unit?:
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
53
|
+
unit?: string;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
export declare const DataCenterSchema: z.ZodObject<{
|
|
57
|
+
'#developers': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
58
|
+
'#epcs': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
59
|
+
'#utilities': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
60
|
+
allSectors: z.ZodOptional<z.ZodString>;
|
|
61
|
+
audiences: z.ZodArray<z.ZodObject<{
|
|
62
|
+
identifier: z.ZodString;
|
|
63
|
+
id: z.ZodString;
|
|
156
64
|
}, "strip", z.ZodTypeAny, {
|
|
157
|
-
|
|
158
|
-
|
|
65
|
+
id?: string;
|
|
66
|
+
identifier?: string;
|
|
159
67
|
}, {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
68
|
+
id?: string;
|
|
69
|
+
identifier?: string;
|
|
70
|
+
}>, "many">;
|
|
163
71
|
backupGeneration: z.ZodOptional<z.ZodObject<{
|
|
164
72
|
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
165
73
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -226,122 +134,29 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
226
134
|
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
227
135
|
};
|
|
228
136
|
}>>;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
233
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
234
|
-
unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
|
|
235
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodObject<{
|
|
236
|
-
identifier: z.ZodString;
|
|
237
|
-
id: z.ZodString;
|
|
238
|
-
}, "strip", z.ZodTypeAny, {
|
|
239
|
-
id?: string;
|
|
240
|
-
identifier?: string;
|
|
241
|
-
}, {
|
|
242
|
-
id?: string;
|
|
243
|
-
identifier?: string;
|
|
244
|
-
}>>, "many">>;
|
|
245
|
-
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
sectors?: {
|
|
247
|
-
id?: string;
|
|
248
|
-
identifier?: string;
|
|
249
|
-
}[];
|
|
250
|
-
value?: number;
|
|
251
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
252
|
-
}, {
|
|
253
|
-
sectors?: {
|
|
254
|
-
id?: string;
|
|
255
|
-
identifier?: string;
|
|
256
|
-
}[];
|
|
257
|
-
value?: number;
|
|
258
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
259
|
-
}>>;
|
|
137
|
+
buildingSize: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
|
|
260
140
|
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
powerCapacity?: {
|
|
264
|
-
sectors?: {
|
|
265
|
-
id?: string;
|
|
266
|
-
identifier?: string;
|
|
267
|
-
}[];
|
|
268
|
-
value?: number;
|
|
269
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
270
|
-
};
|
|
141
|
+
value?: number;
|
|
142
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
271
143
|
}, {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
powerCapacity?: {
|
|
275
|
-
sectors?: {
|
|
276
|
-
id?: string;
|
|
277
|
-
identifier?: string;
|
|
278
|
-
}[];
|
|
279
|
-
value?: number;
|
|
280
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
281
|
-
};
|
|
144
|
+
value?: number;
|
|
145
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
282
146
|
}>>;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
keyPeople: z.ZodOptional<z.ZodNumber>;
|
|
287
|
-
documents: z.ZodOptional<z.ZodNumber>;
|
|
288
|
-
organizations: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
queueApplications: z.ZodOptional<z.ZodNumber>;
|
|
290
|
-
utility: z.ZodOptional<z.ZodNumber>;
|
|
291
|
-
puc: z.ZodOptional<z.ZodNumber>;
|
|
292
|
-
epc: z.ZodOptional<z.ZodNumber>;
|
|
293
|
-
developer: z.ZodOptional<z.ZodNumber>;
|
|
294
|
-
intels: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
|
|
295
150
|
}, "strip", z.ZodTypeAny, {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
projects?: number;
|
|
299
|
-
documents?: number;
|
|
300
|
-
organizations?: number;
|
|
301
|
-
queueApplications?: number;
|
|
302
|
-
utility?: number;
|
|
303
|
-
puc?: number;
|
|
304
|
-
epc?: number;
|
|
305
|
-
developer?: number;
|
|
306
|
-
intels?: number;
|
|
307
|
-
}, {
|
|
308
|
-
keyPeople?: number;
|
|
309
|
-
offtaker?: number;
|
|
310
|
-
projects?: number;
|
|
311
|
-
documents?: number;
|
|
312
|
-
organizations?: number;
|
|
313
|
-
queueApplications?: number;
|
|
314
|
-
utility?: number;
|
|
315
|
-
puc?: number;
|
|
316
|
-
epc?: number;
|
|
317
|
-
developer?: number;
|
|
318
|
-
intels?: number;
|
|
319
|
-
}>, {
|
|
320
|
-
keyPeople?: number;
|
|
321
|
-
offtaker?: number;
|
|
322
|
-
projects?: number;
|
|
323
|
-
documents?: number;
|
|
324
|
-
organizations?: number;
|
|
325
|
-
queueApplications?: number;
|
|
326
|
-
utility?: number;
|
|
327
|
-
puc?: number;
|
|
328
|
-
epc?: number;
|
|
329
|
-
developer?: number;
|
|
330
|
-
intels?: number;
|
|
151
|
+
value?: number;
|
|
152
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
331
153
|
}, {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
projects?: number;
|
|
335
|
-
documents?: number;
|
|
336
|
-
organizations?: number;
|
|
337
|
-
queueApplications?: number;
|
|
338
|
-
utility?: number;
|
|
339
|
-
puc?: number;
|
|
340
|
-
epc?: number;
|
|
341
|
-
developer?: number;
|
|
342
|
-
intels?: number;
|
|
154
|
+
value?: number;
|
|
155
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
343
156
|
}>>;
|
|
344
|
-
|
|
157
|
+
country: z.ZodOptional<z.ZodString>;
|
|
158
|
+
created: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
159
|
+
createdBy: z.ZodArray<z.ZodObject<{
|
|
345
160
|
identifier: z.ZodString;
|
|
346
161
|
id: z.ZodString;
|
|
347
162
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -351,56 +166,87 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
351
166
|
id?: string;
|
|
352
167
|
identifier?: string;
|
|
353
168
|
}>, "many">;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
169
|
+
externalNotes: z.ZodOptional<z.ZodString>;
|
|
170
|
+
geo: z.ZodObject<{
|
|
171
|
+
default: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
lat: z.ZodNumber;
|
|
173
|
+
lon: z.ZodNumber;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
lat?: number;
|
|
176
|
+
lon?: number;
|
|
177
|
+
}, {
|
|
178
|
+
lat?: number;
|
|
179
|
+
lon?: number;
|
|
180
|
+
}>>;
|
|
181
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
182
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
lat: z.ZodNumber;
|
|
184
|
+
lon: z.ZodNumber;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
lat?: number;
|
|
187
|
+
lon?: number;
|
|
188
|
+
}, {
|
|
189
|
+
lat?: number;
|
|
190
|
+
lon?: number;
|
|
191
|
+
}>>;
|
|
192
|
+
facility: z.ZodOptional<z.ZodObject<{
|
|
193
|
+
lat: z.ZodNumber;
|
|
194
|
+
lon: z.ZodNumber;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
lat?: number;
|
|
197
|
+
lon?: number;
|
|
198
|
+
}, {
|
|
199
|
+
lat?: number;
|
|
200
|
+
lon?: number;
|
|
201
|
+
}>>;
|
|
202
|
+
county: z.ZodOptional<z.ZodObject<{
|
|
203
|
+
lat: z.ZodNumber;
|
|
204
|
+
lon: z.ZodNumber;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
lat?: number;
|
|
207
|
+
lon?: number;
|
|
208
|
+
}, {
|
|
209
|
+
lat?: number;
|
|
210
|
+
lon?: number;
|
|
211
|
+
}>>;
|
|
391
212
|
}, "strip", z.ZodTypeAny, {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
213
|
+
county?: {
|
|
214
|
+
lat?: number;
|
|
215
|
+
lon?: number;
|
|
216
|
+
};
|
|
217
|
+
location?: {
|
|
218
|
+
lat?: number;
|
|
219
|
+
lon?: number;
|
|
220
|
+
};
|
|
221
|
+
defaultValue?: string;
|
|
222
|
+
default?: {
|
|
223
|
+
lat?: number;
|
|
224
|
+
lon?: number;
|
|
225
|
+
};
|
|
226
|
+
facility?: {
|
|
227
|
+
lat?: number;
|
|
228
|
+
lon?: number;
|
|
229
|
+
};
|
|
397
230
|
}, {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
231
|
+
county?: {
|
|
232
|
+
lat?: number;
|
|
233
|
+
lon?: number;
|
|
234
|
+
};
|
|
235
|
+
location?: {
|
|
236
|
+
lat?: number;
|
|
237
|
+
lon?: number;
|
|
238
|
+
};
|
|
239
|
+
defaultValue?: string;
|
|
240
|
+
default?: {
|
|
241
|
+
lat?: number;
|
|
242
|
+
lon?: number;
|
|
243
|
+
};
|
|
244
|
+
facility?: {
|
|
245
|
+
lat?: number;
|
|
246
|
+
lon?: number;
|
|
247
|
+
};
|
|
248
|
+
}>;
|
|
249
|
+
id: z.ZodString;
|
|
404
250
|
intel: z.ZodArray<z.ZodObject<{
|
|
405
251
|
identifier: z.ZodString;
|
|
406
252
|
id: z.ZodString;
|
|
@@ -411,6 +257,20 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
411
257
|
id?: string;
|
|
412
258
|
identifier?: string;
|
|
413
259
|
}>, "many">;
|
|
260
|
+
internalNotes: z.ZodOptional<z.ZodString>;
|
|
261
|
+
landSize: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
value?: number;
|
|
266
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
267
|
+
}, {
|
|
268
|
+
value?: number;
|
|
269
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
270
|
+
}>>;
|
|
271
|
+
localCity: z.ZodOptional<z.ZodString>;
|
|
272
|
+
localCounty: z.ZodOptional<z.ZodString>;
|
|
273
|
+
localState: z.ZodOptional<z.ZodString>;
|
|
414
274
|
location: z.ZodArray<z.ZodObject<{
|
|
415
275
|
identifier: z.ZodString;
|
|
416
276
|
id: z.ZodString;
|
|
@@ -509,43 +369,280 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
509
369
|
}, {
|
|
510
370
|
id?: string;
|
|
511
371
|
identifier?: string;
|
|
512
|
-
isApproximate?: boolean;
|
|
513
|
-
components?: {
|
|
514
|
-
state?: string;
|
|
515
|
-
county?: string;
|
|
516
|
-
'ISO_3166-1_alpha-2'?: string;
|
|
517
|
-
'ISO_3166-1_alpha-3'?: string;
|
|
518
|
-
'ISO_3166-2'?: string[];
|
|
519
|
-
_category?: string;
|
|
520
|
-
_normalized_city?: string;
|
|
521
|
-
_type?: string;
|
|
522
|
-
city?: string;
|
|
523
|
-
continent?: string;
|
|
524
|
-
country?: string;
|
|
525
|
-
country_code?: string;
|
|
526
|
-
state_code?: string;
|
|
527
|
-
municipality?: string;
|
|
528
|
-
political_union?: string;
|
|
529
|
-
state_district?: string;
|
|
530
|
-
};
|
|
531
|
-
geometry?: {
|
|
532
|
-
lat?: number;
|
|
533
|
-
lng?: number;
|
|
534
|
-
};
|
|
535
|
-
override?: boolean;
|
|
372
|
+
isApproximate?: boolean;
|
|
373
|
+
components?: {
|
|
374
|
+
state?: string;
|
|
375
|
+
county?: string;
|
|
376
|
+
'ISO_3166-1_alpha-2'?: string;
|
|
377
|
+
'ISO_3166-1_alpha-3'?: string;
|
|
378
|
+
'ISO_3166-2'?: string[];
|
|
379
|
+
_category?: string;
|
|
380
|
+
_normalized_city?: string;
|
|
381
|
+
_type?: string;
|
|
382
|
+
city?: string;
|
|
383
|
+
continent?: string;
|
|
384
|
+
country?: string;
|
|
385
|
+
country_code?: string;
|
|
386
|
+
state_code?: string;
|
|
387
|
+
municipality?: string;
|
|
388
|
+
political_union?: string;
|
|
389
|
+
state_district?: string;
|
|
390
|
+
};
|
|
391
|
+
geometry?: {
|
|
392
|
+
lat?: number;
|
|
393
|
+
lng?: number;
|
|
394
|
+
};
|
|
395
|
+
override?: boolean;
|
|
396
|
+
}>, "many">;
|
|
397
|
+
modified: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
398
|
+
onsiteGeneration: z.ZodOptional<z.ZodObject<{
|
|
399
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
400
|
+
description: z.ZodOptional<z.ZodString>;
|
|
401
|
+
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
402
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
403
|
+
unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
|
|
404
|
+
sectors: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodObject<{
|
|
405
|
+
identifier: z.ZodString;
|
|
406
|
+
id: z.ZodString;
|
|
407
|
+
}, "strip", z.ZodTypeAny, {
|
|
408
|
+
id?: string;
|
|
409
|
+
identifier?: string;
|
|
410
|
+
}, {
|
|
411
|
+
id?: string;
|
|
412
|
+
identifier?: string;
|
|
413
|
+
}>>, "many">>;
|
|
414
|
+
}, "strip", z.ZodTypeAny, {
|
|
415
|
+
sectors?: {
|
|
416
|
+
id?: string;
|
|
417
|
+
identifier?: string;
|
|
418
|
+
}[];
|
|
419
|
+
value?: number;
|
|
420
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
421
|
+
}, {
|
|
422
|
+
sectors?: {
|
|
423
|
+
id?: string;
|
|
424
|
+
identifier?: string;
|
|
425
|
+
}[];
|
|
426
|
+
value?: number;
|
|
427
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
428
|
+
}>>;
|
|
429
|
+
}, "strip", z.ZodTypeAny, {
|
|
430
|
+
enabled?: boolean;
|
|
431
|
+
description?: string;
|
|
432
|
+
powerCapacity?: {
|
|
433
|
+
sectors?: {
|
|
434
|
+
id?: string;
|
|
435
|
+
identifier?: string;
|
|
436
|
+
}[];
|
|
437
|
+
value?: number;
|
|
438
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
439
|
+
};
|
|
440
|
+
}, {
|
|
441
|
+
enabled?: boolean;
|
|
442
|
+
description?: string;
|
|
443
|
+
powerCapacity?: {
|
|
444
|
+
sectors?: {
|
|
445
|
+
id?: string;
|
|
446
|
+
identifier?: string;
|
|
447
|
+
}[];
|
|
448
|
+
value?: number;
|
|
449
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
450
|
+
};
|
|
451
|
+
}>>;
|
|
452
|
+
organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
453
|
+
identifier: z.ZodString;
|
|
454
|
+
id: z.ZodString;
|
|
455
|
+
} & {
|
|
456
|
+
role: z.ZodString;
|
|
457
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
458
|
+
}, "strip", z.ZodTypeAny, {
|
|
459
|
+
id?: string;
|
|
460
|
+
identifier?: string;
|
|
461
|
+
role?: string;
|
|
462
|
+
ref?: string;
|
|
463
|
+
}, {
|
|
464
|
+
id?: string;
|
|
465
|
+
identifier?: string;
|
|
466
|
+
role?: string;
|
|
467
|
+
ref?: string;
|
|
468
|
+
}>, "many">>;
|
|
469
|
+
plannedOperationalDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
470
|
+
powerFields: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"identifier", [z.ZodObject<{
|
|
471
|
+
value: z.ZodNumber;
|
|
472
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
473
|
+
} & {
|
|
474
|
+
identifier: z.ZodEnum<["onsiteGeneration", "backupGeneration"]>;
|
|
475
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
476
|
+
value: z.ZodNumber;
|
|
477
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
value?: number;
|
|
480
|
+
unit?: string;
|
|
481
|
+
}, {
|
|
482
|
+
value?: number;
|
|
483
|
+
unit?: string;
|
|
484
|
+
}>>;
|
|
485
|
+
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
486
|
+
identifier: z.ZodString;
|
|
487
|
+
id: z.ZodString;
|
|
488
|
+
}, "strip", z.ZodTypeAny, {
|
|
489
|
+
id?: string;
|
|
490
|
+
identifier?: string;
|
|
491
|
+
}, {
|
|
492
|
+
id?: string;
|
|
493
|
+
identifier?: string;
|
|
494
|
+
}>, "many">>;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
sectors?: {
|
|
497
|
+
id?: string;
|
|
498
|
+
identifier?: string;
|
|
499
|
+
}[];
|
|
500
|
+
identifier?: "onsiteGeneration" | "backupGeneration";
|
|
501
|
+
value?: number;
|
|
502
|
+
unit?: string;
|
|
503
|
+
storage?: {
|
|
504
|
+
value?: number;
|
|
505
|
+
unit?: string;
|
|
506
|
+
};
|
|
507
|
+
}, {
|
|
508
|
+
sectors?: {
|
|
509
|
+
id?: string;
|
|
510
|
+
identifier?: string;
|
|
511
|
+
}[];
|
|
512
|
+
identifier?: "onsiteGeneration" | "backupGeneration";
|
|
513
|
+
value?: number;
|
|
514
|
+
unit?: string;
|
|
515
|
+
storage?: {
|
|
516
|
+
value?: number;
|
|
517
|
+
unit?: string;
|
|
518
|
+
};
|
|
519
|
+
}>, z.ZodObject<{
|
|
520
|
+
identifier: z.ZodEnum<["operatingCapacity"]>;
|
|
521
|
+
value: z.ZodNumber;
|
|
522
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
523
|
+
}, "strip", z.ZodTypeAny, {
|
|
524
|
+
identifier?: "operatingCapacity";
|
|
525
|
+
value?: number;
|
|
526
|
+
unit?: string;
|
|
527
|
+
}, {
|
|
528
|
+
identifier?: "operatingCapacity";
|
|
529
|
+
value?: number;
|
|
530
|
+
unit?: string;
|
|
531
|
+
}>]>, "many">>;
|
|
532
|
+
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
533
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
|
|
535
|
+
sectors: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodObject<{
|
|
536
|
+
identifier: z.ZodString;
|
|
537
|
+
id: z.ZodString;
|
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
|
539
|
+
id?: string;
|
|
540
|
+
identifier?: string;
|
|
541
|
+
}, {
|
|
542
|
+
id?: string;
|
|
543
|
+
identifier?: string;
|
|
544
|
+
}>>, "many">>;
|
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
|
546
|
+
sectors?: {
|
|
547
|
+
id?: string;
|
|
548
|
+
identifier?: string;
|
|
549
|
+
}[];
|
|
550
|
+
value?: number;
|
|
551
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
552
|
+
}, {
|
|
553
|
+
sectors?: {
|
|
554
|
+
id?: string;
|
|
555
|
+
identifier?: string;
|
|
556
|
+
}[];
|
|
557
|
+
value?: number;
|
|
558
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
559
|
+
}>>;
|
|
560
|
+
projectName: z.ZodString;
|
|
561
|
+
queueApplications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
562
|
+
queueKey: z.ZodOptional<z.ZodString>;
|
|
563
|
+
applicationId: z.ZodOptional<z.ZodString>;
|
|
564
|
+
queueDataset: z.ZodOptional<z.ZodString>;
|
|
565
|
+
id: z.ZodString;
|
|
566
|
+
identifier: z.ZodString;
|
|
567
|
+
}, "strip", z.ZodTypeAny, {
|
|
568
|
+
id?: string;
|
|
569
|
+
identifier?: string;
|
|
570
|
+
queueKey?: string;
|
|
571
|
+
applicationId?: string;
|
|
572
|
+
queueDataset?: string;
|
|
573
|
+
}, {
|
|
574
|
+
id?: string;
|
|
575
|
+
identifier?: string;
|
|
576
|
+
queueKey?: string;
|
|
577
|
+
applicationId?: string;
|
|
578
|
+
queueDataset?: string;
|
|
579
|
+
}>, "many">>;
|
|
580
|
+
region: z.ZodNativeEnum<typeof RegionType>;
|
|
581
|
+
regions: z.ZodArray<z.ZodObject<{
|
|
582
|
+
identifier: z.ZodString;
|
|
583
|
+
id: z.ZodString;
|
|
584
|
+
}, "strip", z.ZodTypeAny, {
|
|
585
|
+
id?: string;
|
|
586
|
+
identifier?: string;
|
|
587
|
+
}, {
|
|
588
|
+
id?: string;
|
|
589
|
+
identifier?: string;
|
|
536
590
|
}>, "many">;
|
|
537
|
-
|
|
591
|
+
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
592
|
+
source: z.ZodOptional<z.ZodString>;
|
|
538
593
|
identifier: z.ZodString;
|
|
539
594
|
id: z.ZodString;
|
|
540
595
|
}, "strip", z.ZodTypeAny, {
|
|
541
596
|
id?: string;
|
|
542
597
|
identifier?: string;
|
|
598
|
+
source?: string;
|
|
543
599
|
}, {
|
|
544
600
|
id?: string;
|
|
545
601
|
identifier?: string;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
602
|
+
source?: string;
|
|
603
|
+
}>, "many">>;
|
|
604
|
+
showProject: z.ZodBoolean;
|
|
605
|
+
sizeFields: z.ZodOptional<z.ZodObject<{
|
|
606
|
+
building: z.ZodOptional<z.ZodObject<{
|
|
607
|
+
square_foot: z.ZodNumber;
|
|
608
|
+
square_metre: z.ZodNumber;
|
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
square_foot?: number;
|
|
611
|
+
square_metre?: number;
|
|
612
|
+
}, {
|
|
613
|
+
square_foot?: number;
|
|
614
|
+
square_metre?: number;
|
|
615
|
+
}>>;
|
|
616
|
+
land: z.ZodOptional<z.ZodObject<{
|
|
617
|
+
acre: z.ZodNumber;
|
|
618
|
+
hectare: z.ZodNumber;
|
|
619
|
+
}, "strip", z.ZodTypeAny, {
|
|
620
|
+
acre?: number;
|
|
621
|
+
hectare?: number;
|
|
622
|
+
}, {
|
|
623
|
+
acre?: number;
|
|
624
|
+
hectare?: number;
|
|
625
|
+
}>>;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
|
+
building?: {
|
|
628
|
+
square_foot?: number;
|
|
629
|
+
square_metre?: number;
|
|
630
|
+
};
|
|
631
|
+
land?: {
|
|
632
|
+
acre?: number;
|
|
633
|
+
hectare?: number;
|
|
634
|
+
};
|
|
635
|
+
}, {
|
|
636
|
+
building?: {
|
|
637
|
+
square_foot?: number;
|
|
638
|
+
square_metre?: number;
|
|
639
|
+
};
|
|
640
|
+
land?: {
|
|
641
|
+
acre?: number;
|
|
642
|
+
hectare?: number;
|
|
643
|
+
};
|
|
644
|
+
}>>;
|
|
645
|
+
status: z.ZodArray<z.ZodObject<{
|
|
549
646
|
identifier: z.ZodString;
|
|
550
647
|
id: z.ZodString;
|
|
551
648
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -555,13 +652,68 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
555
652
|
id?: string;
|
|
556
653
|
identifier?: string;
|
|
557
654
|
}>, "many">;
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
655
|
+
substation: z.ZodOptional<z.ZodString>;
|
|
656
|
+
totals: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
657
|
+
offtaker: z.ZodOptional<z.ZodNumber>;
|
|
658
|
+
projects: z.ZodOptional<z.ZodNumber>;
|
|
659
|
+
keyPeople: z.ZodOptional<z.ZodNumber>;
|
|
660
|
+
documents: z.ZodOptional<z.ZodNumber>;
|
|
661
|
+
organizations: z.ZodOptional<z.ZodNumber>;
|
|
662
|
+
queueApplications: z.ZodOptional<z.ZodNumber>;
|
|
663
|
+
utility: z.ZodOptional<z.ZodNumber>;
|
|
664
|
+
puc: z.ZodOptional<z.ZodNumber>;
|
|
665
|
+
epc: z.ZodOptional<z.ZodNumber>;
|
|
666
|
+
developer: z.ZodOptional<z.ZodNumber>;
|
|
667
|
+
intels: z.ZodOptional<z.ZodNumber>;
|
|
668
|
+
}, "strip", z.ZodTypeAny, {
|
|
669
|
+
keyPeople?: number;
|
|
670
|
+
offtaker?: number;
|
|
671
|
+
projects?: number;
|
|
672
|
+
documents?: number;
|
|
673
|
+
organizations?: number;
|
|
674
|
+
queueApplications?: number;
|
|
675
|
+
utility?: number;
|
|
676
|
+
puc?: number;
|
|
677
|
+
epc?: number;
|
|
678
|
+
developer?: number;
|
|
679
|
+
intels?: number;
|
|
680
|
+
}, {
|
|
681
|
+
keyPeople?: number;
|
|
682
|
+
offtaker?: number;
|
|
683
|
+
projects?: number;
|
|
684
|
+
documents?: number;
|
|
685
|
+
organizations?: number;
|
|
686
|
+
queueApplications?: number;
|
|
687
|
+
utility?: number;
|
|
688
|
+
puc?: number;
|
|
689
|
+
epc?: number;
|
|
690
|
+
developer?: number;
|
|
691
|
+
intels?: number;
|
|
692
|
+
}>, {
|
|
693
|
+
keyPeople?: number;
|
|
694
|
+
offtaker?: number;
|
|
695
|
+
projects?: number;
|
|
696
|
+
documents?: number;
|
|
697
|
+
organizations?: number;
|
|
698
|
+
queueApplications?: number;
|
|
699
|
+
utility?: number;
|
|
700
|
+
puc?: number;
|
|
701
|
+
epc?: number;
|
|
702
|
+
developer?: number;
|
|
703
|
+
intels?: number;
|
|
704
|
+
}, {
|
|
705
|
+
keyPeople?: number;
|
|
706
|
+
offtaker?: number;
|
|
707
|
+
projects?: number;
|
|
708
|
+
documents?: number;
|
|
709
|
+
organizations?: number;
|
|
710
|
+
queueApplications?: number;
|
|
711
|
+
utility?: number;
|
|
712
|
+
puc?: number;
|
|
713
|
+
epc?: number;
|
|
714
|
+
developer?: number;
|
|
715
|
+
intels?: number;
|
|
716
|
+
}>>;
|
|
565
717
|
}, "strip", z.ZodTypeAny, {
|
|
566
718
|
sectors?: {
|
|
567
719
|
id?: string;
|
|
@@ -673,20 +825,9 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
673
825
|
id?: string;
|
|
674
826
|
identifier?: string;
|
|
675
827
|
}[];
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
externalNotes?: string;
|
|
680
|
-
region?: RegionType;
|
|
681
|
-
buildingSize?: {
|
|
682
|
-
value?: number;
|
|
683
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
684
|
-
};
|
|
685
|
-
landSize?: {
|
|
686
|
-
value?: number;
|
|
687
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
688
|
-
};
|
|
689
|
-
backupGeneration?: {
|
|
828
|
+
onsiteGeneration?: {
|
|
829
|
+
enabled?: boolean;
|
|
830
|
+
description?: string;
|
|
690
831
|
powerCapacity?: {
|
|
691
832
|
sectors?: {
|
|
692
833
|
id?: string;
|
|
@@ -695,14 +836,8 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
695
836
|
value?: number;
|
|
696
837
|
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
697
838
|
};
|
|
698
|
-
storage?: {
|
|
699
|
-
value?: number;
|
|
700
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
701
|
-
};
|
|
702
839
|
};
|
|
703
|
-
|
|
704
|
-
enabled?: boolean;
|
|
705
|
-
description?: string;
|
|
840
|
+
backupGeneration?: {
|
|
706
841
|
powerCapacity?: {
|
|
707
842
|
sectors?: {
|
|
708
843
|
id?: string;
|
|
@@ -711,20 +846,64 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
711
846
|
value?: number;
|
|
712
847
|
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
713
848
|
};
|
|
849
|
+
storage?: {
|
|
850
|
+
value?: number;
|
|
851
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
852
|
+
};
|
|
714
853
|
};
|
|
715
|
-
|
|
854
|
+
'#developers'?: string[];
|
|
855
|
+
'#epcs'?: string[];
|
|
856
|
+
'#utilities'?: string[];
|
|
857
|
+
buildingSize?: {
|
|
858
|
+
value?: number;
|
|
859
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
860
|
+
};
|
|
861
|
+
createdBy?: {
|
|
716
862
|
id?: string;
|
|
717
863
|
identifier?: string;
|
|
718
864
|
}[];
|
|
719
|
-
|
|
865
|
+
externalNotes?: string;
|
|
866
|
+
intel?: {
|
|
720
867
|
id?: string;
|
|
721
868
|
identifier?: string;
|
|
722
869
|
}[];
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
870
|
+
internalNotes?: string;
|
|
871
|
+
landSize?: {
|
|
872
|
+
value?: number;
|
|
873
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
874
|
+
};
|
|
727
875
|
localCity?: string;
|
|
876
|
+
modified?: string;
|
|
877
|
+
powerFields?: ({
|
|
878
|
+
sectors?: {
|
|
879
|
+
id?: string;
|
|
880
|
+
identifier?: string;
|
|
881
|
+
}[];
|
|
882
|
+
identifier?: "onsiteGeneration" | "backupGeneration";
|
|
883
|
+
value?: number;
|
|
884
|
+
unit?: string;
|
|
885
|
+
storage?: {
|
|
886
|
+
value?: number;
|
|
887
|
+
unit?: string;
|
|
888
|
+
};
|
|
889
|
+
} | {
|
|
890
|
+
identifier?: "operatingCapacity";
|
|
891
|
+
value?: number;
|
|
892
|
+
unit?: string;
|
|
893
|
+
})[];
|
|
894
|
+
region?: RegionType;
|
|
895
|
+
showProject?: boolean;
|
|
896
|
+
sizeFields?: {
|
|
897
|
+
building?: {
|
|
898
|
+
square_foot?: number;
|
|
899
|
+
square_metre?: number;
|
|
900
|
+
};
|
|
901
|
+
land?: {
|
|
902
|
+
acre?: number;
|
|
903
|
+
hectare?: number;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
substation?: string;
|
|
728
907
|
}, {
|
|
729
908
|
sectors?: {
|
|
730
909
|
id?: string;
|
|
@@ -836,20 +1015,9 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
836
1015
|
id?: string;
|
|
837
1016
|
identifier?: string;
|
|
838
1017
|
}[];
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
externalNotes?: string;
|
|
843
|
-
region?: RegionType;
|
|
844
|
-
buildingSize?: {
|
|
845
|
-
value?: number;
|
|
846
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
847
|
-
};
|
|
848
|
-
landSize?: {
|
|
849
|
-
value?: number;
|
|
850
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
851
|
-
};
|
|
852
|
-
backupGeneration?: {
|
|
1018
|
+
onsiteGeneration?: {
|
|
1019
|
+
enabled?: boolean;
|
|
1020
|
+
description?: string;
|
|
853
1021
|
powerCapacity?: {
|
|
854
1022
|
sectors?: {
|
|
855
1023
|
id?: string;
|
|
@@ -858,14 +1026,8 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
858
1026
|
value?: number;
|
|
859
1027
|
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
860
1028
|
};
|
|
861
|
-
storage?: {
|
|
862
|
-
value?: number;
|
|
863
|
-
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
864
|
-
};
|
|
865
1029
|
};
|
|
866
|
-
|
|
867
|
-
enabled?: boolean;
|
|
868
|
-
description?: string;
|
|
1030
|
+
backupGeneration?: {
|
|
869
1031
|
powerCapacity?: {
|
|
870
1032
|
sectors?: {
|
|
871
1033
|
id?: string;
|
|
@@ -874,19 +1036,65 @@ export declare const DataCenterSchema: z.ZodObject<{
|
|
|
874
1036
|
value?: number;
|
|
875
1037
|
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
876
1038
|
};
|
|
1039
|
+
storage?: {
|
|
1040
|
+
value?: number;
|
|
1041
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
1042
|
+
};
|
|
877
1043
|
};
|
|
878
|
-
|
|
1044
|
+
'#developers'?: string[];
|
|
1045
|
+
'#epcs'?: string[];
|
|
1046
|
+
'#utilities'?: string[];
|
|
1047
|
+
buildingSize?: {
|
|
1048
|
+
value?: number;
|
|
1049
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
1050
|
+
};
|
|
1051
|
+
createdBy?: {
|
|
879
1052
|
id?: string;
|
|
880
1053
|
identifier?: string;
|
|
881
1054
|
}[];
|
|
882
|
-
|
|
1055
|
+
externalNotes?: string;
|
|
1056
|
+
intel?: {
|
|
883
1057
|
id?: string;
|
|
884
1058
|
identifier?: string;
|
|
885
1059
|
}[];
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
1060
|
+
internalNotes?: string;
|
|
1061
|
+
landSize?: {
|
|
1062
|
+
value?: number;
|
|
1063
|
+
unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
|
|
1064
|
+
};
|
|
890
1065
|
localCity?: string;
|
|
1066
|
+
modified?: string;
|
|
1067
|
+
powerFields?: ({
|
|
1068
|
+
sectors?: {
|
|
1069
|
+
id?: string;
|
|
1070
|
+
identifier?: string;
|
|
1071
|
+
}[];
|
|
1072
|
+
identifier?: "onsiteGeneration" | "backupGeneration";
|
|
1073
|
+
value?: number;
|
|
1074
|
+
unit?: string;
|
|
1075
|
+
storage?: {
|
|
1076
|
+
value?: number;
|
|
1077
|
+
unit?: string;
|
|
1078
|
+
};
|
|
1079
|
+
} | {
|
|
1080
|
+
identifier?: "operatingCapacity";
|
|
1081
|
+
value?: number;
|
|
1082
|
+
unit?: string;
|
|
1083
|
+
})[];
|
|
1084
|
+
region?: RegionType;
|
|
1085
|
+
showProject?: boolean;
|
|
1086
|
+
sizeFields?: {
|
|
1087
|
+
building?: {
|
|
1088
|
+
square_foot?: number;
|
|
1089
|
+
square_metre?: number;
|
|
1090
|
+
};
|
|
1091
|
+
land?: {
|
|
1092
|
+
acre?: number;
|
|
1093
|
+
hectare?: number;
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
substation?: string;
|
|
891
1097
|
}>;
|
|
1098
|
+
export type PowerWithStorage = z.infer<typeof PowerWithStorageSchema>;
|
|
892
1099
|
export type DataCenter = z.infer<typeof DataCenterSchema>;
|
|
1100
|
+
export {};
|
|
@@ -8,15 +8,53 @@ var RegionType;
|
|
|
8
8
|
RegionType["Europe"] = "EUROPE";
|
|
9
9
|
RegionType["NA"] = "NA";
|
|
10
10
|
})(RegionType || (exports.RegionType = RegionType = {}));
|
|
11
|
+
const BasePowerFieldSchema = zod_1.z.object({
|
|
12
|
+
value: zod_1.z.number(),
|
|
13
|
+
unit: entity_1.OptionalStringSchema,
|
|
14
|
+
});
|
|
15
|
+
const PowerWithStorageSchema = BasePowerFieldSchema.extend({
|
|
16
|
+
identifier: zod_1.z.enum(['onsiteGeneration', 'backupGeneration']),
|
|
17
|
+
storage: BasePowerFieldSchema.optional(),
|
|
18
|
+
sectors: entity_1.EntityItemArraySchema.optional(),
|
|
19
|
+
});
|
|
20
|
+
const OperatingCapacitySchema = zod_1.z.object({
|
|
21
|
+
identifier: zod_1.z.enum(['operatingCapacity']),
|
|
22
|
+
value: zod_1.z.number(),
|
|
23
|
+
unit: entity_1.OptionalStringSchema,
|
|
24
|
+
});
|
|
25
|
+
const PowerFieldSchema = zod_1.z.discriminatedUnion('identifier', [
|
|
26
|
+
PowerWithStorageSchema,
|
|
27
|
+
OperatingCapacitySchema,
|
|
28
|
+
]);
|
|
29
|
+
const BuildingSizeSchema = zod_1.z.object({
|
|
30
|
+
square_foot: zod_1.z.number(),
|
|
31
|
+
square_metre: zod_1.z.number(),
|
|
32
|
+
});
|
|
33
|
+
const LandSizeSchema = zod_1.z.object({
|
|
34
|
+
acre: zod_1.z.number(),
|
|
35
|
+
hectare: zod_1.z.number(),
|
|
36
|
+
});
|
|
37
|
+
const SizeFieldsSchema = zod_1.z.object({
|
|
38
|
+
building: BuildingSizeSchema.optional(),
|
|
39
|
+
land: LandSizeSchema.optional(),
|
|
40
|
+
});
|
|
11
41
|
exports.DataCenterSchema = zod_1.z.object({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
42
|
+
'#developers': entity_1.OptionalStringArraySchema,
|
|
43
|
+
'#epcs': entity_1.OptionalStringArraySchema,
|
|
44
|
+
'#utilities': entity_1.OptionalStringArraySchema,
|
|
15
45
|
allSectors: entity_1.OptionalStringSchema,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
46
|
+
audiences: entity_1.EntityItemArraySchema,
|
|
47
|
+
backupGeneration: zod_1.z
|
|
48
|
+
.object({
|
|
49
|
+
powerCapacity: entity_1.OptionalNumberWithUnitAndSectorSchema,
|
|
50
|
+
storage: entity_1.OptionalNumberWithUnitSchema,
|
|
51
|
+
})
|
|
52
|
+
.optional(),
|
|
53
|
+
buildingSize: entity_1.OptionalNumberWithUnitSchema,
|
|
54
|
+
cost: entity_1.OptionalNumberWithUnitSchema,
|
|
55
|
+
country: entity_1.OptionalStringSchema,
|
|
56
|
+
created: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
57
|
+
createdBy: entity_1.EntityItemArraySchema,
|
|
20
58
|
externalNotes: entity_1.OptionalStringSchema,
|
|
21
59
|
geo: zod_1.z.object({
|
|
22
60
|
default: entity_1.OptionalCoordinateSchema,
|
|
@@ -25,35 +63,29 @@ exports.DataCenterSchema = zod_1.z.object({
|
|
|
25
63
|
facility: entity_1.OptionalCoordinateSchema,
|
|
26
64
|
county: entity_1.OptionalCoordinateSchema,
|
|
27
65
|
}),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
66
|
+
id: zod_1.z.string(),
|
|
67
|
+
intel: entity_1.EntityItemArraySchema,
|
|
68
|
+
internalNotes: entity_1.OptionalStringSchema,
|
|
31
69
|
landSize: entity_1.OptionalNumberWithUnitSchema,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
})
|
|
38
|
-
.optional(),
|
|
70
|
+
localCity: entity_1.OptionalStringSchema,
|
|
71
|
+
localCounty: entity_1.OptionalStringSchema,
|
|
72
|
+
localState: entity_1.OptionalStringSchema,
|
|
73
|
+
location: entity_1.LocationItemArraySchema.min(1),
|
|
74
|
+
modified: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
39
75
|
onsiteGeneration: entity_1.OnsiteGenerationSchema.optional(),
|
|
40
|
-
totals: entity_1.TotalsSchema,
|
|
41
|
-
regions: entity_1.EntityItemArraySchema,
|
|
42
|
-
sectors: entity_1.EntityItemSourceArraySchema.optional(),
|
|
43
|
-
plannedOperationalDate: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
44
76
|
organizations: entity_1.OrganizationSchema,
|
|
77
|
+
plannedOperationalDate: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
78
|
+
powerFields: zod_1.z.array(PowerFieldSchema).optional(),
|
|
79
|
+
powerCapacity: entity_1.OptionalNumberWithUnitAndSectorSchema,
|
|
80
|
+
projectName: zod_1.z.string().min(2),
|
|
45
81
|
queueApplications: entity_1.QueueJoinOptionalSchema,
|
|
46
|
-
|
|
47
|
-
|
|
82
|
+
region: zod_1.z.nativeEnum(RegionType),
|
|
83
|
+
regions: entity_1.EntityItemArraySchema,
|
|
84
|
+
sectors: entity_1.EntityItemSourceArraySchema.optional(),
|
|
85
|
+
showProject: zod_1.z.boolean(),
|
|
86
|
+
sizeFields: SizeFieldsSchema.optional(),
|
|
48
87
|
status: entity_1.EntityItemArraySchema.min(1),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
modified: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
52
|
-
'#developers': entity_1.OptionalStringArraySchema,
|
|
53
|
-
'#epcs': entity_1.OptionalStringArraySchema,
|
|
54
|
-
'#utilities': entity_1.OptionalStringArraySchema,
|
|
55
|
-
localCity: entity_1.OptionalStringSchema,
|
|
56
|
-
localState: entity_1.OptionalStringSchema,
|
|
57
|
-
localCounty: entity_1.OptionalStringSchema,
|
|
88
|
+
substation: entity_1.OptionalStringSchema,
|
|
89
|
+
totals: entity_1.TotalsSchema,
|
|
58
90
|
});
|
|
59
91
|
//# sourceMappingURL=dataCenters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataCenters.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/dataCenters.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,qCAciB;AAEjB,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,uBAAS,CAAA;AACX,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;
|
|
1
|
+
{"version":3,"file":"dataCenters.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/dataCenters.ts"],"names":[],"mappings":"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"}
|