@new-project-media/client-frontends-shared-types 1.2.1 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@new-project-media/client-frontends-shared-types",
3
- "version": "1.2.1",
3
+ "version": "1.3.1",
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/",
@@ -71,6 +71,7 @@ type AggregationParam = {
71
71
  };
72
72
  export type ClientApiListRequestQueryParams = {
73
73
  page?: number;
74
+ export?: boolean;
74
75
  pageSize?: number;
75
76
  filters?: Array<{
76
77
  field: string;
@@ -9,19 +9,29 @@ export declare const EntityItemSchema: z.ZodObject<{
9
9
  id?: string;
10
10
  identifier?: string;
11
11
  }>;
12
+ export declare const IdentifierOnlyEntityItemSchema: z.ZodObject<{
13
+ identifier: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ identifier?: string;
16
+ }, {
17
+ identifier?: string;
18
+ }>;
12
19
  export declare const OrganizationItemSchema: z.ZodObject<z.objectUtil.extendShape<{
13
20
  identifier: z.ZodString;
14
21
  id: z.ZodString;
15
22
  }, {
16
23
  role: z.ZodString;
24
+ ref: z.ZodOptional<z.ZodString>;
17
25
  }>, "strip", z.ZodTypeAny, {
18
26
  id?: string;
19
27
  identifier?: string;
20
28
  role?: string;
29
+ ref?: string;
21
30
  }, {
22
31
  id?: string;
23
32
  identifier?: string;
24
33
  role?: string;
34
+ ref?: string;
25
35
  }>;
26
36
  export type OrganizationItemType = z.infer<typeof OrganizationItemSchema>;
27
37
  export declare const OrganizationSchema: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
@@ -29,14 +39,17 @@ export declare const OrganizationSchema: z.ZodOptional<z.ZodArray<z.ZodObject<z.
29
39
  id: z.ZodString;
30
40
  }, {
31
41
  role: z.ZodString;
42
+ ref: z.ZodOptional<z.ZodString>;
32
43
  }>, "strip", z.ZodTypeAny, {
33
44
  id?: string;
34
45
  identifier?: string;
35
46
  role?: string;
47
+ ref?: string;
36
48
  }, {
37
49
  id?: string;
38
50
  identifier?: string;
39
51
  role?: string;
52
+ ref?: string;
40
53
  }>, "many">>;
41
54
  export type OrganizationType = z.infer<typeof OrganizationSchema>;
42
55
  export declare const EntityItemArraySchema: z.ZodArray<z.ZodObject<{
@@ -95,6 +108,10 @@ export declare const LocationItemArraySchema: z.ZodArray<z.ZodObject<z.objectUti
95
108
  export declare const YYYYMMDDRegex: RegExp;
96
109
  export declare const YYYYMMDDRegexSchema: z.ZodEffects<z.ZodString, string, string>;
97
110
  export declare const YYYYMMDDRegexOptionalSchema: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
111
+ export declare const FlexibleDateRegexSchema: z.ZodEffects<z.ZodString, string, string>;
112
+ export declare const FlexibleDateRegexOptionalSchema: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
113
+ export declare const ISODateTimeSchema: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
114
+ export declare const ISODateTimeOptionalSchema: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
98
115
  export declare const QueueJoinSchema: z.ZodArray<z.ZodObject<{
99
116
  queueKey: z.ZodOptional<z.ZodString>;
100
117
  applicationId: z.ZodOptional<z.ZodString>;
@@ -445,7 +462,7 @@ export declare const DocumentRecordSchema: z.ZodOptional<z.ZodUnion<[z.ZodArray<
445
462
  }>, "many">]>>;
446
463
  export type DocumentRecordType = z.infer<typeof DocumentRecordSchema>;
447
464
  export type DocumentS3RecordType = z.infer<typeof DocumentS3RecordSchema>[number];
448
- export declare const GeoSchema: z.ZodObject<{
465
+ export declare const GeoEuSchema: z.ZodObject<{
449
466
  project: z.ZodObject<{
450
467
  lon: z.ZodNumber;
451
468
  lat: z.ZodNumber;
@@ -467,7 +484,42 @@ export declare const GeoSchema: z.ZodObject<{
467
484
  lon?: number;
468
485
  };
469
486
  }>;
470
- export type Geo = z.infer<typeof GeoSchema>;
487
+ export type GeoEuType = z.infer<typeof GeoEuSchema>;
488
+ export declare const GeoUsSchema: z.ZodIntersection<z.ZodObject<{
489
+ default: z.ZodObject<{
490
+ lon: z.ZodNumber;
491
+ lat: z.ZodNumber;
492
+ }, "strip", z.ZodTypeAny, {
493
+ lat?: number;
494
+ lon?: number;
495
+ }, {
496
+ lat?: number;
497
+ lon?: number;
498
+ }>;
499
+ defaultValue: z.ZodString;
500
+ }, "strip", z.ZodTypeAny, {
501
+ default?: {
502
+ lat?: number;
503
+ lon?: number;
504
+ };
505
+ defaultValue?: string;
506
+ }, {
507
+ default?: {
508
+ lat?: number;
509
+ lon?: number;
510
+ };
511
+ defaultValue?: string;
512
+ }>, z.ZodRecord<z.ZodString, z.ZodObject<{
513
+ lon: z.ZodNumber;
514
+ lat: z.ZodNumber;
515
+ }, "strip", z.ZodTypeAny, {
516
+ lat?: number;
517
+ lon?: number;
518
+ }, {
519
+ lat?: number;
520
+ lon?: number;
521
+ }>>>;
522
+ export type GeoUsType = z.infer<typeof GeoUsSchema>;
471
523
  export declare const TotalsSchema: z.ZodOptional<z.ZodEffects<z.ZodObject<{
472
524
  offtaker: z.ZodOptional<z.ZodNumber>;
473
525
  projects: z.ZodOptional<z.ZodNumber>;
@@ -519,3 +571,4 @@ export declare const TotalsSchema: z.ZodOptional<z.ZodEffects<z.ZodObject<{
519
571
  puc?: number;
520
572
  developer?: number;
521
573
  }>>;
574
+ export declare const FingerprintSchema: z.ZodString;
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TotalsSchema = exports.GeoSchema = exports.DocumentRecordSchema = exports.OptionalDocumentLinkSchema = exports.DocumentLinkSchema = exports.OptionalS3DocumentSchema = exports.DocumentS3RecordSchema = exports.OptionalCoordinateSchema = exports.CoordinateSchema = exports.OptionalAddressSchema = exports.AddressSchema = exports.LinkedPeopleOptionalSchema = exports.LinkedPeopleSchema = exports.QueueJoinOptionalSchema = exports.QueueJoinSchema = exports.YYYYMMDDRegexOptionalSchema = exports.YYYYMMDDRegexSchema = exports.YYYYMMDDRegex = exports.LocationItemArraySchema = exports.LocationItemSchema = exports.OptionalNumberSchema = exports.OptionalStringSchema = exports.EntityItemArrayOptionalSchema = exports.EntityItemArraySchema = exports.OrganizationSchema = exports.OrganizationItemSchema = exports.EntityItemSchema = void 0;
3
+ exports.FingerprintSchema = exports.TotalsSchema = exports.GeoUsSchema = exports.GeoEuSchema = exports.DocumentRecordSchema = exports.OptionalDocumentLinkSchema = exports.DocumentLinkSchema = exports.OptionalS3DocumentSchema = exports.DocumentS3RecordSchema = exports.OptionalCoordinateSchema = exports.CoordinateSchema = exports.OptionalAddressSchema = exports.AddressSchema = exports.LinkedPeopleOptionalSchema = exports.LinkedPeopleSchema = exports.QueueJoinOptionalSchema = exports.QueueJoinSchema = exports.ISODateTimeOptionalSchema = exports.ISODateTimeSchema = exports.FlexibleDateRegexOptionalSchema = exports.FlexibleDateRegexSchema = exports.YYYYMMDDRegexOptionalSchema = exports.YYYYMMDDRegexSchema = exports.YYYYMMDDRegex = exports.LocationItemArraySchema = exports.LocationItemSchema = exports.OptionalNumberSchema = exports.OptionalStringSchema = exports.EntityItemArrayOptionalSchema = exports.EntityItemArraySchema = exports.OrganizationSchema = exports.OrganizationItemSchema = exports.IdentifierOnlyEntityItemSchema = exports.EntityItemSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.EntityItemSchema = zod_1.z.object({
6
6
  identifier: zod_1.z.string().min(1),
7
7
  id: zod_1.z.string().min(1),
8
8
  });
9
+ exports.IdentifierOnlyEntityItemSchema = zod_1.z.object({
10
+ identifier: zod_1.z.string().min(1),
11
+ });
9
12
  exports.OrganizationItemSchema = exports.EntityItemSchema.extend({
10
13
  role: zod_1.z.string().min(1),
14
+ ref: zod_1.z.string().optional(),
11
15
  });
12
16
  exports.OrganizationSchema = zod_1.z.array(exports.OrganizationItemSchema).optional();
13
17
  exports.EntityItemArraySchema = zod_1.z.array(exports.EntityItemSchema);
@@ -25,6 +29,20 @@ exports.YYYYMMDDRegexSchema = zod_1.z
25
29
  message: 'Invalid date format',
26
30
  });
27
31
  exports.YYYYMMDDRegexOptionalSchema = exports.YYYYMMDDRegexSchema.optional().nullable();
32
+ const FlexibleDateRegex = /^(\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z)?$/;
33
+ exports.FlexibleDateRegexSchema = zod_1.z
34
+ .string()
35
+ .refine((value) => FlexibleDateRegex.test(value), {
36
+ message: 'Invalid date format. Use YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss.sssZ',
37
+ });
38
+ exports.FlexibleDateRegexOptionalSchema = exports.FlexibleDateRegexSchema.optional().nullable();
39
+ const ISODateTimeWithoutZSchema = zod_1.z
40
+ .string()
41
+ .regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?$/);
42
+ exports.ISODateTimeSchema = zod_1.z.union([zod_1.z.string().datetime(), ISODateTimeWithoutZSchema, exports.FlexibleDateRegexSchema]);
43
+ exports.ISODateTimeOptionalSchema = zod_1.z
44
+ .union([zod_1.z.string().datetime(), ISODateTimeWithoutZSchema, exports.FlexibleDateRegexSchema])
45
+ .optional();
28
46
  exports.QueueJoinSchema = zod_1.z
29
47
  .object({
30
48
  queueKey: exports.OptionalStringSchema,
@@ -91,12 +109,24 @@ exports.OptionalDocumentLinkSchema = exports.DocumentLinkSchema.optional();
91
109
  exports.DocumentRecordSchema = zod_1.z
92
110
  .union([exports.DocumentS3RecordSchema, exports.DocumentLinkSchema])
93
111
  .optional();
94
- exports.GeoSchema = zod_1.z.object({
112
+ exports.GeoEuSchema = zod_1.z.object({
95
113
  project: zod_1.z.object({
96
114
  lon: zod_1.z.number(),
97
115
  lat: zod_1.z.number(),
98
116
  }),
99
117
  });
118
+ exports.GeoUsSchema = zod_1.z
119
+ .object({
120
+ default: zod_1.z.object({
121
+ lon: zod_1.z.number(),
122
+ lat: zod_1.z.number(),
123
+ }),
124
+ defaultValue: zod_1.z.string(),
125
+ })
126
+ .and(zod_1.z.record(zod_1.z.object({
127
+ lon: zod_1.z.number(),
128
+ lat: zod_1.z.number(),
129
+ })));
100
130
  exports.TotalsSchema = zod_1.z
101
131
  .object({
102
132
  offtaker: zod_1.z.number().optional(),
@@ -113,4 +143,9 @@ exports.TotalsSchema = zod_1.z
113
143
  message: 'At least one property must be present if totals object exists',
114
144
  })
115
145
  .optional();
146
+ const base64Regex = /^[A-Za-z0-9+/]*={0,2}$/;
147
+ exports.FingerprintSchema = zod_1.z
148
+ .string()
149
+ .regex(base64Regex, 'Invalid Base64 string')
150
+ .min(1, 'Fingerprint cannot be empty');
116
151
  //# sourceMappingURL=entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/entity.ts"],"names":[],"mappings":";;;AAAA,6BAAiC;AAEpB,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACtB,CAAC,CAAA;AAEW,QAAA,sBAAsB,GAAG,wBAAgB,CAAC,MAAM,CAAC;IAC5D,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAA;AAGW,QAAA,kBAAkB,GAAG,OAAC,CAAC,KAAK,CAAC,8BAAsB,CAAC,CAAC,QAAQ,EAAE,CAAA;AAG/D,QAAA,qBAAqB,GAAG,O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ACpC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC;KACD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;IAC5C,OAAO,EAAE,+DAA+D;CACzE,CAAC;KACD,QAAQ,EAAE,CAAA;AAEb,MAAM,WAAW,GAAG,wBAAwB,CAAA;AAE/B,QAAA,iBAAiB,GAAG,OAAC;KAC/B,MAAM,EAAE;KACR,KAAK,CAAC,WAAW,EAAE,uBAAuB,CAAC;KAC3C,GAAG,CAAC,CAAC,EAAE,6BAA6B,CAAC,CAAA"}
@@ -1,11 +1,56 @@
1
1
  import { z } from 'zod';
2
- export declare const QueueSchema: z.ZodObject<{
3
- actualOperationalDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
4
- address: z.ZodOptional<z.ZodString>;
5
- allSectors: z.ZodOptional<z.ZodString>;
2
+ export declare const euQueueSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ actualOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
4
+ allSectors: z.ZodDefault<z.ZodString>;
6
5
  applicationId: z.ZodString;
7
- constructionDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
8
- country: z.ZodOptional<z.ZodString>;
6
+ applicationStatus: z.ZodOptional<z.ZodString>;
7
+ audiences: z.ZodArray<z.ZodObject<{
8
+ identifier: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ identifier?: string;
11
+ }, {
12
+ identifier?: string;
13
+ }>, "many">;
14
+ id: z.ZodString;
15
+ indexed_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
16
+ lastModified: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
17
+ organizations: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
18
+ identifier: z.ZodString;
19
+ id: z.ZodString;
20
+ }, {
21
+ role: z.ZodString;
22
+ ref: z.ZodOptional<z.ZodString>;
23
+ }>, "strip", z.ZodTypeAny, {
24
+ id?: string;
25
+ identifier?: string;
26
+ role?: string;
27
+ ref?: string;
28
+ }, {
29
+ id?: string;
30
+ identifier?: string;
31
+ role?: string;
32
+ ref?: string;
33
+ }>, "many">>;
34
+ plannedOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
35
+ projectName: z.ZodOptional<z.ZodString>;
36
+ queueDataset: z.ZodOptional<z.ZodString>;
37
+ reportDate: z.ZodEffects<z.ZodString, string, string>;
38
+ sectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
39
+ identifier: z.ZodString;
40
+ id: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ id?: string;
43
+ identifier?: string;
44
+ }, {
45
+ id?: string;
46
+ identifier?: string;
47
+ }>, "many">>;
48
+ totals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
49
+ withdrawnDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
50
+ }, {
51
+ address: z.ZodOptional<z.ZodString>;
52
+ constructionDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
53
+ country: z.ZodString;
9
54
  developmentStatus: z.ZodOptional<z.ZodString>;
10
55
  geo: z.ZodOptional<z.ZodObject<{
11
56
  project: z.ZodObject<{
@@ -29,57 +74,25 @@ export declare const QueueSchema: z.ZodObject<{
29
74
  lon?: number;
30
75
  };
31
76
  }>>;
32
- id: z.ZodString;
33
- indexed_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
34
77
  localCounty: z.ZodOptional<z.ZodString>;
35
78
  localRegion: z.ZodOptional<z.ZodString>;
36
79
  localState: z.ZodOptional<z.ZodString>;
37
80
  localTown: z.ZodOptional<z.ZodString>;
38
81
  mwGross: z.ZodOptional<z.ZodNumber>;
39
82
  mwNet: z.ZodOptional<z.ZodNumber>;
40
- organizations: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
41
- identifier: z.ZodString;
42
- id: z.ZodString;
43
- }, {
44
- role: z.ZodString;
45
- }>, "strip", z.ZodTypeAny, {
46
- id?: string;
47
- identifier?: string;
48
- role?: string;
49
- }, {
50
- id?: string;
51
- identifier?: string;
52
- role?: string;
53
- }>, "many">>;
54
- plannedOperationalDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
55
- planningAuthority: z.ZodOptional<z.ZodString>;
56
- planningGranted: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
83
+ planningGranted: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
57
84
  postalCode: z.ZodOptional<z.ZodString>;
58
- projectName: z.ZodOptional<z.ZodString>;
59
- queueDataset: z.ZodOptional<z.ZodString>;
60
- queueDate: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
61
- refId: z.ZodOptional<z.ZodString>;
62
- reportDate: z.ZodEffects<z.ZodString, string, string>;
63
- sectorDetail: z.ZodOptional<z.ZodString>;
64
- sectors: z.ZodArray<z.ZodObject<{
65
- identifier: z.ZodString;
66
- id: z.ZodString;
67
- }, "strip", z.ZodTypeAny, {
68
- id?: string;
69
- identifier?: string;
70
- }, {
71
- id?: string;
72
- identifier?: string;
73
- }>, "many">;
74
- sourceUpdate: z.ZodEffects<z.ZodString, string, string>;
85
+ queueDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
86
+ refId: z.ZodString;
87
+ sectorDetail: z.ZodDefault<z.ZodString>;
88
+ sourceUpdate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
75
89
  status: z.ZodString;
76
90
  storageCapacity: z.ZodOptional<z.ZodNumber>;
77
91
  storageType: z.ZodOptional<z.ZodString>;
78
92
  technology: z.ZodOptional<z.ZodString>;
79
93
  totalMw: z.ZodOptional<z.ZodNumber>;
80
94
  windFarmName: z.ZodOptional<z.ZodString>;
81
- withdrawnDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
82
- }, "strip", z.ZodTypeAny, {
95
+ }>, "strip", z.ZodTypeAny, {
83
96
  sectors?: {
84
97
  id?: string;
85
98
  identifier?: string;
@@ -93,6 +106,7 @@ export declare const QueueSchema: z.ZodObject<{
93
106
  id?: string;
94
107
  identifier?: string;
95
108
  role?: string;
109
+ ref?: string;
96
110
  }[];
97
111
  geo?: {
98
112
  project?: {
@@ -100,26 +114,32 @@ export declare const QueueSchema: z.ZodObject<{
100
114
  lon?: number;
101
115
  };
102
116
  };
117
+ audiences?: {
118
+ identifier?: string;
119
+ }[];
120
+ totals?: Record<string, number>;
103
121
  allSectors?: string;
104
122
  actualOperationalDate?: string;
123
+ applicationStatus?: string;
124
+ indexed_at?: string;
125
+ lastModified?: string;
126
+ plannedOperationalDate?: string;
127
+ projectName?: string;
128
+ reportDate?: string;
129
+ withdrawnDate?: string;
105
130
  address?: string;
106
131
  constructionDate?: string;
107
132
  developmentStatus?: string;
108
- indexed_at?: string;
109
133
  localCounty?: string;
110
134
  localRegion?: string;
111
135
  localState?: string;
112
136
  localTown?: string;
113
137
  mwGross?: number;
114
138
  mwNet?: number;
115
- plannedOperationalDate?: string;
116
- planningAuthority?: string;
117
139
  planningGranted?: string;
118
140
  postalCode?: string;
119
- projectName?: string;
120
141
  queueDate?: string;
121
142
  refId?: string;
122
- reportDate?: string;
123
143
  sectorDetail?: string;
124
144
  sourceUpdate?: string;
125
145
  storageCapacity?: number;
@@ -127,7 +147,6 @@ export declare const QueueSchema: z.ZodObject<{
127
147
  technology?: string;
128
148
  totalMw?: number;
129
149
  windFarmName?: string;
130
- withdrawnDate?: string;
131
150
  }, {
132
151
  sectors?: {
133
152
  id?: string;
@@ -142,6 +161,7 @@ export declare const QueueSchema: z.ZodObject<{
142
161
  id?: string;
143
162
  identifier?: string;
144
163
  role?: string;
164
+ ref?: string;
145
165
  }[];
146
166
  geo?: {
147
167
  project?: {
@@ -149,26 +169,32 @@ export declare const QueueSchema: z.ZodObject<{
149
169
  lon?: number;
150
170
  };
151
171
  };
172
+ audiences?: {
173
+ identifier?: string;
174
+ }[];
175
+ totals?: Record<string, number>;
152
176
  allSectors?: string;
153
177
  actualOperationalDate?: string;
178
+ applicationStatus?: string;
179
+ indexed_at?: string;
180
+ lastModified?: string;
181
+ plannedOperationalDate?: string;
182
+ projectName?: string;
183
+ reportDate?: string;
184
+ withdrawnDate?: string;
154
185
  address?: string;
155
186
  constructionDate?: string;
156
187
  developmentStatus?: string;
157
- indexed_at?: string;
158
188
  localCounty?: string;
159
189
  localRegion?: string;
160
190
  localState?: string;
161
191
  localTown?: string;
162
192
  mwGross?: number;
163
193
  mwNet?: number;
164
- plannedOperationalDate?: string;
165
- planningAuthority?: string;
166
194
  planningGranted?: string;
167
195
  postalCode?: string;
168
- projectName?: string;
169
196
  queueDate?: string;
170
197
  refId?: string;
171
- reportDate?: string;
172
198
  sectorDetail?: string;
173
199
  sourceUpdate?: string;
174
200
  storageCapacity?: number;
@@ -176,6 +202,518 @@ export declare const QueueSchema: z.ZodObject<{
176
202
  technology?: string;
177
203
  totalMw?: number;
178
204
  windFarmName?: string;
205
+ }>;
206
+ export type EUQueueType = z.infer<typeof euQueueSchema>;
207
+ export declare const usQueueSchema: z.ZodObject<z.objectUtil.extendShape<{
208
+ actualOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
209
+ allSectors: z.ZodDefault<z.ZodString>;
210
+ applicationId: z.ZodString;
211
+ applicationStatus: z.ZodOptional<z.ZodString>;
212
+ audiences: z.ZodArray<z.ZodObject<{
213
+ identifier: z.ZodString;
214
+ }, "strip", z.ZodTypeAny, {
215
+ identifier?: string;
216
+ }, {
217
+ identifier?: string;
218
+ }>, "many">;
219
+ id: z.ZodString;
220
+ indexed_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
221
+ lastModified: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
222
+ organizations: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
223
+ identifier: z.ZodString;
224
+ id: z.ZodString;
225
+ }, {
226
+ role: z.ZodString;
227
+ ref: z.ZodOptional<z.ZodString>;
228
+ }>, "strip", z.ZodTypeAny, {
229
+ id?: string;
230
+ identifier?: string;
231
+ role?: string;
232
+ ref?: string;
233
+ }, {
234
+ id?: string;
235
+ identifier?: string;
236
+ role?: string;
237
+ ref?: string;
238
+ }>, "many">>;
239
+ plannedOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
240
+ projectName: z.ZodOptional<z.ZodString>;
241
+ queueDataset: z.ZodOptional<z.ZodString>;
242
+ reportDate: z.ZodEffects<z.ZodString, string, string>;
243
+ sectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
244
+ identifier: z.ZodString;
245
+ id: z.ZodString;
246
+ }, "strip", z.ZodTypeAny, {
247
+ id?: string;
248
+ identifier?: string;
249
+ }, {
250
+ id?: string;
251
+ identifier?: string;
252
+ }>, "many">>;
253
+ totals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
254
+ withdrawnDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
255
+ }, {
256
+ '#developers': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
257
+ '#keyPeople': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
258
+ applicationType: z.ZodOptional<z.ZodString>;
259
+ city: z.ZodOptional<z.ZodObject<{
260
+ identifier: z.ZodString;
261
+ id: z.ZodString;
262
+ }, "strip", z.ZodTypeAny, {
263
+ id?: string;
264
+ identifier?: string;
265
+ }, {
266
+ id?: string;
267
+ identifier?: string;
268
+ }>>;
269
+ compositeQueue: z.ZodString;
270
+ cost: z.ZodOptional<z.ZodObject<{
271
+ costCompany: z.ZodString;
272
+ costYear: z.ZodNumber;
273
+ networkCostKW: z.ZodNumber;
274
+ poiCostKW: z.ZodNumber;
275
+ totalCostKW: z.ZodNumber;
276
+ }, "strip", z.ZodTypeAny, {
277
+ costCompany?: string;
278
+ costYear?: number;
279
+ networkCostKW?: number;
280
+ poiCostKW?: number;
281
+ totalCostKW?: number;
282
+ }, {
283
+ costCompany?: string;
284
+ costYear?: number;
285
+ networkCostKW?: number;
286
+ poiCostKW?: number;
287
+ totalCostKW?: number;
288
+ }>>;
289
+ country: z.ZodArray<z.ZodObject<{
290
+ identifier: z.ZodString;
291
+ id: z.ZodString;
292
+ }, "strip", z.ZodTypeAny, {
293
+ id?: string;
294
+ identifier?: string;
295
+ }, {
296
+ id?: string;
297
+ identifier?: string;
298
+ }>, "many">;
299
+ county: z.ZodOptional<z.ZodObject<{
300
+ identifier: z.ZodString;
301
+ id: z.ZodString;
302
+ }, "strip", z.ZodTypeAny, {
303
+ id?: string;
304
+ identifier?: string;
305
+ }, {
306
+ id?: string;
307
+ identifier?: string;
308
+ }>>;
309
+ dateAddedToNpm: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
310
+ dateCreated: z.ZodEffects<z.ZodString, string, string>;
311
+ geo: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
312
+ default: z.ZodObject<{
313
+ lon: z.ZodNumber;
314
+ lat: z.ZodNumber;
315
+ }, "strip", z.ZodTypeAny, {
316
+ lat?: number;
317
+ lon?: number;
318
+ }, {
319
+ lat?: number;
320
+ lon?: number;
321
+ }>;
322
+ defaultValue: z.ZodString;
323
+ }, "strip", z.ZodTypeAny, {
324
+ default?: {
325
+ lat?: number;
326
+ lon?: number;
327
+ };
328
+ defaultValue?: string;
329
+ }, {
330
+ default?: {
331
+ lat?: number;
332
+ lon?: number;
333
+ };
334
+ defaultValue?: string;
335
+ }>, z.ZodRecord<z.ZodString, z.ZodObject<{
336
+ lon: z.ZodNumber;
337
+ lat: z.ZodNumber;
338
+ }, "strip", z.ZodTypeAny, {
339
+ lat?: number;
340
+ lon?: number;
341
+ }, {
342
+ lat?: number;
343
+ lon?: number;
344
+ }>>>>;
345
+ interconnectingEntity: z.ZodOptional<z.ZodString>;
346
+ isoRtoConnection: z.ZodOptional<z.ZodObject<{
347
+ identifier: z.ZodString;
348
+ id: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ id?: string;
351
+ identifier?: string;
352
+ }, {
353
+ id?: string;
354
+ identifier?: string;
355
+ }>>;
356
+ keyPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
357
+ linkedinUrl: z.ZodOptional<z.ZodString>;
358
+ phone: z.ZodOptional<z.ZodString>;
359
+ created: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
360
+ roles: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
361
+ fullName: z.ZodOptional<z.ZodString>;
362
+ id: z.ZodOptional<z.ZodString>;
363
+ source: z.ZodOptional<z.ZodString>;
364
+ email: z.ZodOptional<z.ZodString>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ id?: string;
367
+ linkedinUrl?: string;
368
+ fullName?: string;
369
+ email?: string;
370
+ phone?: string;
371
+ source?: string;
372
+ created?: string;
373
+ roles?: string[];
374
+ }, {
375
+ id?: string;
376
+ linkedinUrl?: string;
377
+ fullName?: string;
378
+ email?: string;
379
+ phone?: string;
380
+ source?: string;
381
+ created?: string;
382
+ roles?: string[];
383
+ }>, "many">>;
384
+ kV: z.ZodOptional<z.ZodNumber>;
385
+ meta: z.ZodObject<{
386
+ created: z.ZodEffects<z.ZodString, string, string>;
387
+ computedList: z.ZodArray<z.ZodString, "many">;
388
+ sk: z.ZodString;
389
+ modified: z.ZodEffects<z.ZodString, string, string>;
390
+ pk: z.ZodString;
391
+ entity: z.ZodString;
392
+ }, "strip", z.ZodTypeAny, {
393
+ created?: string;
394
+ computedList?: string[];
395
+ sk?: string;
396
+ modified?: string;
397
+ pk?: string;
398
+ entity?: string;
399
+ }, {
400
+ created?: string;
401
+ computedList?: string[];
402
+ sk?: string;
403
+ modified?: string;
404
+ pk?: string;
405
+ entity?: string;
406
+ }>;
407
+ nearestTownOrCounty: z.ZodOptional<z.ZodString>;
408
+ newToQ: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
409
+ npmOrganizationProfile: z.ZodOptional<z.ZodObject<{
410
+ identifier: z.ZodString;
411
+ id: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ id?: string;
414
+ identifier?: string;
415
+ }, {
416
+ id?: string;
417
+ identifier?: string;
418
+ }>>;
419
+ totalMw: z.ZodNumber;
420
+ poiLocation: z.ZodOptional<z.ZodString>;
421
+ processInfo: z.ZodOptional<z.ZodObject<{
422
+ county: z.ZodOptional<z.ZodString>;
423
+ isoRtoConnection: z.ZodOptional<z.ZodString>;
424
+ newRecord: z.ZodOptional<z.ZodString>;
425
+ newToQ: z.ZodOptional<z.ZodString>;
426
+ npmOrganizationProfile: z.ZodOptional<z.ZodString>;
427
+ sectors: z.ZodOptional<z.ZodString>;
428
+ state: z.ZodOptional<z.ZodString>;
429
+ utility: z.ZodOptional<z.ZodString>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ sectors?: string;
432
+ state?: string;
433
+ county?: string;
434
+ utility?: string;
435
+ isoRtoConnection?: string;
436
+ newRecord?: string;
437
+ newToQ?: string;
438
+ npmOrganizationProfile?: string;
439
+ }, {
440
+ sectors?: string;
441
+ state?: string;
442
+ county?: string;
443
+ utility?: string;
444
+ isoRtoConnection?: string;
445
+ newRecord?: string;
446
+ newToQ?: string;
447
+ npmOrganizationProfile?: string;
448
+ }>>;
449
+ queueDatasetType: z.ZodString;
450
+ queueKey: z.ZodString;
451
+ sourceUpdate: z.ZodString;
452
+ reportCount: z.ZodOptional<z.ZodNumber>;
453
+ state: z.ZodOptional<z.ZodObject<{
454
+ identifier: z.ZodString;
455
+ id: z.ZodString;
456
+ }, "strip", z.ZodTypeAny, {
457
+ id?: string;
458
+ identifier?: string;
459
+ }, {
460
+ id?: string;
461
+ identifier?: string;
462
+ }>>;
463
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
464
+ identifier: z.ZodString;
465
+ }, "strip", z.ZodTypeAny, {
466
+ identifier?: string;
467
+ }, {
468
+ identifier?: string;
469
+ }>, "many">>;
470
+ utility: z.ZodOptional<z.ZodObject<{
471
+ identifier: z.ZodString;
472
+ id: z.ZodString;
473
+ }, "strip", z.ZodTypeAny, {
474
+ id?: string;
475
+ identifier?: string;
476
+ }, {
477
+ id?: string;
478
+ identifier?: string;
479
+ }>>;
480
+ }>, "strip", z.ZodTypeAny, {
481
+ sectors?: {
482
+ id?: string;
483
+ identifier?: string;
484
+ }[];
485
+ state?: {
486
+ id?: string;
487
+ identifier?: string;
488
+ };
489
+ county?: {
490
+ id?: string;
491
+ identifier?: string;
492
+ };
493
+ keyPeople?: {
494
+ id?: string;
495
+ linkedinUrl?: string;
496
+ fullName?: string;
497
+ email?: string;
498
+ phone?: string;
499
+ source?: string;
500
+ created?: string;
501
+ roles?: string[];
502
+ }[];
503
+ id?: string;
504
+ queueKey?: string;
505
+ applicationId?: string;
506
+ queueDataset?: string;
507
+ city?: {
508
+ id?: string;
509
+ identifier?: string;
510
+ };
511
+ country?: {
512
+ id?: string;
513
+ identifier?: string;
514
+ }[];
515
+ organizations?: {
516
+ id?: string;
517
+ identifier?: string;
518
+ role?: string;
519
+ ref?: string;
520
+ }[];
521
+ utility?: {
522
+ id?: string;
523
+ identifier?: string;
524
+ };
525
+ geo?: {
526
+ default?: {
527
+ lat?: number;
528
+ lon?: number;
529
+ };
530
+ defaultValue?: string;
531
+ } & Record<string, {
532
+ lat?: number;
533
+ lon?: number;
534
+ }>;
535
+ audiences?: {
536
+ identifier?: string;
537
+ }[];
538
+ totals?: Record<string, number>;
539
+ allSectors?: string;
540
+ isoRtoConnection?: {
541
+ id?: string;
542
+ identifier?: string;
543
+ };
544
+ newToQ?: string;
545
+ npmOrganizationProfile?: {
546
+ id?: string;
547
+ identifier?: string;
548
+ };
549
+ actualOperationalDate?: string;
550
+ applicationStatus?: string;
551
+ indexed_at?: string;
552
+ lastModified?: string;
553
+ plannedOperationalDate?: string;
554
+ projectName?: string;
555
+ reportDate?: string;
179
556
  withdrawnDate?: string;
557
+ sourceUpdate?: string;
558
+ totalMw?: number;
559
+ '#developers'?: string[];
560
+ '#keyPeople'?: string[];
561
+ applicationType?: string;
562
+ compositeQueue?: string;
563
+ cost?: {
564
+ costCompany?: string;
565
+ costYear?: number;
566
+ networkCostKW?: number;
567
+ poiCostKW?: number;
568
+ totalCostKW?: number;
569
+ };
570
+ dateAddedToNpm?: string;
571
+ dateCreated?: string;
572
+ interconnectingEntity?: string;
573
+ kV?: number;
574
+ meta?: {
575
+ created?: string;
576
+ computedList?: string[];
577
+ sk?: string;
578
+ modified?: string;
579
+ pk?: string;
580
+ entity?: string;
581
+ };
582
+ nearestTownOrCounty?: string;
583
+ poiLocation?: string;
584
+ processInfo?: {
585
+ sectors?: string;
586
+ state?: string;
587
+ county?: string;
588
+ utility?: string;
589
+ isoRtoConnection?: string;
590
+ newRecord?: string;
591
+ newToQ?: string;
592
+ npmOrganizationProfile?: string;
593
+ };
594
+ queueDatasetType?: string;
595
+ reportCount?: number;
596
+ tags?: {
597
+ identifier?: string;
598
+ }[];
599
+ }, {
600
+ sectors?: {
601
+ id?: string;
602
+ identifier?: string;
603
+ }[];
604
+ state?: {
605
+ id?: string;
606
+ identifier?: string;
607
+ };
608
+ county?: {
609
+ id?: string;
610
+ identifier?: string;
611
+ };
612
+ keyPeople?: {
613
+ id?: string;
614
+ linkedinUrl?: string;
615
+ fullName?: string;
616
+ email?: string;
617
+ phone?: string;
618
+ source?: string;
619
+ created?: string;
620
+ roles?: string[];
621
+ }[];
622
+ id?: string;
623
+ queueKey?: string;
624
+ applicationId?: string;
625
+ queueDataset?: string;
626
+ city?: {
627
+ id?: string;
628
+ identifier?: string;
629
+ };
630
+ country?: {
631
+ id?: string;
632
+ identifier?: string;
633
+ }[];
634
+ organizations?: {
635
+ id?: string;
636
+ identifier?: string;
637
+ role?: string;
638
+ ref?: string;
639
+ }[];
640
+ utility?: {
641
+ id?: string;
642
+ identifier?: string;
643
+ };
644
+ geo?: {
645
+ default?: {
646
+ lat?: number;
647
+ lon?: number;
648
+ };
649
+ defaultValue?: string;
650
+ } & Record<string, {
651
+ lat?: number;
652
+ lon?: number;
653
+ }>;
654
+ audiences?: {
655
+ identifier?: string;
656
+ }[];
657
+ totals?: Record<string, number>;
658
+ allSectors?: string;
659
+ isoRtoConnection?: {
660
+ id?: string;
661
+ identifier?: string;
662
+ };
663
+ newToQ?: string;
664
+ npmOrganizationProfile?: {
665
+ id?: string;
666
+ identifier?: string;
667
+ };
668
+ actualOperationalDate?: string;
669
+ applicationStatus?: string;
670
+ indexed_at?: string;
671
+ lastModified?: string;
672
+ plannedOperationalDate?: string;
673
+ projectName?: string;
674
+ reportDate?: string;
675
+ withdrawnDate?: string;
676
+ sourceUpdate?: string;
677
+ totalMw?: number;
678
+ '#developers'?: string[];
679
+ '#keyPeople'?: string[];
680
+ applicationType?: string;
681
+ compositeQueue?: string;
682
+ cost?: {
683
+ costCompany?: string;
684
+ costYear?: number;
685
+ networkCostKW?: number;
686
+ poiCostKW?: number;
687
+ totalCostKW?: number;
688
+ };
689
+ dateAddedToNpm?: string;
690
+ dateCreated?: string;
691
+ interconnectingEntity?: string;
692
+ kV?: number;
693
+ meta?: {
694
+ created?: string;
695
+ computedList?: string[];
696
+ sk?: string;
697
+ modified?: string;
698
+ pk?: string;
699
+ entity?: string;
700
+ };
701
+ nearestTownOrCounty?: string;
702
+ poiLocation?: string;
703
+ processInfo?: {
704
+ sectors?: string;
705
+ state?: string;
706
+ county?: string;
707
+ utility?: string;
708
+ isoRtoConnection?: string;
709
+ newRecord?: string;
710
+ newToQ?: string;
711
+ npmOrganizationProfile?: string;
712
+ };
713
+ queueDatasetType?: string;
714
+ reportCount?: number;
715
+ tags?: {
716
+ identifier?: string;
717
+ }[];
180
718
  }>;
181
- export type QueueType = z.infer<typeof QueueSchema>;
719
+ export type USQueueType = z.infer<typeof usQueueSchema>;
@@ -1,48 +1,131 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QueueSchema = void 0;
3
+ exports.usQueueSchema = exports.euQueueSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const entity_1 = require("./entity");
6
- const getDefaultDate = () => {
7
- const today = new Date();
8
- return today.toISOString().split('T')[0];
9
- };
10
- exports.QueueSchema = zod_1.z.object({
11
- actualOperationalDate: entity_1.YYYYMMDDRegexOptionalSchema,
12
- address: entity_1.OptionalStringSchema,
13
- allSectors: entity_1.OptionalStringSchema,
6
+ const CostSchema = zod_1.z.object({
7
+ costCompany: zod_1.z.string(),
8
+ costYear: zod_1.z.number(),
9
+ networkCostKW: zod_1.z.number(),
10
+ poiCostKW: zod_1.z.number(),
11
+ totalCostKW: zod_1.z.number(),
12
+ });
13
+ const MetaSchema = zod_1.z.object({
14
+ created: entity_1.FlexibleDateRegexSchema,
15
+ computedList: zod_1.z.array(zod_1.z.string()),
16
+ sk: zod_1.z.string(),
17
+ modified: entity_1.FlexibleDateRegexSchema,
18
+ pk: zod_1.z.string(),
19
+ entity: zod_1.z.string(),
20
+ });
21
+ // const TrackedPropsSchema = z.object({
22
+ // applicationId: OptionalStringSchema,
23
+ // id: OptionalStringSchema,
24
+ // key: OptionalStringSchema,
25
+ // propType: OptionalStringSchema,
26
+ // queueKey: OptionalStringSchema,
27
+ // reportDate: YYYYMMDDRegexOptionalSchema,
28
+ // set: OptionalNumberSchema,
29
+ // transition: z.object({
30
+ // durationInDays: OptionalNumberSchema,
31
+ // from: OptionalStringSchema,
32
+ // to: OptionalStringSchema,
33
+ // }),
34
+ // type: OptionalStringSchema,
35
+ // value: OptionalStringSchema,
36
+ // })
37
+ const ProcessInfoSchema = zod_1.z.object({
38
+ county: entity_1.OptionalStringSchema,
39
+ isoRtoConnection: entity_1.OptionalStringSchema,
40
+ newRecord: entity_1.OptionalStringSchema,
41
+ newToQ: entity_1.OptionalStringSchema,
42
+ npmOrganizationProfile: entity_1.OptionalStringSchema,
43
+ sectors: entity_1.OptionalStringSchema,
44
+ state: entity_1.OptionalStringSchema,
45
+ utility: entity_1.OptionalStringSchema,
46
+ });
47
+ const KeyPeopleSchema = zod_1.z.object({
48
+ linkedinUrl: entity_1.OptionalStringSchema,
49
+ phone: entity_1.OptionalStringSchema,
50
+ created: entity_1.ISODateTimeOptionalSchema,
51
+ roles: zod_1.z.array(entity_1.OptionalStringSchema),
52
+ fullName: entity_1.OptionalStringSchema,
53
+ id: entity_1.OptionalStringSchema,
54
+ source: entity_1.OptionalStringSchema,
55
+ email: entity_1.OptionalStringSchema,
56
+ });
57
+ const sharedQueueSchema = zod_1.z.object({
58
+ actualOperationalDate: entity_1.ISODateTimeOptionalSchema,
59
+ allSectors: zod_1.z.string().default(''),
14
60
  applicationId: zod_1.z.string(),
15
- constructionDate: entity_1.YYYYMMDDRegexOptionalSchema,
16
- country: zod_1.z.string().optional(),
17
- developmentStatus: entity_1.OptionalStringSchema,
18
- geo: entity_1.GeoSchema.optional(),
61
+ applicationStatus: zod_1.z.string().optional(),
62
+ audiences: zod_1.z.array(entity_1.IdentifierOnlyEntityItemSchema),
19
63
  id: zod_1.z.string(),
20
- indexed_at: entity_1.YYYYMMDDRegexOptionalSchema,
64
+ indexed_at: entity_1.ISODateTimeOptionalSchema,
65
+ lastModified: entity_1.ISODateTimeSchema,
66
+ organizations: entity_1.OrganizationSchema,
67
+ plannedOperationalDate: entity_1.ISODateTimeOptionalSchema,
68
+ projectName: entity_1.OptionalStringSchema,
69
+ queueDataset: entity_1.OptionalStringSchema,
70
+ reportDate: entity_1.YYYYMMDDRegexSchema,
71
+ sectors: entity_1.EntityItemArraySchema.default([]),
72
+ totals: zod_1.z.record(zod_1.z.number()).optional(),
73
+ withdrawnDate: entity_1.ISODateTimeOptionalSchema,
74
+ });
75
+ exports.euQueueSchema = sharedQueueSchema.extend({
76
+ address: entity_1.OptionalStringSchema,
77
+ constructionDate: entity_1.ISODateTimeOptionalSchema,
78
+ country: zod_1.z.string(),
79
+ developmentStatus: entity_1.OptionalStringSchema,
80
+ geo: entity_1.GeoEuSchema.optional(),
21
81
  localCounty: entity_1.OptionalStringSchema,
22
82
  localRegion: entity_1.OptionalStringSchema,
23
83
  localState: entity_1.OptionalStringSchema,
24
84
  localTown: entity_1.OptionalStringSchema,
25
85
  mwGross: entity_1.OptionalNumberSchema,
26
86
  mwNet: entity_1.OptionalNumberSchema,
27
- organizations: entity_1.OrganizationSchema,
28
- plannedOperationalDate: entity_1.YYYYMMDDRegexOptionalSchema,
29
- planningAuthority: entity_1.OptionalStringSchema,
30
- planningGranted: entity_1.YYYYMMDDRegexOptionalSchema,
87
+ planningGranted: entity_1.ISODateTimeOptionalSchema,
31
88
  postalCode: entity_1.OptionalStringSchema,
32
- projectName: entity_1.OptionalStringSchema,
33
- queueDataset: entity_1.OptionalStringSchema,
34
- queueDate: entity_1.YYYYMMDDRegexSchema.default(getDefaultDate),
35
- refId: entity_1.OptionalStringSchema,
36
- reportDate: entity_1.YYYYMMDDRegexSchema,
37
- sectorDetail: entity_1.OptionalStringSchema,
38
- sectors: entity_1.EntityItemArraySchema,
39
- sourceUpdate: entity_1.YYYYMMDDRegexSchema,
89
+ queueDate: entity_1.ISODateTimeOptionalSchema,
90
+ refId: zod_1.z.string(),
91
+ sectorDetail: zod_1.z.string().default(''),
92
+ sourceUpdate: entity_1.ISODateTimeOptionalSchema,
40
93
  status: zod_1.z.string(),
41
94
  storageCapacity: entity_1.OptionalNumberSchema,
42
95
  storageType: entity_1.OptionalStringSchema,
43
96
  technology: entity_1.OptionalStringSchema,
44
97
  totalMw: entity_1.OptionalNumberSchema,
45
98
  windFarmName: entity_1.OptionalStringSchema,
46
- withdrawnDate: entity_1.YYYYMMDDRegexOptionalSchema,
99
+ });
100
+ exports.usQueueSchema = sharedQueueSchema.extend({
101
+ '#developers': zod_1.z.array(zod_1.z.string()).optional(),
102
+ '#keyPeople': zod_1.z.array(zod_1.z.string()).optional(),
103
+ applicationType: entity_1.OptionalStringSchema,
104
+ city: entity_1.EntityItemSchema.optional(),
105
+ compositeQueue: zod_1.z.string(),
106
+ cost: CostSchema.optional(),
107
+ country: entity_1.EntityItemArraySchema,
108
+ county: entity_1.EntityItemSchema.optional(),
109
+ dateAddedToNpm: entity_1.FlexibleDateRegexOptionalSchema,
110
+ dateCreated: entity_1.YYYYMMDDRegexSchema,
111
+ geo: entity_1.GeoUsSchema.optional(),
112
+ interconnectingEntity: entity_1.OptionalStringSchema,
113
+ isoRtoConnection: entity_1.EntityItemSchema.optional(),
114
+ keyPeople: zod_1.z.array(KeyPeopleSchema).optional(),
115
+ kV: entity_1.OptionalNumberSchema,
116
+ meta: MetaSchema,
117
+ nearestTownOrCounty: entity_1.OptionalStringSchema,
118
+ newToQ: entity_1.ISODateTimeOptionalSchema,
119
+ npmOrganizationProfile: entity_1.EntityItemSchema.optional(),
120
+ totalMw: zod_1.z.number(),
121
+ poiLocation: entity_1.OptionalStringSchema,
122
+ processInfo: ProcessInfoSchema.optional(),
123
+ queueDatasetType: zod_1.z.string(),
124
+ queueKey: zod_1.z.string(),
125
+ sourceUpdate: zod_1.z.string(),
126
+ reportCount: entity_1.OptionalNumberSchema,
127
+ state: entity_1.EntityItemSchema.optional(),
128
+ tags: zod_1.z.array(entity_1.IdentifierOnlyEntityItemSchema).optional(),
129
+ utility: entity_1.EntityItemSchema.optional(),
47
130
  });
48
131
  //# sourceMappingURL=queues.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queues.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/queues.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,qCAQiB;AAEjB,MAAM,cAAc,GAAG,GAAW,EAAE;IAClC,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAA;IACxB,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;AAC1C,CAAC,CAAA;AAEY,QAAA,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,qBAAqB,EAAE,oCAA2B;IAClD,OAAO,EAAE,6BAAoB;IAC7B,UAAU,EAAE,6BAAoB;IAChC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,gBAAgB,EAAE,oCAA2B;IAC7C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,iBAAiB,EAAE,6BAAoB;IACvC,GAAG,EAAE,kBAAS,CAAC,QAAQ,EAAE;IACzB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,oCAA2B;IACvC,WAAW,EAAE,6BAAoB;IACjC,WAAW,EAAE,6BAAoB;IACjC,UAAU,EAAE,6BAAoB;IAChC,SAAS,EAAE,6BAAoB;IAC/B,OAAO,EAAE,6BAAoB;IAC7B,KAAK,EAAE,6BAAoB;IAC3B,aAAa,EAAE,2BAAkB;IACjC,sBAAsB,EAAE,oCAA2B;IACnD,iBAAiB,EAAE,6BAAoB;IACvC,eAAe,EAAE,oCAA2B;IAC5C,UAAU,EAAE,6BAAoB;IAChC,WAAW,EAAE,6BAAoB;IACjC,YAAY,EAAE,6BAAoB;IAClC,SAAS,EAAE,4BAAmB,CAAC,OAAO,CAAC,cAAc,CAAC;IACtD,KAAK,EAAE,6BAAoB;IAC3B,UAAU,EAAE,4BAAmB;IAC/B,YAAY,EAAE,6BAAoB;IAClC,OAAO,EAAE,8BAAqB;IAC9B,YAAY,EAAE,4BAAmB;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,6BAAoB;IACrC,WAAW,EAAE,6BAAoB;IACjC,UAAU,EAAE,6BAAoB;IAChC,OAAO,EAAE,6BAAoB;IAC7B,YAAY,EAAE,6BAAoB;IAClC,aAAa,EAAE,oCAA2B;CAC3C,CAAC,CAAA"}
1
+ {"version":3,"file":"queues.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/queues.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,qCAaiB;AAEjB,MAAM,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,gCAAuB;IAChC,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACjC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,gCAAuB;IACjC,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,CAAC,KAAK,CAAC,uCAA8B,CAAC,CAAC,QAAQ,EAAE;IACxD,OAAO,EAAE,yBAAgB,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAA"}
@@ -177,15 +177,15 @@ declare const signal: z.ZodObject<{
177
177
  lat?: number;
178
178
  lon?: number;
179
179
  };
180
- location?: {
180
+ default?: {
181
181
  lat?: number;
182
182
  lon?: number;
183
183
  };
184
- default?: {
184
+ defaultValue?: string;
185
+ location?: {
185
186
  lat?: number;
186
187
  lon?: number;
187
188
  };
188
- defaultValue?: string;
189
189
  facility?: {
190
190
  lat?: number;
191
191
  lon?: number;
@@ -195,15 +195,15 @@ declare const signal: z.ZodObject<{
195
195
  lat?: number;
196
196
  lon?: number;
197
197
  };
198
- location?: {
198
+ default?: {
199
199
  lat?: number;
200
200
  lon?: number;
201
201
  };
202
- default?: {
202
+ defaultValue?: string;
203
+ location?: {
203
204
  lat?: number;
204
205
  lon?: number;
205
206
  };
206
- defaultValue?: string;
207
207
  facility?: {
208
208
  lat?: number;
209
209
  lon?: number;
@@ -214,14 +214,17 @@ declare const signal: z.ZodObject<{
214
214
  id: z.ZodString;
215
215
  }, {
216
216
  role: z.ZodString;
217
+ ref: z.ZodOptional<z.ZodString>;
217
218
  }>, "strip", z.ZodTypeAny, {
218
219
  id?: string;
219
220
  identifier?: string;
220
221
  role?: string;
222
+ ref?: string;
221
223
  }, {
222
224
  id?: string;
223
225
  identifier?: string;
224
226
  role?: string;
227
+ ref?: string;
225
228
  }>, "many">>;
226
229
  keyPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
227
230
  id: z.ZodOptional<z.ZodString>;
@@ -531,6 +534,7 @@ declare const signal: z.ZodObject<{
531
534
  id?: string;
532
535
  identifier?: string;
533
536
  role?: string;
537
+ ref?: string;
534
538
  }[];
535
539
  queueApplications?: {
536
540
  id?: string;
@@ -570,15 +574,15 @@ declare const signal: z.ZodObject<{
570
574
  lat?: number;
571
575
  lon?: number;
572
576
  };
573
- location?: {
577
+ default?: {
574
578
  lat?: number;
575
579
  lon?: number;
576
580
  };
577
- default?: {
581
+ defaultValue?: string;
582
+ location?: {
578
583
  lat?: number;
579
584
  lon?: number;
580
585
  };
581
- defaultValue?: string;
582
586
  facility?: {
583
587
  lat?: number;
584
588
  lon?: number;
@@ -695,6 +699,7 @@ declare const signal: z.ZodObject<{
695
699
  id?: string;
696
700
  identifier?: string;
697
701
  role?: string;
702
+ ref?: string;
698
703
  }[];
699
704
  queueApplications?: {
700
705
  id?: string;
@@ -734,15 +739,15 @@ declare const signal: z.ZodObject<{
734
739
  lat?: number;
735
740
  lon?: number;
736
741
  };
737
- location?: {
742
+ default?: {
738
743
  lat?: number;
739
744
  lon?: number;
740
745
  };
741
- default?: {
746
+ defaultValue?: string;
747
+ location?: {
742
748
  lat?: number;
743
749
  lon?: number;
744
750
  };
745
- defaultValue?: string;
746
751
  facility?: {
747
752
  lat?: number;
748
753
  lon?: number;
@@ -1,7 +1,8 @@
1
1
  import { InfiniteData, QueryObserverResult, UseInfiniteQueryResult } from '@tanstack/react-query';
2
- import { ClientApiListRequestQueryParams, ClientApiListResponse, QueueType, Signal } from './api';
3
- export type Entity = Signal | QueueType;
4
- export type InfiniteQueryHook = (queryParams: ClientApiListRequestQueryParams, isEnabled?: boolean) => UseInfiniteQueryResult<InfiniteData<ClientApiListResponse<Entity>, unknown>, Error>;
2
+ import { ClientApiListRequestQueryParams, ClientApiListResponse, EUQueueType, Signal } from './api';
3
+ export type Entity = Signal | EUQueueType;
4
+ export type InfiniteQueryHook = (queryParams: ClientApiListRequestQueryParams, isEnabled?: boolean, customFilter?: ClientApiListRequestQueryParams['filters']) => UseInfiniteQueryResult<InfiniteData<ClientApiListResponse<Entity>, unknown>, Error>;
5
+ export type ReportQueryClient = (queryParams: ClientApiListRequestQueryParams) => Promise<ClientApiListResponse<Entity>>;
5
6
  export type RefetchResult = Promise<QueryObserverResult<InfiniteData<ClientApiListResponse<Entity>, unknown>, Error>>;
6
7
  export type ExtendedColumnFilter = {
7
8
  id: string;