aq-fe-framework 0.1.1035 → 0.1.1036

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.
@@ -1,4 +1,4 @@
1
- import { I as IBaseEntity } from './IBaseEntity-Am9Cgybw.mjs';
1
+ import { I as IBaseEntity } from './IBaseEntity-Dk-cLYSI.mjs';
2
2
 
3
3
  interface IAQModule extends IBaseEntity {
4
4
  officelName?: string;
@@ -0,0 +1,29 @@
1
+ import z from 'zod';
2
+
3
+ interface IBaseEntity {
4
+ id?: number;
5
+ tempId?: string;
6
+ code?: string;
7
+ name?: string;
8
+ concurrencyStamp?: string;
9
+ isEnabled?: boolean;
10
+ modifiedWhen?: Date;
11
+ modifiedFullName?: string;
12
+ createdBy?: number;
13
+ createWhen?: string;
14
+ }
15
+ declare const BaseEntitySchema: z.ZodObject<{
16
+ id: z.ZodOptional<z.ZodNumber>;
17
+ tempId: z.ZodOptional<z.ZodString>;
18
+ code: z.ZodOptional<z.ZodString>;
19
+ name: z.ZodOptional<z.ZodString>;
20
+ concurrencyStamp: z.ZodOptional<z.ZodString>;
21
+ isEnabled: z.ZodOptional<z.ZodBoolean>;
22
+ modifiedWhen: z.ZodOptional<z.ZodString>;
23
+ modifiedFullName: z.ZodOptional<z.ZodString>;
24
+ createdBy: z.ZodOptional<z.ZodNumber>;
25
+ createWhen: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strip>;
27
+ type BaseEntityType = z.infer<typeof BaseEntitySchema>;
28
+
29
+ export { BaseEntitySchema as B, type IBaseEntity as I, type BaseEntityType as a };
@@ -1,4 +1,4 @@
1
- import { I as IBaseEntity } from './IBaseEntity-Am9Cgybw.mjs';
1
+ import { I as IBaseEntity } from './IBaseEntity-Dk-cLYSI.mjs';
2
2
 
3
3
  /**
4
4
  * interface của năm học dùng chung
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  const_object_colors,
33
33
  const_object_documentTypes
34
- } from "./chunk-C74M5VPE.mjs";
34
+ } from "./chunk-OHAOJE5F.mjs";
35
35
  import {
36
36
  enumLabel_gender,
37
37
  enum_daysOfWeek
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import react__default, { ReactNode, ComponentProps } from 'react';
3
3
  import { t as type_action } from '../type_action-hMF6_2Mr.mjs';
4
4
  import { ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, MantineSize, InputWrapperProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
5
- import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-XkhMBQeB.mjs';
5
+ import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-DHa1QuqO.mjs';
6
6
  import { AxiosResponse } from 'axios';
7
7
  import { type_mantineSize } from '../types/index.mjs';
8
8
  import { useDisclosure, useListState } from '@mantine/hooks';
@@ -21,7 +21,8 @@ import { IconProps, Icon } from '@tabler/icons-react';
21
21
  import { CalendarEventExternal } from '@schedule-x/calendar';
22
22
  import '@tanstack/react-query';
23
23
  import '../type_mutation-CCtnyeP3.mjs';
24
- import '../IBaseEntity-Am9Cgybw.mjs';
24
+ import '../IBaseEntity-Dk-cLYSI.mjs';
25
+ import 'zod';
25
26
  import '@tanstack/react-table';
26
27
  import 'exceljs';
27
28
 
@@ -69,13 +69,13 @@ import {
69
69
  useHeaderMegaMenuStore,
70
70
  useS_ButtonImport,
71
71
  useStore_BasicAppShell
72
- } from "../chunk-LXWDPGPN.mjs";
72
+ } from "../chunk-KWEJ27QL.mjs";
73
73
  import "../chunk-WW55EZ4B.mjs";
74
74
  import "../chunk-KGBXMHKR.mjs";
75
75
  import "../chunk-7ZI7IOEP.mjs";
76
76
  import "../chunk-NYAWQRB7.mjs";
77
77
  import "../chunk-BTITP4TN.mjs";
78
- import "../chunk-C74M5VPE.mjs";
78
+ import "../chunk-OHAOJE5F.mjs";
79
79
  import "../chunk-J4WTZ3B4.mjs";
80
80
  import "../chunk-Z76CSZFI.mjs";
81
81
  import "../chunk-WZ6PXGGC.mjs";
@@ -5,7 +5,7 @@ import {
5
5
  const_object_colors,
6
6
  const_object_documentTypes,
7
7
  const_object_generalMenuData
8
- } from "../chunk-C74M5VPE.mjs";
8
+ } from "../chunk-OHAOJE5F.mjs";
9
9
  import "../chunk-JD6AELXS.mjs";
10
10
  export {
11
11
  const_aqModuleId,
@@ -7,7 +7,7 @@ export { d as MyActionIcon, e as MyButton, f as MyButtonModal } from '../MyDataT
7
7
  import { UseReactToPrintOptions } from 'react-to-print';
8
8
  import { I as IAQFileDetail } from '../utils_file-JlhzjLGS.mjs';
9
9
  import { useDisclosure } from '@mantine/hooks';
10
- import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-XkhMBQeB.mjs';
10
+ import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-DHa1QuqO.mjs';
11
11
  import { AxiosResponse } from 'axios';
12
12
  import { UseQueryResult, QueryKey, UseQueryOptions } from '@tanstack/react-query';
13
13
  import { MRT_RowData, MRT_ColumnDef } from 'mantine-react-table';
@@ -16,11 +16,12 @@ import { RichTextEditorProps, RichTextEditorToolbarProps, RichTextEditorContentP
16
16
  import { UseEditorOptions } from '@tiptap/react';
17
17
  import { M as MySelectProps } from '../MySelect-CEgpggSF.mjs';
18
18
  export { a as MySelect } from '../MySelect-CEgpggSF.mjs';
19
- import { I as IBaseEntity } from '../IBaseEntity-Am9Cgybw.mjs';
20
- import { M as MyReactQueryProps } from '../useMyReactQuery-io2elEak.mjs';
19
+ import { I as IBaseEntity } from '../IBaseEntity-Dk-cLYSI.mjs';
20
+ import { M as MyReactQueryProps } from '../useMyReactQuery-D1WDtzSg.mjs';
21
21
  import '../type_action-hMF6_2Mr.mjs';
22
22
  import '@tanstack/react-table';
23
23
  import '../type_mutation-CCtnyeP3.mjs';
24
+ import 'zod';
24
25
 
25
26
  declare function CustomSwitchTheme(): react_jsx_runtime.JSX.Element | null;
26
27
 
@@ -33,13 +33,13 @@ import {
33
33
  MyStatsCard,
34
34
  MyTextInput2 as MyTextInput,
35
35
  MyWeeklySessionSchedulerPicker
36
- } from "../chunk-LXWDPGPN.mjs";
36
+ } from "../chunk-KWEJ27QL.mjs";
37
37
  import "../chunk-WW55EZ4B.mjs";
38
38
  import "../chunk-KGBXMHKR.mjs";
39
39
  import "../chunk-7ZI7IOEP.mjs";
40
40
  import "../chunk-NYAWQRB7.mjs";
41
41
  import "../chunk-BTITP4TN.mjs";
42
- import "../chunk-C74M5VPE.mjs";
42
+ import "../chunk-OHAOJE5F.mjs";
43
43
  import "../chunk-J4WTZ3B4.mjs";
44
44
  import "../chunk-Z76CSZFI.mjs";
45
45
  import "../chunk-WZ6PXGGC.mjs";
@@ -1,15 +1,16 @@
1
1
  import * as react from 'react';
2
2
  import { MRT_RowData, MRT_TableInstance } from 'mantine-react-table';
3
3
  import * as next_dist_shared_lib_app_router_context_shared_runtime from 'next/dist/shared/lib/app-router-context.shared-runtime';
4
- import { B as BaseApiType, M as MyApiResponse } from '../useMyReactMutation-XkhMBQeB.mjs';
5
- export { I as IPagingParams, a as MyReactMutationProps, c as createBaseApi, u as useMyReactMutation } from '../useMyReactMutation-XkhMBQeB.mjs';
4
+ import { B as BaseApiType, M as MyApiResponse } from '../useMyReactMutation-DHa1QuqO.mjs';
5
+ export { I as IPagingParams, a as MyReactMutationProps, c as createBaseApi, u as useMyReactMutation } from '../useMyReactMutation-DHa1QuqO.mjs';
6
6
  import * as _tanstack_react_query from '@tanstack/react-query';
7
7
  import { QueryKey } from '@tanstack/react-query';
8
8
  import { AxiosInstance } from 'axios';
9
- export { M as MyReactQueryProps, u as useMyReactQuery } from '../useMyReactQuery-io2elEak.mjs';
10
- import { I as IAQModule } from '../IAQModule-bW0dxQvX.mjs';
9
+ export { M as MyReactQueryProps, u as useMyReactQuery } from '../useMyReactQuery-D1WDtzSg.mjs';
10
+ import { I as IAQModule } from '../IAQModule-DrQ-dp1g.mjs';
11
11
  import '../type_mutation-CCtnyeP3.mjs';
12
- import '../IBaseEntity-Am9Cgybw.mjs';
12
+ import '../IBaseEntity-Dk-cLYSI.mjs';
13
+ import 'zod';
13
14
 
14
15
  type UseEditableRowsOptions<T> = {
15
16
  initValues?: T[];
@@ -1,9 +1,11 @@
1
- export { A as AcademicYearUpdateDto, I as IAcademicYear, a as IEmailConfig, b as IEmailTemplate } from '../IEmailTemplate-D7pkIZbk.mjs';
2
- import { I as IBaseEntity } from '../IBaseEntity-Am9Cgybw.mjs';
1
+ export { A as AcademicYearUpdateDto, I as IAcademicYear, a as IEmailConfig, b as IEmailTemplate } from '../IEmailTemplate-dzQtOIY1.mjs';
2
+ import { I as IBaseEntity } from '../IBaseEntity-Dk-cLYSI.mjs';
3
+ export { B as BaseEntitySchema, a as BaseEntityType } from '../IBaseEntity-Dk-cLYSI.mjs';
3
4
  import { I as IAQFileDetail } from '../utils_file-JlhzjLGS.mjs';
4
- export { I as IAQModule } from '../IAQModule-bW0dxQvX.mjs';
5
+ export { I as IAQModule } from '../IAQModule-DrQ-dp1g.mjs';
5
6
  export { I as IBaseDomain } from '../IBaseDomain-CUxofYh8.mjs';
6
7
  export { I as IPagePermission } from '../IPagePermission-992CbJhp.mjs';
8
+ import 'zod';
7
9
 
8
10
  interface IUserSkillCenters extends IBaseEntity {
9
11
  userId?: number;
@@ -0,0 +1,19 @@
1
+ import "../chunk-JD6AELXS.mjs";
2
+
3
+ // src/interfaces/IBaseEntity.ts
4
+ import z from "zod";
5
+ var BaseEntitySchema = z.object({
6
+ id: z.number().optional(),
7
+ tempId: z.string().optional(),
8
+ code: z.string().min(1, "Vui l\xF2ng nh\u1EADp m\xE3").optional(),
9
+ name: z.string().min(1, "Vui l\xF2ng nh\u1EADp t\xEAn").optional(),
10
+ concurrencyStamp: z.string().optional(),
11
+ isEnabled: z.boolean().optional(),
12
+ modifiedWhen: z.string().optional(),
13
+ modifiedFullName: z.string().optional(),
14
+ createdBy: z.number().optional(),
15
+ createWhen: z.string().optional()
16
+ });
17
+ export {
18
+ BaseEntitySchema
19
+ };
@@ -1,11 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { I as IAcademicYear, b as IEmailTemplate, a as IEmailConfig } from '../IEmailTemplate-D7pkIZbk.mjs';
2
+ import { I as IAcademicYear, b as IEmailTemplate, a as IEmailConfig } from '../IEmailTemplate-dzQtOIY1.mjs';
3
3
  import { I as I_BasicAppShell_LinkItem } from '../types-km2g-xx5.mjs';
4
4
  import { SelectProps, ButtonProps } from '@mantine/core';
5
- import { I as IBaseEntity } from '../IBaseEntity-Am9Cgybw.mjs';
6
- import { I as IAQModule } from '../IAQModule-bW0dxQvX.mjs';
5
+ import { I as IBaseEntity } from '../IBaseEntity-Dk-cLYSI.mjs';
6
+ import { I as IAQModule } from '../IAQModule-DrQ-dp1g.mjs';
7
7
  import { I as IPagePermission } from '../IPagePermission-992CbJhp.mjs';
8
8
  import { ReactNode } from 'react';
9
+ import 'zod';
9
10
 
10
11
  declare function AcademicYearsCreate(): react_jsx_runtime.JSX.Element;
11
12
 
@@ -97,13 +97,13 @@ import {
97
97
  MailTemplateDeleteButton,
98
98
  useS_moduleConfig,
99
99
  useStore_Authenticate
100
- } from "../chunk-LXWDPGPN.mjs";
100
+ } from "../chunk-KWEJ27QL.mjs";
101
101
  import "../chunk-WW55EZ4B.mjs";
102
102
  import "../chunk-KGBXMHKR.mjs";
103
103
  import "../chunk-7ZI7IOEP.mjs";
104
104
  import "../chunk-NYAWQRB7.mjs";
105
105
  import "../chunk-BTITP4TN.mjs";
106
- import "../chunk-C74M5VPE.mjs";
106
+ import "../chunk-OHAOJE5F.mjs";
107
107
  import "../chunk-J4WTZ3B4.mjs";
108
108
  import "../chunk-Z76CSZFI.mjs";
109
109
  import "../chunk-WZ6PXGGC.mjs";
@@ -1,7 +1,7 @@
1
1
  import "../chunk-NMY3UEY5.mjs";
2
2
  import {
3
3
  MySelect
4
- } from "../chunk-LXWDPGPN.mjs";
4
+ } from "../chunk-KWEJ27QL.mjs";
5
5
  import "../chunk-WW55EZ4B.mjs";
6
6
  import "../chunk-KGBXMHKR.mjs";
7
7
  import {
@@ -9,7 +9,7 @@ import {
9
9
  } from "../chunk-7ZI7IOEP.mjs";
10
10
  import "../chunk-NYAWQRB7.mjs";
11
11
  import "../chunk-BTITP4TN.mjs";
12
- import "../chunk-C74M5VPE.mjs";
12
+ import "../chunk-OHAOJE5F.mjs";
13
13
  import {
14
14
  enumLabel_gender,
15
15
  enum_gender
@@ -3,7 +3,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
3
3
  import { t as type_mutation } from './type_mutation-CCtnyeP3.mjs';
4
4
  import * as axios from 'axios';
5
5
  import { AxiosInstance, AxiosResponse } from 'axios';
6
- import { I as IBaseEntity } from './IBaseEntity-Am9Cgybw.mjs';
6
+ import { I as IBaseEntity } from './IBaseEntity-Dk-cLYSI.mjs';
7
7
 
8
8
  interface IPagingParams {
9
9
  pageNumber?: number;
@@ -1,6 +1,6 @@
1
1
  import { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import { AxiosResponse } from 'axios';
3
- import { M as MyApiResponse } from './useMyReactMutation-XkhMBQeB.mjs';
3
+ import { M as MyApiResponse } from './useMyReactMutation-DHa1QuqO.mjs';
4
4
 
5
5
  interface MyReactQueryProps<IRes, IBody, TData = IRes> {
6
6
  queryKey?: QueryKey;
@@ -1,9 +1,10 @@
1
1
  import { I as IBaseDomain } from '../IBaseDomain-CUxofYh8.mjs';
2
- import { I as IBaseEntity } from '../IBaseEntity-Am9Cgybw.mjs';
2
+ import { I as IBaseEntity } from '../IBaseEntity-Dk-cLYSI.mjs';
3
3
  import ExcelJS from 'exceljs';
4
4
  export { I as IAQFileDetail, a as utils_file_AQDocumentTypeToFile, c as utils_file_base64ToFile, b as utils_file_docxtemplaterDownload, u as utils_file_fileToAQDocumentType } from '../utils_file-JlhzjLGS.mjs';
5
5
  import { DefaultMantineColor } from '@mantine/core';
6
6
  import { useQueryClient } from '@tanstack/react-query';
7
+ import 'zod';
7
8
 
8
9
  declare function utils_aq_mapBaseEntityToDomain<T extends IBaseEntity>(entity: T): IBaseDomain;
9
10
  declare function utils_aq_mapDomainToEntity(domain: IBaseDomain): IBaseEntity;
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "types": "./dist/schemas/index.d.mts"
59
59
  }
60
60
  },
61
- "version": "0.1.1035",
61
+ "version": "0.1.1036",
62
62
  "private": false,
63
63
  "files": [
64
64
  "dist"
@@ -1,14 +0,0 @@
1
- interface IBaseEntity {
2
- id?: number;
3
- tempId?: string;
4
- code?: string;
5
- name?: string;
6
- concurrencyStamp?: string;
7
- isEnabled?: boolean;
8
- modifiedWhen?: Date;
9
- modifiedFullName?: string;
10
- createdBy?: number;
11
- createWhen?: string;
12
- }
13
-
14
- export type { IBaseEntity as I };
@@ -90,10 +90,10 @@ var const_object_generalMenuData = {
90
90
  };
91
91
 
92
92
  export {
93
+ const_object_colors,
93
94
  const_array_daysOfWeek,
94
95
  const_aqModuleId,
95
96
  const_columnSize,
96
- const_object_colors,
97
97
  const_object_documentTypes,
98
98
  const_object_generalMenuData
99
99
  };