@new-project-media/client-frontends-shared-types 1.2.0 → 1.2.2
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.
|
|
3
|
+
"version": "1.2.2",
|
|
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/",
|
|
@@ -57,7 +57,7 @@ export declare const QueueSchema: z.ZodObject<{
|
|
|
57
57
|
postalCode: z.ZodOptional<z.ZodString>;
|
|
58
58
|
projectName: z.ZodOptional<z.ZodString>;
|
|
59
59
|
queueDataset: z.ZodOptional<z.ZodString>;
|
|
60
|
-
queueDate: z.ZodEffects<z.ZodString, string, string
|
|
60
|
+
queueDate: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
61
61
|
refId: z.ZodOptional<z.ZodString>;
|
|
62
62
|
reportDate: z.ZodEffects<z.ZodString, string, string>;
|
|
63
63
|
sectorDetail: z.ZodOptional<z.ZodString>;
|
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.QueueSchema = 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
|
+
};
|
|
6
10
|
exports.QueueSchema = zod_1.z.object({
|
|
7
11
|
actualOperationalDate: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
8
12
|
address: entity_1.OptionalStringSchema,
|
|
@@ -27,7 +31,7 @@ exports.QueueSchema = zod_1.z.object({
|
|
|
27
31
|
postalCode: entity_1.OptionalStringSchema,
|
|
28
32
|
projectName: entity_1.OptionalStringSchema,
|
|
29
33
|
queueDataset: entity_1.OptionalStringSchema,
|
|
30
|
-
queueDate: entity_1.YYYYMMDDRegexSchema,
|
|
34
|
+
queueDate: entity_1.YYYYMMDDRegexSchema.default(getDefaultDate),
|
|
31
35
|
refId: entity_1.OptionalStringSchema,
|
|
32
36
|
reportDate: entity_1.YYYYMMDDRegexSchema,
|
|
33
37
|
sectorDetail: entity_1.OptionalStringSchema,
|
|
@@ -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;
|
|
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"}
|
|
@@ -2,6 +2,7 @@ import { InfiniteData, QueryObserverResult, UseInfiniteQueryResult } from '@tans
|
|
|
2
2
|
import { ClientApiListRequestQueryParams, ClientApiListResponse, QueueType, Signal } from './api';
|
|
3
3
|
export type Entity = Signal | QueueType;
|
|
4
4
|
export type InfiniteQueryHook = (queryParams: ClientApiListRequestQueryParams, isEnabled?: boolean) => 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;
|