awing-library 2.1.2-dev.8 → 2.1.2-dev.80

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.
Files changed (78) hide show
  1. package/dist/esm/AWING/DataGrid/interface.d.ts +1 -1
  2. package/dist/esm/AWING/DateRangePicker/Container.d.ts +1 -1
  3. package/dist/esm/AWING/DropDownTreeSelect/components/TreeViewSearch.d.ts +10 -0
  4. package/dist/esm/AWING/DropDownTreeSelect/components/utils.d.ts +1 -0
  5. package/dist/esm/AWING/DropDownTreeSelect/index.d.ts +10 -0
  6. package/dist/esm/AWING/DropDownTreeSelect/type.d.ts +5 -0
  7. package/dist/esm/AWING/DropDownTreeSelect/utils.d.ts +16 -0
  8. package/dist/esm/AWING/PageManagement/interface.d.ts +1 -1
  9. package/dist/esm/AWING/PlaceFilter/interface.d.ts +1 -0
  10. package/dist/esm/AWING/TableEditable/interface.d.ts +5 -1
  11. package/dist/esm/AWING/TableEditableCollapsible/Container.d.ts +2 -0
  12. package/dist/esm/AWING/TableEditableCollapsible/components/TableCellEditable.d.ts +2 -0
  13. package/dist/esm/AWING/TableEditableCollapsible/components/TableEditableBody.d.ts +2 -0
  14. package/dist/esm/AWING/TableEditableCollapsible/components/TableHeader.d.ts +2 -0
  15. package/dist/esm/AWING/TableEditableCollapsible/components/TableRowEditable.d.ts +2 -0
  16. package/dist/esm/AWING/TableEditableCollapsible/components/TopBarActions.d.ts +2 -0
  17. package/dist/esm/AWING/TableEditableCollapsible/index.d.ts +6 -0
  18. package/dist/esm/AWING/TableEditableCollapsible/interface.d.ts +100 -0
  19. package/dist/esm/AWING/index.d.ts +4 -0
  20. package/dist/esm/Commons/Components/ClassicBaseDrawer.d.ts +1 -1
  21. package/dist/esm/Commons/Components/ClassicDrawer.d.ts +6 -3
  22. package/dist/esm/Commons/Components/Drawer.d.ts +9 -1
  23. package/dist/esm/Features/NOTIFICATION/FilterNotification/Constants.d.ts +6 -0
  24. package/dist/esm/Features/NOTIFICATION/FilterNotification/Container.d.ts +2 -0
  25. package/dist/esm/Features/NOTIFICATION/FilterNotification/CreateOrEdit.d.ts +2 -0
  26. package/dist/esm/Features/NOTIFICATION/FilterNotification/Services.d.ts +35 -0
  27. package/dist/esm/Features/NOTIFICATION/FilterNotification/context.d.ts +11 -0
  28. package/dist/esm/Features/NOTIFICATION/FilterNotification/index.d.ts +8 -0
  29. package/dist/esm/Features/NOTIFICATION/FilterNotification/types.d.ts +49 -0
  30. package/dist/esm/Features/NOTIFICATION/FilterNotification/utils.d.ts +7 -0
  31. package/dist/esm/Features/NOTIFICATION/NotificationConfig/Services.d.ts +5 -2
  32. package/dist/esm/Features/NOTIFICATION/NotificationConfig/types.d.ts +1 -0
  33. package/dist/esm/Features/NOTIFICATION/ObjectFilter/Services.d.ts +5 -5
  34. package/dist/esm/Features/NOTIFICATION/ObjectFilter/context.d.ts +0 -2
  35. package/dist/esm/Features/NOTIFICATION/ObjectFilter/index.d.ts +0 -1
  36. package/dist/esm/Features/NOTIFICATION/ObjectFilter/types.d.ts +1 -2
  37. package/dist/esm/Features/NOTIFICATION/ObjectFilter/utils.d.ts +1 -1
  38. package/dist/esm/Features/NOTIFICATION/SubscriptionConfig/Services.d.ts +5 -2
  39. package/dist/esm/Features/NOTIFICATION/SubscriptionConfig/types.d.ts +9 -8
  40. package/dist/esm/Features/NOTIFICATION/Template/Services.d.ts +11 -4
  41. package/dist/esm/Features/NOTIFICATION/Template/context.d.ts +0 -3
  42. package/dist/esm/Features/NOTIFICATION/Template/hooks/useCreateOrEdit.d.ts +5 -5
  43. package/dist/esm/Features/NOTIFICATION/Template/index.d.ts +1 -3
  44. package/dist/esm/Features/NOTIFICATION/Template/types.d.ts +5 -5
  45. package/dist/esm/Features/NOTIFICATION/components/TestingTool/types.d.ts +2 -0
  46. package/dist/esm/Features/NOTIFICATION/components/TestingTool/utils.d.ts +1 -0
  47. package/dist/esm/Features/NOTIFICATION/index.d.ts +1 -0
  48. package/dist/esm/Features/NOTIFICATION/types.d.ts +14 -0
  49. package/dist/esm/Features/SYSTEM/Directory/Services.d.ts +3 -2
  50. package/dist/esm/Features/SYSTEM/Directory/index.d.ts +1 -1
  51. package/dist/esm/Features/SYSTEM/Group/Services.d.ts +8 -6
  52. package/dist/esm/Features/SYSTEM/Group/types.d.ts +1 -0
  53. package/dist/esm/Features/SYSTEM/Role/Services.d.ts +8 -9
  54. package/dist/esm/Features/SYSTEM/Role/types.d.ts +1 -0
  55. package/dist/esm/Features/SYSTEM/RoleTag/Services.d.ts +8 -9
  56. package/dist/esm/Features/SYSTEM/RoleTag/types.d.ts +1 -0
  57. package/dist/esm/Features/SYSTEM/Schema/Atoms.d.ts +18 -3
  58. package/dist/esm/Features/SYSTEM/Schema/Services.d.ts +5 -8
  59. package/dist/esm/Features/SYSTEM/Schema/types.d.ts +1 -0
  60. package/dist/esm/Features/SYSTEM/Sharing/Types.d.ts +9 -5
  61. package/dist/esm/Features/SYSTEM/User/Services.d.ts +5 -2
  62. package/dist/esm/Features/SYSTEM/User/types.d.ts +1 -0
  63. package/dist/esm/Features/SYSTEM/Workflow/CreateOrEdit.d.ts +1 -1
  64. package/dist/esm/Features/SYSTEM/Workflow/container.d.ts +4 -2
  65. package/dist/esm/Features/SYSTEM/Workflow/index.d.ts +5 -3
  66. package/dist/esm/Features/SYSTEM/Workflow/types.d.ts +1 -0
  67. package/dist/esm/Features/types.d.ts +18 -0
  68. package/dist/esm/Helpers/index.d.ts +1 -0
  69. package/dist/esm/Helpers/number.d.ts +2 -1
  70. package/dist/esm/Helpers/query.d.ts +161 -0
  71. package/dist/esm/index.js +2704 -975
  72. package/dist/esm/translate/resources/en/translation.json +8 -5
  73. package/dist/esm/translate/resources/id/translation.json +8 -5
  74. package/dist/esm/translate/resources/ja/translation.json +8 -5
  75. package/dist/esm/translate/resources/th/translation.json +8 -5
  76. package/dist/esm/translate/resources/vi/translation.json +11 -6
  77. package/dist/index.d.ts +382 -124
  78. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ import { IMultipleHierarchicalChoiceInput as IMultipleHierarchicalChoiceInput$1,
23
23
  import { DataGridSortType as DataGridSortType$1 } from 'Commons/Enums';
24
24
  import { DatePickerProps as DatePickerProps$1 } from '@mui/x-date-pickers/DatePicker';
25
25
  import { Dayjs } from 'dayjs';
26
- import { ObjectInputType, PagingQueryInput, EnumTypeConvert, DateTime, ObjectTypeCode, PagingType } from 'Features/types';
26
+ import { ObjectInputType, CustomPagingRequestInput, PagingQueryInput, EnumTypeConvert, DateTime, ObjectTypeCode, PagingType } from 'Features/types';
27
27
  export { ObjectTypeCode, PagingQueryInput } from 'Features/types';
28
28
  import { SchemaServices as SchemaServices$1 } from 'Features/SYSTEM/Schema';
29
29
  import { CurrentWorkspace as CurrentWorkspace$1, Workspace as Workspace$4 } from 'Features/SYSTEM/types';
@@ -42,7 +42,7 @@ import * as i18next from 'i18next';
42
42
  import { i18n as i18n$1 } from 'i18next';
43
43
  import { Timestamp as Timestamp$1 } from 'Commons/Types';
44
44
  import { ChannelType as ChannelType$1, ObjectConfigType, ContentType } from 'Features/NOTIFICATION/enums';
45
- import { OutputFieldPermission as OutputFieldPermission$3 } from 'Features/NOTIFICATION/SubscriptionConfig';
45
+ import { OutputFieldPermission as OutputFieldPermission$4 } from 'Features/NOTIFICATION/SubscriptionConfig';
46
46
  import { Atom } from 'jotai';
47
47
  import { Directory as Directory$3 } from 'AWING/index';
48
48
  import { DirectoryAddOrEditServices as DirectoryAddOrEditServices$1 } from 'AWING/DirectoryForm';
@@ -725,7 +725,7 @@ interface RowActionDefinition<T> {
725
725
  /**
726
726
  * Hành động thực hiện khi nhấn nút
727
727
  */
728
- action(id: string | number): void;
728
+ action(id: string | number, row?: T): void;
729
729
  isShouldHideActions?: (row: T) => boolean;
730
730
  sx?: SxProps<Theme>;
731
731
  }
@@ -874,7 +874,7 @@ interface DateRangePickerProps {
874
874
  endDate: Date;
875
875
  };
876
876
  onChange: (dateRange: DateRange) => void;
877
- textFieldProps?: Pick<TextFieldProps, 'size' | 'fullWidth' | 'classes' | 'className' | 'sx'>;
877
+ textFieldProps?: Pick<TextFieldProps, 'size' | 'fullWidth' | 'classes' | 'className' | 'sx' | 'required' | 'error' | 'helperText' | 'disabled'>;
878
878
  options?: OptionsDateRangePickerProps;
879
879
  variant?: 'standard' | 'outlined' | 'filled';
880
880
  }
@@ -983,7 +983,7 @@ type DirectoryInput = ObjectInputType<{
983
983
 
984
984
  declare const CreateDirectory: (props: DirectoryProps) => react_jsx_runtime.JSX.Element;
985
985
 
986
- type ObjectDefinition$4 = {
986
+ type ObjectDefinition$5 = {
987
987
  id?: number;
988
988
  objectTypeCode?: string;
989
989
  fieldName?: string;
@@ -996,34 +996,31 @@ type SchemaObjectDefinition = {
996
996
  clone?: SchemaObjectDefinition;
997
997
  id?: number;
998
998
  isReadOnly?: boolean;
999
- objectDefinition?: ObjectDefinition$4;
999
+ objectDefinition?: ObjectDefinition$5;
1000
1000
  objectDefinitionId?: number;
1001
1001
  schemaId?: number;
1002
1002
  };
1003
- type Schema$1 = {
1003
+ type Schema = {
1004
1004
  id?: number;
1005
1005
  name?: string;
1006
1006
  objectTypeCode?: string;
1007
1007
  schemaObjectDefinitions?: Array<SchemaObjectDefinition>;
1008
1008
  workspaceId?: number;
1009
1009
  isRoot?: boolean;
1010
+ versionId?: number;
1010
1011
  };
1011
- type SchemaInput = ObjectInputType<Schema$1>;
1012
+ type SchemaInput = ObjectInputType<Schema>;
1012
1013
 
1013
1014
  type SchemaServices = {
1014
- /** Get Schemas
1015
- * @param p - PagingQueryInput<Schema> - Không truyền param sẽ lấy tất cả Schema
1016
- */
1017
- getSchemas: (p?: PagingQueryInput<Schema$1>) => Promise<{
1018
- items: Schema$1[];
1015
+ getSchemas: (p?: {
1016
+ input: CustomPagingRequestInput;
1017
+ }) => Promise<{
1018
+ items: Schema[];
1019
1019
  total: number;
1020
1020
  }>;
1021
- /** Get Schemas
1022
- * @param p - PagingQueryInput<Schema> - Không truyền param sẽ lấy tất cả Schema
1023
- */
1024
1021
  getSchemaById: (p: {
1025
1022
  id: number;
1026
- }) => Promise<Schema$1>;
1023
+ }) => Promise<Schema>;
1027
1024
  /** Delete Schema */
1028
1025
  deleteSchema: (p: {
1029
1026
  id: number;
@@ -1031,8 +1028,8 @@ type SchemaServices = {
1031
1028
  /** Get Object Definition
1032
1029
  * @param p - PagingQueryInput<ObjectDefinition> - Không truyền param sẽ lấy tất cả ObjectDefinition
1033
1030
  */
1034
- getObjectDefinitions: (p?: PagingQueryInput<ObjectDefinition$4>) => Promise<{
1035
- items: ObjectDefinition$4[];
1031
+ getObjectDefinitions: (p?: PagingQueryInput<ObjectDefinition$5>) => Promise<{
1032
+ items: ObjectDefinition$5[];
1036
1033
  total: number;
1037
1034
  }>;
1038
1035
  /** Creat new Schema */
@@ -1043,6 +1040,7 @@ type SchemaServices = {
1043
1040
  updateSchema: (p: {
1044
1041
  input: SchemaInput;
1045
1042
  id: number;
1043
+ versionId?: number;
1046
1044
  }) => Promise<void>;
1047
1045
  };
1048
1046
 
@@ -1056,12 +1054,12 @@ type CurrentWorkspace = {
1056
1054
  name?: string;
1057
1055
  type?: string;
1058
1056
  url?: string;
1059
- defaultSchemas?: Schema$1[];
1057
+ defaultSchemas?: Schema[];
1060
1058
  };
1061
1059
  type Workspace$3 = {
1062
1060
  customerId?: number;
1063
1061
  customerType?: string;
1064
- defaultSchemas?: Array<Schema$1>;
1062
+ defaultSchemas?: Array<Schema>;
1065
1063
  description?: string;
1066
1064
  id?: number;
1067
1065
  isJoinNetwork?: boolean;
@@ -1542,7 +1540,7 @@ interface PageManagementProps<T> extends CombinedProps<T> {
1542
1540
  loading: boolean;
1543
1541
  onCreateButtonClick?: () => void;
1544
1542
  onCreateFolderButtonClick?: () => void;
1545
- onDelete?: (id: ReturnType<NonNullable<this['getRowId']>>) => Promise<void>;
1543
+ onDelete?: (id: ReturnType<NonNullable<this['getRowId']>>, row?: T) => Promise<void>;
1546
1544
  showNotificationSuccess?: () => void;
1547
1545
  confirmDelete?: (f: () => void) => void;
1548
1546
  customActions?: ReactNode;
@@ -1644,6 +1642,7 @@ interface IPlaceQuery {
1644
1642
  total: number;
1645
1643
  }>;
1646
1644
  getPlacesByIds: (placeIds: string[]) => Promise<IPlace[]>;
1645
+ isSelectedAll?: boolean;
1647
1646
  }
1648
1647
  interface PlaceFilterProps extends IPlaceQuery {
1649
1648
  filterFields: IFilterField[];
@@ -1724,6 +1723,87 @@ interface ChartContentProps<F> extends Pick<IStatisticsProps<F>, 'dataChart' | '
1724
1723
 
1725
1724
  declare const StatisticsCommon: <F extends object = object>(props: IStatisticsProps<F>) => react_jsx_runtime.JSX.Element;
1726
1725
 
1726
+ type CellDefinition$1<T extends object> = FieldDefinitionProps$1<T> & {
1727
+ TableCellProps?: TableCellProps$1;
1728
+ isTooltip?: boolean;
1729
+ row?: Partial<T>;
1730
+ getTitleTooltip?: (value: T[keyof T]) => NonNullable<ReactNode>;
1731
+ };
1732
+ interface ColumnDefinition$1<T extends object> {
1733
+ headerName: ReactNode;
1734
+ /**
1735
+ * Độ rộng của cột
1736
+ */
1737
+ width?: string | number;
1738
+ TableCellProps?: TableCellProps$1;
1739
+ editFieldDefinition?: CellDefinition$1<T>;
1740
+ isRowGroup?: boolean;
1741
+ contentGetter?: (obj: T, idx?: number) => ReactNode;
1742
+ fieldName?: string;
1743
+ isTooltip?: boolean;
1744
+ getTitleTooltip?: (value: T[keyof T]) => NonNullable<ReactNode>;
1745
+ }
1746
+ type TableEditableProps$1<T> = {
1747
+ columnDefinitions: Array<ColumnDefinition$1<Partial<T>>>;
1748
+ items: Array<Partial<T>>;
1749
+ onChange(newData: Array<Partial<T>>, dataValid: boolean, fieldName?: keyof T): void;
1750
+ getRowId?(obj: Partial<T>): number;
1751
+ selected?: number[];
1752
+ onSelectedChange?(ids: number[]): void;
1753
+ hideHeader?: boolean;
1754
+ onAddNew?(): void;
1755
+ includeDelete?: boolean;
1756
+ spanningRows?: ReactNode[];
1757
+ selectionActions?: SelectionActionDefinition[];
1758
+ mergeRowsBy?: string;
1759
+ observation?: {
1760
+ objObserve: Array<keyof T>;
1761
+ callback: (fieldName?: keyof T, columnValue?: unknown, index?: number) => void;
1762
+ }[];
1763
+ };
1764
+ interface TopBarActionsProps$1 {
1765
+ selected: number[];
1766
+ selectionActions?: SelectionActionDefinition[];
1767
+ }
1768
+ interface TableHeaderProps$1<T> {
1769
+ selected?: number[];
1770
+ onSelectedChange?: (selected: number[]) => void;
1771
+ numOfRows: number;
1772
+ onSelectAll: () => void;
1773
+ includeDelete?: boolean;
1774
+ columnDefinitions: Array<ColumnDefinition$1<Partial<T>>>;
1775
+ }
1776
+ interface TableEditableBodyProps$1<T> {
1777
+ items: Array<Partial<T>>;
1778
+ getId: (item: Partial<T>) => string | number | undefined;
1779
+ selected?: number[];
1780
+ onSelectedChange?: (selected: number[]) => void;
1781
+ onSelect: (id: number) => void;
1782
+ columnDefinitions: Array<ColumnDefinition$1<Partial<T>>>;
1783
+ dataValidation: Partial<{
1784
+ [K in keyof T]: boolean;
1785
+ }>[];
1786
+ includeDelete?: boolean;
1787
+ spanningRows?: ReactNode[];
1788
+ onChange: (indexes: number[], fieldName: keyof T, newValue: T[keyof T], valid: boolean) => void;
1789
+ onDelete: (rowIdx: number) => void;
1790
+ mergeRowsBy?: string;
1791
+ }
1792
+ interface TableCellEditableProps$1<T extends object> {
1793
+ cellDefinition: CellDefinition$1<T>;
1794
+ numOfRowSpan?: number;
1795
+ }
1796
+
1797
+ declare function TableEditable$1<T>(props: TableEditableProps$1<T>): react_jsx_runtime.JSX.Element;
1798
+
1799
+ declare function TableHeader$1<T>(props: TableHeaderProps$1<T>): react_jsx_runtime.JSX.Element;
1800
+
1801
+ declare function TableEditableBody$1<T>(props: TableEditableBodyProps$1<T>): react_jsx_runtime.JSX.Element;
1802
+
1803
+ declare function TableCellEditable$1<T extends object>(props: TableCellEditableProps$1<T>): react_jsx_runtime.JSX.Element;
1804
+
1805
+ declare function TopBarActions$1(props: TopBarActionsProps$1): react_jsx_runtime.JSX.Element;
1806
+
1727
1807
  type CellDefinition<T extends object> = FieldDefinitionProps$1<T> & {
1728
1808
  TableCellProps?: TableCellProps$1;
1729
1809
  isTooltip?: boolean;
@@ -1742,12 +1822,14 @@ interface ColumnDefinition<T extends object> {
1742
1822
  contentGetter?: (obj: T, idx?: number) => ReactNode;
1743
1823
  fieldName?: string;
1744
1824
  isTooltip?: boolean;
1825
+ label?: string;
1745
1826
  getTitleTooltip?: (value: T[keyof T]) => NonNullable<ReactNode>;
1746
1827
  }
1747
1828
  type TableEditableProps<T> = {
1748
1829
  columnDefinitions: Array<ColumnDefinition<Partial<T>>>;
1830
+ fieldDefinitions?: Array<ColumnDefinition<Partial<T>>>;
1749
1831
  items: Array<Partial<T>>;
1750
- onChange(newData: Array<Partial<T>>, dataValid: boolean): void;
1832
+ onChange(newData: Array<Partial<T>>, dataValid: boolean, fieldName?: keyof T): void;
1751
1833
  getRowId?(obj: Partial<T>): number;
1752
1834
  selected?: number[];
1753
1835
  onSelectedChange?(ids: number[]): void;
@@ -1757,6 +1839,10 @@ type TableEditableProps<T> = {
1757
1839
  spanningRows?: ReactNode[];
1758
1840
  selectionActions?: SelectionActionDefinition[];
1759
1841
  mergeRowsBy?: string;
1842
+ observation?: {
1843
+ objObserve: Array<keyof T>;
1844
+ callback: (fieldName?: keyof T, columnValue?: unknown, index?: number) => void;
1845
+ }[];
1760
1846
  };
1761
1847
  interface TopBarActionsProps {
1762
1848
  selected: number[];
@@ -1777,6 +1863,7 @@ interface TableEditableBodyProps<T> {
1777
1863
  onSelectedChange?: (selected: number[]) => void;
1778
1864
  onSelect: (id: number) => void;
1779
1865
  columnDefinitions: Array<ColumnDefinition<Partial<T>>>;
1866
+ fieldDefinitions?: Array<ColumnDefinition<Partial<T>>>;
1780
1867
  dataValidation: Partial<{
1781
1868
  [K in keyof T]: boolean;
1782
1869
  }>[];
@@ -1788,7 +1875,11 @@ interface TableEditableBodyProps<T> {
1788
1875
  }
1789
1876
  interface TableCellEditableProps<T extends object> {
1790
1877
  cellDefinition: CellDefinition<T>;
1878
+ isContainer?: boolean;
1879
+ isShowCollapsible?: boolean;
1880
+ isCollapsed?: boolean;
1791
1881
  numOfRowSpan?: number;
1882
+ onToggleCollapsible?: () => void;
1792
1883
  }
1793
1884
 
1794
1885
  declare function TableEditable<T>(props: TableEditableProps<T>): react_jsx_runtime.JSX.Element;
@@ -1840,13 +1931,20 @@ interface ModalDrawerProps extends Omit<DrawerBaseProps, 'open'> {
1840
1931
  onSubmit?: () => Promise<any> | void;
1841
1932
  onClose?: () => void;
1842
1933
  }
1934
+ interface DrawerHandle {
1935
+ handleClose: () => void;
1936
+ handleSubmit: () => void;
1937
+ closeDrawer: (action?: string) => void;
1938
+ }
1843
1939
  declare const enum CloseAction {
1844
1940
  Reload = "Reload",
1845
1941
  Close = "Close",
1846
1942
  ReloadDirectory = "ReloadDirectory"
1847
1943
  }
1848
1944
 
1849
- declare const DrawerWrapper: (props: ModalDrawerProps) => react_jsx_runtime.JSX.Element;
1945
+ declare const DrawerWrapper: (props: ModalDrawerProps & {
1946
+ ref?: React__default.Ref<DrawerHandle>;
1947
+ }) => react_jsx_runtime.JSX.Element;
1850
1948
 
1851
1949
  interface EnhancedDialogProps {
1852
1950
  title?: string;
@@ -1931,7 +2029,7 @@ type Timestamp = {
1931
2029
  seconds: number;
1932
2030
  nanos?: number;
1933
2031
  };
1934
- type ObjectDefinition$3 = {
2032
+ type ObjectDefinition$4 = {
1935
2033
  id: number;
1936
2034
  objectTypeCode?: string;
1937
2035
  fieldName?: string;
@@ -2082,7 +2180,7 @@ interface PagedList_1OfNotificationMessage {
2082
2180
 
2083
2181
  declare const Notifications: (props: LayoutNotificationProps) => react_jsx_runtime.JSX.Element;
2084
2182
 
2085
- type NotificationConfigDetail$2 = {
2183
+ type NotificationConfigDetail$1 = {
2086
2184
  channelType?: string;
2087
2185
  email?: string;
2088
2186
  objectFilterId?: number;
@@ -2097,7 +2195,7 @@ type SubscriptionConfig$1 = {
2097
2195
  id: number;
2098
2196
  name?: string;
2099
2197
  objectType: string;
2100
- outputFieldPermission?: OutputFieldPermission$3;
2198
+ outputFieldPermission?: OutputFieldPermission$4;
2101
2199
  scheduleExpression: string;
2102
2200
  scheduleIntervalDaysOfMonth?: string;
2103
2201
  scheduleIntervalDaysOfWeek?: string;
@@ -2144,7 +2242,7 @@ type UserGroup = {
2144
2242
  description?: string;
2145
2243
  id: number;
2146
2244
  name?: string;
2147
- notificationConfigDetails: Array<NotificationConfigDetail$2>;
2245
+ notificationConfigDetails: Array<NotificationConfigDetail$1>;
2148
2246
  roleAuthens: Array<RoleAuthen>;
2149
2247
  subscriptionConfigDetails: Array<SubscriptionConfigDetail$3>;
2150
2248
  userGroupDetails: Array<UserGroupDetail>;
@@ -2157,8 +2255,8 @@ type ObjectFilter$2 = {
2157
2255
  logicalExpression?: string;
2158
2256
  objectTypeCode?: string;
2159
2257
  name?: string;
2160
- notificationConfigDetails?: Array<NotificationConfigDetail$2>;
2161
- outputFieldPermission?: OutputFieldPermission$3;
2258
+ notificationConfigDetails?: Array<NotificationConfigDetail$1>;
2259
+ outputFieldPermission?: OutputFieldPermission$4;
2162
2260
  subscriptionConfigDetails?: Array<SubscriptionConfigDetail$3>;
2163
2261
  workspaceSharings?: Array<WorkspaceSharing$1>;
2164
2262
  };
@@ -2179,18 +2277,18 @@ type WorkflowState$1 = {
2179
2277
  value?: number;
2180
2278
  workflowId?: number;
2181
2279
  };
2182
- type ObjectDefinition$2 = {
2280
+ type ObjectDefinition$3 = {
2183
2281
  fieldName?: string;
2184
2282
  fieldPath?: string;
2185
- objectTypeCode?: string;
2283
+ baseObjectTypeCode?: string;
2186
2284
  };
2187
- type ObjectDefinitionWithPermission$2 = {
2285
+ type ObjectDefinitionWithPermission$3 = {
2188
2286
  permission?: number;
2189
- objectDefinition?: ObjectDefinition$2;
2287
+ objectDefinition?: ObjectDefinition$3;
2190
2288
  };
2191
- type OutputFieldPermission$2 = {
2289
+ type OutputFieldPermission$3 = {
2192
2290
  currentWorkflowState?: WorkflowState$1;
2193
- objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$2>;
2291
+ objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$3>;
2194
2292
  targetWorkflowStates?: Array<WorkflowState$1>;
2195
2293
  };
2196
2294
  type SubscriptionConfigDetail$2 = {
@@ -2207,7 +2305,7 @@ type SubscriptionConfigDetail$2 = {
2207
2305
  type SubscriptionConfigsType = {
2208
2306
  id?: number;
2209
2307
  name?: string;
2210
- objectType?: string;
2308
+ baseObjectType?: string;
2211
2309
  scheduleExpression?: string;
2212
2310
  scheduleIntervalDaysOfMonth?: string;
2213
2311
  scheduleIntervalDaysOfWeek?: string;
@@ -2218,7 +2316,8 @@ type SubscriptionConfigsType = {
2218
2316
  status?: boolean;
2219
2317
  scheduleType?: ScheduleType;
2220
2318
  details?: Array<SubscriptionConfigDetail$2>;
2221
- outputFieldPermission?: OutputFieldPermission$2;
2319
+ outputFieldPermission?: OutputFieldPermission$3;
2320
+ versionId?: number;
2222
2321
  };
2223
2322
  type SubscriptionConfigDetailRequestGqlInput = {
2224
2323
  channelType?: string;
@@ -2235,7 +2334,7 @@ type KeyValueSubscriptionConfigDetailRequestGqlInput = {
2235
2334
  };
2236
2335
  type SubscriptionConfigRequestGqlInput = {
2237
2336
  name?: string;
2238
- objectType?: string;
2337
+ baseObjectType?: string;
2239
2338
  scheduleExpression?: string;
2240
2339
  scheduleIntervalDaysOfMonth?: string;
2241
2340
  scheduleIntervalDaysOfWeek?: string;
@@ -2251,7 +2350,9 @@ type SubscriptionConfigRequestGqlInput = {
2251
2350
  };
2252
2351
 
2253
2352
  type SubscriptionConfigServices = {
2254
- getSubscriptionConfigs: (p?: PagingQueryInput<SubscriptionConfigsType>) => Promise<{
2353
+ getSubscriptionConfigs: (p: {
2354
+ input: CustomPagingRequestInput;
2355
+ }) => Promise<{
2255
2356
  items: SubscriptionConfigsType[];
2256
2357
  total: number;
2257
2358
  }>;
@@ -2267,6 +2368,7 @@ type SubscriptionConfigServices = {
2267
2368
  updateSubscriptionConfig: (p: {
2268
2369
  input: SubscriptionConfigRequestGqlInput;
2269
2370
  id: number;
2371
+ versionId?: number;
2270
2372
  }) => Promise<void>;
2271
2373
  getObjectFilter: () => Promise<{
2272
2374
  items: ObjectFilter$2[];
@@ -2291,15 +2393,6 @@ declare function SubscriptionConfig(props: {
2291
2393
  objectTypeCodes: ObjectTypeCode[];
2292
2394
  }): react_jsx_runtime.JSX.Element;
2293
2395
 
2294
- type NotificationConfig$1 = {
2295
- id?: number;
2296
- name?: string;
2297
- baseObjectType?: string;
2298
- transactionType?: string;
2299
- status?: boolean;
2300
- details?: Array<NotificationConfigDetail$2>;
2301
- outputFieldPermission?: OutputFieldPermission$2;
2302
- };
2303
2396
  declare enum ChannelType {
2304
2397
  Email = "EMAIL",
2305
2398
  InApp = "IN_APP",
@@ -2334,12 +2427,15 @@ type NotificationConfigType = {
2334
2427
  baseObjectType?: string;
2335
2428
  transactionType?: string;
2336
2429
  status?: boolean;
2337
- details?: NotificationConfigDetail$2[];
2338
- outputFieldPermission?: OutputFieldPermission$2;
2430
+ details?: NotificationConfigDetail$1[];
2431
+ outputFieldPermission?: OutputFieldPermission$3;
2432
+ versionId?: number;
2339
2433
  };
2340
2434
 
2341
2435
  type NotificationConfigServices = {
2342
- getNotificationConfigs: (p?: PagingQueryInput<NotificationConfig$1>) => Promise<{
2436
+ getNotificationConfigs: (p: {
2437
+ input: CustomPagingRequestInput;
2438
+ }) => Promise<{
2343
2439
  items: NotificationConfigType[];
2344
2440
  total: number;
2345
2441
  }>;
@@ -2371,6 +2467,7 @@ type NotificationConfigServices = {
2371
2467
  updateNotificationConfig: (p: {
2372
2468
  notificationConfig: NotificationConfigInput;
2373
2469
  id: number;
2470
+ versionId?: number;
2374
2471
  }) => Promise<void>;
2375
2472
  };
2376
2473
 
@@ -2380,21 +2477,21 @@ type NotificationConfigProps = NotificationConfigServices & {
2380
2477
  };
2381
2478
  declare function NotificationConfig(props: NotificationConfigProps): react_jsx_runtime.JSX.Element;
2382
2479
 
2383
- type NotificationConfigDetail$1 = {
2480
+ type NotificationConfigDetail = {
2384
2481
  id?: number;
2385
2482
  };
2386
- type ObjectDefinition$1 = {
2483
+ type ObjectDefinition$2 = {
2387
2484
  fieldName?: string;
2388
2485
  fieldPath?: string;
2389
2486
  id?: number;
2390
2487
  objectTypeCode?: string;
2391
2488
  };
2392
- type ObjectDefinitionWithPermission$1 = {
2393
- objectDefinition?: ObjectDefinition$1;
2489
+ type ObjectDefinitionWithPermission$2 = {
2490
+ objectDefinition?: ObjectDefinition$2;
2394
2491
  permission?: number;
2395
2492
  };
2396
- type OutputFieldPermission$1 = {
2397
- objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$1>;
2493
+ type OutputFieldPermission$2 = {
2494
+ objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$2>;
2398
2495
  };
2399
2496
  type SubscriptionConfigDetail$1 = {
2400
2497
  id?: number;
@@ -2403,24 +2500,23 @@ type WorkspaceSharing = {
2403
2500
  id?: number;
2404
2501
  };
2405
2502
  type ObjectFilter$1 = {
2406
- configType?: string;
2407
2503
  directoryPath?: string;
2408
2504
  id?: number;
2409
2505
  logicalExpression?: string;
2410
2506
  name?: string;
2411
2507
  objectTypeCode?: string;
2412
- outputFieldPermission?: OutputFieldPermission$1;
2413
- notificationConfigDetails?: Array<NotificationConfigDetail$1>;
2508
+ outputFieldPermission?: OutputFieldPermission$2;
2509
+ notificationConfigDetails?: Array<NotificationConfigDetail>;
2414
2510
  subscriptionConfigDetails?: Array<SubscriptionConfigDetail$1>;
2415
2511
  workspaceSharings?: Array<WorkspaceSharing>;
2512
+ versionId?: number;
2416
2513
  };
2417
2514
  type ObjectFilterInput = {
2418
- configType?: string;
2419
2515
  logicalExpression?: string;
2420
2516
  name?: string;
2421
2517
  objectTypeCode?: string;
2422
2518
  };
2423
- type LogicExpressionsStructure = {
2519
+ type LogicExpressionsStructure$1 = {
2424
2520
  objectStructures?: {
2425
2521
  [key: string]: ObjectStructure$1[];
2426
2522
  };
@@ -2428,10 +2524,9 @@ type LogicExpressionsStructure = {
2428
2524
  };
2429
2525
 
2430
2526
  type ObjectFilterServices = {
2431
- /** Get Paging ObjectFilter
2432
- * @param p - PagingQueryInput<ObjectFilter>
2433
- */
2434
- getObjectFilters: (p: PagingQueryInput<ObjectFilter$1>) => Promise<{
2527
+ getObjectFilters: (p: {
2528
+ input: CustomPagingRequestInput;
2529
+ }) => Promise<{
2435
2530
  items: ObjectFilter$1[];
2436
2531
  totalCount: number;
2437
2532
  }>;
@@ -2453,18 +2548,104 @@ type ObjectFilterServices = {
2453
2548
  updateObjectFilter: (p: {
2454
2549
  input: ObjectFilterInput;
2455
2550
  id: number;
2551
+ versionId?: number;
2456
2552
  }) => Promise<void>;
2457
2553
  };
2458
2554
 
2459
- declare const NotificationFilter: (props: ObjectFilterServices & {
2555
+ declare const NotificationFilter$1: (props: ObjectFilterServices & {
2460
2556
  objectTyeCodes: EnumTypeConvert[];
2461
- objectConfigTypes: EnumTypeConvert[];
2462
- logicExpressionsStructure: LogicExpressionsStructure;
2557
+ logicExpressionsStructure: LogicExpressionsStructure$1;
2463
2558
  }) => react_jsx_runtime.JSX.Element;
2464
2559
 
2465
- type NotificationConfigDetail = {
2560
+ type GraphQLQuery = {
2466
2561
  id?: number;
2562
+ name?: string;
2563
+ baseObjectType?: string;
2564
+ directoryPath?: string;
2565
+ queryString?: string;
2566
+ resultExpression?: string;
2567
+ graphqlVariables?: {
2568
+ id?: string;
2569
+ name?: string;
2570
+ type?: string;
2571
+ value?: string;
2572
+ };
2573
+ };
2574
+
2575
+ type ObjectDefinition$1 = {
2576
+ fieldName?: string;
2577
+ fieldPath?: string;
2578
+ id?: number;
2579
+ objectTypeCode?: string;
2580
+ };
2581
+ type ObjectDefinitionWithPermission$1 = {
2582
+ objectDefinition?: ObjectDefinition$1;
2583
+ permission?: number;
2584
+ };
2585
+ type OutputFieldPermission$1 = {
2586
+ objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$1>;
2587
+ };
2588
+ type NotificationFilter = {
2589
+ directoryPath?: string;
2590
+ id?: number;
2591
+ graphQLQuery?: GraphQLQuery;
2592
+ logicalExpression?: string;
2593
+ name?: string;
2594
+ outputFieldPermission?: OutputFieldPermission$1;
2595
+ versionId?: number;
2596
+ };
2597
+ type NotificationFilterInput = {
2598
+ graphqlQueryId?: number;
2599
+ id?: number;
2600
+ logicalExpression?: string;
2601
+ name?: string;
2602
+ parentDirectoryPath?: string;
2603
+ sagaTransactionId?: number;
2467
2604
  };
2605
+ type LogicExpressionsStructure = {
2606
+ objectStructures?: {
2607
+ [key: string]: ObjectStructure$1[];
2608
+ };
2609
+ functionStructures?: FunctionStructure$1[];
2610
+ };
2611
+
2612
+ type NotificationFilterServices = {
2613
+ getNotificationFilters: (p: {
2614
+ input: CustomPagingRequestInput;
2615
+ }) => Promise<{
2616
+ items: NotificationFilter[];
2617
+ totalCount: number;
2618
+ }>;
2619
+ /** Delete */
2620
+ deleteNotificationFilter: (p: {
2621
+ id: number;
2622
+ }) => Promise<void>;
2623
+ /** Get by Id */
2624
+ getNotificationFilterById: (p: {
2625
+ id: number;
2626
+ }) => Promise<{
2627
+ notificationFilter?: NotificationFilter;
2628
+ }>;
2629
+ /** Create */
2630
+ createNotificationFilter: (p: {
2631
+ input: NotificationFilterInput;
2632
+ }) => Promise<void>;
2633
+ /** Update */
2634
+ updateNotificationFilter: (p: {
2635
+ input: NotificationFilterInput;
2636
+ id: number;
2637
+ versionId?: number;
2638
+ }) => Promise<void>;
2639
+ getGraphQLQueries: (p: CustomPagingRequestInput) => Promise<{
2640
+ items: GraphQLQuery[];
2641
+ totalCount: number;
2642
+ }>;
2643
+ };
2644
+
2645
+ declare const FilterNotification: (props: NotificationFilterServices & {
2646
+ logicExpressionsStructure: LogicExpressionsStructure;
2647
+ }) => react_jsx_runtime.JSX.Element;
2648
+
2468
2649
  type SchemaDetail = {
2469
2650
  id?: number;
2470
2651
  };
@@ -2485,9 +2666,6 @@ type ObjectDefinitionWithPermission = {
2485
2666
  type OutputFieldPermission = {
2486
2667
  objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission>;
2487
2668
  };
2488
- type Schema = {
2489
- id?: number;
2490
- };
2491
2669
  type SubscriptionConfigDetail = {
2492
2670
  id?: number;
2493
2671
  };
@@ -2498,13 +2676,12 @@ type Template$1 = {
2498
2676
  contentType?: string;
2499
2677
  id?: number;
2500
2678
  name?: string;
2501
- notificationConfigDetails?: Array<NotificationConfigDetail>;
2502
- objectType?: string;
2679
+ graphQLQuery?: GraphQLQuery;
2680
+ graphqlQueryId?: number;
2503
2681
  outputFieldPermission?: OutputFieldPermission;
2504
- schema?: Schema;
2505
- schemaId?: number;
2506
2682
  subscriptionConfigDetails?: Array<SubscriptionConfigDetail>;
2507
2683
  title?: string;
2684
+ versionId?: number;
2508
2685
  };
2509
2686
  type TemplateInput = {
2510
2687
  channelType?: string;
@@ -2512,7 +2689,7 @@ type TemplateInput = {
2512
2689
  content?: string;
2513
2690
  contentType?: string;
2514
2691
  name?: string;
2515
- objectType?: string;
2692
+ graphqlQueryId?: number;
2516
2693
  schemaId?: number;
2517
2694
  title?: string;
2518
2695
  };
@@ -2528,7 +2705,9 @@ type TemplateServices = {
2528
2705
  /** Get Roles
2529
2706
  * @param p - PagingQueryInput<Role> - Không truyền param sẽ lấy tất cả Role
2530
2707
  */
2531
- getTemplates: (p?: PagingQueryInput<Template$1>) => Promise<{
2708
+ getTemplates: (p: {
2709
+ input: CustomPagingRequestInput;
2710
+ }) => Promise<{
2532
2711
  items: Template$1[];
2533
2712
  totalCount: number;
2534
2713
  }>;
@@ -2544,8 +2723,7 @@ type TemplateServices = {
2544
2723
  id: number;
2545
2724
  }) => Promise<Template$1>;
2546
2725
  getObjectDefinitions: (p?: PagingQueryInput<ObjectDefinition>) => Promise<{
2547
- items: ObjectDefinition[];
2548
- totalCount: number;
2726
+ data: ObjectDefinition[];
2549
2727
  }>;
2550
2728
  createTemplate: (p: {
2551
2729
  input: TemplateInput;
@@ -2553,12 +2731,16 @@ type TemplateServices = {
2553
2731
  updateTemplate: (p: {
2554
2732
  input: TemplateInput;
2555
2733
  id: number;
2734
+ versionId?: number;
2556
2735
  }) => Promise<void>;
2736
+ getGraphQLQueries: (p: CustomPagingRequestInput) => Promise<{
2737
+ items: GraphQLQuery[];
2738
+ totalCount: number;
2739
+ }>;
2557
2740
  };
2558
2741
 
2559
2742
  type TemplateProps = {
2560
2743
  services: TemplateServices;
2561
- objectTypeCodes: ObjectTypeCode[];
2562
2744
  };
2563
2745
  declare function Template(props: TemplateProps): react_jsx_runtime.JSX.Element;
2564
2746
 
@@ -2567,6 +2749,7 @@ type RoleTag$3 = {
2567
2749
  id?: number;
2568
2750
  name?: string;
2569
2751
  workspaceId?: number;
2752
+ versionId?: number;
2570
2753
  };
2571
2754
  type Role$1 = Role;
2572
2755
  type RoleTagInput = {
@@ -2579,17 +2762,15 @@ type RoleTagInput = {
2579
2762
  };
2580
2763
 
2581
2764
  type RoleTagServices = {
2582
- /** Get Roles
2583
- * @param p - PagingQueryInput<Role> - Không truyền param sẽ lấy tất cả Role
2584
- */
2585
- getRoles: (p?: PagingQueryInput<Role$1>) => Promise<{
2765
+ getRoles: (p?: {
2766
+ input: CustomPagingRequestInput;
2767
+ }) => Promise<{
2586
2768
  roles: Role$1[];
2587
2769
  total: number;
2588
2770
  }>;
2589
- /** Get RoleTags
2590
- * @param p - PagingQueryInput<RoleTag> - Không truyền param sẽ lấy tất cả RoleTag
2591
- */
2592
- getRoleTags: (p?: PagingQueryInput<RoleTag$3>) => Promise<{
2771
+ getRoleTags: (p?: {
2772
+ input: CustomPagingRequestInput;
2773
+ }) => Promise<{
2593
2774
  roleTags: RoleTag$3[];
2594
2775
  total: number;
2595
2776
  }>;
@@ -2608,6 +2789,7 @@ type RoleTagServices = {
2608
2789
  updateRoleTag: (p: {
2609
2790
  input: RoleTagInput;
2610
2791
  id: number;
2792
+ versionId?: number;
2611
2793
  }) => Promise<void>;
2612
2794
  };
2613
2795
 
@@ -2620,6 +2802,7 @@ type Role = {
2620
2802
  name?: string;
2621
2803
  roleTags?: Array<RoleTag$2>;
2622
2804
  workspaceId?: number;
2805
+ versionId?: number;
2623
2806
  };
2624
2807
  type RoleTag$2 = RoleTag$3;
2625
2808
  type RoleInput = {
@@ -2629,17 +2812,15 @@ type RoleInput = {
2629
2812
  };
2630
2813
 
2631
2814
  type RoleServices = {
2632
- /** Get Roles
2633
- * @param p - PagingQueryInput<Role> - Không truyền param sẽ lấy tất cả Role
2634
- */
2635
- getRoles: (p?: PagingQueryInput<Role>) => Promise<{
2815
+ getRoles: (p?: {
2816
+ input: CustomPagingRequestInput;
2817
+ }) => Promise<{
2636
2818
  roles: Role[];
2637
2819
  total: number;
2638
2820
  }>;
2639
- /** Get RoleTags
2640
- * @param p - PagingQueryInput<RoleTag> - Không truyền param sẽ lấy tất cả RoleTag
2641
- */
2642
- getRoleTags: (p?: PagingQueryInput<RoleTag$2>) => Promise<{
2821
+ getRoleTags: (p?: {
2822
+ input: CustomPagingRequestInput;
2823
+ }) => Promise<{
2643
2824
  roleTags: RoleTag$2[];
2644
2825
  total: number;
2645
2826
  }>;
@@ -2658,6 +2839,7 @@ type RoleServices = {
2658
2839
  updateRole: (p: {
2659
2840
  input: RoleInput;
2660
2841
  id: number;
2842
+ versionId?: number;
2661
2843
  }) => Promise<void>;
2662
2844
  };
2663
2845
 
@@ -2675,13 +2857,13 @@ type Sharing$1 = {
2675
2857
  name?: string;
2676
2858
  objectFilter?: ObjectFilter;
2677
2859
  objectFilterId: number;
2678
- schema?: Schema$1;
2860
+ schema?: Schema;
2679
2861
  schemaId?: number;
2680
- sharingWorkspaces: Array<SharingWorkspace>;
2681
- totalTargetWorkspace: number;
2862
+ sharingWorkspaces?: Array<SharingWorkspace>;
2682
2863
  workspaceId: number;
2683
2864
  folderSourceDirectoryId?: number;
2684
2865
  key?: string;
2866
+ versionId?: number;
2685
2867
  };
2686
2868
  type ObjectFilter = {
2687
2869
  configType?: string;
@@ -2736,13 +2918,7 @@ type SharingInput = {
2736
2918
  folderSourceDirectoryId?: number;
2737
2919
  targetWorkspaceId?: number;
2738
2920
  sharingWorkspaces?: Array<ObjectDataInputOfSharingWorkspaceInput>;
2739
- };
2740
- type GetPagingInWorkspaceRequestGqlInput = {
2741
- objectTypeCode?: string;
2742
- pageIndex?: number;
2743
- pageSize?: number;
2744
- search?: string;
2745
- workspaceId?: number;
2921
+ versionId?: number;
2746
2922
  };
2747
2923
  interface SharingProps {
2748
2924
  getSharingById: (p: {
@@ -2754,14 +2930,16 @@ interface SharingProps {
2754
2930
  updateWorkspaceSharing: (p: {
2755
2931
  id: number;
2756
2932
  input: SharingInput;
2933
+ versionId?: number;
2757
2934
  }) => Promise<void>;
2758
2935
  getSharings: (p?: {
2759
- GetPagingInWorkspaceRequestGqlInput: GetPagingInWorkspaceRequestGqlInput;
2936
+ input: CustomPagingRequestInput;
2937
+ objectTypeCode?: string;
2760
2938
  }) => Promise<{
2761
2939
  sharings: Sharing$1[];
2762
2940
  total: number;
2763
2941
  }>;
2764
- getSchemas: () => Promise<Schema$1[]>;
2942
+ getSchemas: () => Promise<Schema[]>;
2765
2943
  getWorkspaces: () => Promise<Workspace$3[]>;
2766
2944
  getWorkspaceById: (p: {
2767
2945
  id: number;
@@ -2770,7 +2948,8 @@ interface SharingProps {
2770
2948
  id: number;
2771
2949
  }) => Promise<void>;
2772
2950
  getObjectFilters: () => Promise<ObjectFilter[]>;
2773
- getDirectories: (params?: PagingQueryInput<Directory$3> & {
2951
+ getDirectories: (params?: {
2952
+ input?: CustomPagingRequestInput;
2774
2953
  parentDirectoryId?: number;
2775
2954
  workspaceId?: number;
2776
2955
  depthFromRoot?: number;
@@ -2799,6 +2978,7 @@ type Group$1 = {
2799
2978
  roleAuthens?: RoleAuthens$1[];
2800
2979
  workspaceId?: number;
2801
2980
  isSystem?: boolean;
2981
+ versionId?: number;
2802
2982
  };
2803
2983
  type GroupInput = {
2804
2984
  description?: string;
@@ -2868,13 +3048,16 @@ type User$1 = {
2868
3048
  groups?: number[];
2869
3049
  roleAuthens?: Array<RoleAuthens>;
2870
3050
  username?: string;
3051
+ versionId?: number;
2871
3052
  };
2872
3053
 
2873
3054
  type GroupServices = {
2874
3055
  /** Get RoleTags
2875
3056
  * @param p - PagingQueryInput<RoleTag> - Không truyền param sẽ lấy tất cả RoleTag
2876
3057
  */
2877
- getRoleTags: (p?: PagingQueryInput<RoleTag$1>) => Promise<{
3058
+ getRoleTags: (p?: {
3059
+ input: CustomPagingRequestInput;
3060
+ }) => Promise<{
2878
3061
  roleTags: RoleTag$1[];
2879
3062
  total: number;
2880
3063
  }>;
@@ -2885,10 +3068,9 @@ type GroupServices = {
2885
3068
  users: User$1[];
2886
3069
  total: number;
2887
3070
  }>;
2888
- /** Get Groups
2889
- * @param p - PagingQueryInput<Group> - Không truyền param sẽ lấy tất cả Group
2890
- */
2891
- getGroups: (p?: PagingQueryInput<Group$1>) => Promise<{
3071
+ getGroups: (p?: {
3072
+ input: CustomPagingRequestInput;
3073
+ }) => Promise<{
2892
3074
  groups: Group$1[];
2893
3075
  total: number;
2894
3076
  }>;
@@ -2907,6 +3089,7 @@ type GroupServices = {
2907
3089
  updateGroup: (p: {
2908
3090
  input: GroupInput;
2909
3091
  id: number;
3092
+ versionId?: number;
2910
3093
  }) => Promise<void>;
2911
3094
  /** Loading khi lấy dữ liệu */
2912
3095
  isLoading: boolean;
@@ -2928,7 +3111,9 @@ type UserServices = {
2928
3111
  /** Get Users
2929
3112
  * @param p - PagingQueryInput<Users> - Không truyền param sẽ lấy tất cả Users
2930
3113
  */
2931
- getUsers: (p?: PagingQueryInput<User$1>) => Promise<{
3114
+ getUsers: (p?: {
3115
+ input: CustomPagingRequestInput;
3116
+ }) => Promise<{
2932
3117
  users: User$1[];
2933
3118
  total: number;
2934
3119
  }>;
@@ -2943,6 +3128,7 @@ type UserServices = {
2943
3128
  updateUser: (p: {
2944
3129
  user: UserInput;
2945
3130
  id: number;
3131
+ versionId?: number;
2946
3132
  }) => Promise<void>;
2947
3133
  /** Delete User by ID */
2948
3134
  deleteUser: (p: {
@@ -2979,6 +3165,7 @@ type Workflow = {
2979
3165
  description?: string;
2980
3166
  workflowMatrices: Array<WorkflowMatrix>;
2981
3167
  workflowStates: Array<WorkflowState>;
3168
+ versionId?: number;
2982
3169
  };
2983
3170
  type WorkflowMatrix = {
2984
3171
  id: number;
@@ -3001,9 +3188,11 @@ type WorkflowState = {
3001
3188
 
3002
3189
  type WorkflowFeatureProps = {
3003
3190
  getById: (id: number) => Promise<Workflow>;
3004
- getPaging: (queryInput: PagingQueryInput<Workflow>) => Promise<PagingType<Workflow>>;
3191
+ getPaging: (queryInput: {
3192
+ input: CustomPagingRequestInput;
3193
+ }) => Promise<PagingType<Workflow>>;
3005
3194
  create: (workflow: ObjectInputType<Workflow>) => Promise<void>;
3006
- update: (id: number, workflow: ObjectInputType<Workflow>) => Promise<void>;
3195
+ update: (id: number, workflow: ObjectInputType<Workflow>, versionId?: number) => Promise<void>;
3007
3196
  remove: (id: number) => Promise<void>;
3008
3197
  objectTypeCodeMap: {
3009
3198
  value: string;
@@ -3019,7 +3208,8 @@ type DirectoryServices = DirectoryAddOrEditServices$1 & DirectoryPermissionServi
3019
3208
  /** Get Directories
3020
3209
  * @params PagingQueryInput<Directory> - Không truyền param sẽ lấy tất cả
3021
3210
  */
3022
- getDirectories: (params?: PagingQueryInput<Directory> & {
3211
+ getDirectories: (params?: {
3212
+ input?: CustomPagingRequestInput;
3023
3213
  parentDirectoryId?: number;
3024
3214
  workspaceId?: number;
3025
3215
  depthFromRoot?: number;
@@ -3038,7 +3228,7 @@ type DirectorySystemProps = DirectoryServices & {
3038
3228
  currentWorkspace?: CurrentWorkspace;
3039
3229
  objectTypeCodes?: ObjectTypeCode[];
3040
3230
  };
3041
- declare const DirectorySystem: (props: DirectorySystemProps) => react_jsx_runtime.JSX.Element;
3231
+ declare const DirectorySystem: (props: DirectorySystemProps) => react_jsx_runtime.JSX.Element | null;
3042
3232
 
3043
3233
  declare function Sharing(props: SharingProps): react_jsx_runtime.JSX.Element;
3044
3234
 
@@ -3106,7 +3296,8 @@ declare function parseJSON(str: string): any;
3106
3296
  * Xử lý các thao tác số học và toán học một cách tiện lợi.
3107
3297
  * Hỗ trợ các phép toán phức tạp hoặc tối ưu hóa các logic tính toán thường dùng.
3108
3298
  */
3109
- declare function formatNumber(num: number | bigint | string | undefined): string;
3299
+ type Locale = 'vi' | 'en' | 'ja' | 'th' | 'id';
3300
+ declare function formatNumberByLocale(value?: number | bigint, lang?: string, locale?: string): string;
3110
3301
  declare function roundDecimalNumber(number: any): string | null;
3111
3302
  declare function WMAPEcalculator(data: any): number | "∞";
3112
3303
 
@@ -3132,6 +3323,73 @@ declare function checkValidMacAddress(string?: string): boolean;
3132
3323
  declare function checkValidUrl(url: string | undefined): boolean;
3133
3324
  declare function validateNumber(value?: string | number): boolean;
3134
3325
 
3326
+ /**
3327
+ * Available filter operation types
3328
+ */
3329
+ declare enum FilterOperationType {
3330
+ EQ = "eq",// Equal
3331
+ CONTAINS = "contains",// Contains substring
3332
+ STARTSWITH = "startswith",// Starts with
3333
+ ENDSWITH = "endswith",// Ends with
3334
+ GT = "gt",// Greater than
3335
+ GTE = "gte",// Greater than or equal
3336
+ LT = "lt",// Less than
3337
+ LTE = "lte",// Less than or equal
3338
+ IN = "in",// In array
3339
+ BETWEEN = "between",// Between two values
3340
+ NE = "ne",// Not equal
3341
+ NOTCONTAINS = "notcontains",// Does not contain substring
3342
+ NOTIN = "notin",// Not in array
3343
+ CUSTOM = "custom"
3344
+ }
3345
+ /**
3346
+ * Logical operators for combining filter conditions
3347
+ */
3348
+ declare enum LogicalOperatorType {
3349
+ AND = "and",
3350
+ OR = "or",
3351
+ NOT = "not"
3352
+ }
3353
+ /**
3354
+ * Structure for a single filter item
3355
+ */
3356
+ interface FilterItem {
3357
+ key: string;
3358
+ value: any;
3359
+ type: FilterOperationType | string;
3360
+ isArray?: boolean;
3361
+ }
3362
+ /**
3363
+ * Structure for a filter group that can contain nested conditions
3364
+ */
3365
+ interface FilterGroup {
3366
+ operator: LogicalOperatorType;
3367
+ filters: Array<FilterItem | FilterGroup>;
3368
+ }
3369
+ /**
3370
+ * Filter expression can be either a single item or a group
3371
+ */
3372
+ type FilterExpression = FilterItem | FilterGroup;
3373
+ /**
3374
+ * Converts an array of filter objects to a string condition
3375
+ * @param filters - Array of objects with key, value, and type properties
3376
+ * @param defaultOperator - Default logical operator to use when combining filters (AND or OR)
3377
+ * @returns Object with a 'condition' property containing the string condition and optional 'params' array
3378
+ */
3379
+ declare function convertArrayFiltersToCondition(filters: Array<FilterItem>, defaultOperator?: LogicalOperatorType): {
3380
+ condition: string;
3381
+ params?: string[];
3382
+ } | null;
3383
+ /**
3384
+ * Converts a complex filter expression to a string condition
3385
+ * @param filterExpression - Filter expression (can be nested with logical operators)
3386
+ * @returns Object with a 'condition' property containing the string condition and optional 'params' array
3387
+ */
3388
+ declare function convertFilterExpressionToCondition(filterExpression: FilterExpression): {
3389
+ condition: string;
3390
+ params?: string[];
3391
+ } | null;
3392
+
3135
3393
  type Workspace$1 = {
3136
3394
  customerId?: number;
3137
3395
  contactPhoneNumber?: string;
@@ -3248,4 +3506,4 @@ declare function ThemeProvider(props: {
3248
3506
  };
3249
3507
  }): react_jsx_runtime.JSX.Element;
3250
3508
 
3251
- export { Container$4 as Action, type ActionsProps, AdvancedSearch, type AdvancedSearchField, type AdvancedSearchProps, type AnalyticDataProviderModel, AppContext, AppProvider, AsyncAutocomplete, type AsyncAutocompleteProps, type AsynchronousAutocompleteProps, AwingContext, BarLineChart, type BaseDirectoryPermission, type BaseFieldDefinition, type BaseFieldRender, type BinaryTreeNode, BoxResizableSplit, type BoxResizableSplitProps, ButtonDateRangePicker, type ButtonDateRangePickerProps, ButtonSelect, type ButtonSelectProps, type Cell, type CellDefinition, type ChartContentProps, CircularProgress, DrawerBase as ClassicBaseDrawer, DrawerWrapper as ClassicDrawer, CloseAction, type ColumnDefinition, type CombinedProps, ContentHeader, type OwnProps as ContentHeaderProps, ControlPanels, CopyButton, type CopyButtonProps, CronTab, type CronTabProps, type CronTabValue, type DataExportEntity, DataForm, type DataFormProps, DataGrid, type DataGridColumnDefinitionBase, DataGridGroup, type DataGridProps, DataGridSortType, InputFactory as DataInput, type DataSet, DateAutoFormat, type DateAutoFormatProps, Container$2 as DatePicker, type DatePickerProps, type DateRange, DateRangePicker, Container$3 as DateRangePickerOld, type DateRangePickerOldProps, type DateRangePickerProps, type DayInterval, type DayIntervalPickerProps, EnhancedDialog as DeprecatedEnhancedDialog, type Directory$2 as Directory, CreateDirectory as DirectoryForm, PermissionWarpper as DirectoryPermission, type DirectoryPermissionServices, type DirectoryProps, DirectoryRoot, DirectorySystem, DirectoryTree, type DirectoryTreeProps, DrawerWrapper$1 as Drawer, type DrawerBaseProps, DrawerNavigate, type DrawerNavigateProps, type DrawerProps, DrawerStateEnum, Container$1 as EnhancedAutoComplete, type EnhancedAutoCompleteProps, type EnhancedDialogProps, EnumFieldInputType, EnumSelectedPlaceType, FIELD_TYPE, type FieldDefinitionProps, type FileResponse, FilterTreeView, type FilterTreeViewProps, type FiltersType, FooterContainer as Footer, type FunctionStructure, GoogleMap, type GridSortDirection, type GridSortModel, type GroupComponentProps, type GroupFilter, GroupSystem, GroupTable, type GroupTableProps, type HeadCell, HierarchyTree, I18nProvider, type IChartJsContainer, type ICircularProgress, type IConfigChart, type IControlPanel, type DataGridGroupsProps as IDataGridGroups, type IDirectoryTreeViewProps, type IFilterField, type IGoogleMapProps, type IMenu, type IMonacoEditorProps, type IMultipleChoiceComponentProps, type IMultipleChoiceProps, type IMultipleHierarchicalChoice, type IMultipleHierarchicalChoiceInput, type IMultipleHierarchicalChoiceProps, type IMultipleSelect, INT_NUMBER_LIMIT, type IOption, type IPieContainer, type IStatisticsProps, type ITag, Container as Layout, Notifications as LayoutNotifications, LogicExpressionInput as LogicExpression, type LogicExpressionInputProps, MemoWrap, type MemoWrapProps, type MenuOption, type ModalDrawerProps, MonacoEditor, MultipleChoice, type MultipleHierarChicalChoiceComponentProps, MultipleHierarchicalChoice, NoData, NotificationConfig, NotificationFilter as NotificationObjectFilter, NumberFormat, type ObjectDefinition$3 as ObjectDefinition, type ObjectStructure, AsynchronousAutocomplete as OldAsyncAutoComplete, Page, PageManagement, type PageManagementProps, type PageProps, Pagination, type PermissionContainerProps, PieChart, PlaceFilter, type PlaceFilterProps, type QueryInput, type QueryInputStatistics, type Role, type RoleServices, RoleSystem, type RoleTag$3 as RoleTag, type RoleTagServices, RoleTagSystem, type Row, type RowActionDefinition, type RowId, type RowProps, type SchedulePermission, SchemaSystem, SearchBox, type SearchBoxProps, type SearchType, type SharingProps, Sharing as SharingSystem, ShowTreeItem, SimpleTreeItemWrapper, SortEnumType, Sortable, SortableTree, type SortableTreeProps, StatisticsCommon as Statistics, SubscriptionConfig, TIMELINE_TYPE, TYPE_CHART, TYPE_FILTERS, TabLabel, TableCellEditable, type TableCellEditableProps, TableEditable, TableEditableBody, type TableEditableBodyProps, type TableEditableProps, type TableGridProps, TableHeader, type TableHeaderProps, type TableLabelProps, TablePaginationActions, type TablePaginationActionsProps, Template as TemplateConfig, ThemeProvider, type Timestamp, ToolbarLayout as Toolbar, TopBarActions, type TopBarActionsProps, type TreeItem, type TreeItemOption, TreeItemWithAction, type TreeItemWithActionProps, type TreeItems, User as UserSystem, type Value, type ValueBase, WMAPEcalculator, WorkflowFeature as WorkflowSystem, WorkspaceType, Wrapper, arrayIsNotEmptyValid, calculateValue, calculatorDirectoryIdRoot, changeToAlias, checkValidMacAddress, checkValidStringListAP, checkValidUrl, colorValid, containsOnlyDigits, convertArrayToObject, convertDataSetPattern, convertDateTimeToTimestamp, convertFormulaToBinaryTree, convertTimeLine, convertTimelineToDateTime, convertTimestampToDateTime, convertToPostfix, darkTheme, dateRangeValid, dateTimeToString, dateToString, dateToStringDDMMYYYY, dateValid, download, downloadWithDataSet, emailValid, fillMissingDates, flattenTree, formatChartNumber, formatJSON, formatNumber, formatNumberWithLanguage, generateUUID, getCookie, getGUID, getPrecedence, getQueryVariable, getRandomKey, getRoutePath, getStartOfDay, getToday, handleExportExcel, i18n as i18nLib, isOperand, isOperator, lightTheme, nameExportStandard, notNullValid, numberNotNullValid, numberOnlyValid, numberPercentageNotNullValid, off, offlinePaginate, parseJSON, passwordValid, positiveNumberNotNullValid, pub, replaceFieldsValue, roundDecimalNumber, setObject, stringNotNullValid, stringNullableValid, sub, textValidation, timestampToStringDDMMYYYY, toCapitalize, tokenize, updateGUID, updateObjectFields, urlValid, useAppHelper, useAwing, useDrawer, useGetContext, useGetData, usePath, validateNumber };
3509
+ export { Container$4 as Action, type ActionsProps, AdvancedSearch, type AdvancedSearchField, type AdvancedSearchProps, type AnalyticDataProviderModel, AppContext, AppProvider, AsyncAutocomplete, type AsyncAutocompleteProps, type AsynchronousAutocompleteProps, AwingContext, BarLineChart, type BaseDirectoryPermission, type BaseFieldDefinition, type BaseFieldRender, type BinaryTreeNode, BoxResizableSplit, type BoxResizableSplitProps, ButtonDateRangePicker, type ButtonDateRangePickerProps, ButtonSelect, type ButtonSelectProps, type Cell, type CellDefinition$1 as CellDefinition, type ChartContentProps, CircularProgress, DrawerBase as ClassicBaseDrawer, DrawerWrapper as ClassicDrawer, CloseAction, type ColumnDefinition$1 as ColumnDefinition, type CombinedProps, ContentHeader, type OwnProps as ContentHeaderProps, ControlPanels, CopyButton, type CopyButtonProps, CronTab, type CronTabProps, type CronTabValue, type DataExportEntity, DataForm, type DataFormProps, DataGrid, type DataGridColumnDefinitionBase, DataGridGroup, type DataGridProps, DataGridSortType, InputFactory as DataInput, type DataSet, DateAutoFormat, type DateAutoFormatProps, Container$2 as DatePicker, type DatePickerProps, type DateRange, DateRangePicker, Container$3 as DateRangePickerOld, type DateRangePickerOldProps, type DateRangePickerProps, type DayInterval, type DayIntervalPickerProps, EnhancedDialog as DeprecatedEnhancedDialog, type Directory$2 as Directory, CreateDirectory as DirectoryForm, PermissionWarpper as DirectoryPermission, type DirectoryPermissionServices, type DirectoryProps, DirectoryRoot, DirectorySystem, DirectoryTree, type DirectoryTreeProps, DrawerWrapper$1 as Drawer, type DrawerBaseProps, type DrawerHandle, DrawerNavigate, type DrawerNavigateProps, type DrawerProps, DrawerStateEnum, Container$1 as EnhancedAutoComplete, type EnhancedAutoCompleteProps, type EnhancedDialogProps, EnumFieldInputType, EnumSelectedPlaceType, FIELD_TYPE, type FieldDefinitionProps, type FileResponse, type FilterExpression, type FilterGroup, type FilterItem, FilterNotification, FilterOperationType, FilterTreeView, type FilterTreeViewProps, type FiltersType, FooterContainer as Footer, type FunctionStructure, GoogleMap, type GridSortDirection, type GridSortModel, type GroupComponentProps, type GroupFilter, GroupSystem, GroupTable, type GroupTableProps, type HeadCell, HierarchyTree, I18nProvider, type IChartJsContainer, type ICircularProgress, type IConfigChart, type IControlPanel, type DataGridGroupsProps as IDataGridGroups, type IDirectoryTreeViewProps, type IFilterField, type IGoogleMapProps, type IMenu, type IMonacoEditorProps, type IMultipleChoiceComponentProps, type IMultipleChoiceProps, type IMultipleHierarchicalChoice, type IMultipleHierarchicalChoiceInput, type IMultipleHierarchicalChoiceProps, type IMultipleSelect, INT_NUMBER_LIMIT, type IOption, type IPieContainer, type IStatisticsProps, type ITag, Container as Layout, Notifications as LayoutNotifications, type Locale, LogicExpressionInput as LogicExpression, type LogicExpressionInputProps, LogicalOperatorType, MemoWrap, type MemoWrapProps, type MenuOption, type ModalDrawerProps, MonacoEditor, MultipleChoice, type MultipleHierarChicalChoiceComponentProps, MultipleHierarchicalChoice, NoData, NotificationConfig, NotificationFilter$1 as NotificationObjectFilter, NumberFormat, type ObjectDefinition$4 as ObjectDefinition, type ObjectStructure, AsynchronousAutocomplete as OldAsyncAutoComplete, Page, PageManagement, type PageManagementProps, type PageProps, Pagination, type PermissionContainerProps, PieChart, PlaceFilter, type PlaceFilterProps, type QueryInput, type QueryInputStatistics, type Role, type RoleServices, RoleSystem, type RoleTag$3 as RoleTag, type RoleTagServices, RoleTagSystem, type Row, type RowActionDefinition, type RowId, type RowProps, type SchedulePermission, SchemaSystem, SearchBox, type SearchBoxProps, type SearchType, type SharingProps, Sharing as SharingSystem, ShowTreeItem, SimpleTreeItemWrapper, SortEnumType, Sortable, SortableTree, type SortableTreeProps, StatisticsCommon as Statistics, SubscriptionConfig, TIMELINE_TYPE, TYPE_CHART, TYPE_FILTERS, TabLabel, TableCellEditable$1 as TableCellEditable, type TableCellEditableProps$1 as TableCellEditableProps, TableEditable$1 as TableEditable, TableEditableBody$1 as TableEditableBody, type TableEditableBodyProps$1 as TableEditableBodyProps, TableEditable as TableEditableCollapsible, TableEditableBody as TableEditableCollapsibleBody, TableCellEditable as TableEditableCollapsibleCell, type CellDefinition$1 as TableEditableCollapsibleCellDefinition, type ColumnDefinition$1 as TableEditableCollapsibleColumnDefinition, type TableCellEditableProps$1 as TableEditableCollapsibleTableCellEditableProps, type TableEditableBodyProps$1 as TableEditableCollapsibleTableEditableBodyProps, type TableEditableProps$1 as TableEditableCollapsibleTableEditableProps, TableHeader as TableEditableCollapsibleTableHeader, type TableHeaderProps$1 as TableEditableCollapsibleTableHeaderProps, TopBarActions as TableEditableCollapsibleTopBarActions, type TopBarActionsProps$1 as TableEditableCollapsibleTopBarActionsProps, type TableEditableProps$1 as TableEditableProps, type TableGridProps, TableHeader$1 as TableHeader, type TableHeaderProps$1 as TableHeaderProps, type TableLabelProps, TablePaginationActions, type TablePaginationActionsProps, Template as TemplateConfig, ThemeProvider, type Timestamp, ToolbarLayout as Toolbar, TopBarActions$1 as TopBarActions, type TopBarActionsProps$1 as TopBarActionsProps, type TreeItem, type TreeItemOption, TreeItemWithAction, type TreeItemWithActionProps, type TreeItems, User as UserSystem, type Value, type ValueBase, WMAPEcalculator, WorkflowFeature as WorkflowSystem, WorkspaceType, Wrapper, arrayIsNotEmptyValid, calculateValue, calculatorDirectoryIdRoot, changeToAlias, checkValidMacAddress, checkValidStringListAP, checkValidUrl, colorValid, containsOnlyDigits, convertArrayFiltersToCondition, convertArrayToObject, convertDataSetPattern, convertDateTimeToTimestamp, convertFilterExpressionToCondition, convertFormulaToBinaryTree, convertTimeLine, convertTimelineToDateTime, convertTimestampToDateTime, convertToPostfix, darkTheme, dateRangeValid, dateTimeToString, dateToString, dateToStringDDMMYYYY, dateValid, download, downloadWithDataSet, emailValid, fillMissingDates, flattenTree, formatChartNumber, formatJSON, formatNumberByLocale, formatNumberWithLanguage, generateUUID, getCookie, getGUID, getPrecedence, getQueryVariable, getRandomKey, getRoutePath, getStartOfDay, getToday, handleExportExcel, i18n as i18nLib, isOperand, isOperator, lightTheme, nameExportStandard, notNullValid, numberNotNullValid, numberOnlyValid, numberPercentageNotNullValid, off, offlinePaginate, parseJSON, passwordValid, positiveNumberNotNullValid, pub, replaceFieldsValue, roundDecimalNumber, setObject, stringNotNullValid, stringNullableValid, sub, textValidation, timestampToStringDDMMYYYY, toCapitalize, tokenize, updateGUID, updateObjectFields, urlValid, useAppHelper, useAwing, useDrawer, useGetContext, useGetData, usePath, validateNumber };