@new-project-media/client-frontends-shared-types 1.4.7 → 1.4.8
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.4.
|
|
3
|
+
"version": "1.4.8",
|
|
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/",
|
|
@@ -33,7 +33,7 @@ export declare const euQueueSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
33
33
|
}>, "many">>;
|
|
34
34
|
plannedOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
35
35
|
projectName: z.ZodOptional<z.ZodString>;
|
|
36
|
-
queueDataset: z.
|
|
36
|
+
queueDataset: z.ZodString;
|
|
37
37
|
queueDatasetType: z.ZodOptional<z.ZodString>;
|
|
38
38
|
queueDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
39
39
|
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -348,7 +348,7 @@ export declare const usQueueSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
348
348
|
}>, "many">>;
|
|
349
349
|
plannedOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
350
350
|
projectName: z.ZodOptional<z.ZodString>;
|
|
351
|
-
queueDataset: z.
|
|
351
|
+
queueDataset: z.ZodString;
|
|
352
352
|
queueDatasetType: z.ZodOptional<z.ZodString>;
|
|
353
353
|
queueDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
354
354
|
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -943,7 +943,7 @@ export declare const QueueSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendSha
|
|
|
943
943
|
}>, "many">>;
|
|
944
944
|
plannedOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
945
945
|
projectName: z.ZodOptional<z.ZodString>;
|
|
946
|
-
queueDataset: z.
|
|
946
|
+
queueDataset: z.ZodString;
|
|
947
947
|
queueDatasetType: z.ZodOptional<z.ZodString>;
|
|
948
948
|
queueDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
949
949
|
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1536,7 +1536,7 @@ export declare const QueueSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendSha
|
|
|
1536
1536
|
}>, "many">>;
|
|
1537
1537
|
plannedOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
1538
1538
|
projectName: z.ZodOptional<z.ZodString>;
|
|
1539
|
-
queueDataset: z.
|
|
1539
|
+
queueDataset: z.ZodString;
|
|
1540
1540
|
queueDatasetType: z.ZodOptional<z.ZodString>;
|
|
1541
1541
|
queueDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
1542
1542
|
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1850,7 +1850,7 @@ export declare const QueueUnionSchema: z.ZodDiscriminatedUnion<"schema", [z.ZodO
|
|
|
1850
1850
|
}>, "many">>;
|
|
1851
1851
|
plannedOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
1852
1852
|
projectName: z.ZodOptional<z.ZodString>;
|
|
1853
|
-
queueDataset: z.
|
|
1853
|
+
queueDataset: z.ZodString;
|
|
1854
1854
|
queueDatasetType: z.ZodOptional<z.ZodString>;
|
|
1855
1855
|
queueDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
1856
1856
|
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2163,7 +2163,7 @@ export declare const QueueUnionSchema: z.ZodDiscriminatedUnion<"schema", [z.ZodO
|
|
|
2163
2163
|
}>, "many">>;
|
|
2164
2164
|
plannedOperationalDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
2165
2165
|
projectName: z.ZodOptional<z.ZodString>;
|
|
2166
|
-
queueDataset: z.
|
|
2166
|
+
queueDataset: z.ZodString;
|
|
2167
2167
|
queueDatasetType: z.ZodOptional<z.ZodString>;
|
|
2168
2168
|
queueDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
2169
2169
|
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2724,3 +2724,4 @@ export declare const QueueUnionSchema: z.ZodDiscriminatedUnion<"schema", [z.ZodO
|
|
|
2724
2724
|
}[];
|
|
2725
2725
|
}>]>;
|
|
2726
2726
|
export type QueueType = z.infer<typeof QueueSchema>;
|
|
2727
|
+
export type QueueUnionType = z.infer<typeof QueueUnionSchema>;
|
|
@@ -42,7 +42,7 @@ const sharedQueueSchema = zod_1.z.object({
|
|
|
42
42
|
organizations: entity_1.OrganizationSchema,
|
|
43
43
|
plannedOperationalDate: entity_1.ISODateTimeOptionalSchema,
|
|
44
44
|
projectName: entity_1.OptionalStringSchema,
|
|
45
|
-
queueDataset:
|
|
45
|
+
queueDataset: zod_1.z.string(),
|
|
46
46
|
queueDatasetType: entity_1.OptionalStringSchema,
|
|
47
47
|
queueDate: entity_1.ISODateTimeOptionalSchema,
|
|
48
48
|
regions: zod_1.z.array(entity_1.EntityItemSchema).optional(),
|
|
@@ -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,qCAYiB;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,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,6BAAoB;IAC5B,gBAAgB,EAAE,6BAAoB;IACtC,SAAS,EAAE,6BAAoB;IAC/B,MAAM,EAAE,6BAAoB;IAC5B,sBAAsB,EAAE,6BAAoB;IAC5C,OAAO,EAAE,6BAAoB;IAC7B,KAAK,EAAE,6BAAoB;IAC3B,OAAO,EAAE,6BAAoB;CAC9B,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,WAAW,EAAE,6BAAoB;IACjC,KAAK,EAAE,6BAAoB;IAC3B,OAAO,EAAE,kCAAyB;IAClC,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAoB,CAAC;IACpC,QAAQ,EAAE,6BAAoB;IAC9B,EAAE,EAAE,6BAAoB;IACxB,MAAM,EAAE,6BAAoB;IAC5B,KAAK,EAAE,6BAAoB;CAC5B,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,qBAAqB,EAAE,kCAAyB;IAChD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAClC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,uCAA8B,CAAC;IAClD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,kCAAyB;IACrC,YAAY,EAAE,0BAAiB,CAAC,QAAQ,EAAE;IAC1C,aAAa,EAAE,2BAAkB;IACjC,sBAAsB,EAAE,kCAAyB;IACjD,WAAW,EAAE,6BAAoB;IACjC,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"queues.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/queues.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,qCAYiB;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,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,6BAAoB;IAC5B,gBAAgB,EAAE,6BAAoB;IACtC,SAAS,EAAE,6BAAoB;IAC/B,MAAM,EAAE,6BAAoB;IAC5B,sBAAsB,EAAE,6BAAoB;IAC5C,OAAO,EAAE,6BAAoB;IAC7B,KAAK,EAAE,6BAAoB;IAC3B,OAAO,EAAE,6BAAoB;CAC9B,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,WAAW,EAAE,6BAA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,kBAAkB,CAAC,QAAQ,EAAE;IAC7D,qBAAa;IACb,qBAAa;CACd,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InfiniteData, QueryObserverResult, UseInfiniteQueryResult, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import { ClientApiListRequestQueryParams, ClientApiListResponse,
|
|
3
|
-
export type Entity = Signal |
|
|
2
|
+
import { ClientApiListRequestQueryParams, ClientApiListResponse, QueueUnionType, Signal } from './api';
|
|
3
|
+
export type Entity = Signal | QueueUnionType;
|
|
4
4
|
export type InfiniteQueryHook = (queryParams: ClientApiListRequestQueryParams, isEnabled?: boolean, customFilter?: ClientApiListRequestQueryParams['filters']) => UseInfiniteQueryResult<InfiniteData<ClientApiListResponse<Entity>, unknown>, Error>;
|
|
5
5
|
export type ReportQueryClient = (queryParams: ClientApiListRequestQueryParams) => Promise<ClientApiListResponse<Entity>>;
|
|
6
6
|
export type CenterpointQueryHook = (queryParams: ClientApiListRequestQueryParams, isEnabled?: boolean, customFilter?: ClientApiListRequestQueryParams['filters']) => UseQueryResult<ClientApiListResponse<Entity>, Error>;
|
|
@@ -43,7 +43,7 @@ export type FilterDefinition = {
|
|
|
43
43
|
};
|
|
44
44
|
export type EntityExportMap = (userDateFormat: string) => Array<{
|
|
45
45
|
id: string;
|
|
46
|
-
render: (entity: Entity) => string;
|
|
46
|
+
render: (entity: Entity) => string | number;
|
|
47
47
|
}>;
|
|
48
48
|
export type GeoBounds = {
|
|
49
49
|
topLeft: Location;
|