hh-contracts 0.0.3 → 0.0.4
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.
|
@@ -7,7 +7,7 @@ const GetAppMenuQueryRequestSchema = zod_1.z.object({
|
|
|
7
7
|
userUuid: zod_1.z.string().uuid(),
|
|
8
8
|
});
|
|
9
9
|
const GetAppMenuQueryResponseSchema = zod_1.z.object({
|
|
10
|
-
appMenu: zod_1.z.array(models_1.
|
|
10
|
+
appMenu: zod_1.z.array(models_1.NavigationItemSchema),
|
|
11
11
|
});
|
|
12
12
|
var GetAppMenuQuery;
|
|
13
13
|
(function (GetAppMenuQuery) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NavigationItemSchema = exports.NavigationItemEntityWithChildrenSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const constants_2 = require("../constants");
|
|
@@ -19,7 +19,7 @@ const NavigationItemEntitySchema = zod_1.z.object({
|
|
|
19
19
|
exports.NavigationItemEntityWithChildrenSchema = NavigationItemEntitySchema.extend({
|
|
20
20
|
children: zod_1.z.array(NavigationItemEntitySchema).optional(),
|
|
21
21
|
});
|
|
22
|
-
exports.
|
|
22
|
+
exports.NavigationItemSchema = exports.NavigationItemEntityWithChildrenSchema.omit({
|
|
23
23
|
parentId: true,
|
|
24
24
|
order: true,
|
|
25
25
|
}).partial({ description: true, link: true, iconKey: true, routeComponentKey: true });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationItemSchema } from '../../models';
|
|
3
3
|
|
|
4
4
|
const GetAppMenuQueryRequestSchema = z.object({
|
|
5
5
|
userUuid: z.string().uuid(),
|
|
6
6
|
});
|
|
7
7
|
const GetAppMenuQueryResponseSchema = z.object({
|
|
8
|
-
appMenu: z.array(
|
|
8
|
+
appMenu: z.array(NavigationItemSchema),
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
export namespace GetAppMenuQuery {
|
|
@@ -19,11 +19,13 @@ export const NavigationItemEntityWithChildrenSchema = NavigationItemEntitySchema
|
|
|
19
19
|
children: z.array(NavigationItemEntitySchema).optional(),
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
export const
|
|
22
|
+
export const NavigationItemSchema = NavigationItemEntityWithChildrenSchema.omit({
|
|
23
23
|
parentId: true,
|
|
24
24
|
order: true,
|
|
25
25
|
}).partial({ description: true, link: true, iconKey: true, routeComponentKey: true });
|
|
26
26
|
|
|
27
27
|
export type TNavigationItemEntity = z.infer<typeof NavigationItemEntitySchema>;
|
|
28
|
-
export type
|
|
29
|
-
|
|
28
|
+
export type TNavigationItemEntityWithChildren = z.infer<
|
|
29
|
+
typeof NavigationItemEntityWithChildrenSchema
|
|
30
|
+
>;
|
|
31
|
+
export type TNavigationItem = z.infer<typeof NavigationItemSchema>;
|