@new-project-media/client-frontends-shared-types 3.14.3 → 3.15.0
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 +1 -1
- package/src/lib/dataGrid/api/dataCenters/v1.d.ts +24 -295
- package/src/lib/dataGrid/api/dataCenters/v1.js +8 -24
- package/src/lib/dataGrid/api/dataCenters/v1.js.map +1 -1
- package/src/lib/dataGrid/api/entity.d.ts +13 -12
- package/src/lib/dataGrid/api/entity.js +43 -33
- package/src/lib/dataGrid/api/entity.js.map +1 -1
- package/src/lib/dataGrid/api/queues/v1.d.ts +349 -349
- package/src/lib/dataGrid/api/queues/v1.js +60 -53
- package/src/lib/dataGrid/api/queues/v1.js.map +1 -1
- package/src/lib/dataGrid/api/signals/v1.d.ts +267 -3642
- package/src/lib/dataGrid/api/signals/v1.js +62 -47
- package/src/lib/dataGrid/api/signals/v1.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@new-project-media/client-frontends-shared-types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
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/",
|
|
@@ -321,16 +321,16 @@ export declare const dataCenterFullSchemaV1: z.ZodObject<{
|
|
|
321
321
|
}, z.core.$strip>>;
|
|
322
322
|
override: z.ZodOptional<z.ZodBoolean>;
|
|
323
323
|
accuracy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
324
|
-
identifier: z.ZodLiteral<"A">;
|
|
324
|
+
identifier: z.ZodLiteral<"A - Exact lat/lon or address hit">;
|
|
325
325
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.A>;
|
|
326
326
|
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
-
identifier: z.ZodLiteral<"B">;
|
|
327
|
+
identifier: z.ZodLiteral<"B - Exact POI known / Approximate / near known point">;
|
|
328
328
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.B>;
|
|
329
329
|
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
-
identifier: z.ZodLiteral<"C">;
|
|
330
|
+
identifier: z.ZodLiteral<"C - County or town centroid">;
|
|
331
331
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.C>;
|
|
332
332
|
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
-
identifier: z.ZodLiteral<"
|
|
333
|
+
identifier: z.ZodLiteral<"Unknown or pending verification">;
|
|
334
334
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.NOT_DETERMINED>;
|
|
335
335
|
}, z.core.$strip>]>>>;
|
|
336
336
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -583,16 +583,16 @@ export declare const dataCenterListSchemaV1: z.ZodObject<{
|
|
|
583
583
|
}, z.core.$strip>>;
|
|
584
584
|
override: z.ZodOptional<z.ZodBoolean>;
|
|
585
585
|
accuracy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
586
|
-
identifier: z.ZodLiteral<"A">;
|
|
586
|
+
identifier: z.ZodLiteral<"A - Exact lat/lon or address hit">;
|
|
587
587
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.A>;
|
|
588
588
|
}, z.core.$strip>, z.ZodObject<{
|
|
589
|
-
identifier: z.ZodLiteral<"B">;
|
|
589
|
+
identifier: z.ZodLiteral<"B - Exact POI known / Approximate / near known point">;
|
|
590
590
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.B>;
|
|
591
591
|
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
-
identifier: z.ZodLiteral<"C">;
|
|
592
|
+
identifier: z.ZodLiteral<"C - County or town centroid">;
|
|
593
593
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.C>;
|
|
594
594
|
}, z.core.$strip>, z.ZodObject<{
|
|
595
|
-
identifier: z.ZodLiteral<"
|
|
595
|
+
identifier: z.ZodLiteral<"Unknown or pending verification">;
|
|
596
596
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.NOT_DETERMINED>;
|
|
597
597
|
}, z.core.$strip>]>>>;
|
|
598
598
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -661,14 +661,6 @@ export declare const dataCenterListSchemaV1: z.ZodObject<{
|
|
|
661
661
|
email: z.ZodOptional<z.ZodString>;
|
|
662
662
|
}, z.core.$strip>>>;
|
|
663
663
|
}, z.core.$strip>>>;
|
|
664
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
665
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
666
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
667
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
668
|
-
id: z.ZodString;
|
|
669
|
-
identifier: z.ZodString;
|
|
670
|
-
}, z.core.$strip>>>;
|
|
671
|
-
}, z.core.$strip>>;
|
|
672
664
|
audiences: z.ZodArray<z.ZodObject<{
|
|
673
665
|
identifier: z.ZodString;
|
|
674
666
|
id: z.ZodString;
|
|
@@ -720,16 +712,6 @@ export declare const dataCenterListSchemaV1: z.ZodObject<{
|
|
|
720
712
|
pucs: z.ZodOptional<z.ZodNumber>;
|
|
721
713
|
}, z.core.$strip>>;
|
|
722
714
|
$organizations: z.ZodOptional<z.ZodString>;
|
|
723
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
724
|
-
PK: z.ZodOptional<z.ZodString>;
|
|
725
|
-
SK: z.ZodOptional<z.ZodString>;
|
|
726
|
-
pk: z.ZodOptional<z.ZodString>;
|
|
727
|
-
sk: z.ZodOptional<z.ZodString>;
|
|
728
|
-
computedList: z.ZodOptional<z.ZodString>;
|
|
729
|
-
created: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
730
|
-
entity: z.ZodOptional<z.ZodString>;
|
|
731
|
-
modified: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
732
|
-
}, z.core.$strip>>;
|
|
733
715
|
status: z.ZodArray<z.ZodObject<{
|
|
734
716
|
identifier: z.ZodString;
|
|
735
717
|
id: z.ZodString;
|
|
@@ -783,34 +765,7 @@ export declare const dataCenterListSchemaV1: z.ZodObject<{
|
|
|
783
765
|
}, z.core.$strip>>>>;
|
|
784
766
|
}, z.core.$strip>>;
|
|
785
767
|
}, z.core.$strip>>;
|
|
786
|
-
backupGeneration: z.ZodOptional<z.ZodObject<{
|
|
787
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
788
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
789
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
790
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
791
|
-
id: z.ZodString;
|
|
792
|
-
identifier: z.ZodString;
|
|
793
|
-
}, z.core.$strip>>>;
|
|
794
|
-
}, z.core.$strip>>;
|
|
795
|
-
storage: z.ZodOptional<z.ZodObject<{
|
|
796
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
797
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
798
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
799
|
-
id: z.ZodString;
|
|
800
|
-
identifier: z.ZodString;
|
|
801
|
-
}, z.core.$strip>>>;
|
|
802
|
-
}, z.core.$strip>>;
|
|
803
|
-
}, z.core.$strip>>;
|
|
804
768
|
modified: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
805
|
-
indexed_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
806
|
-
'#developers': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
807
|
-
'#epcs': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
808
|
-
'#utilities': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
809
|
-
region: z.ZodOptional<z.ZodString>;
|
|
810
|
-
createdBy: z.ZodArray<z.ZodObject<{
|
|
811
|
-
identifier: z.ZodString;
|
|
812
|
-
id: z.ZodString;
|
|
813
|
-
}, z.core.$strip>>;
|
|
814
769
|
externalNotes: z.ZodOptional<z.ZodString>;
|
|
815
770
|
flags: z.ZodObject<{
|
|
816
771
|
backupGeneration: z.ZodBoolean;
|
|
@@ -836,7 +791,6 @@ export declare const dataCenterListSchemaV1: z.ZodObject<{
|
|
|
836
791
|
}, z.core.$strip>>;
|
|
837
792
|
id: z.ZodString;
|
|
838
793
|
}, z.core.$strip>>>;
|
|
839
|
-
internalNotes: z.ZodOptional<z.ZodString>;
|
|
840
794
|
localCity: z.ZodOptional<z.ZodString>;
|
|
841
795
|
showProject: z.ZodBoolean;
|
|
842
796
|
substation: z.ZodOptional<z.ZodString>;
|
|
@@ -887,14 +841,6 @@ export declare const dataCenterListSchemaV1: z.ZodObject<{
|
|
|
887
841
|
gbp: "gbp";
|
|
888
842
|
}>;
|
|
889
843
|
}, z.core.$strip>], "identifier">>>;
|
|
890
|
-
buildingSize: z.ZodOptional<z.ZodObject<{
|
|
891
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
892
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
893
|
-
}, z.core.$strip>>;
|
|
894
|
-
landSize: z.ZodOptional<z.ZodObject<{
|
|
895
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
896
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
897
|
-
}, z.core.$strip>>;
|
|
898
844
|
sizeFields: z.ZodOptional<z.ZodObject<{
|
|
899
845
|
building: z.ZodOptional<z.ZodObject<{
|
|
900
846
|
square_foot: z.ZodNumber;
|
|
@@ -955,16 +901,16 @@ export declare const dataCenterDetailsSchemaV1: z.ZodObject<{
|
|
|
955
901
|
}, z.core.$strip>>;
|
|
956
902
|
override: z.ZodOptional<z.ZodBoolean>;
|
|
957
903
|
accuracy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
958
|
-
identifier: z.ZodLiteral<"A">;
|
|
904
|
+
identifier: z.ZodLiteral<"A - Exact lat/lon or address hit">;
|
|
959
905
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.A>;
|
|
960
906
|
}, z.core.$strip>, z.ZodObject<{
|
|
961
|
-
identifier: z.ZodLiteral<"B">;
|
|
907
|
+
identifier: z.ZodLiteral<"B - Exact POI known / Approximate / near known point">;
|
|
962
908
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.B>;
|
|
963
909
|
}, z.core.$strip>, z.ZodObject<{
|
|
964
|
-
identifier: z.ZodLiteral<"C">;
|
|
910
|
+
identifier: z.ZodLiteral<"C - County or town centroid">;
|
|
965
911
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.C>;
|
|
966
912
|
}, z.core.$strip>, z.ZodObject<{
|
|
967
|
-
identifier: z.ZodLiteral<"
|
|
913
|
+
identifier: z.ZodLiteral<"Unknown or pending verification">;
|
|
968
914
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.NOT_DETERMINED>;
|
|
969
915
|
}, z.core.$strip>]>>>;
|
|
970
916
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -1033,14 +979,6 @@ export declare const dataCenterDetailsSchemaV1: z.ZodObject<{
|
|
|
1033
979
|
email: z.ZodOptional<z.ZodString>;
|
|
1034
980
|
}, z.core.$strip>>>;
|
|
1035
981
|
}, z.core.$strip>>>;
|
|
1036
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
1037
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1038
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1039
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1040
|
-
id: z.ZodString;
|
|
1041
|
-
identifier: z.ZodString;
|
|
1042
|
-
}, z.core.$strip>>>;
|
|
1043
|
-
}, z.core.$strip>>;
|
|
1044
982
|
audiences: z.ZodArray<z.ZodObject<{
|
|
1045
983
|
identifier: z.ZodString;
|
|
1046
984
|
id: z.ZodString;
|
|
@@ -1092,16 +1030,6 @@ export declare const dataCenterDetailsSchemaV1: z.ZodObject<{
|
|
|
1092
1030
|
pucs: z.ZodOptional<z.ZodNumber>;
|
|
1093
1031
|
}, z.core.$strip>>;
|
|
1094
1032
|
$organizations: z.ZodOptional<z.ZodString>;
|
|
1095
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
1096
|
-
PK: z.ZodOptional<z.ZodString>;
|
|
1097
|
-
SK: z.ZodOptional<z.ZodString>;
|
|
1098
|
-
pk: z.ZodOptional<z.ZodString>;
|
|
1099
|
-
sk: z.ZodOptional<z.ZodString>;
|
|
1100
|
-
computedList: z.ZodOptional<z.ZodString>;
|
|
1101
|
-
created: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
1102
|
-
entity: z.ZodOptional<z.ZodString>;
|
|
1103
|
-
modified: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
1104
|
-
}, z.core.$strip>>;
|
|
1105
1033
|
status: z.ZodArray<z.ZodObject<{
|
|
1106
1034
|
identifier: z.ZodString;
|
|
1107
1035
|
id: z.ZodString;
|
|
@@ -1155,34 +1083,7 @@ export declare const dataCenterDetailsSchemaV1: z.ZodObject<{
|
|
|
1155
1083
|
}, z.core.$strip>>>>;
|
|
1156
1084
|
}, z.core.$strip>>;
|
|
1157
1085
|
}, z.core.$strip>>;
|
|
1158
|
-
backupGeneration: z.ZodOptional<z.ZodObject<{
|
|
1159
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
1160
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1161
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1162
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1163
|
-
id: z.ZodString;
|
|
1164
|
-
identifier: z.ZodString;
|
|
1165
|
-
}, z.core.$strip>>>;
|
|
1166
|
-
}, z.core.$strip>>;
|
|
1167
|
-
storage: z.ZodOptional<z.ZodObject<{
|
|
1168
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1169
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1170
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1171
|
-
id: z.ZodString;
|
|
1172
|
-
identifier: z.ZodString;
|
|
1173
|
-
}, z.core.$strip>>>;
|
|
1174
|
-
}, z.core.$strip>>;
|
|
1175
|
-
}, z.core.$strip>>;
|
|
1176
1086
|
modified: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1177
|
-
indexed_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
1178
|
-
'#developers': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1179
|
-
'#epcs': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1180
|
-
'#utilities': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1181
|
-
region: z.ZodOptional<z.ZodString>;
|
|
1182
|
-
createdBy: z.ZodArray<z.ZodObject<{
|
|
1183
|
-
identifier: z.ZodString;
|
|
1184
|
-
id: z.ZodString;
|
|
1185
|
-
}, z.core.$strip>>;
|
|
1186
1087
|
externalNotes: z.ZodOptional<z.ZodString>;
|
|
1187
1088
|
flags: z.ZodObject<{
|
|
1188
1089
|
backupGeneration: z.ZodBoolean;
|
|
@@ -1208,7 +1109,6 @@ export declare const dataCenterDetailsSchemaV1: z.ZodObject<{
|
|
|
1208
1109
|
}, z.core.$strip>>;
|
|
1209
1110
|
id: z.ZodString;
|
|
1210
1111
|
}, z.core.$strip>>>;
|
|
1211
|
-
internalNotes: z.ZodOptional<z.ZodString>;
|
|
1212
1112
|
localCity: z.ZodOptional<z.ZodString>;
|
|
1213
1113
|
showProject: z.ZodBoolean;
|
|
1214
1114
|
substation: z.ZodOptional<z.ZodString>;
|
|
@@ -1259,14 +1159,6 @@ export declare const dataCenterDetailsSchemaV1: z.ZodObject<{
|
|
|
1259
1159
|
gbp: "gbp";
|
|
1260
1160
|
}>;
|
|
1261
1161
|
}, z.core.$strip>], "identifier">>>;
|
|
1262
|
-
buildingSize: z.ZodOptional<z.ZodObject<{
|
|
1263
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1264
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1265
|
-
}, z.core.$strip>>;
|
|
1266
|
-
landSize: z.ZodOptional<z.ZodObject<{
|
|
1267
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1268
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1269
|
-
}, z.core.$strip>>;
|
|
1270
1162
|
sizeFields: z.ZodOptional<z.ZodObject<{
|
|
1271
1163
|
building: z.ZodOptional<z.ZodObject<{
|
|
1272
1164
|
square_foot: z.ZodNumber;
|
|
@@ -1326,16 +1218,16 @@ export declare const dataCenterExportSchemaV1: z.ZodObject<{
|
|
|
1326
1218
|
}, z.core.$strip>>;
|
|
1327
1219
|
override: z.ZodOptional<z.ZodBoolean>;
|
|
1328
1220
|
accuracy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1329
|
-
identifier: z.ZodLiteral<"A">;
|
|
1221
|
+
identifier: z.ZodLiteral<"A - Exact lat/lon or address hit">;
|
|
1330
1222
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.A>;
|
|
1331
1223
|
}, z.core.$strip>, z.ZodObject<{
|
|
1332
|
-
identifier: z.ZodLiteral<"B">;
|
|
1224
|
+
identifier: z.ZodLiteral<"B - Exact POI known / Approximate / near known point">;
|
|
1333
1225
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.B>;
|
|
1334
1226
|
}, z.core.$strip>, z.ZodObject<{
|
|
1335
|
-
identifier: z.ZodLiteral<"C">;
|
|
1227
|
+
identifier: z.ZodLiteral<"C - County or town centroid">;
|
|
1336
1228
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.C>;
|
|
1337
1229
|
}, z.core.$strip>, z.ZodObject<{
|
|
1338
|
-
identifier: z.ZodLiteral<"
|
|
1230
|
+
identifier: z.ZodLiteral<"Unknown or pending verification">;
|
|
1339
1231
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.NOT_DETERMINED>;
|
|
1340
1232
|
}, z.core.$strip>]>>>;
|
|
1341
1233
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -1404,14 +1296,6 @@ export declare const dataCenterExportSchemaV1: z.ZodObject<{
|
|
|
1404
1296
|
email: z.ZodOptional<z.ZodString>;
|
|
1405
1297
|
}, z.core.$strip>>>;
|
|
1406
1298
|
}, z.core.$strip>>>;
|
|
1407
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
1408
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1409
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1410
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1411
|
-
id: z.ZodString;
|
|
1412
|
-
identifier: z.ZodString;
|
|
1413
|
-
}, z.core.$strip>>>;
|
|
1414
|
-
}, z.core.$strip>>;
|
|
1415
1299
|
audiences: z.ZodArray<z.ZodObject<{
|
|
1416
1300
|
identifier: z.ZodString;
|
|
1417
1301
|
id: z.ZodString;
|
|
@@ -1463,16 +1347,6 @@ export declare const dataCenterExportSchemaV1: z.ZodObject<{
|
|
|
1463
1347
|
pucs: z.ZodOptional<z.ZodNumber>;
|
|
1464
1348
|
}, z.core.$strip>>;
|
|
1465
1349
|
$organizations: z.ZodOptional<z.ZodString>;
|
|
1466
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
1467
|
-
PK: z.ZodOptional<z.ZodString>;
|
|
1468
|
-
SK: z.ZodOptional<z.ZodString>;
|
|
1469
|
-
pk: z.ZodOptional<z.ZodString>;
|
|
1470
|
-
sk: z.ZodOptional<z.ZodString>;
|
|
1471
|
-
computedList: z.ZodOptional<z.ZodString>;
|
|
1472
|
-
created: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
1473
|
-
entity: z.ZodOptional<z.ZodString>;
|
|
1474
|
-
modified: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
1475
|
-
}, z.core.$strip>>;
|
|
1476
1350
|
status: z.ZodArray<z.ZodObject<{
|
|
1477
1351
|
identifier: z.ZodString;
|
|
1478
1352
|
id: z.ZodString;
|
|
@@ -1526,34 +1400,7 @@ export declare const dataCenterExportSchemaV1: z.ZodObject<{
|
|
|
1526
1400
|
}, z.core.$strip>>>>;
|
|
1527
1401
|
}, z.core.$strip>>;
|
|
1528
1402
|
}, z.core.$strip>>;
|
|
1529
|
-
backupGeneration: z.ZodOptional<z.ZodObject<{
|
|
1530
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
1531
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1532
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1533
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1534
|
-
id: z.ZodString;
|
|
1535
|
-
identifier: z.ZodString;
|
|
1536
|
-
}, z.core.$strip>>>;
|
|
1537
|
-
}, z.core.$strip>>;
|
|
1538
|
-
storage: z.ZodOptional<z.ZodObject<{
|
|
1539
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1540
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1541
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1542
|
-
id: z.ZodString;
|
|
1543
|
-
identifier: z.ZodString;
|
|
1544
|
-
}, z.core.$strip>>>;
|
|
1545
|
-
}, z.core.$strip>>;
|
|
1546
|
-
}, z.core.$strip>>;
|
|
1547
1403
|
modified: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1548
|
-
indexed_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
1549
|
-
'#developers': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1550
|
-
'#epcs': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1551
|
-
'#utilities': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1552
|
-
region: z.ZodOptional<z.ZodString>;
|
|
1553
|
-
createdBy: z.ZodArray<z.ZodObject<{
|
|
1554
|
-
identifier: z.ZodString;
|
|
1555
|
-
id: z.ZodString;
|
|
1556
|
-
}, z.core.$strip>>;
|
|
1557
1404
|
externalNotes: z.ZodOptional<z.ZodString>;
|
|
1558
1405
|
flags: z.ZodObject<{
|
|
1559
1406
|
backupGeneration: z.ZodBoolean;
|
|
@@ -1579,7 +1426,6 @@ export declare const dataCenterExportSchemaV1: z.ZodObject<{
|
|
|
1579
1426
|
}, z.core.$strip>>;
|
|
1580
1427
|
id: z.ZodString;
|
|
1581
1428
|
}, z.core.$strip>>>;
|
|
1582
|
-
internalNotes: z.ZodOptional<z.ZodString>;
|
|
1583
1429
|
localCity: z.ZodOptional<z.ZodString>;
|
|
1584
1430
|
showProject: z.ZodBoolean;
|
|
1585
1431
|
substation: z.ZodOptional<z.ZodString>;
|
|
@@ -1630,14 +1476,6 @@ export declare const dataCenterExportSchemaV1: z.ZodObject<{
|
|
|
1630
1476
|
gbp: "gbp";
|
|
1631
1477
|
}>;
|
|
1632
1478
|
}, z.core.$strip>], "identifier">>>;
|
|
1633
|
-
buildingSize: z.ZodOptional<z.ZodObject<{
|
|
1634
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1635
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1636
|
-
}, z.core.$strip>>;
|
|
1637
|
-
landSize: z.ZodOptional<z.ZodObject<{
|
|
1638
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1639
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1640
|
-
}, z.core.$strip>>;
|
|
1641
1479
|
sizeFields: z.ZodOptional<z.ZodObject<{
|
|
1642
1480
|
building: z.ZodOptional<z.ZodObject<{
|
|
1643
1481
|
square_foot: z.ZodNumber;
|
|
@@ -1698,16 +1536,16 @@ export declare const dataCenterByLocationListSchemaV1: z.ZodObject<{
|
|
|
1698
1536
|
}, z.core.$strip>>;
|
|
1699
1537
|
override: z.ZodOptional<z.ZodBoolean>;
|
|
1700
1538
|
accuracy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1701
|
-
identifier: z.ZodLiteral<"A">;
|
|
1539
|
+
identifier: z.ZodLiteral<"A - Exact lat/lon or address hit">;
|
|
1702
1540
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.A>;
|
|
1703
1541
|
}, z.core.$strip>, z.ZodObject<{
|
|
1704
|
-
identifier: z.ZodLiteral<"B">;
|
|
1542
|
+
identifier: z.ZodLiteral<"B - Exact POI known / Approximate / near known point">;
|
|
1705
1543
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.B>;
|
|
1706
1544
|
}, z.core.$strip>, z.ZodObject<{
|
|
1707
|
-
identifier: z.ZodLiteral<"C">;
|
|
1545
|
+
identifier: z.ZodLiteral<"C - County or town centroid">;
|
|
1708
1546
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.C>;
|
|
1709
1547
|
}, z.core.$strip>, z.ZodObject<{
|
|
1710
|
-
identifier: z.ZodLiteral<"
|
|
1548
|
+
identifier: z.ZodLiteral<"Unknown or pending verification">;
|
|
1711
1549
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.NOT_DETERMINED>;
|
|
1712
1550
|
}, z.core.$strip>]>>>;
|
|
1713
1551
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -1776,14 +1614,6 @@ export declare const dataCenterByLocationListSchemaV1: z.ZodObject<{
|
|
|
1776
1614
|
email: z.ZodOptional<z.ZodString>;
|
|
1777
1615
|
}, z.core.$strip>>>;
|
|
1778
1616
|
}, z.core.$strip>>>;
|
|
1779
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
1780
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1781
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1782
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1783
|
-
id: z.ZodString;
|
|
1784
|
-
identifier: z.ZodString;
|
|
1785
|
-
}, z.core.$strip>>>;
|
|
1786
|
-
}, z.core.$strip>>;
|
|
1787
1617
|
audiences: z.ZodArray<z.ZodObject<{
|
|
1788
1618
|
identifier: z.ZodString;
|
|
1789
1619
|
id: z.ZodString;
|
|
@@ -1835,16 +1665,6 @@ export declare const dataCenterByLocationListSchemaV1: z.ZodObject<{
|
|
|
1835
1665
|
pucs: z.ZodOptional<z.ZodNumber>;
|
|
1836
1666
|
}, z.core.$strip>>;
|
|
1837
1667
|
$organizations: z.ZodOptional<z.ZodString>;
|
|
1838
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
1839
|
-
PK: z.ZodOptional<z.ZodString>;
|
|
1840
|
-
SK: z.ZodOptional<z.ZodString>;
|
|
1841
|
-
pk: z.ZodOptional<z.ZodString>;
|
|
1842
|
-
sk: z.ZodOptional<z.ZodString>;
|
|
1843
|
-
computedList: z.ZodOptional<z.ZodString>;
|
|
1844
|
-
created: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
1845
|
-
entity: z.ZodOptional<z.ZodString>;
|
|
1846
|
-
modified: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
1847
|
-
}, z.core.$strip>>;
|
|
1848
1668
|
status: z.ZodArray<z.ZodObject<{
|
|
1849
1669
|
identifier: z.ZodString;
|
|
1850
1670
|
id: z.ZodString;
|
|
@@ -1898,34 +1718,7 @@ export declare const dataCenterByLocationListSchemaV1: z.ZodObject<{
|
|
|
1898
1718
|
}, z.core.$strip>>>>;
|
|
1899
1719
|
}, z.core.$strip>>;
|
|
1900
1720
|
}, z.core.$strip>>;
|
|
1901
|
-
backupGeneration: z.ZodOptional<z.ZodObject<{
|
|
1902
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
1903
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1904
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1905
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1906
|
-
id: z.ZodString;
|
|
1907
|
-
identifier: z.ZodString;
|
|
1908
|
-
}, z.core.$strip>>>;
|
|
1909
|
-
}, z.core.$strip>>;
|
|
1910
|
-
storage: z.ZodOptional<z.ZodObject<{
|
|
1911
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
1912
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
1913
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1914
|
-
id: z.ZodString;
|
|
1915
|
-
identifier: z.ZodString;
|
|
1916
|
-
}, z.core.$strip>>>;
|
|
1917
|
-
}, z.core.$strip>>;
|
|
1918
|
-
}, z.core.$strip>>;
|
|
1919
1721
|
modified: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1920
|
-
indexed_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
1921
|
-
'#developers': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1922
|
-
'#epcs': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1923
|
-
'#utilities': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1924
|
-
region: z.ZodOptional<z.ZodString>;
|
|
1925
|
-
createdBy: z.ZodArray<z.ZodObject<{
|
|
1926
|
-
identifier: z.ZodString;
|
|
1927
|
-
id: z.ZodString;
|
|
1928
|
-
}, z.core.$strip>>;
|
|
1929
1722
|
externalNotes: z.ZodOptional<z.ZodString>;
|
|
1930
1723
|
flags: z.ZodObject<{
|
|
1931
1724
|
backupGeneration: z.ZodBoolean;
|
|
@@ -1951,7 +1744,6 @@ export declare const dataCenterByLocationListSchemaV1: z.ZodObject<{
|
|
|
1951
1744
|
}, z.core.$strip>>;
|
|
1952
1745
|
id: z.ZodString;
|
|
1953
1746
|
}, z.core.$strip>>>;
|
|
1954
|
-
internalNotes: z.ZodOptional<z.ZodString>;
|
|
1955
1747
|
localCity: z.ZodOptional<z.ZodString>;
|
|
1956
1748
|
showProject: z.ZodBoolean;
|
|
1957
1749
|
substation: z.ZodOptional<z.ZodString>;
|
|
@@ -2002,14 +1794,6 @@ export declare const dataCenterByLocationListSchemaV1: z.ZodObject<{
|
|
|
2002
1794
|
gbp: "gbp";
|
|
2003
1795
|
}>;
|
|
2004
1796
|
}, z.core.$strip>], "identifier">>>;
|
|
2005
|
-
buildingSize: z.ZodOptional<z.ZodObject<{
|
|
2006
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2007
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
2008
|
-
}, z.core.$strip>>;
|
|
2009
|
-
landSize: z.ZodOptional<z.ZodObject<{
|
|
2010
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2011
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
2012
|
-
}, z.core.$strip>>;
|
|
2013
1797
|
sizeFields: z.ZodOptional<z.ZodObject<{
|
|
2014
1798
|
building: z.ZodOptional<z.ZodObject<{
|
|
2015
1799
|
square_foot: z.ZodNumber;
|
|
@@ -2070,16 +1854,16 @@ export declare const dataCenterAPISchemaV1: z.ZodObject<{
|
|
|
2070
1854
|
}, z.core.$strip>>;
|
|
2071
1855
|
override: z.ZodOptional<z.ZodBoolean>;
|
|
2072
1856
|
accuracy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2073
|
-
identifier: z.ZodLiteral<"A">;
|
|
1857
|
+
identifier: z.ZodLiteral<"A - Exact lat/lon or address hit">;
|
|
2074
1858
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.A>;
|
|
2075
1859
|
}, z.core.$strip>, z.ZodObject<{
|
|
2076
|
-
identifier: z.ZodLiteral<"B">;
|
|
1860
|
+
identifier: z.ZodLiteral<"B - Exact POI known / Approximate / near known point">;
|
|
2077
1861
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.B>;
|
|
2078
1862
|
}, z.core.$strip>, z.ZodObject<{
|
|
2079
|
-
identifier: z.ZodLiteral<"C">;
|
|
1863
|
+
identifier: z.ZodLiteral<"C - County or town centroid">;
|
|
2080
1864
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.C>;
|
|
2081
1865
|
}, z.core.$strip>, z.ZodObject<{
|
|
2082
|
-
identifier: z.ZodLiteral<"
|
|
1866
|
+
identifier: z.ZodLiteral<"Unknown or pending verification">;
|
|
2083
1867
|
id: z.ZodLiteral<import("../entity").LocationAccuracy.NOT_DETERMINED>;
|
|
2084
1868
|
}, z.core.$strip>]>>>;
|
|
2085
1869
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -2134,14 +1918,6 @@ export declare const dataCenterAPISchemaV1: z.ZodObject<{
|
|
|
2134
1918
|
email: z.ZodOptional<z.ZodString>;
|
|
2135
1919
|
}, z.core.$strip>>>;
|
|
2136
1920
|
}, z.core.$strip>>>;
|
|
2137
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
2138
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2139
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
2140
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2141
|
-
id: z.ZodString;
|
|
2142
|
-
identifier: z.ZodString;
|
|
2143
|
-
}, z.core.$strip>>>;
|
|
2144
|
-
}, z.core.$strip>>;
|
|
2145
1921
|
audiences: z.ZodArray<z.ZodObject<{
|
|
2146
1922
|
identifier: z.ZodString;
|
|
2147
1923
|
id: z.ZodString;
|
|
@@ -2192,17 +1968,6 @@ export declare const dataCenterAPISchemaV1: z.ZodObject<{
|
|
|
2192
1968
|
epcs: z.ZodOptional<z.ZodNumber>;
|
|
2193
1969
|
pucs: z.ZodOptional<z.ZodNumber>;
|
|
2194
1970
|
}, z.core.$strip>>;
|
|
2195
|
-
$organizations: z.ZodOptional<z.ZodString>;
|
|
2196
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
2197
|
-
PK: z.ZodOptional<z.ZodString>;
|
|
2198
|
-
SK: z.ZodOptional<z.ZodString>;
|
|
2199
|
-
pk: z.ZodOptional<z.ZodString>;
|
|
2200
|
-
sk: z.ZodOptional<z.ZodString>;
|
|
2201
|
-
computedList: z.ZodOptional<z.ZodString>;
|
|
2202
|
-
created: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
2203
|
-
entity: z.ZodOptional<z.ZodString>;
|
|
2204
|
-
modified: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
2205
|
-
}, z.core.$strip>>;
|
|
2206
1971
|
status: z.ZodArray<z.ZodObject<{
|
|
2207
1972
|
identifier: z.ZodString;
|
|
2208
1973
|
id: z.ZodString;
|
|
@@ -2256,34 +2021,7 @@ export declare const dataCenterAPISchemaV1: z.ZodObject<{
|
|
|
2256
2021
|
}, z.core.$strip>>>>;
|
|
2257
2022
|
}, z.core.$strip>>;
|
|
2258
2023
|
}, z.core.$strip>>;
|
|
2259
|
-
backupGeneration: z.ZodOptional<z.ZodObject<{
|
|
2260
|
-
powerCapacity: z.ZodOptional<z.ZodObject<{
|
|
2261
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2262
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
2263
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2264
|
-
id: z.ZodString;
|
|
2265
|
-
identifier: z.ZodString;
|
|
2266
|
-
}, z.core.$strip>>>;
|
|
2267
|
-
}, z.core.$strip>>;
|
|
2268
|
-
storage: z.ZodOptional<z.ZodObject<{
|
|
2269
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2270
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
2271
|
-
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2272
|
-
id: z.ZodString;
|
|
2273
|
-
identifier: z.ZodString;
|
|
2274
|
-
}, z.core.$strip>>>;
|
|
2275
|
-
}, z.core.$strip>>;
|
|
2276
|
-
}, z.core.$strip>>;
|
|
2277
2024
|
modified: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2278
|
-
indexed_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
2279
|
-
'#developers': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2280
|
-
'#epcs': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2281
|
-
'#utilities': z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2282
|
-
region: z.ZodOptional<z.ZodString>;
|
|
2283
|
-
createdBy: z.ZodArray<z.ZodObject<{
|
|
2284
|
-
identifier: z.ZodString;
|
|
2285
|
-
id: z.ZodString;
|
|
2286
|
-
}, z.core.$strip>>;
|
|
2287
2025
|
externalNotes: z.ZodOptional<z.ZodString>;
|
|
2288
2026
|
flags: z.ZodObject<{
|
|
2289
2027
|
backupGeneration: z.ZodBoolean;
|
|
@@ -2309,7 +2047,6 @@ export declare const dataCenterAPISchemaV1: z.ZodObject<{
|
|
|
2309
2047
|
}, z.core.$strip>>;
|
|
2310
2048
|
id: z.ZodString;
|
|
2311
2049
|
}, z.core.$strip>>>;
|
|
2312
|
-
internalNotes: z.ZodOptional<z.ZodString>;
|
|
2313
2050
|
localCity: z.ZodOptional<z.ZodString>;
|
|
2314
2051
|
showProject: z.ZodBoolean;
|
|
2315
2052
|
substation: z.ZodOptional<z.ZodString>;
|
|
@@ -2360,14 +2097,6 @@ export declare const dataCenterAPISchemaV1: z.ZodObject<{
|
|
|
2360
2097
|
gbp: "gbp";
|
|
2361
2098
|
}>;
|
|
2362
2099
|
}, z.core.$strip>], "identifier">>>;
|
|
2363
|
-
buildingSize: z.ZodOptional<z.ZodObject<{
|
|
2364
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2365
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
2366
|
-
}, z.core.$strip>>;
|
|
2367
|
-
landSize: z.ZodOptional<z.ZodObject<{
|
|
2368
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2369
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
2370
|
-
}, z.core.$strip>>;
|
|
2371
2100
|
sizeFields: z.ZodOptional<z.ZodObject<{
|
|
2372
2101
|
building: z.ZodOptional<z.ZodObject<{
|
|
2373
2102
|
square_foot: z.ZodNumber;
|
|
@@ -270,7 +270,7 @@ exports.baseDataCenterSchemaV1 = zod_1.z.object({
|
|
|
270
270
|
const dataCenterSortSchemaV1 = zod_1.z.tuple([
|
|
271
271
|
zod_1.z.union([zod_1.z.number(), zod_1.z.string()]).meta({ description: 'Primary sort value' }),
|
|
272
272
|
zod_1.z.number().meta({ description: 'Secondary sort value' }),
|
|
273
|
-
]);
|
|
273
|
+
]).meta({ description: 'Sort values for cursor-based pagination' });
|
|
274
274
|
exports.dataCenterFullSchemaV1 = exports.baseDataCenterSchemaV1
|
|
275
275
|
.extend({
|
|
276
276
|
// ES metadata
|
|
@@ -281,15 +281,9 @@ exports.dataCenterFullSchemaV1 = exports.baseDataCenterSchemaV1
|
|
|
281
281
|
.string()
|
|
282
282
|
.optional()
|
|
283
283
|
.meta({ description: 'Denormalized organization reference for quick lookups' }),
|
|
284
|
-
'#developers': entity_1.OptionalStringArraySchema.meta({
|
|
285
|
-
|
|
286
|
-
}),
|
|
287
|
-
'#epcs': entity_1.OptionalStringArraySchema.meta({
|
|
288
|
-
description: 'List of EPC (Engineering, Procurement, Construction) contractor IDs',
|
|
289
|
-
}),
|
|
290
|
-
'#utilities': entity_1.OptionalStringArraySchema.meta({
|
|
291
|
-
description: 'List of utility company IDs providing power to the data center',
|
|
292
|
-
}),
|
|
284
|
+
'#developers': entity_1.OptionalStringArraySchema.meta({ description: 'Internal use only' }),
|
|
285
|
+
'#epcs': entity_1.OptionalStringArraySchema.meta({ description: 'Internal use only' }),
|
|
286
|
+
'#utilities': entity_1.OptionalStringArraySchema.meta({ description: 'Internal use only' }),
|
|
293
287
|
allSectors: entity_1.OptionalStringSchema.meta({ description: 'Concatenated string of all applicable energy sectors' }),
|
|
294
288
|
region: entity_1.OptionalStringSchema.meta({ description: 'Content region, aligns with content claims' }),
|
|
295
289
|
// Core fields
|
|
@@ -299,7 +293,7 @@ exports.dataCenterFullSchemaV1 = exports.baseDataCenterSchemaV1
|
|
|
299
293
|
}),
|
|
300
294
|
country: entity_1.OptionalStringSchema.meta({ description: 'Country where the data center is located' }),
|
|
301
295
|
created: entity_1.YYYYMMDDRegexOptionalSchema.meta({ description: 'Date when the data center record was created' }),
|
|
302
|
-
createdBy: entity_1.EntityItemArraySchema.meta({ description: '
|
|
296
|
+
createdBy: entity_1.EntityItemArraySchema.meta({ description: 'Internal use only' }),
|
|
303
297
|
documents: zod_1.z
|
|
304
298
|
.array(exports.documentSchema)
|
|
305
299
|
.optional()
|
|
@@ -317,7 +311,7 @@ exports.dataCenterFullSchemaV1 = exports.baseDataCenterSchemaV1
|
|
|
317
311
|
.meta({ description: 'Feature flags for the data center' }),
|
|
318
312
|
geo: geoSchema.meta({ description: 'Geographic coordinates for the data center' }),
|
|
319
313
|
intel: zod_1.z.array(intelItemSchema).optional().meta({ description: 'Related intel items about this data center' }),
|
|
320
|
-
internalNotes: entity_1.OptionalStringSchema.meta({ description: 'Internal
|
|
314
|
+
internalNotes: entity_1.OptionalStringSchema.meta({ description: 'Internal use only' }),
|
|
321
315
|
keyPeople: (0, es_nested_1.nested)(exports.keyPeopleSchema).optional().meta({ description: 'Key contacts associated with the data center' }),
|
|
322
316
|
localCity: entity_1.OptionalStringSchema.meta({ description: 'City where the data center is located' }),
|
|
323
317
|
localCounty: entity_1.OptionalStringSchema.meta({ description: 'County where the data center is located' }),
|
|
@@ -361,11 +355,6 @@ exports.dataCenterFullSchemaV1 = exports.baseDataCenterSchemaV1
|
|
|
361
355
|
sizeFields: SizeFieldsSchema.optional().meta({ description: 'Size field configurations' }),
|
|
362
356
|
})
|
|
363
357
|
.strict();
|
|
364
|
-
const omitFields = (mask, ...keys) => {
|
|
365
|
-
const result = Object.assign({}, mask);
|
|
366
|
-
keys.forEach((key) => delete result[key]);
|
|
367
|
-
return result;
|
|
368
|
-
};
|
|
369
358
|
const pickDataCenterFields = (fields) => exports.dataCenterFullSchemaV1.pick(fields);
|
|
370
359
|
// -----------------------------------------------------------------------------
|
|
371
360
|
// Field masks (define which fields each client schema includes)
|
|
@@ -374,21 +363,16 @@ const pickDataCenterFields = (fields) => exports.dataCenterFullSchemaV1.pick(fie
|
|
|
374
363
|
const baseDataCenterClientFields = {
|
|
375
364
|
id: true,
|
|
376
365
|
$organizations: true,
|
|
377
|
-
'#developers': true,
|
|
378
|
-
'#epcs': true,
|
|
379
|
-
'#utilities': true,
|
|
380
366
|
allSectors: true,
|
|
381
367
|
audiences: true,
|
|
382
368
|
cost: true,
|
|
383
369
|
country: true,
|
|
384
370
|
created: true,
|
|
385
|
-
createdBy: true,
|
|
386
371
|
documents: true,
|
|
387
372
|
externalNotes: true,
|
|
388
373
|
flags: true,
|
|
389
374
|
geo: true,
|
|
390
375
|
intel: true,
|
|
391
|
-
internalNotes: true,
|
|
392
376
|
keyPeople: true,
|
|
393
377
|
localCity: true,
|
|
394
378
|
localCounty: true,
|
|
@@ -415,7 +399,7 @@ const dataCenterListFields = baseDataCenterClientFields;
|
|
|
415
399
|
const dataCenterDetailsFields = baseDataCenterClientFields;
|
|
416
400
|
const dataCenterExportFields = baseDataCenterClientFields;
|
|
417
401
|
const dataCenterByLocationFields = baseDataCenterClientFields;
|
|
418
|
-
const dataCenterAPIFields =
|
|
402
|
+
const dataCenterAPIFields = baseDataCenterClientFields;
|
|
419
403
|
// -----------------------------------------------------------------------------
|
|
420
404
|
// Client schema projections
|
|
421
405
|
// -----------------------------------------------------------------------------
|
|
@@ -432,7 +416,7 @@ exports.dataCenterByLocationListSchemaV1 = pickDataCenterFields(dataCenterByLoca
|
|
|
432
416
|
sort: zod_1.z.array(zod_1.z.number()).optional(),
|
|
433
417
|
});
|
|
434
418
|
exports.dataCenterAPISchemaV1 = pickDataCenterFields(dataCenterAPIFields)
|
|
435
|
-
.omit({ documents: true })
|
|
419
|
+
.omit({ documents: true, $organizations: true })
|
|
436
420
|
.extend({
|
|
437
421
|
documents: zod_1.z.array(exports.documentAPISchema).optional(),
|
|
438
422
|
sort: dataCenterSortSchemaV1.optional(),
|