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