@new-project-media/client-frontends-shared-types 2.0.19 → 2.0.20

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.19",
3
+ "version": "2.0.20",
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/",
@@ -4,8 +4,10 @@ export declare enum RegionType {
4
4
  NA = "NA"
5
5
  }
6
6
  export declare const DataCenterSchema: z.ZodObject<{
7
- id: z.ZodString;
8
- country: z.ZodOptional<z.ZodString>;
7
+ '#developers': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8
+ '#epcs': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ '#utilities': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
+ allSectors: z.ZodOptional<z.ZodString>;
9
11
  audiences: z.ZodArray<z.ZodObject<{
10
12
  identifier: z.ZodString;
11
13
  id: z.ZodString;
@@ -16,150 +18,6 @@ export declare const DataCenterSchema: z.ZodObject<{
16
18
  id?: string;
17
19
  identifier?: string;
18
20
  }>, "many">;
19
- allSectors: z.ZodOptional<z.ZodString>;
20
- showProject: z.ZodBoolean;
21
- projectName: z.ZodString;
22
- substation: z.ZodOptional<z.ZodString>;
23
- internalNotes: z.ZodOptional<z.ZodString>;
24
- externalNotes: z.ZodOptional<z.ZodString>;
25
- geo: z.ZodObject<{
26
- default: z.ZodOptional<z.ZodObject<{
27
- lat: z.ZodNumber;
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, {
147
- value?: number;
148
- unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
149
- }, {
150
- value?: number;
151
- unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
152
- }>>;
153
- cost: z.ZodOptional<z.ZodObject<{
154
- value: z.ZodOptional<z.ZodNumber>;
155
- unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
156
- }, "strip", z.ZodTypeAny, {
157
- value?: number;
158
- unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
159
- }, {
160
- value?: number;
161
- unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
162
- }>>;
163
21
  backupGeneration: z.ZodOptional<z.ZodObject<{
164
22
  powerCapacity: z.ZodOptional<z.ZodObject<{
165
23
  value: z.ZodOptional<z.ZodNumber>;
@@ -226,122 +84,29 @@ export declare const DataCenterSchema: z.ZodObject<{
226
84
  unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
227
85
  };
228
86
  }>>;
229
- onsiteGeneration: z.ZodOptional<z.ZodObject<{
230
- enabled: z.ZodOptional<z.ZodBoolean>;
231
- description: z.ZodOptional<z.ZodString>;
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
- }>>;
87
+ buildingSize: z.ZodOptional<z.ZodObject<{
88
+ value: z.ZodOptional<z.ZodNumber>;
89
+ unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
260
90
  }, "strip", z.ZodTypeAny, {
261
- enabled?: boolean;
262
- description?: string;
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
- };
91
+ value?: number;
92
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
271
93
  }, {
272
- enabled?: boolean;
273
- description?: string;
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
- };
94
+ value?: number;
95
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
282
96
  }>>;
283
- totals: z.ZodOptional<z.ZodEffects<z.ZodObject<{
284
- offtaker: z.ZodOptional<z.ZodNumber>;
285
- projects: z.ZodOptional<z.ZodNumber>;
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>;
97
+ cost: z.ZodOptional<z.ZodObject<{
98
+ value: z.ZodOptional<z.ZodNumber>;
99
+ unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
295
100
  }, "strip", z.ZodTypeAny, {
296
- keyPeople?: number;
297
- offtaker?: number;
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;
101
+ value?: number;
102
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
331
103
  }, {
332
- keyPeople?: number;
333
- offtaker?: number;
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;
104
+ value?: number;
105
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
343
106
  }>>;
344
- regions: z.ZodArray<z.ZodObject<{
107
+ country: z.ZodOptional<z.ZodString>;
108
+ created: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
109
+ createdBy: z.ZodArray<z.ZodObject<{
345
110
  identifier: z.ZodString;
346
111
  id: z.ZodString;
347
112
  }, "strip", z.ZodTypeAny, {
@@ -351,56 +116,87 @@ export declare const DataCenterSchema: z.ZodObject<{
351
116
  id?: string;
352
117
  identifier?: string;
353
118
  }>, "many">;
354
- sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
355
- source: z.ZodOptional<z.ZodString>;
356
- identifier: z.ZodString;
357
- id: z.ZodString;
358
- }, "strip", z.ZodTypeAny, {
359
- id?: string;
360
- identifier?: string;
361
- source?: string;
362
- }, {
363
- id?: string;
364
- identifier?: string;
365
- source?: string;
366
- }>, "many">>;
367
- plannedOperationalDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
368
- organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{
369
- identifier: z.ZodString;
370
- id: z.ZodString;
371
- } & {
372
- role: z.ZodString;
373
- ref: z.ZodOptional<z.ZodString>;
374
- }, "strip", z.ZodTypeAny, {
375
- id?: string;
376
- identifier?: string;
377
- role?: string;
378
- ref?: string;
379
- }, {
380
- id?: string;
381
- identifier?: string;
382
- role?: string;
383
- ref?: string;
384
- }>, "many">>;
385
- queueApplications: z.ZodOptional<z.ZodArray<z.ZodObject<{
386
- queueKey: z.ZodOptional<z.ZodString>;
387
- applicationId: z.ZodOptional<z.ZodString>;
388
- queueDataset: z.ZodOptional<z.ZodString>;
389
- id: z.ZodString;
390
- identifier: z.ZodString;
119
+ externalNotes: z.ZodOptional<z.ZodString>;
120
+ geo: z.ZodObject<{
121
+ default: z.ZodOptional<z.ZodObject<{
122
+ lat: z.ZodNumber;
123
+ lon: z.ZodNumber;
124
+ }, "strip", z.ZodTypeAny, {
125
+ lat?: number;
126
+ lon?: number;
127
+ }, {
128
+ lat?: number;
129
+ lon?: number;
130
+ }>>;
131
+ defaultValue: z.ZodOptional<z.ZodString>;
132
+ location: z.ZodOptional<z.ZodObject<{
133
+ lat: z.ZodNumber;
134
+ lon: z.ZodNumber;
135
+ }, "strip", z.ZodTypeAny, {
136
+ lat?: number;
137
+ lon?: number;
138
+ }, {
139
+ lat?: number;
140
+ lon?: number;
141
+ }>>;
142
+ facility: z.ZodOptional<z.ZodObject<{
143
+ lat: z.ZodNumber;
144
+ lon: z.ZodNumber;
145
+ }, "strip", z.ZodTypeAny, {
146
+ lat?: number;
147
+ lon?: number;
148
+ }, {
149
+ lat?: number;
150
+ lon?: number;
151
+ }>>;
152
+ county: z.ZodOptional<z.ZodObject<{
153
+ lat: z.ZodNumber;
154
+ lon: z.ZodNumber;
155
+ }, "strip", z.ZodTypeAny, {
156
+ lat?: number;
157
+ lon?: number;
158
+ }, {
159
+ lat?: number;
160
+ lon?: number;
161
+ }>>;
391
162
  }, "strip", z.ZodTypeAny, {
392
- id?: string;
393
- identifier?: string;
394
- queueKey?: string;
395
- applicationId?: string;
396
- queueDataset?: string;
163
+ county?: {
164
+ lat?: number;
165
+ lon?: number;
166
+ };
167
+ location?: {
168
+ lat?: number;
169
+ lon?: number;
170
+ };
171
+ defaultValue?: string;
172
+ default?: {
173
+ lat?: number;
174
+ lon?: number;
175
+ };
176
+ facility?: {
177
+ lat?: number;
178
+ lon?: number;
179
+ };
397
180
  }, {
398
- id?: string;
399
- identifier?: string;
400
- queueKey?: string;
401
- applicationId?: string;
402
- queueDataset?: string;
403
- }>, "many">>;
181
+ county?: {
182
+ lat?: number;
183
+ lon?: number;
184
+ };
185
+ location?: {
186
+ lat?: number;
187
+ lon?: number;
188
+ };
189
+ defaultValue?: string;
190
+ default?: {
191
+ lat?: number;
192
+ lon?: number;
193
+ };
194
+ facility?: {
195
+ lat?: number;
196
+ lon?: number;
197
+ };
198
+ }>;
199
+ id: z.ZodString;
404
200
  intel: z.ZodArray<z.ZodObject<{
405
201
  identifier: z.ZodString;
406
202
  id: z.ZodString;
@@ -411,6 +207,20 @@ export declare const DataCenterSchema: z.ZodObject<{
411
207
  id?: string;
412
208
  identifier?: string;
413
209
  }>, "many">;
210
+ internalNotes: z.ZodOptional<z.ZodString>;
211
+ landSize: z.ZodOptional<z.ZodObject<{
212
+ value: z.ZodOptional<z.ZodNumber>;
213
+ unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ value?: number;
216
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
217
+ }, {
218
+ value?: number;
219
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
220
+ }>>;
221
+ localCity: z.ZodOptional<z.ZodString>;
222
+ localCounty: z.ZodOptional<z.ZodString>;
223
+ localState: z.ZodOptional<z.ZodString>;
414
224
  location: z.ZodArray<z.ZodObject<{
415
225
  identifier: z.ZodString;
416
226
  id: z.ZodString;
@@ -509,43 +319,280 @@ export declare const DataCenterSchema: z.ZodObject<{
509
319
  }, {
510
320
  id?: string;
511
321
  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;
322
+ isApproximate?: boolean;
323
+ components?: {
324
+ state?: string;
325
+ county?: string;
326
+ 'ISO_3166-1_alpha-2'?: string;
327
+ 'ISO_3166-1_alpha-3'?: string;
328
+ 'ISO_3166-2'?: string[];
329
+ _category?: string;
330
+ _normalized_city?: string;
331
+ _type?: string;
332
+ city?: string;
333
+ continent?: string;
334
+ country?: string;
335
+ country_code?: string;
336
+ state_code?: string;
337
+ municipality?: string;
338
+ political_union?: string;
339
+ state_district?: string;
340
+ };
341
+ geometry?: {
342
+ lat?: number;
343
+ lng?: number;
344
+ };
345
+ override?: boolean;
346
+ }>, "many">;
347
+ modified: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
348
+ onsiteGeneration: z.ZodOptional<z.ZodObject<{
349
+ enabled: z.ZodOptional<z.ZodBoolean>;
350
+ description: z.ZodOptional<z.ZodString>;
351
+ powerCapacity: z.ZodOptional<z.ZodObject<{
352
+ value: z.ZodOptional<z.ZodNumber>;
353
+ unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
354
+ sectors: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodObject<{
355
+ identifier: z.ZodString;
356
+ id: z.ZodString;
357
+ }, "strip", z.ZodTypeAny, {
358
+ id?: string;
359
+ identifier?: string;
360
+ }, {
361
+ id?: string;
362
+ identifier?: string;
363
+ }>>, "many">>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ sectors?: {
366
+ id?: string;
367
+ identifier?: string;
368
+ }[];
369
+ value?: number;
370
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
371
+ }, {
372
+ sectors?: {
373
+ id?: string;
374
+ identifier?: string;
375
+ }[];
376
+ value?: number;
377
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
378
+ }>>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ enabled?: boolean;
381
+ description?: string;
382
+ powerCapacity?: {
383
+ sectors?: {
384
+ id?: string;
385
+ identifier?: string;
386
+ }[];
387
+ value?: number;
388
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
389
+ };
390
+ }, {
391
+ enabled?: boolean;
392
+ description?: string;
393
+ powerCapacity?: {
394
+ sectors?: {
395
+ id?: string;
396
+ identifier?: string;
397
+ }[];
398
+ value?: number;
399
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
400
+ };
401
+ }>>;
402
+ organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{
403
+ identifier: z.ZodString;
404
+ id: z.ZodString;
405
+ } & {
406
+ role: z.ZodString;
407
+ ref: z.ZodOptional<z.ZodString>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ id?: string;
410
+ identifier?: string;
411
+ role?: string;
412
+ ref?: string;
413
+ }, {
414
+ id?: string;
415
+ identifier?: string;
416
+ role?: string;
417
+ ref?: string;
418
+ }>, "many">>;
419
+ plannedOperationalDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
420
+ powerFields: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"identifier", [z.ZodObject<{
421
+ value: z.ZodNumber;
422
+ unit: z.ZodOptional<z.ZodString>;
423
+ } & {
424
+ identifier: z.ZodEnum<["onsiteGeneration", "backupGeneration"]>;
425
+ storage: z.ZodOptional<z.ZodObject<{
426
+ value: z.ZodNumber;
427
+ unit: z.ZodOptional<z.ZodString>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ value?: number;
430
+ unit?: string;
431
+ }, {
432
+ value?: number;
433
+ unit?: string;
434
+ }>>;
435
+ sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
436
+ identifier: z.ZodString;
437
+ id: z.ZodString;
438
+ }, "strip", z.ZodTypeAny, {
439
+ id?: string;
440
+ identifier?: string;
441
+ }, {
442
+ id?: string;
443
+ identifier?: string;
444
+ }>, "many">>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ sectors?: {
447
+ id?: string;
448
+ identifier?: string;
449
+ }[];
450
+ identifier?: "onsiteGeneration" | "backupGeneration";
451
+ value?: number;
452
+ unit?: string;
453
+ storage?: {
454
+ value?: number;
455
+ unit?: string;
456
+ };
457
+ }, {
458
+ sectors?: {
459
+ id?: string;
460
+ identifier?: string;
461
+ }[];
462
+ identifier?: "onsiteGeneration" | "backupGeneration";
463
+ value?: number;
464
+ unit?: string;
465
+ storage?: {
466
+ value?: number;
467
+ unit?: string;
468
+ };
469
+ }>, z.ZodObject<{
470
+ identifier: z.ZodEnum<["operatingCapacity"]>;
471
+ value: z.ZodNumber;
472
+ unit: z.ZodOptional<z.ZodString>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ identifier?: "operatingCapacity";
475
+ value?: number;
476
+ unit?: string;
477
+ }, {
478
+ identifier?: "operatingCapacity";
479
+ value?: number;
480
+ unit?: string;
481
+ }>]>, "many">>;
482
+ powerCapacity: z.ZodOptional<z.ZodObject<{
483
+ value: z.ZodOptional<z.ZodNumber>;
484
+ unit: z.ZodEnum<["kW", "MW", "GW", "kWh", "MWh", "GWh", "acre", "hectare", "square_foot", "square_metre", "usd", "eur", "gbp"]>;
485
+ sectors: z.ZodOptional<z.ZodArray<z.ZodOptional<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
+ value?: number;
501
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
502
+ }, {
503
+ sectors?: {
504
+ id?: string;
505
+ identifier?: string;
506
+ }[];
507
+ value?: number;
508
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
509
+ }>>;
510
+ projectName: z.ZodString;
511
+ queueApplications: z.ZodOptional<z.ZodArray<z.ZodObject<{
512
+ queueKey: z.ZodOptional<z.ZodString>;
513
+ applicationId: z.ZodOptional<z.ZodString>;
514
+ queueDataset: z.ZodOptional<z.ZodString>;
515
+ id: z.ZodString;
516
+ identifier: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ id?: string;
519
+ identifier?: string;
520
+ queueKey?: string;
521
+ applicationId?: string;
522
+ queueDataset?: string;
523
+ }, {
524
+ id?: string;
525
+ identifier?: string;
526
+ queueKey?: string;
527
+ applicationId?: string;
528
+ queueDataset?: string;
529
+ }>, "many">>;
530
+ region: z.ZodNativeEnum<typeof RegionType>;
531
+ regions: z.ZodArray<z.ZodObject<{
532
+ identifier: z.ZodString;
533
+ id: z.ZodString;
534
+ }, "strip", z.ZodTypeAny, {
535
+ id?: string;
536
+ identifier?: string;
537
+ }, {
538
+ id?: string;
539
+ identifier?: string;
536
540
  }>, "many">;
537
- status: z.ZodArray<z.ZodObject<{
541
+ sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
542
+ source: z.ZodOptional<z.ZodString>;
538
543
  identifier: z.ZodString;
539
544
  id: z.ZodString;
540
545
  }, "strip", z.ZodTypeAny, {
541
546
  id?: string;
542
547
  identifier?: string;
548
+ source?: string;
543
549
  }, {
544
550
  id?: string;
545
551
  identifier?: string;
546
- }>, "many">;
547
- created: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
548
- createdBy: z.ZodArray<z.ZodObject<{
552
+ source?: string;
553
+ }>, "many">>;
554
+ showProject: z.ZodBoolean;
555
+ sizeFields: z.ZodOptional<z.ZodObject<{
556
+ building: z.ZodOptional<z.ZodObject<{
557
+ square_foot: z.ZodNumber;
558
+ square_metre: z.ZodNumber;
559
+ }, "strip", z.ZodTypeAny, {
560
+ square_foot?: number;
561
+ square_metre?: number;
562
+ }, {
563
+ square_foot?: number;
564
+ square_metre?: number;
565
+ }>>;
566
+ land: z.ZodOptional<z.ZodObject<{
567
+ acre: z.ZodNumber;
568
+ hectare: z.ZodNumber;
569
+ }, "strip", z.ZodTypeAny, {
570
+ acre?: number;
571
+ hectare?: number;
572
+ }, {
573
+ acre?: number;
574
+ hectare?: number;
575
+ }>>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ building?: {
578
+ square_foot?: number;
579
+ square_metre?: number;
580
+ };
581
+ land?: {
582
+ acre?: number;
583
+ hectare?: number;
584
+ };
585
+ }, {
586
+ building?: {
587
+ square_foot?: number;
588
+ square_metre?: number;
589
+ };
590
+ land?: {
591
+ acre?: number;
592
+ hectare?: number;
593
+ };
594
+ }>>;
595
+ status: z.ZodArray<z.ZodObject<{
549
596
  identifier: z.ZodString;
550
597
  id: z.ZodString;
551
598
  }, "strip", z.ZodTypeAny, {
@@ -555,13 +602,68 @@ export declare const DataCenterSchema: z.ZodObject<{
555
602
  id?: string;
556
603
  identifier?: string;
557
604
  }>, "many">;
558
- modified: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
559
- '#developers': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
560
- '#epcs': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
561
- '#utilities': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
562
- localCity: z.ZodOptional<z.ZodString>;
563
- localState: z.ZodOptional<z.ZodString>;
564
- localCounty: z.ZodOptional<z.ZodString>;
605
+ substation: z.ZodOptional<z.ZodString>;
606
+ totals: z.ZodOptional<z.ZodEffects<z.ZodObject<{
607
+ offtaker: z.ZodOptional<z.ZodNumber>;
608
+ projects: z.ZodOptional<z.ZodNumber>;
609
+ keyPeople: z.ZodOptional<z.ZodNumber>;
610
+ documents: z.ZodOptional<z.ZodNumber>;
611
+ organizations: z.ZodOptional<z.ZodNumber>;
612
+ queueApplications: z.ZodOptional<z.ZodNumber>;
613
+ utility: z.ZodOptional<z.ZodNumber>;
614
+ puc: z.ZodOptional<z.ZodNumber>;
615
+ epc: z.ZodOptional<z.ZodNumber>;
616
+ developer: z.ZodOptional<z.ZodNumber>;
617
+ intels: z.ZodOptional<z.ZodNumber>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ keyPeople?: number;
620
+ offtaker?: number;
621
+ projects?: number;
622
+ documents?: number;
623
+ organizations?: number;
624
+ queueApplications?: number;
625
+ utility?: number;
626
+ puc?: number;
627
+ epc?: number;
628
+ developer?: number;
629
+ intels?: number;
630
+ }, {
631
+ keyPeople?: number;
632
+ offtaker?: number;
633
+ projects?: number;
634
+ documents?: number;
635
+ organizations?: number;
636
+ queueApplications?: number;
637
+ utility?: number;
638
+ puc?: number;
639
+ epc?: number;
640
+ developer?: number;
641
+ intels?: number;
642
+ }>, {
643
+ keyPeople?: number;
644
+ offtaker?: number;
645
+ projects?: number;
646
+ documents?: number;
647
+ organizations?: number;
648
+ queueApplications?: number;
649
+ utility?: number;
650
+ puc?: number;
651
+ epc?: number;
652
+ developer?: number;
653
+ intels?: number;
654
+ }, {
655
+ keyPeople?: number;
656
+ offtaker?: number;
657
+ projects?: number;
658
+ documents?: number;
659
+ organizations?: number;
660
+ queueApplications?: number;
661
+ utility?: number;
662
+ puc?: number;
663
+ epc?: number;
664
+ developer?: number;
665
+ intels?: number;
666
+ }>>;
565
667
  }, "strip", z.ZodTypeAny, {
566
668
  sectors?: {
567
669
  id?: string;
@@ -673,20 +775,9 @@ export declare const DataCenterSchema: z.ZodObject<{
673
775
  id?: string;
674
776
  identifier?: string;
675
777
  }[];
676
- showProject?: boolean;
677
- substation?: string;
678
- internalNotes?: string;
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?: {
778
+ onsiteGeneration?: {
779
+ enabled?: boolean;
780
+ description?: string;
690
781
  powerCapacity?: {
691
782
  sectors?: {
692
783
  id?: string;
@@ -695,14 +786,8 @@ export declare const DataCenterSchema: z.ZodObject<{
695
786
  value?: number;
696
787
  unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
697
788
  };
698
- storage?: {
699
- value?: number;
700
- unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
701
- };
702
789
  };
703
- onsiteGeneration?: {
704
- enabled?: boolean;
705
- description?: string;
790
+ backupGeneration?: {
706
791
  powerCapacity?: {
707
792
  sectors?: {
708
793
  id?: string;
@@ -711,20 +796,64 @@ export declare const DataCenterSchema: z.ZodObject<{
711
796
  value?: number;
712
797
  unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
713
798
  };
799
+ storage?: {
800
+ value?: number;
801
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
802
+ };
714
803
  };
715
- intel?: {
804
+ '#developers'?: string[];
805
+ '#epcs'?: string[];
806
+ '#utilities'?: string[];
807
+ buildingSize?: {
808
+ value?: number;
809
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
810
+ };
811
+ createdBy?: {
716
812
  id?: string;
717
813
  identifier?: string;
718
814
  }[];
719
- createdBy?: {
815
+ externalNotes?: string;
816
+ intel?: {
720
817
  id?: string;
721
818
  identifier?: string;
722
819
  }[];
723
- modified?: string;
724
- '#developers'?: string[];
725
- '#epcs'?: string[];
726
- '#utilities'?: string[];
820
+ internalNotes?: string;
821
+ landSize?: {
822
+ value?: number;
823
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
824
+ };
727
825
  localCity?: string;
826
+ modified?: string;
827
+ powerFields?: ({
828
+ sectors?: {
829
+ id?: string;
830
+ identifier?: string;
831
+ }[];
832
+ identifier?: "onsiteGeneration" | "backupGeneration";
833
+ value?: number;
834
+ unit?: string;
835
+ storage?: {
836
+ value?: number;
837
+ unit?: string;
838
+ };
839
+ } | {
840
+ identifier?: "operatingCapacity";
841
+ value?: number;
842
+ unit?: string;
843
+ })[];
844
+ region?: RegionType;
845
+ showProject?: boolean;
846
+ sizeFields?: {
847
+ building?: {
848
+ square_foot?: number;
849
+ square_metre?: number;
850
+ };
851
+ land?: {
852
+ acre?: number;
853
+ hectare?: number;
854
+ };
855
+ };
856
+ substation?: string;
728
857
  }, {
729
858
  sectors?: {
730
859
  id?: string;
@@ -836,20 +965,9 @@ export declare const DataCenterSchema: z.ZodObject<{
836
965
  id?: string;
837
966
  identifier?: string;
838
967
  }[];
839
- showProject?: boolean;
840
- substation?: string;
841
- internalNotes?: string;
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?: {
968
+ onsiteGeneration?: {
969
+ enabled?: boolean;
970
+ description?: string;
853
971
  powerCapacity?: {
854
972
  sectors?: {
855
973
  id?: string;
@@ -858,14 +976,8 @@ export declare const DataCenterSchema: z.ZodObject<{
858
976
  value?: number;
859
977
  unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
860
978
  };
861
- storage?: {
862
- value?: number;
863
- unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
864
- };
865
979
  };
866
- onsiteGeneration?: {
867
- enabled?: boolean;
868
- description?: string;
980
+ backupGeneration?: {
869
981
  powerCapacity?: {
870
982
  sectors?: {
871
983
  id?: string;
@@ -874,19 +986,63 @@ export declare const DataCenterSchema: z.ZodObject<{
874
986
  value?: number;
875
987
  unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
876
988
  };
989
+ storage?: {
990
+ value?: number;
991
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
992
+ };
877
993
  };
878
- intel?: {
994
+ '#developers'?: string[];
995
+ '#epcs'?: string[];
996
+ '#utilities'?: string[];
997
+ buildingSize?: {
998
+ value?: number;
999
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
1000
+ };
1001
+ createdBy?: {
879
1002
  id?: string;
880
1003
  identifier?: string;
881
1004
  }[];
882
- createdBy?: {
1005
+ externalNotes?: string;
1006
+ intel?: {
883
1007
  id?: string;
884
1008
  identifier?: string;
885
1009
  }[];
886
- modified?: string;
887
- '#developers'?: string[];
888
- '#epcs'?: string[];
889
- '#utilities'?: string[];
1010
+ internalNotes?: string;
1011
+ landSize?: {
1012
+ value?: number;
1013
+ unit?: "kW" | "MW" | "GW" | "kWh" | "MWh" | "GWh" | "acre" | "hectare" | "square_foot" | "square_metre" | "usd" | "eur" | "gbp";
1014
+ };
890
1015
  localCity?: string;
1016
+ modified?: string;
1017
+ powerFields?: ({
1018
+ sectors?: {
1019
+ id?: string;
1020
+ identifier?: string;
1021
+ }[];
1022
+ identifier?: "onsiteGeneration" | "backupGeneration";
1023
+ value?: number;
1024
+ unit?: string;
1025
+ storage?: {
1026
+ value?: number;
1027
+ unit?: string;
1028
+ };
1029
+ } | {
1030
+ identifier?: "operatingCapacity";
1031
+ value?: number;
1032
+ unit?: string;
1033
+ })[];
1034
+ region?: RegionType;
1035
+ showProject?: boolean;
1036
+ sizeFields?: {
1037
+ building?: {
1038
+ square_foot?: number;
1039
+ square_metre?: number;
1040
+ };
1041
+ land?: {
1042
+ acre?: number;
1043
+ hectare?: number;
1044
+ };
1045
+ };
1046
+ substation?: string;
891
1047
  }>;
892
1048
  export type DataCenter = z.infer<typeof DataCenterSchema>;
@@ -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
- id: zod_1.z.string(),
13
- country: entity_1.OptionalStringSchema,
14
- audiences: entity_1.EntityItemArraySchema,
42
+ '#developers': entity_1.OptionalStringArraySchema,
43
+ '#epcs': entity_1.OptionalStringArraySchema,
44
+ '#utilities': entity_1.OptionalStringArraySchema,
15
45
  allSectors: entity_1.OptionalStringSchema,
16
- showProject: zod_1.z.boolean(),
17
- projectName: zod_1.z.string().min(2),
18
- substation: entity_1.OptionalStringSchema,
19
- internalNotes: entity_1.OptionalStringSchema,
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
- region: zod_1.z.nativeEnum(RegionType),
29
- powerCapacity: entity_1.OptionalNumberWithUnitAndSectorSchema,
30
- buildingSize: entity_1.OptionalNumberWithUnitSchema,
66
+ id: zod_1.z.string(),
67
+ intel: entity_1.EntityItemArraySchema,
68
+ internalNotes: entity_1.OptionalStringSchema,
31
69
  landSize: entity_1.OptionalNumberWithUnitSchema,
32
- cost: entity_1.OptionalNumberWithUnitSchema,
33
- backupGeneration: zod_1.z
34
- .object({
35
- powerCapacity: entity_1.OptionalNumberWithUnitAndSectorSchema,
36
- storage: entity_1.OptionalNumberWithUnitSchema,
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
- intel: entity_1.EntityItemArraySchema,
47
- location: entity_1.LocationItemArraySchema.min(1),
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
- created: entity_1.YYYYMMDDRegexOptionalSchema,
50
- createdBy: entity_1.EntityItemArraySchema,
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;AAEY,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,OAAO,EAAE,6BAAoB;IAC7B,SAAS,EAAE,8BAAqB;IAChC,UAAU,EAAE,6BAAoB;IAChC,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,UAAU,EAAE,6BAAoB;IAChC,aAAa,EAAE,6BAAoB;IACnC,aAAa,EAAE,6BAAoB;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,OAAO,EAAE,iCAAwB;QACjC,YAAY,EAAE,6BAAoB;QAClC,QAAQ,EAAE,iCAAwB;QAClC,QAAQ,EAAE,iCAAwB;QAClC,MAAM,EAAE,iCAAwB;KACjC,CAAC;IACF,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IAChC,aAAa,EAAE,8CAAqC;IACpD,YAAY,EAAE,qCAA4B;IAC1C,QAAQ,EAAE,qCAA4B;IACtC,IAAI,EAAE,qCAA4B;IAClC,gBAAgB,EAAE,OAAC;SAChB,MAAM,CAAC;QACN,aAAa,EAAE,8CAAqC;QACpD,OAAO,EAAE,qCAA4B;KACtC,CAAC;SACD,QAAQ,EAAE;IACb,gBAAgB,EAAE,+BAAsB,CAAC,QAAQ,EAAE;IACnD,MAAM,EAAE,qBAAY;IACpB,OAAO,EAAE,8BAAqB;IAC9B,OAAO,EAAE,oCAA2B,CAAC,QAAQ,EAAE;IAC/C,sBAAsB,EAAE,oCAA2B;IACnD,aAAa,EAAE,2BAAkB;IACjC,iBAAiB,EAAE,gCAAuB;IAC1C,KAAK,EAAE,8BAAqB;IAC5B,QAAQ,EAAE,gCAAuB,CAAC,GAAG,CAAC,CAAC,CAAC;IACxC,MAAM,EAAE,8BAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,OAAO,EAAE,oCAA2B;IACpC,SAAS,EAAE,8BAAqB;IAChC,QAAQ,EAAE,oCAA2B;IACrC,aAAa,EAAE,kCAAyB;IACxC,OAAO,EAAE,kCAAyB;IAClC,YAAY,EAAE,kCAAyB;IACvC,SAAS,EAAE,6BAAoB;IAC/B,UAAU,EAAE,6BAAoB;IAChC,WAAW,EAAE,6BAAoB;CAClC,CAAC,CAAA"}
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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"}