awing-library 2.1.2-dev.7 → 2.1.2-dev.70

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 +96 -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 +2626 -927
  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 +378 -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;
@@ -1746,8 +1826,9 @@ interface ColumnDefinition<T extends object> {
1746
1826
  }
1747
1827
  type TableEditableProps<T> = {
1748
1828
  columnDefinitions: Array<ColumnDefinition<Partial<T>>>;
1829
+ fieldDefinitions: Array<ColumnDefinition<Partial<T>>>;
1749
1830
  items: Array<Partial<T>>;
1750
- onChange(newData: Array<Partial<T>>, dataValid: boolean): void;
1831
+ onChange(newData: Array<Partial<T>>, dataValid: boolean, fieldName?: keyof T): void;
1751
1832
  getRowId?(obj: Partial<T>): number;
1752
1833
  selected?: number[];
1753
1834
  onSelectedChange?(ids: number[]): void;
@@ -1757,6 +1838,10 @@ type TableEditableProps<T> = {
1757
1838
  spanningRows?: ReactNode[];
1758
1839
  selectionActions?: SelectionActionDefinition[];
1759
1840
  mergeRowsBy?: string;
1841
+ observation?: {
1842
+ objObserve: Array<keyof T>;
1843
+ callback: (fieldName?: keyof T, columnValue?: unknown, index?: number) => void;
1844
+ }[];
1760
1845
  };
1761
1846
  interface TopBarActionsProps {
1762
1847
  selected: number[];
@@ -1777,6 +1862,7 @@ interface TableEditableBodyProps<T> {
1777
1862
  onSelectedChange?: (selected: number[]) => void;
1778
1863
  onSelect: (id: number) => void;
1779
1864
  columnDefinitions: Array<ColumnDefinition<Partial<T>>>;
1865
+ fieldDefinitions?: Array<ColumnDefinition<Partial<T>>>;
1780
1866
  dataValidation: Partial<{
1781
1867
  [K in keyof T]: boolean;
1782
1868
  }>[];
@@ -1788,6 +1874,7 @@ interface TableEditableBodyProps<T> {
1788
1874
  }
1789
1875
  interface TableCellEditableProps<T extends object> {
1790
1876
  cellDefinition: CellDefinition<T>;
1877
+ isContainer?: boolean;
1791
1878
  numOfRowSpan?: number;
1792
1879
  }
1793
1880
 
@@ -1840,13 +1927,20 @@ interface ModalDrawerProps extends Omit<DrawerBaseProps, 'open'> {
1840
1927
  onSubmit?: () => Promise<any> | void;
1841
1928
  onClose?: () => void;
1842
1929
  }
1930
+ interface DrawerHandle {
1931
+ handleClose: () => void;
1932
+ handleSubmit: () => void;
1933
+ closeDrawer: (action?: string) => void;
1934
+ }
1843
1935
  declare const enum CloseAction {
1844
1936
  Reload = "Reload",
1845
1937
  Close = "Close",
1846
1938
  ReloadDirectory = "ReloadDirectory"
1847
1939
  }
1848
1940
 
1849
- declare const DrawerWrapper: (props: ModalDrawerProps) => react_jsx_runtime.JSX.Element;
1941
+ declare const DrawerWrapper: (props: ModalDrawerProps & {
1942
+ ref?: React__default.Ref<DrawerHandle>;
1943
+ }) => react_jsx_runtime.JSX.Element;
1850
1944
 
1851
1945
  interface EnhancedDialogProps {
1852
1946
  title?: string;
@@ -1931,7 +2025,7 @@ type Timestamp = {
1931
2025
  seconds: number;
1932
2026
  nanos?: number;
1933
2027
  };
1934
- type ObjectDefinition$3 = {
2028
+ type ObjectDefinition$4 = {
1935
2029
  id: number;
1936
2030
  objectTypeCode?: string;
1937
2031
  fieldName?: string;
@@ -2082,7 +2176,7 @@ interface PagedList_1OfNotificationMessage {
2082
2176
 
2083
2177
  declare const Notifications: (props: LayoutNotificationProps) => react_jsx_runtime.JSX.Element;
2084
2178
 
2085
- type NotificationConfigDetail$2 = {
2179
+ type NotificationConfigDetail$1 = {
2086
2180
  channelType?: string;
2087
2181
  email?: string;
2088
2182
  objectFilterId?: number;
@@ -2097,7 +2191,7 @@ type SubscriptionConfig$1 = {
2097
2191
  id: number;
2098
2192
  name?: string;
2099
2193
  objectType: string;
2100
- outputFieldPermission?: OutputFieldPermission$3;
2194
+ outputFieldPermission?: OutputFieldPermission$4;
2101
2195
  scheduleExpression: string;
2102
2196
  scheduleIntervalDaysOfMonth?: string;
2103
2197
  scheduleIntervalDaysOfWeek?: string;
@@ -2144,7 +2238,7 @@ type UserGroup = {
2144
2238
  description?: string;
2145
2239
  id: number;
2146
2240
  name?: string;
2147
- notificationConfigDetails: Array<NotificationConfigDetail$2>;
2241
+ notificationConfigDetails: Array<NotificationConfigDetail$1>;
2148
2242
  roleAuthens: Array<RoleAuthen>;
2149
2243
  subscriptionConfigDetails: Array<SubscriptionConfigDetail$3>;
2150
2244
  userGroupDetails: Array<UserGroupDetail>;
@@ -2157,8 +2251,8 @@ type ObjectFilter$2 = {
2157
2251
  logicalExpression?: string;
2158
2252
  objectTypeCode?: string;
2159
2253
  name?: string;
2160
- notificationConfigDetails?: Array<NotificationConfigDetail$2>;
2161
- outputFieldPermission?: OutputFieldPermission$3;
2254
+ notificationConfigDetails?: Array<NotificationConfigDetail$1>;
2255
+ outputFieldPermission?: OutputFieldPermission$4;
2162
2256
  subscriptionConfigDetails?: Array<SubscriptionConfigDetail$3>;
2163
2257
  workspaceSharings?: Array<WorkspaceSharing$1>;
2164
2258
  };
@@ -2179,18 +2273,18 @@ type WorkflowState$1 = {
2179
2273
  value?: number;
2180
2274
  workflowId?: number;
2181
2275
  };
2182
- type ObjectDefinition$2 = {
2276
+ type ObjectDefinition$3 = {
2183
2277
  fieldName?: string;
2184
2278
  fieldPath?: string;
2185
- objectTypeCode?: string;
2279
+ baseObjectTypeCode?: string;
2186
2280
  };
2187
- type ObjectDefinitionWithPermission$2 = {
2281
+ type ObjectDefinitionWithPermission$3 = {
2188
2282
  permission?: number;
2189
- objectDefinition?: ObjectDefinition$2;
2283
+ objectDefinition?: ObjectDefinition$3;
2190
2284
  };
2191
- type OutputFieldPermission$2 = {
2285
+ type OutputFieldPermission$3 = {
2192
2286
  currentWorkflowState?: WorkflowState$1;
2193
- objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$2>;
2287
+ objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$3>;
2194
2288
  targetWorkflowStates?: Array<WorkflowState$1>;
2195
2289
  };
2196
2290
  type SubscriptionConfigDetail$2 = {
@@ -2207,7 +2301,7 @@ type SubscriptionConfigDetail$2 = {
2207
2301
  type SubscriptionConfigsType = {
2208
2302
  id?: number;
2209
2303
  name?: string;
2210
- objectType?: string;
2304
+ baseObjectType?: string;
2211
2305
  scheduleExpression?: string;
2212
2306
  scheduleIntervalDaysOfMonth?: string;
2213
2307
  scheduleIntervalDaysOfWeek?: string;
@@ -2218,7 +2312,8 @@ type SubscriptionConfigsType = {
2218
2312
  status?: boolean;
2219
2313
  scheduleType?: ScheduleType;
2220
2314
  details?: Array<SubscriptionConfigDetail$2>;
2221
- outputFieldPermission?: OutputFieldPermission$2;
2315
+ outputFieldPermission?: OutputFieldPermission$3;
2316
+ versionId?: number;
2222
2317
  };
2223
2318
  type SubscriptionConfigDetailRequestGqlInput = {
2224
2319
  channelType?: string;
@@ -2235,7 +2330,7 @@ type KeyValueSubscriptionConfigDetailRequestGqlInput = {
2235
2330
  };
2236
2331
  type SubscriptionConfigRequestGqlInput = {
2237
2332
  name?: string;
2238
- objectType?: string;
2333
+ baseObjectType?: string;
2239
2334
  scheduleExpression?: string;
2240
2335
  scheduleIntervalDaysOfMonth?: string;
2241
2336
  scheduleIntervalDaysOfWeek?: string;
@@ -2251,7 +2346,9 @@ type SubscriptionConfigRequestGqlInput = {
2251
2346
  };
2252
2347
 
2253
2348
  type SubscriptionConfigServices = {
2254
- getSubscriptionConfigs: (p?: PagingQueryInput<SubscriptionConfigsType>) => Promise<{
2349
+ getSubscriptionConfigs: (p: {
2350
+ input: CustomPagingRequestInput;
2351
+ }) => Promise<{
2255
2352
  items: SubscriptionConfigsType[];
2256
2353
  total: number;
2257
2354
  }>;
@@ -2267,6 +2364,7 @@ type SubscriptionConfigServices = {
2267
2364
  updateSubscriptionConfig: (p: {
2268
2365
  input: SubscriptionConfigRequestGqlInput;
2269
2366
  id: number;
2367
+ versionId?: number;
2270
2368
  }) => Promise<void>;
2271
2369
  getObjectFilter: () => Promise<{
2272
2370
  items: ObjectFilter$2[];
@@ -2291,15 +2389,6 @@ declare function SubscriptionConfig(props: {
2291
2389
  objectTypeCodes: ObjectTypeCode[];
2292
2390
  }): react_jsx_runtime.JSX.Element;
2293
2391
 
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
2392
  declare enum ChannelType {
2304
2393
  Email = "EMAIL",
2305
2394
  InApp = "IN_APP",
@@ -2334,12 +2423,15 @@ type NotificationConfigType = {
2334
2423
  baseObjectType?: string;
2335
2424
  transactionType?: string;
2336
2425
  status?: boolean;
2337
- details?: NotificationConfigDetail$2[];
2338
- outputFieldPermission?: OutputFieldPermission$2;
2426
+ details?: NotificationConfigDetail$1[];
2427
+ outputFieldPermission?: OutputFieldPermission$3;
2428
+ versionId?: number;
2339
2429
  };
2340
2430
 
2341
2431
  type NotificationConfigServices = {
2342
- getNotificationConfigs: (p?: PagingQueryInput<NotificationConfig$1>) => Promise<{
2432
+ getNotificationConfigs: (p: {
2433
+ input: CustomPagingRequestInput;
2434
+ }) => Promise<{
2343
2435
  items: NotificationConfigType[];
2344
2436
  total: number;
2345
2437
  }>;
@@ -2371,6 +2463,7 @@ type NotificationConfigServices = {
2371
2463
  updateNotificationConfig: (p: {
2372
2464
  notificationConfig: NotificationConfigInput;
2373
2465
  id: number;
2466
+ versionId?: number;
2374
2467
  }) => Promise<void>;
2375
2468
  };
2376
2469
 
@@ -2380,21 +2473,21 @@ type NotificationConfigProps = NotificationConfigServices & {
2380
2473
  };
2381
2474
  declare function NotificationConfig(props: NotificationConfigProps): react_jsx_runtime.JSX.Element;
2382
2475
 
2383
- type NotificationConfigDetail$1 = {
2476
+ type NotificationConfigDetail = {
2384
2477
  id?: number;
2385
2478
  };
2386
- type ObjectDefinition$1 = {
2479
+ type ObjectDefinition$2 = {
2387
2480
  fieldName?: string;
2388
2481
  fieldPath?: string;
2389
2482
  id?: number;
2390
2483
  objectTypeCode?: string;
2391
2484
  };
2392
- type ObjectDefinitionWithPermission$1 = {
2393
- objectDefinition?: ObjectDefinition$1;
2485
+ type ObjectDefinitionWithPermission$2 = {
2486
+ objectDefinition?: ObjectDefinition$2;
2394
2487
  permission?: number;
2395
2488
  };
2396
- type OutputFieldPermission$1 = {
2397
- objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$1>;
2489
+ type OutputFieldPermission$2 = {
2490
+ objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$2>;
2398
2491
  };
2399
2492
  type SubscriptionConfigDetail$1 = {
2400
2493
  id?: number;
@@ -2403,24 +2496,23 @@ type WorkspaceSharing = {
2403
2496
  id?: number;
2404
2497
  };
2405
2498
  type ObjectFilter$1 = {
2406
- configType?: string;
2407
2499
  directoryPath?: string;
2408
2500
  id?: number;
2409
2501
  logicalExpression?: string;
2410
2502
  name?: string;
2411
2503
  objectTypeCode?: string;
2412
- outputFieldPermission?: OutputFieldPermission$1;
2413
- notificationConfigDetails?: Array<NotificationConfigDetail$1>;
2504
+ outputFieldPermission?: OutputFieldPermission$2;
2505
+ notificationConfigDetails?: Array<NotificationConfigDetail>;
2414
2506
  subscriptionConfigDetails?: Array<SubscriptionConfigDetail$1>;
2415
2507
  workspaceSharings?: Array<WorkspaceSharing>;
2508
+ versionId?: number;
2416
2509
  };
2417
2510
  type ObjectFilterInput = {
2418
- configType?: string;
2419
2511
  logicalExpression?: string;
2420
2512
  name?: string;
2421
2513
  objectTypeCode?: string;
2422
2514
  };
2423
- type LogicExpressionsStructure = {
2515
+ type LogicExpressionsStructure$1 = {
2424
2516
  objectStructures?: {
2425
2517
  [key: string]: ObjectStructure$1[];
2426
2518
  };
@@ -2428,10 +2520,9 @@ type LogicExpressionsStructure = {
2428
2520
  };
2429
2521
 
2430
2522
  type ObjectFilterServices = {
2431
- /** Get Paging ObjectFilter
2432
- * @param p - PagingQueryInput<ObjectFilter>
2433
- */
2434
- getObjectFilters: (p: PagingQueryInput<ObjectFilter$1>) => Promise<{
2523
+ getObjectFilters: (p: {
2524
+ input: CustomPagingRequestInput;
2525
+ }) => Promise<{
2435
2526
  items: ObjectFilter$1[];
2436
2527
  totalCount: number;
2437
2528
  }>;
@@ -2453,18 +2544,104 @@ type ObjectFilterServices = {
2453
2544
  updateObjectFilter: (p: {
2454
2545
  input: ObjectFilterInput;
2455
2546
  id: number;
2547
+ versionId?: number;
2456
2548
  }) => Promise<void>;
2457
2549
  };
2458
2550
 
2459
- declare const NotificationFilter: (props: ObjectFilterServices & {
2551
+ declare const NotificationFilter$1: (props: ObjectFilterServices & {
2460
2552
  objectTyeCodes: EnumTypeConvert[];
2461
- objectConfigTypes: EnumTypeConvert[];
2462
- logicExpressionsStructure: LogicExpressionsStructure;
2553
+ logicExpressionsStructure: LogicExpressionsStructure$1;
2463
2554
  }) => react_jsx_runtime.JSX.Element;
2464
2555
 
2465
- type NotificationConfigDetail = {
2556
+ type GraphQLQuery = {
2466
2557
  id?: number;
2558
+ name?: string;
2559
+ baseObjectType?: string;
2560
+ directoryPath?: string;
2561
+ queryString?: string;
2562
+ resultExpression?: string;
2563
+ graphqlVariables?: {
2564
+ id?: string;
2565
+ name?: string;
2566
+ type?: string;
2567
+ value?: string;
2568
+ };
2569
+ };
2570
+
2571
+ type ObjectDefinition$1 = {
2572
+ fieldName?: string;
2573
+ fieldPath?: string;
2574
+ id?: number;
2575
+ objectTypeCode?: string;
2576
+ };
2577
+ type ObjectDefinitionWithPermission$1 = {
2578
+ objectDefinition?: ObjectDefinition$1;
2579
+ permission?: number;
2467
2580
  };
2581
+ type OutputFieldPermission$1 = {
2582
+ objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$1>;
2583
+ };
2584
+ type NotificationFilter = {
2585
+ directoryPath?: string;
2586
+ id?: number;
2587
+ graphQLQuery?: GraphQLQuery;
2588
+ logicalExpression?: string;
2589
+ name?: string;
2590
+ outputFieldPermission?: OutputFieldPermission$1;
2591
+ versionId?: number;
2592
+ };
2593
+ type NotificationFilterInput = {
2594
+ graphqlQueryId?: number;
2595
+ id?: number;
2596
+ logicalExpression?: string;
2597
+ name?: string;
2598
+ parentDirectoryPath?: string;
2599
+ sagaTransactionId?: number;
2600
+ };
2601
+ type LogicExpressionsStructure = {
2602
+ objectStructures?: {
2603
+ [key: string]: ObjectStructure$1[];
2604
+ };
2605
+ functionStructures?: FunctionStructure$1[];
2606
+ };
2607
+
2608
+ type NotificationFilterServices = {
2609
+ getNotificationFilters: (p: {
2610
+ input: CustomPagingRequestInput;
2611
+ }) => Promise<{
2612
+ items: NotificationFilter[];
2613
+ totalCount: number;
2614
+ }>;
2615
+ /** Delete */
2616
+ deleteNotificationFilter: (p: {
2617
+ id: number;
2618
+ }) => Promise<void>;
2619
+ /** Get by Id */
2620
+ getNotificationFilterById: (p: {
2621
+ id: number;
2622
+ }) => Promise<{
2623
+ notificationFilter?: NotificationFilter;
2624
+ }>;
2625
+ /** Create */
2626
+ createNotificationFilter: (p: {
2627
+ input: NotificationFilterInput;
2628
+ }) => Promise<void>;
2629
+ /** Update */
2630
+ updateNotificationFilter: (p: {
2631
+ input: NotificationFilterInput;
2632
+ id: number;
2633
+ versionId?: number;
2634
+ }) => Promise<void>;
2635
+ getGraphQLQueries: (p: CustomPagingRequestInput) => Promise<{
2636
+ items: GraphQLQuery[];
2637
+ totalCount: number;
2638
+ }>;
2639
+ };
2640
+
2641
+ declare const FilterNotification: (props: NotificationFilterServices & {
2642
+ logicExpressionsStructure: LogicExpressionsStructure;
2643
+ }) => react_jsx_runtime.JSX.Element;
2644
+
2468
2645
  type SchemaDetail = {
2469
2646
  id?: number;
2470
2647
  };
@@ -2485,9 +2662,6 @@ type ObjectDefinitionWithPermission = {
2485
2662
  type OutputFieldPermission = {
2486
2663
  objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission>;
2487
2664
  };
2488
- type Schema = {
2489
- id?: number;
2490
- };
2491
2665
  type SubscriptionConfigDetail = {
2492
2666
  id?: number;
2493
2667
  };
@@ -2498,13 +2672,12 @@ type Template$1 = {
2498
2672
  contentType?: string;
2499
2673
  id?: number;
2500
2674
  name?: string;
2501
- notificationConfigDetails?: Array<NotificationConfigDetail>;
2502
- objectType?: string;
2675
+ graphQLQuery?: GraphQLQuery;
2676
+ graphqlQueryId?: number;
2503
2677
  outputFieldPermission?: OutputFieldPermission;
2504
- schema?: Schema;
2505
- schemaId?: number;
2506
2678
  subscriptionConfigDetails?: Array<SubscriptionConfigDetail>;
2507
2679
  title?: string;
2680
+ versionId?: number;
2508
2681
  };
2509
2682
  type TemplateInput = {
2510
2683
  channelType?: string;
@@ -2512,7 +2685,7 @@ type TemplateInput = {
2512
2685
  content?: string;
2513
2686
  contentType?: string;
2514
2687
  name?: string;
2515
- objectType?: string;
2688
+ graphqlQueryId?: number;
2516
2689
  schemaId?: number;
2517
2690
  title?: string;
2518
2691
  };
@@ -2528,7 +2701,9 @@ type TemplateServices = {
2528
2701
  /** Get Roles
2529
2702
  * @param p - PagingQueryInput<Role> - Không truyền param sẽ lấy tất cả Role
2530
2703
  */
2531
- getTemplates: (p?: PagingQueryInput<Template$1>) => Promise<{
2704
+ getTemplates: (p: {
2705
+ input: CustomPagingRequestInput;
2706
+ }) => Promise<{
2532
2707
  items: Template$1[];
2533
2708
  totalCount: number;
2534
2709
  }>;
@@ -2544,8 +2719,7 @@ type TemplateServices = {
2544
2719
  id: number;
2545
2720
  }) => Promise<Template$1>;
2546
2721
  getObjectDefinitions: (p?: PagingQueryInput<ObjectDefinition>) => Promise<{
2547
- items: ObjectDefinition[];
2548
- totalCount: number;
2722
+ data: ObjectDefinition[];
2549
2723
  }>;
2550
2724
  createTemplate: (p: {
2551
2725
  input: TemplateInput;
@@ -2553,12 +2727,16 @@ type TemplateServices = {
2553
2727
  updateTemplate: (p: {
2554
2728
  input: TemplateInput;
2555
2729
  id: number;
2730
+ versionId?: number;
2556
2731
  }) => Promise<void>;
2732
+ getGraphQLQueries: (p: CustomPagingRequestInput) => Promise<{
2733
+ items: GraphQLQuery[];
2734
+ totalCount: number;
2735
+ }>;
2557
2736
  };
2558
2737
 
2559
2738
  type TemplateProps = {
2560
2739
  services: TemplateServices;
2561
- objectTypeCodes: ObjectTypeCode[];
2562
2740
  };
2563
2741
  declare function Template(props: TemplateProps): react_jsx_runtime.JSX.Element;
2564
2742
 
@@ -2567,6 +2745,7 @@ type RoleTag$3 = {
2567
2745
  id?: number;
2568
2746
  name?: string;
2569
2747
  workspaceId?: number;
2748
+ versionId?: number;
2570
2749
  };
2571
2750
  type Role$1 = Role;
2572
2751
  type RoleTagInput = {
@@ -2579,17 +2758,15 @@ type RoleTagInput = {
2579
2758
  };
2580
2759
 
2581
2760
  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<{
2761
+ getRoles: (p?: {
2762
+ input: CustomPagingRequestInput;
2763
+ }) => Promise<{
2586
2764
  roles: Role$1[];
2587
2765
  total: number;
2588
2766
  }>;
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<{
2767
+ getRoleTags: (p?: {
2768
+ input: CustomPagingRequestInput;
2769
+ }) => Promise<{
2593
2770
  roleTags: RoleTag$3[];
2594
2771
  total: number;
2595
2772
  }>;
@@ -2608,6 +2785,7 @@ type RoleTagServices = {
2608
2785
  updateRoleTag: (p: {
2609
2786
  input: RoleTagInput;
2610
2787
  id: number;
2788
+ versionId?: number;
2611
2789
  }) => Promise<void>;
2612
2790
  };
2613
2791
 
@@ -2620,6 +2798,7 @@ type Role = {
2620
2798
  name?: string;
2621
2799
  roleTags?: Array<RoleTag$2>;
2622
2800
  workspaceId?: number;
2801
+ versionId?: number;
2623
2802
  };
2624
2803
  type RoleTag$2 = RoleTag$3;
2625
2804
  type RoleInput = {
@@ -2629,17 +2808,15 @@ type RoleInput = {
2629
2808
  };
2630
2809
 
2631
2810
  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<{
2811
+ getRoles: (p?: {
2812
+ input: CustomPagingRequestInput;
2813
+ }) => Promise<{
2636
2814
  roles: Role[];
2637
2815
  total: number;
2638
2816
  }>;
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<{
2817
+ getRoleTags: (p?: {
2818
+ input: CustomPagingRequestInput;
2819
+ }) => Promise<{
2643
2820
  roleTags: RoleTag$2[];
2644
2821
  total: number;
2645
2822
  }>;
@@ -2658,6 +2835,7 @@ type RoleServices = {
2658
2835
  updateRole: (p: {
2659
2836
  input: RoleInput;
2660
2837
  id: number;
2838
+ versionId?: number;
2661
2839
  }) => Promise<void>;
2662
2840
  };
2663
2841
 
@@ -2675,13 +2853,13 @@ type Sharing$1 = {
2675
2853
  name?: string;
2676
2854
  objectFilter?: ObjectFilter;
2677
2855
  objectFilterId: number;
2678
- schema?: Schema$1;
2856
+ schema?: Schema;
2679
2857
  schemaId?: number;
2680
- sharingWorkspaces: Array<SharingWorkspace>;
2681
- totalTargetWorkspace: number;
2858
+ sharingWorkspaces?: Array<SharingWorkspace>;
2682
2859
  workspaceId: number;
2683
2860
  folderSourceDirectoryId?: number;
2684
2861
  key?: string;
2862
+ versionId?: number;
2685
2863
  };
2686
2864
  type ObjectFilter = {
2687
2865
  configType?: string;
@@ -2736,13 +2914,7 @@ type SharingInput = {
2736
2914
  folderSourceDirectoryId?: number;
2737
2915
  targetWorkspaceId?: number;
2738
2916
  sharingWorkspaces?: Array<ObjectDataInputOfSharingWorkspaceInput>;
2739
- };
2740
- type GetPagingInWorkspaceRequestGqlInput = {
2741
- objectTypeCode?: string;
2742
- pageIndex?: number;
2743
- pageSize?: number;
2744
- search?: string;
2745
- workspaceId?: number;
2917
+ versionId?: number;
2746
2918
  };
2747
2919
  interface SharingProps {
2748
2920
  getSharingById: (p: {
@@ -2754,14 +2926,16 @@ interface SharingProps {
2754
2926
  updateWorkspaceSharing: (p: {
2755
2927
  id: number;
2756
2928
  input: SharingInput;
2929
+ versionId?: number;
2757
2930
  }) => Promise<void>;
2758
2931
  getSharings: (p?: {
2759
- GetPagingInWorkspaceRequestGqlInput: GetPagingInWorkspaceRequestGqlInput;
2932
+ input: CustomPagingRequestInput;
2933
+ objectTypeCode?: string;
2760
2934
  }) => Promise<{
2761
2935
  sharings: Sharing$1[];
2762
2936
  total: number;
2763
2937
  }>;
2764
- getSchemas: () => Promise<Schema$1[]>;
2938
+ getSchemas: () => Promise<Schema[]>;
2765
2939
  getWorkspaces: () => Promise<Workspace$3[]>;
2766
2940
  getWorkspaceById: (p: {
2767
2941
  id: number;
@@ -2770,7 +2944,8 @@ interface SharingProps {
2770
2944
  id: number;
2771
2945
  }) => Promise<void>;
2772
2946
  getObjectFilters: () => Promise<ObjectFilter[]>;
2773
- getDirectories: (params?: PagingQueryInput<Directory$3> & {
2947
+ getDirectories: (params?: {
2948
+ input?: CustomPagingRequestInput;
2774
2949
  parentDirectoryId?: number;
2775
2950
  workspaceId?: number;
2776
2951
  depthFromRoot?: number;
@@ -2799,6 +2974,7 @@ type Group$1 = {
2799
2974
  roleAuthens?: RoleAuthens$1[];
2800
2975
  workspaceId?: number;
2801
2976
  isSystem?: boolean;
2977
+ versionId?: number;
2802
2978
  };
2803
2979
  type GroupInput = {
2804
2980
  description?: string;
@@ -2868,13 +3044,16 @@ type User$1 = {
2868
3044
  groups?: number[];
2869
3045
  roleAuthens?: Array<RoleAuthens>;
2870
3046
  username?: string;
3047
+ versionId?: number;
2871
3048
  };
2872
3049
 
2873
3050
  type GroupServices = {
2874
3051
  /** Get RoleTags
2875
3052
  * @param p - PagingQueryInput<RoleTag> - Không truyền param sẽ lấy tất cả RoleTag
2876
3053
  */
2877
- getRoleTags: (p?: PagingQueryInput<RoleTag$1>) => Promise<{
3054
+ getRoleTags: (p?: {
3055
+ input: CustomPagingRequestInput;
3056
+ }) => Promise<{
2878
3057
  roleTags: RoleTag$1[];
2879
3058
  total: number;
2880
3059
  }>;
@@ -2885,10 +3064,9 @@ type GroupServices = {
2885
3064
  users: User$1[];
2886
3065
  total: number;
2887
3066
  }>;
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<{
3067
+ getGroups: (p?: {
3068
+ input: CustomPagingRequestInput;
3069
+ }) => Promise<{
2892
3070
  groups: Group$1[];
2893
3071
  total: number;
2894
3072
  }>;
@@ -2907,6 +3085,7 @@ type GroupServices = {
2907
3085
  updateGroup: (p: {
2908
3086
  input: GroupInput;
2909
3087
  id: number;
3088
+ versionId?: number;
2910
3089
  }) => Promise<void>;
2911
3090
  /** Loading khi lấy dữ liệu */
2912
3091
  isLoading: boolean;
@@ -2928,7 +3107,9 @@ type UserServices = {
2928
3107
  /** Get Users
2929
3108
  * @param p - PagingQueryInput<Users> - Không truyền param sẽ lấy tất cả Users
2930
3109
  */
2931
- getUsers: (p?: PagingQueryInput<User$1>) => Promise<{
3110
+ getUsers: (p?: {
3111
+ input: CustomPagingRequestInput;
3112
+ }) => Promise<{
2932
3113
  users: User$1[];
2933
3114
  total: number;
2934
3115
  }>;
@@ -2943,6 +3124,7 @@ type UserServices = {
2943
3124
  updateUser: (p: {
2944
3125
  user: UserInput;
2945
3126
  id: number;
3127
+ versionId?: number;
2946
3128
  }) => Promise<void>;
2947
3129
  /** Delete User by ID */
2948
3130
  deleteUser: (p: {
@@ -2979,6 +3161,7 @@ type Workflow = {
2979
3161
  description?: string;
2980
3162
  workflowMatrices: Array<WorkflowMatrix>;
2981
3163
  workflowStates: Array<WorkflowState>;
3164
+ versionId?: number;
2982
3165
  };
2983
3166
  type WorkflowMatrix = {
2984
3167
  id: number;
@@ -3001,9 +3184,11 @@ type WorkflowState = {
3001
3184
 
3002
3185
  type WorkflowFeatureProps = {
3003
3186
  getById: (id: number) => Promise<Workflow>;
3004
- getPaging: (queryInput: PagingQueryInput<Workflow>) => Promise<PagingType<Workflow>>;
3187
+ getPaging: (queryInput: {
3188
+ input: CustomPagingRequestInput;
3189
+ }) => Promise<PagingType<Workflow>>;
3005
3190
  create: (workflow: ObjectInputType<Workflow>) => Promise<void>;
3006
- update: (id: number, workflow: ObjectInputType<Workflow>) => Promise<void>;
3191
+ update: (id: number, workflow: ObjectInputType<Workflow>, versionId?: number) => Promise<void>;
3007
3192
  remove: (id: number) => Promise<void>;
3008
3193
  objectTypeCodeMap: {
3009
3194
  value: string;
@@ -3019,7 +3204,8 @@ type DirectoryServices = DirectoryAddOrEditServices$1 & DirectoryPermissionServi
3019
3204
  /** Get Directories
3020
3205
  * @params PagingQueryInput<Directory> - Không truyền param sẽ lấy tất cả
3021
3206
  */
3022
- getDirectories: (params?: PagingQueryInput<Directory> & {
3207
+ getDirectories: (params?: {
3208
+ input?: CustomPagingRequestInput;
3023
3209
  parentDirectoryId?: number;
3024
3210
  workspaceId?: number;
3025
3211
  depthFromRoot?: number;
@@ -3038,7 +3224,7 @@ type DirectorySystemProps = DirectoryServices & {
3038
3224
  currentWorkspace?: CurrentWorkspace;
3039
3225
  objectTypeCodes?: ObjectTypeCode[];
3040
3226
  };
3041
- declare const DirectorySystem: (props: DirectorySystemProps) => react_jsx_runtime.JSX.Element;
3227
+ declare const DirectorySystem: (props: DirectorySystemProps) => react_jsx_runtime.JSX.Element | null;
3042
3228
 
3043
3229
  declare function Sharing(props: SharingProps): react_jsx_runtime.JSX.Element;
3044
3230
 
@@ -3106,7 +3292,8 @@ declare function parseJSON(str: string): any;
3106
3292
  * Xử lý các thao tác số học và toán học một cách tiện lợi.
3107
3293
  * 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
3294
  */
3109
- declare function formatNumber(num: number | bigint | string | undefined): string;
3295
+ type Locale = 'vi' | 'en' | 'ja' | 'th' | 'id';
3296
+ declare function formatNumberByLocale(value?: number | bigint, lang?: string, locale?: string): string;
3110
3297
  declare function roundDecimalNumber(number: any): string | null;
3111
3298
  declare function WMAPEcalculator(data: any): number | "∞";
3112
3299
 
@@ -3132,6 +3319,73 @@ declare function checkValidMacAddress(string?: string): boolean;
3132
3319
  declare function checkValidUrl(url: string | undefined): boolean;
3133
3320
  declare function validateNumber(value?: string | number): boolean;
3134
3321
 
3322
+ /**
3323
+ * Available filter operation types
3324
+ */
3325
+ declare enum FilterOperationType {
3326
+ EQ = "eq",// Equal
3327
+ CONTAINS = "contains",// Contains substring
3328
+ STARTSWITH = "startswith",// Starts with
3329
+ ENDSWITH = "endswith",// Ends with
3330
+ GT = "gt",// Greater than
3331
+ GTE = "gte",// Greater than or equal
3332
+ LT = "lt",// Less than
3333
+ LTE = "lte",// Less than or equal
3334
+ IN = "in",// In array
3335
+ BETWEEN = "between",// Between two values
3336
+ NE = "ne",// Not equal
3337
+ NOTCONTAINS = "notcontains",// Does not contain substring
3338
+ NOTIN = "notin",// Not in array
3339
+ CUSTOM = "custom"
3340
+ }
3341
+ /**
3342
+ * Logical operators for combining filter conditions
3343
+ */
3344
+ declare enum LogicalOperatorType {
3345
+ AND = "and",
3346
+ OR = "or",
3347
+ NOT = "not"
3348
+ }
3349
+ /**
3350
+ * Structure for a single filter item
3351
+ */
3352
+ interface FilterItem {
3353
+ key: string;
3354
+ value: any;
3355
+ type: FilterOperationType | string;
3356
+ isArray?: boolean;
3357
+ }
3358
+ /**
3359
+ * Structure for a filter group that can contain nested conditions
3360
+ */
3361
+ interface FilterGroup {
3362
+ operator: LogicalOperatorType;
3363
+ filters: Array<FilterItem | FilterGroup>;
3364
+ }
3365
+ /**
3366
+ * Filter expression can be either a single item or a group
3367
+ */
3368
+ type FilterExpression = FilterItem | FilterGroup;
3369
+ /**
3370
+ * Converts an array of filter objects to a string condition
3371
+ * @param filters - Array of objects with key, value, and type properties
3372
+ * @param defaultOperator - Default logical operator to use when combining filters (AND or OR)
3373
+ * @returns Object with a 'condition' property containing the string condition and optional 'params' array
3374
+ */
3375
+ declare function convertArrayFiltersToCondition(filters: Array<FilterItem>, defaultOperator?: LogicalOperatorType): {
3376
+ condition: string;
3377
+ params?: string[];
3378
+ } | null;
3379
+ /**
3380
+ * Converts a complex filter expression to a string condition
3381
+ * @param filterExpression - Filter expression (can be nested with logical operators)
3382
+ * @returns Object with a 'condition' property containing the string condition and optional 'params' array
3383
+ */
3384
+ declare function convertFilterExpressionToCondition(filterExpression: FilterExpression): {
3385
+ condition: string;
3386
+ params?: string[];
3387
+ } | null;
3388
+
3135
3389
  type Workspace$1 = {
3136
3390
  customerId?: number;
3137
3391
  contactPhoneNumber?: string;
@@ -3248,4 +3502,4 @@ declare function ThemeProvider(props: {
3248
3502
  };
3249
3503
  }): react_jsx_runtime.JSX.Element;
3250
3504
 
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 };
3505
+ 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 };