awing-library 2.1.2-dev.6 → 2.1.2-dev.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/AWING/DataGrid/interface.d.ts +1 -1
- package/dist/esm/AWING/DatePicker/types.d.ts +4 -2
- package/dist/esm/AWING/DateRangePicker/Container.d.ts +1 -1
- package/dist/esm/AWING/DropDownTreeSelect/components/TreeViewSearch.d.ts +10 -0
- package/dist/esm/AWING/DropDownTreeSelect/components/utils.d.ts +1 -0
- package/dist/esm/AWING/DropDownTreeSelect/index.d.ts +10 -0
- package/dist/esm/AWING/DropDownTreeSelect/type.d.ts +5 -0
- package/dist/esm/AWING/DropDownTreeSelect/utils.d.ts +16 -0
- package/dist/esm/AWING/PageManagement/interface.d.ts +1 -1
- package/dist/esm/AWING/TableEditable/interface.d.ts +5 -1
- package/dist/esm/Commons/Components/ClassicBaseDrawer.d.ts +1 -1
- package/dist/esm/Commons/Components/ClassicDrawer.d.ts +6 -3
- package/dist/esm/Commons/Components/Drawer.d.ts +9 -1
- package/dist/esm/Features/NOTIFICATION/FilterNotification/Constants.d.ts +6 -0
- package/dist/esm/Features/NOTIFICATION/FilterNotification/Container.d.ts +2 -0
- package/dist/esm/Features/NOTIFICATION/FilterNotification/CreateOrEdit.d.ts +2 -0
- package/dist/esm/Features/NOTIFICATION/FilterNotification/Services.d.ts +35 -0
- package/dist/esm/Features/NOTIFICATION/FilterNotification/context.d.ts +11 -0
- package/dist/esm/Features/NOTIFICATION/FilterNotification/index.d.ts +8 -0
- package/dist/esm/Features/NOTIFICATION/FilterNotification/types.d.ts +49 -0
- package/dist/esm/Features/NOTIFICATION/FilterNotification/utils.d.ts +7 -0
- package/dist/esm/Features/NOTIFICATION/NotificationConfig/Services.d.ts +5 -2
- package/dist/esm/Features/NOTIFICATION/NotificationConfig/types.d.ts +1 -0
- package/dist/esm/Features/NOTIFICATION/ObjectFilter/Services.d.ts +5 -5
- package/dist/esm/Features/NOTIFICATION/ObjectFilter/context.d.ts +0 -2
- package/dist/esm/Features/NOTIFICATION/ObjectFilter/index.d.ts +0 -1
- package/dist/esm/Features/NOTIFICATION/ObjectFilter/types.d.ts +1 -0
- package/dist/esm/Features/NOTIFICATION/ObjectFilter/utils.d.ts +1 -1
- package/dist/esm/Features/NOTIFICATION/SubscriptionConfig/Services.d.ts +5 -2
- package/dist/esm/Features/NOTIFICATION/SubscriptionConfig/types.d.ts +9 -8
- package/dist/esm/Features/NOTIFICATION/Template/Services.d.ts +11 -4
- package/dist/esm/Features/NOTIFICATION/Template/context.d.ts +0 -3
- package/dist/esm/Features/NOTIFICATION/Template/hooks/useCreateOrEdit.d.ts +5 -5
- package/dist/esm/Features/NOTIFICATION/Template/index.d.ts +1 -3
- package/dist/esm/Features/NOTIFICATION/Template/types.d.ts +5 -5
- package/dist/esm/Features/NOTIFICATION/components/TestingTool/types.d.ts +2 -0
- package/dist/esm/Features/NOTIFICATION/components/TestingTool/utils.d.ts +1 -0
- package/dist/esm/Features/NOTIFICATION/index.d.ts +1 -0
- package/dist/esm/Features/NOTIFICATION/types.d.ts +14 -0
- package/dist/esm/Features/SYSTEM/Directory/Services.d.ts +3 -2
- package/dist/esm/Features/SYSTEM/Directory/index.d.ts +1 -1
- package/dist/esm/Features/SYSTEM/Group/Services.d.ts +8 -6
- package/dist/esm/Features/SYSTEM/Group/types.d.ts +1 -0
- package/dist/esm/Features/SYSTEM/Role/Services.d.ts +8 -9
- package/dist/esm/Features/SYSTEM/Role/types.d.ts +1 -0
- package/dist/esm/Features/SYSTEM/RoleTag/Services.d.ts +8 -9
- package/dist/esm/Features/SYSTEM/RoleTag/types.d.ts +1 -0
- package/dist/esm/Features/SYSTEM/Schema/Atoms.d.ts +18 -3
- package/dist/esm/Features/SYSTEM/Schema/Services.d.ts +5 -8
- package/dist/esm/Features/SYSTEM/Schema/types.d.ts +1 -0
- package/dist/esm/Features/SYSTEM/Sharing/Types.d.ts +9 -5
- package/dist/esm/Features/SYSTEM/User/Services.d.ts +5 -2
- package/dist/esm/Features/SYSTEM/User/types.d.ts +1 -0
- package/dist/esm/Features/SYSTEM/Workflow/CreateOrEdit.d.ts +1 -1
- package/dist/esm/Features/SYSTEM/Workflow/container.d.ts +4 -2
- package/dist/esm/Features/SYSTEM/Workflow/index.d.ts +5 -3
- package/dist/esm/Features/SYSTEM/Workflow/types.d.ts +1 -0
- package/dist/esm/Features/types.d.ts +18 -0
- package/dist/esm/Helpers/index.d.ts +1 -0
- package/dist/esm/Helpers/number.d.ts +2 -1
- package/dist/esm/Helpers/query.d.ts +161 -0
- package/dist/esm/index.js +5541 -4978
- package/dist/esm/translate/resources/en/translation.json +7 -5
- package/dist/esm/translate/resources/id/translation.json +7 -5
- package/dist/esm/translate/resources/ja/translation.json +7 -5
- package/dist/esm/translate/resources/th/translation.json +7 -5
- package/dist/esm/translate/resources/vi/translation.json +10 -6
- package/dist/index.d.ts +297 -124
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,8 @@ import { IMonacoEditorProps as IMonacoEditorProps$1 } from 'AWING/MonacoEditor';
|
|
|
22
22
|
import { IMultipleHierarchicalChoiceInput as IMultipleHierarchicalChoiceInput$1, IMultipleHierarchicalChoiceProps as IMultipleHierarchicalChoiceProps$1 } from 'AWING/MultipleHierarchicalChoice';
|
|
23
23
|
import { DataGridSortType as DataGridSortType$1 } from 'Commons/Enums';
|
|
24
24
|
import { DatePickerProps as DatePickerProps$1 } from '@mui/x-date-pickers/DatePicker';
|
|
25
|
-
import {
|
|
25
|
+
import { Dayjs } from 'dayjs';
|
|
26
|
+
import { ObjectInputType, CustomPagingRequestInput, PagingQueryInput, EnumTypeConvert, DateTime, ObjectTypeCode, PagingType } from 'Features/types';
|
|
26
27
|
export { ObjectTypeCode, PagingQueryInput } from 'Features/types';
|
|
27
28
|
import { SchemaServices as SchemaServices$1 } from 'Features/SYSTEM/Schema';
|
|
28
29
|
import { CurrentWorkspace as CurrentWorkspace$1, Workspace as Workspace$4 } from 'Features/SYSTEM/types';
|
|
@@ -41,7 +42,7 @@ import * as i18next from 'i18next';
|
|
|
41
42
|
import { i18n as i18n$1 } from 'i18next';
|
|
42
43
|
import { Timestamp as Timestamp$1 } from 'Commons/Types';
|
|
43
44
|
import { ChannelType as ChannelType$1, ObjectConfigType, ContentType } from 'Features/NOTIFICATION/enums';
|
|
44
|
-
import { OutputFieldPermission as OutputFieldPermission$
|
|
45
|
+
import { OutputFieldPermission as OutputFieldPermission$4 } from 'Features/NOTIFICATION/SubscriptionConfig';
|
|
45
46
|
import { Atom } from 'jotai';
|
|
46
47
|
import { Directory as Directory$3 } from 'AWING/index';
|
|
47
48
|
import { DirectoryAddOrEditServices as DirectoryAddOrEditServices$1 } from 'AWING/DirectoryForm';
|
|
@@ -724,7 +725,7 @@ interface RowActionDefinition<T> {
|
|
|
724
725
|
/**
|
|
725
726
|
* Hành động thực hiện khi nhấn nút
|
|
726
727
|
*/
|
|
727
|
-
action(id: string | number): void;
|
|
728
|
+
action(id: string | number, row?: T): void;
|
|
728
729
|
isShouldHideActions?: (row: T) => boolean;
|
|
729
730
|
sx?: SxProps<Theme>;
|
|
730
731
|
}
|
|
@@ -848,8 +849,9 @@ interface DateRangePickerOldProps {
|
|
|
848
849
|
|
|
849
850
|
declare function Container$3(props: DateRangePickerOldProps): react_jsx_runtime.JSX.Element;
|
|
850
851
|
|
|
851
|
-
interface DatePickerProps extends DatePickerProps$1 {
|
|
852
|
-
|
|
852
|
+
interface DatePickerProps extends Omit<DatePickerProps$1, 'value' | 'onChange'> {
|
|
853
|
+
value?: Dayjs | null;
|
|
854
|
+
onChange?: (value: Dayjs | null) => void;
|
|
853
855
|
}
|
|
854
856
|
|
|
855
857
|
declare const Container$2: (props: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -872,7 +874,7 @@ interface DateRangePickerProps {
|
|
|
872
874
|
endDate: Date;
|
|
873
875
|
};
|
|
874
876
|
onChange: (dateRange: DateRange) => void;
|
|
875
|
-
textFieldProps?: Pick<TextFieldProps, 'size' | 'fullWidth' | 'classes' | 'className' | 'sx'>;
|
|
877
|
+
textFieldProps?: Pick<TextFieldProps, 'size' | 'fullWidth' | 'classes' | 'className' | 'sx' | 'required' | 'error' | 'helperText' | 'disabled'>;
|
|
876
878
|
options?: OptionsDateRangePickerProps;
|
|
877
879
|
variant?: 'standard' | 'outlined' | 'filled';
|
|
878
880
|
}
|
|
@@ -981,7 +983,7 @@ type DirectoryInput = ObjectInputType<{
|
|
|
981
983
|
|
|
982
984
|
declare const CreateDirectory: (props: DirectoryProps) => react_jsx_runtime.JSX.Element;
|
|
983
985
|
|
|
984
|
-
type ObjectDefinition$
|
|
986
|
+
type ObjectDefinition$5 = {
|
|
985
987
|
id?: number;
|
|
986
988
|
objectTypeCode?: string;
|
|
987
989
|
fieldName?: string;
|
|
@@ -994,34 +996,31 @@ type SchemaObjectDefinition = {
|
|
|
994
996
|
clone?: SchemaObjectDefinition;
|
|
995
997
|
id?: number;
|
|
996
998
|
isReadOnly?: boolean;
|
|
997
|
-
objectDefinition?: ObjectDefinition$
|
|
999
|
+
objectDefinition?: ObjectDefinition$5;
|
|
998
1000
|
objectDefinitionId?: number;
|
|
999
1001
|
schemaId?: number;
|
|
1000
1002
|
};
|
|
1001
|
-
type Schema
|
|
1003
|
+
type Schema = {
|
|
1002
1004
|
id?: number;
|
|
1003
1005
|
name?: string;
|
|
1004
1006
|
objectTypeCode?: string;
|
|
1005
1007
|
schemaObjectDefinitions?: Array<SchemaObjectDefinition>;
|
|
1006
1008
|
workspaceId?: number;
|
|
1007
1009
|
isRoot?: boolean;
|
|
1010
|
+
versionId?: number;
|
|
1008
1011
|
};
|
|
1009
|
-
type SchemaInput = ObjectInputType<Schema
|
|
1012
|
+
type SchemaInput = ObjectInputType<Schema>;
|
|
1010
1013
|
|
|
1011
1014
|
type SchemaServices = {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
items: Schema$1[];
|
|
1015
|
+
getSchemas: (p?: {
|
|
1016
|
+
input: CustomPagingRequestInput;
|
|
1017
|
+
}) => Promise<{
|
|
1018
|
+
items: Schema[];
|
|
1017
1019
|
total: number;
|
|
1018
1020
|
}>;
|
|
1019
|
-
/** Get Schemas
|
|
1020
|
-
* @param p - PagingQueryInput<Schema> - Không truyền param sẽ lấy tất cả Schema
|
|
1021
|
-
*/
|
|
1022
1021
|
getSchemaById: (p: {
|
|
1023
1022
|
id: number;
|
|
1024
|
-
}) => Promise<Schema
|
|
1023
|
+
}) => Promise<Schema>;
|
|
1025
1024
|
/** Delete Schema */
|
|
1026
1025
|
deleteSchema: (p: {
|
|
1027
1026
|
id: number;
|
|
@@ -1029,8 +1028,8 @@ type SchemaServices = {
|
|
|
1029
1028
|
/** Get Object Definition
|
|
1030
1029
|
* @param p - PagingQueryInput<ObjectDefinition> - Không truyền param sẽ lấy tất cả ObjectDefinition
|
|
1031
1030
|
*/
|
|
1032
|
-
getObjectDefinitions: (p?: PagingQueryInput<ObjectDefinition$
|
|
1033
|
-
items: ObjectDefinition$
|
|
1031
|
+
getObjectDefinitions: (p?: PagingQueryInput<ObjectDefinition$5>) => Promise<{
|
|
1032
|
+
items: ObjectDefinition$5[];
|
|
1034
1033
|
total: number;
|
|
1035
1034
|
}>;
|
|
1036
1035
|
/** Creat new Schema */
|
|
@@ -1041,6 +1040,7 @@ type SchemaServices = {
|
|
|
1041
1040
|
updateSchema: (p: {
|
|
1042
1041
|
input: SchemaInput;
|
|
1043
1042
|
id: number;
|
|
1043
|
+
versionId?: number;
|
|
1044
1044
|
}) => Promise<void>;
|
|
1045
1045
|
};
|
|
1046
1046
|
|
|
@@ -1054,12 +1054,12 @@ type CurrentWorkspace = {
|
|
|
1054
1054
|
name?: string;
|
|
1055
1055
|
type?: string;
|
|
1056
1056
|
url?: string;
|
|
1057
|
-
defaultSchemas?: Schema
|
|
1057
|
+
defaultSchemas?: Schema[];
|
|
1058
1058
|
};
|
|
1059
1059
|
type Workspace$3 = {
|
|
1060
1060
|
customerId?: number;
|
|
1061
1061
|
customerType?: string;
|
|
1062
|
-
defaultSchemas?: Array<Schema
|
|
1062
|
+
defaultSchemas?: Array<Schema>;
|
|
1063
1063
|
description?: string;
|
|
1064
1064
|
id?: number;
|
|
1065
1065
|
isJoinNetwork?: boolean;
|
|
@@ -1540,7 +1540,7 @@ interface PageManagementProps<T> extends CombinedProps<T> {
|
|
|
1540
1540
|
loading: boolean;
|
|
1541
1541
|
onCreateButtonClick?: () => void;
|
|
1542
1542
|
onCreateFolderButtonClick?: () => void;
|
|
1543
|
-
onDelete?: (id: ReturnType<NonNullable<this['getRowId']
|
|
1543
|
+
onDelete?: (id: ReturnType<NonNullable<this['getRowId']>>, row?: T) => Promise<void>;
|
|
1544
1544
|
showNotificationSuccess?: () => void;
|
|
1545
1545
|
confirmDelete?: (f: () => void) => void;
|
|
1546
1546
|
customActions?: ReactNode;
|
|
@@ -1745,7 +1745,7 @@ interface ColumnDefinition<T extends object> {
|
|
|
1745
1745
|
type TableEditableProps<T> = {
|
|
1746
1746
|
columnDefinitions: Array<ColumnDefinition<Partial<T>>>;
|
|
1747
1747
|
items: Array<Partial<T>>;
|
|
1748
|
-
onChange(newData: Array<Partial<T>>, dataValid: boolean): void;
|
|
1748
|
+
onChange(newData: Array<Partial<T>>, dataValid: boolean, fieldName?: keyof T): void;
|
|
1749
1749
|
getRowId?(obj: Partial<T>): number;
|
|
1750
1750
|
selected?: number[];
|
|
1751
1751
|
onSelectedChange?(ids: number[]): void;
|
|
@@ -1755,6 +1755,10 @@ type TableEditableProps<T> = {
|
|
|
1755
1755
|
spanningRows?: ReactNode[];
|
|
1756
1756
|
selectionActions?: SelectionActionDefinition[];
|
|
1757
1757
|
mergeRowsBy?: string;
|
|
1758
|
+
observation?: {
|
|
1759
|
+
objObserve: Array<keyof T>;
|
|
1760
|
+
callback: (fieldName?: keyof T, columnValue?: unknown, index?: number) => void;
|
|
1761
|
+
}[];
|
|
1758
1762
|
};
|
|
1759
1763
|
interface TopBarActionsProps {
|
|
1760
1764
|
selected: number[];
|
|
@@ -1838,13 +1842,20 @@ interface ModalDrawerProps extends Omit<DrawerBaseProps, 'open'> {
|
|
|
1838
1842
|
onSubmit?: () => Promise<any> | void;
|
|
1839
1843
|
onClose?: () => void;
|
|
1840
1844
|
}
|
|
1845
|
+
interface DrawerHandle {
|
|
1846
|
+
handleClose: () => void;
|
|
1847
|
+
handleSubmit: () => void;
|
|
1848
|
+
closeDrawer: (action?: string) => void;
|
|
1849
|
+
}
|
|
1841
1850
|
declare const enum CloseAction {
|
|
1842
1851
|
Reload = "Reload",
|
|
1843
1852
|
Close = "Close",
|
|
1844
1853
|
ReloadDirectory = "ReloadDirectory"
|
|
1845
1854
|
}
|
|
1846
1855
|
|
|
1847
|
-
declare const DrawerWrapper: (props: ModalDrawerProps
|
|
1856
|
+
declare const DrawerWrapper: (props: ModalDrawerProps & {
|
|
1857
|
+
ref?: React__default.Ref<DrawerHandle>;
|
|
1858
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1848
1859
|
|
|
1849
1860
|
interface EnhancedDialogProps {
|
|
1850
1861
|
title?: string;
|
|
@@ -1929,7 +1940,7 @@ type Timestamp = {
|
|
|
1929
1940
|
seconds: number;
|
|
1930
1941
|
nanos?: number;
|
|
1931
1942
|
};
|
|
1932
|
-
type ObjectDefinition$
|
|
1943
|
+
type ObjectDefinition$4 = {
|
|
1933
1944
|
id: number;
|
|
1934
1945
|
objectTypeCode?: string;
|
|
1935
1946
|
fieldName?: string;
|
|
@@ -2080,7 +2091,7 @@ interface PagedList_1OfNotificationMessage {
|
|
|
2080
2091
|
|
|
2081
2092
|
declare const Notifications: (props: LayoutNotificationProps) => react_jsx_runtime.JSX.Element;
|
|
2082
2093
|
|
|
2083
|
-
type NotificationConfigDetail$
|
|
2094
|
+
type NotificationConfigDetail$1 = {
|
|
2084
2095
|
channelType?: string;
|
|
2085
2096
|
email?: string;
|
|
2086
2097
|
objectFilterId?: number;
|
|
@@ -2095,7 +2106,7 @@ type SubscriptionConfig$1 = {
|
|
|
2095
2106
|
id: number;
|
|
2096
2107
|
name?: string;
|
|
2097
2108
|
objectType: string;
|
|
2098
|
-
outputFieldPermission?: OutputFieldPermission$
|
|
2109
|
+
outputFieldPermission?: OutputFieldPermission$4;
|
|
2099
2110
|
scheduleExpression: string;
|
|
2100
2111
|
scheduleIntervalDaysOfMonth?: string;
|
|
2101
2112
|
scheduleIntervalDaysOfWeek?: string;
|
|
@@ -2142,7 +2153,7 @@ type UserGroup = {
|
|
|
2142
2153
|
description?: string;
|
|
2143
2154
|
id: number;
|
|
2144
2155
|
name?: string;
|
|
2145
|
-
notificationConfigDetails: Array<NotificationConfigDetail$
|
|
2156
|
+
notificationConfigDetails: Array<NotificationConfigDetail$1>;
|
|
2146
2157
|
roleAuthens: Array<RoleAuthen>;
|
|
2147
2158
|
subscriptionConfigDetails: Array<SubscriptionConfigDetail$3>;
|
|
2148
2159
|
userGroupDetails: Array<UserGroupDetail>;
|
|
@@ -2155,8 +2166,8 @@ type ObjectFilter$2 = {
|
|
|
2155
2166
|
logicalExpression?: string;
|
|
2156
2167
|
objectTypeCode?: string;
|
|
2157
2168
|
name?: string;
|
|
2158
|
-
notificationConfigDetails?: Array<NotificationConfigDetail$
|
|
2159
|
-
outputFieldPermission?: OutputFieldPermission$
|
|
2169
|
+
notificationConfigDetails?: Array<NotificationConfigDetail$1>;
|
|
2170
|
+
outputFieldPermission?: OutputFieldPermission$4;
|
|
2160
2171
|
subscriptionConfigDetails?: Array<SubscriptionConfigDetail$3>;
|
|
2161
2172
|
workspaceSharings?: Array<WorkspaceSharing$1>;
|
|
2162
2173
|
};
|
|
@@ -2177,18 +2188,18 @@ type WorkflowState$1 = {
|
|
|
2177
2188
|
value?: number;
|
|
2178
2189
|
workflowId?: number;
|
|
2179
2190
|
};
|
|
2180
|
-
type ObjectDefinition$
|
|
2191
|
+
type ObjectDefinition$3 = {
|
|
2181
2192
|
fieldName?: string;
|
|
2182
2193
|
fieldPath?: string;
|
|
2183
|
-
|
|
2194
|
+
baseObjectTypeCode?: string;
|
|
2184
2195
|
};
|
|
2185
|
-
type ObjectDefinitionWithPermission$
|
|
2196
|
+
type ObjectDefinitionWithPermission$3 = {
|
|
2186
2197
|
permission?: number;
|
|
2187
|
-
objectDefinition?: ObjectDefinition$
|
|
2198
|
+
objectDefinition?: ObjectDefinition$3;
|
|
2188
2199
|
};
|
|
2189
|
-
type OutputFieldPermission$
|
|
2200
|
+
type OutputFieldPermission$3 = {
|
|
2190
2201
|
currentWorkflowState?: WorkflowState$1;
|
|
2191
|
-
objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$
|
|
2202
|
+
objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$3>;
|
|
2192
2203
|
targetWorkflowStates?: Array<WorkflowState$1>;
|
|
2193
2204
|
};
|
|
2194
2205
|
type SubscriptionConfigDetail$2 = {
|
|
@@ -2205,7 +2216,7 @@ type SubscriptionConfigDetail$2 = {
|
|
|
2205
2216
|
type SubscriptionConfigsType = {
|
|
2206
2217
|
id?: number;
|
|
2207
2218
|
name?: string;
|
|
2208
|
-
|
|
2219
|
+
baseObjectType?: string;
|
|
2209
2220
|
scheduleExpression?: string;
|
|
2210
2221
|
scheduleIntervalDaysOfMonth?: string;
|
|
2211
2222
|
scheduleIntervalDaysOfWeek?: string;
|
|
@@ -2216,7 +2227,8 @@ type SubscriptionConfigsType = {
|
|
|
2216
2227
|
status?: boolean;
|
|
2217
2228
|
scheduleType?: ScheduleType;
|
|
2218
2229
|
details?: Array<SubscriptionConfigDetail$2>;
|
|
2219
|
-
outputFieldPermission?: OutputFieldPermission$
|
|
2230
|
+
outputFieldPermission?: OutputFieldPermission$3;
|
|
2231
|
+
versionId?: number;
|
|
2220
2232
|
};
|
|
2221
2233
|
type SubscriptionConfigDetailRequestGqlInput = {
|
|
2222
2234
|
channelType?: string;
|
|
@@ -2233,7 +2245,7 @@ type KeyValueSubscriptionConfigDetailRequestGqlInput = {
|
|
|
2233
2245
|
};
|
|
2234
2246
|
type SubscriptionConfigRequestGqlInput = {
|
|
2235
2247
|
name?: string;
|
|
2236
|
-
|
|
2248
|
+
baseObjectType?: string;
|
|
2237
2249
|
scheduleExpression?: string;
|
|
2238
2250
|
scheduleIntervalDaysOfMonth?: string;
|
|
2239
2251
|
scheduleIntervalDaysOfWeek?: string;
|
|
@@ -2249,7 +2261,9 @@ type SubscriptionConfigRequestGqlInput = {
|
|
|
2249
2261
|
};
|
|
2250
2262
|
|
|
2251
2263
|
type SubscriptionConfigServices = {
|
|
2252
|
-
getSubscriptionConfigs: (p
|
|
2264
|
+
getSubscriptionConfigs: (p: {
|
|
2265
|
+
input: CustomPagingRequestInput;
|
|
2266
|
+
}) => Promise<{
|
|
2253
2267
|
items: SubscriptionConfigsType[];
|
|
2254
2268
|
total: number;
|
|
2255
2269
|
}>;
|
|
@@ -2265,6 +2279,7 @@ type SubscriptionConfigServices = {
|
|
|
2265
2279
|
updateSubscriptionConfig: (p: {
|
|
2266
2280
|
input: SubscriptionConfigRequestGqlInput;
|
|
2267
2281
|
id: number;
|
|
2282
|
+
versionId?: number;
|
|
2268
2283
|
}) => Promise<void>;
|
|
2269
2284
|
getObjectFilter: () => Promise<{
|
|
2270
2285
|
items: ObjectFilter$2[];
|
|
@@ -2289,15 +2304,6 @@ declare function SubscriptionConfig(props: {
|
|
|
2289
2304
|
objectTypeCodes: ObjectTypeCode[];
|
|
2290
2305
|
}): react_jsx_runtime.JSX.Element;
|
|
2291
2306
|
|
|
2292
|
-
type NotificationConfig$1 = {
|
|
2293
|
-
id?: number;
|
|
2294
|
-
name?: string;
|
|
2295
|
-
baseObjectType?: string;
|
|
2296
|
-
transactionType?: string;
|
|
2297
|
-
status?: boolean;
|
|
2298
|
-
details?: Array<NotificationConfigDetail$2>;
|
|
2299
|
-
outputFieldPermission?: OutputFieldPermission$2;
|
|
2300
|
-
};
|
|
2301
2307
|
declare enum ChannelType {
|
|
2302
2308
|
Email = "EMAIL",
|
|
2303
2309
|
InApp = "IN_APP",
|
|
@@ -2332,12 +2338,15 @@ type NotificationConfigType = {
|
|
|
2332
2338
|
baseObjectType?: string;
|
|
2333
2339
|
transactionType?: string;
|
|
2334
2340
|
status?: boolean;
|
|
2335
|
-
details?: NotificationConfigDetail$
|
|
2336
|
-
outputFieldPermission?: OutputFieldPermission$
|
|
2341
|
+
details?: NotificationConfigDetail$1[];
|
|
2342
|
+
outputFieldPermission?: OutputFieldPermission$3;
|
|
2343
|
+
versionId?: number;
|
|
2337
2344
|
};
|
|
2338
2345
|
|
|
2339
2346
|
type NotificationConfigServices = {
|
|
2340
|
-
getNotificationConfigs: (p
|
|
2347
|
+
getNotificationConfigs: (p: {
|
|
2348
|
+
input: CustomPagingRequestInput;
|
|
2349
|
+
}) => Promise<{
|
|
2341
2350
|
items: NotificationConfigType[];
|
|
2342
2351
|
total: number;
|
|
2343
2352
|
}>;
|
|
@@ -2369,6 +2378,7 @@ type NotificationConfigServices = {
|
|
|
2369
2378
|
updateNotificationConfig: (p: {
|
|
2370
2379
|
notificationConfig: NotificationConfigInput;
|
|
2371
2380
|
id: number;
|
|
2381
|
+
versionId?: number;
|
|
2372
2382
|
}) => Promise<void>;
|
|
2373
2383
|
};
|
|
2374
2384
|
|
|
@@ -2378,21 +2388,21 @@ type NotificationConfigProps = NotificationConfigServices & {
|
|
|
2378
2388
|
};
|
|
2379
2389
|
declare function NotificationConfig(props: NotificationConfigProps): react_jsx_runtime.JSX.Element;
|
|
2380
2390
|
|
|
2381
|
-
type NotificationConfigDetail
|
|
2391
|
+
type NotificationConfigDetail = {
|
|
2382
2392
|
id?: number;
|
|
2383
2393
|
};
|
|
2384
|
-
type ObjectDefinition$
|
|
2394
|
+
type ObjectDefinition$2 = {
|
|
2385
2395
|
fieldName?: string;
|
|
2386
2396
|
fieldPath?: string;
|
|
2387
2397
|
id?: number;
|
|
2388
2398
|
objectTypeCode?: string;
|
|
2389
2399
|
};
|
|
2390
|
-
type ObjectDefinitionWithPermission$
|
|
2391
|
-
objectDefinition?: ObjectDefinition$
|
|
2400
|
+
type ObjectDefinitionWithPermission$2 = {
|
|
2401
|
+
objectDefinition?: ObjectDefinition$2;
|
|
2392
2402
|
permission?: number;
|
|
2393
2403
|
};
|
|
2394
|
-
type OutputFieldPermission$
|
|
2395
|
-
objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$
|
|
2404
|
+
type OutputFieldPermission$2 = {
|
|
2405
|
+
objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$2>;
|
|
2396
2406
|
};
|
|
2397
2407
|
type SubscriptionConfigDetail$1 = {
|
|
2398
2408
|
id?: number;
|
|
@@ -2407,10 +2417,11 @@ type ObjectFilter$1 = {
|
|
|
2407
2417
|
logicalExpression?: string;
|
|
2408
2418
|
name?: string;
|
|
2409
2419
|
objectTypeCode?: string;
|
|
2410
|
-
outputFieldPermission?: OutputFieldPermission$
|
|
2411
|
-
notificationConfigDetails?: Array<NotificationConfigDetail
|
|
2420
|
+
outputFieldPermission?: OutputFieldPermission$2;
|
|
2421
|
+
notificationConfigDetails?: Array<NotificationConfigDetail>;
|
|
2412
2422
|
subscriptionConfigDetails?: Array<SubscriptionConfigDetail$1>;
|
|
2413
2423
|
workspaceSharings?: Array<WorkspaceSharing>;
|
|
2424
|
+
versionId?: number;
|
|
2414
2425
|
};
|
|
2415
2426
|
type ObjectFilterInput = {
|
|
2416
2427
|
configType?: string;
|
|
@@ -2418,7 +2429,7 @@ type ObjectFilterInput = {
|
|
|
2418
2429
|
name?: string;
|
|
2419
2430
|
objectTypeCode?: string;
|
|
2420
2431
|
};
|
|
2421
|
-
type LogicExpressionsStructure = {
|
|
2432
|
+
type LogicExpressionsStructure$1 = {
|
|
2422
2433
|
objectStructures?: {
|
|
2423
2434
|
[key: string]: ObjectStructure$1[];
|
|
2424
2435
|
};
|
|
@@ -2426,10 +2437,9 @@ type LogicExpressionsStructure = {
|
|
|
2426
2437
|
};
|
|
2427
2438
|
|
|
2428
2439
|
type ObjectFilterServices = {
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
getObjectFilters: (p: PagingQueryInput<ObjectFilter$1>) => Promise<{
|
|
2440
|
+
getObjectFilters: (p: {
|
|
2441
|
+
input: CustomPagingRequestInput;
|
|
2442
|
+
}) => Promise<{
|
|
2433
2443
|
items: ObjectFilter$1[];
|
|
2434
2444
|
totalCount: number;
|
|
2435
2445
|
}>;
|
|
@@ -2451,18 +2461,104 @@ type ObjectFilterServices = {
|
|
|
2451
2461
|
updateObjectFilter: (p: {
|
|
2452
2462
|
input: ObjectFilterInput;
|
|
2453
2463
|
id: number;
|
|
2464
|
+
versionId?: number;
|
|
2454
2465
|
}) => Promise<void>;
|
|
2455
2466
|
};
|
|
2456
2467
|
|
|
2457
|
-
declare const NotificationFilter: (props: ObjectFilterServices & {
|
|
2468
|
+
declare const NotificationFilter$1: (props: ObjectFilterServices & {
|
|
2458
2469
|
objectTyeCodes: EnumTypeConvert[];
|
|
2459
|
-
|
|
2460
|
-
logicExpressionsStructure: LogicExpressionsStructure;
|
|
2470
|
+
logicExpressionsStructure: LogicExpressionsStructure$1;
|
|
2461
2471
|
}) => react_jsx_runtime.JSX.Element;
|
|
2462
2472
|
|
|
2463
|
-
type
|
|
2473
|
+
type GraphQLQuery = {
|
|
2464
2474
|
id?: number;
|
|
2475
|
+
name?: string;
|
|
2476
|
+
baseObjectType?: string;
|
|
2477
|
+
directoryPath?: string;
|
|
2478
|
+
queryString?: string;
|
|
2479
|
+
resultExpression?: string;
|
|
2480
|
+
graphqlVariables?: {
|
|
2481
|
+
id?: string;
|
|
2482
|
+
name?: string;
|
|
2483
|
+
type?: string;
|
|
2484
|
+
value?: string;
|
|
2485
|
+
};
|
|
2486
|
+
};
|
|
2487
|
+
|
|
2488
|
+
type ObjectDefinition$1 = {
|
|
2489
|
+
fieldName?: string;
|
|
2490
|
+
fieldPath?: string;
|
|
2491
|
+
id?: number;
|
|
2492
|
+
objectTypeCode?: string;
|
|
2493
|
+
};
|
|
2494
|
+
type ObjectDefinitionWithPermission$1 = {
|
|
2495
|
+
objectDefinition?: ObjectDefinition$1;
|
|
2496
|
+
permission?: number;
|
|
2497
|
+
};
|
|
2498
|
+
type OutputFieldPermission$1 = {
|
|
2499
|
+
objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$1>;
|
|
2500
|
+
};
|
|
2501
|
+
type NotificationFilter = {
|
|
2502
|
+
directoryPath?: string;
|
|
2503
|
+
id?: number;
|
|
2504
|
+
graphQLQuery?: GraphQLQuery;
|
|
2505
|
+
logicalExpression?: string;
|
|
2506
|
+
name?: string;
|
|
2507
|
+
outputFieldPermission?: OutputFieldPermission$1;
|
|
2508
|
+
versionId?: number;
|
|
2509
|
+
};
|
|
2510
|
+
type NotificationFilterInput = {
|
|
2511
|
+
graphqlQueryId?: number;
|
|
2512
|
+
id?: number;
|
|
2513
|
+
logicalExpression?: string;
|
|
2514
|
+
name?: string;
|
|
2515
|
+
parentDirectoryPath?: string;
|
|
2516
|
+
sagaTransactionId?: number;
|
|
2465
2517
|
};
|
|
2518
|
+
type LogicExpressionsStructure = {
|
|
2519
|
+
objectStructures?: {
|
|
2520
|
+
[key: string]: ObjectStructure$1[];
|
|
2521
|
+
};
|
|
2522
|
+
functionStructures?: FunctionStructure$1[];
|
|
2523
|
+
};
|
|
2524
|
+
|
|
2525
|
+
type NotificationFilterServices = {
|
|
2526
|
+
getNotificationFilters: (p: {
|
|
2527
|
+
input: CustomPagingRequestInput;
|
|
2528
|
+
}) => Promise<{
|
|
2529
|
+
items: NotificationFilter[];
|
|
2530
|
+
totalCount: number;
|
|
2531
|
+
}>;
|
|
2532
|
+
/** Delete */
|
|
2533
|
+
deleteNotificationFilter: (p: {
|
|
2534
|
+
id: number;
|
|
2535
|
+
}) => Promise<void>;
|
|
2536
|
+
/** Get by Id */
|
|
2537
|
+
getNotificationFilterById: (p: {
|
|
2538
|
+
id: number;
|
|
2539
|
+
}) => Promise<{
|
|
2540
|
+
notificationFilter?: NotificationFilter;
|
|
2541
|
+
}>;
|
|
2542
|
+
/** Create */
|
|
2543
|
+
createNotificationFilter: (p: {
|
|
2544
|
+
input: NotificationFilterInput;
|
|
2545
|
+
}) => Promise<void>;
|
|
2546
|
+
/** Update */
|
|
2547
|
+
updateNotificationFilter: (p: {
|
|
2548
|
+
input: NotificationFilterInput;
|
|
2549
|
+
id: number;
|
|
2550
|
+
versionId?: number;
|
|
2551
|
+
}) => Promise<void>;
|
|
2552
|
+
getGraphQLQueries: (p: CustomPagingRequestInput) => Promise<{
|
|
2553
|
+
items: GraphQLQuery[];
|
|
2554
|
+
totalCount: number;
|
|
2555
|
+
}>;
|
|
2556
|
+
};
|
|
2557
|
+
|
|
2558
|
+
declare const FilterNotification: (props: NotificationFilterServices & {
|
|
2559
|
+
logicExpressionsStructure: LogicExpressionsStructure;
|
|
2560
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2561
|
+
|
|
2466
2562
|
type SchemaDetail = {
|
|
2467
2563
|
id?: number;
|
|
2468
2564
|
};
|
|
@@ -2483,9 +2579,6 @@ type ObjectDefinitionWithPermission = {
|
|
|
2483
2579
|
type OutputFieldPermission = {
|
|
2484
2580
|
objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission>;
|
|
2485
2581
|
};
|
|
2486
|
-
type Schema = {
|
|
2487
|
-
id?: number;
|
|
2488
|
-
};
|
|
2489
2582
|
type SubscriptionConfigDetail = {
|
|
2490
2583
|
id?: number;
|
|
2491
2584
|
};
|
|
@@ -2496,13 +2589,12 @@ type Template$1 = {
|
|
|
2496
2589
|
contentType?: string;
|
|
2497
2590
|
id?: number;
|
|
2498
2591
|
name?: string;
|
|
2499
|
-
|
|
2500
|
-
|
|
2592
|
+
graphQLQuery?: GraphQLQuery;
|
|
2593
|
+
graphqlQueryId?: number;
|
|
2501
2594
|
outputFieldPermission?: OutputFieldPermission;
|
|
2502
|
-
schema?: Schema;
|
|
2503
|
-
schemaId?: number;
|
|
2504
2595
|
subscriptionConfigDetails?: Array<SubscriptionConfigDetail>;
|
|
2505
2596
|
title?: string;
|
|
2597
|
+
versionId?: number;
|
|
2506
2598
|
};
|
|
2507
2599
|
type TemplateInput = {
|
|
2508
2600
|
channelType?: string;
|
|
@@ -2510,7 +2602,7 @@ type TemplateInput = {
|
|
|
2510
2602
|
content?: string;
|
|
2511
2603
|
contentType?: string;
|
|
2512
2604
|
name?: string;
|
|
2513
|
-
|
|
2605
|
+
graphqlQueryId?: number;
|
|
2514
2606
|
schemaId?: number;
|
|
2515
2607
|
title?: string;
|
|
2516
2608
|
};
|
|
@@ -2526,7 +2618,9 @@ type TemplateServices = {
|
|
|
2526
2618
|
/** Get Roles
|
|
2527
2619
|
* @param p - PagingQueryInput<Role> - Không truyền param sẽ lấy tất cả Role
|
|
2528
2620
|
*/
|
|
2529
|
-
getTemplates: (p
|
|
2621
|
+
getTemplates: (p: {
|
|
2622
|
+
input: CustomPagingRequestInput;
|
|
2623
|
+
}) => Promise<{
|
|
2530
2624
|
items: Template$1[];
|
|
2531
2625
|
totalCount: number;
|
|
2532
2626
|
}>;
|
|
@@ -2542,8 +2636,7 @@ type TemplateServices = {
|
|
|
2542
2636
|
id: number;
|
|
2543
2637
|
}) => Promise<Template$1>;
|
|
2544
2638
|
getObjectDefinitions: (p?: PagingQueryInput<ObjectDefinition>) => Promise<{
|
|
2545
|
-
|
|
2546
|
-
totalCount: number;
|
|
2639
|
+
data: ObjectDefinition[];
|
|
2547
2640
|
}>;
|
|
2548
2641
|
createTemplate: (p: {
|
|
2549
2642
|
input: TemplateInput;
|
|
@@ -2551,12 +2644,16 @@ type TemplateServices = {
|
|
|
2551
2644
|
updateTemplate: (p: {
|
|
2552
2645
|
input: TemplateInput;
|
|
2553
2646
|
id: number;
|
|
2647
|
+
versionId?: number;
|
|
2554
2648
|
}) => Promise<void>;
|
|
2649
|
+
getGraphQLQueries: (p: CustomPagingRequestInput) => Promise<{
|
|
2650
|
+
items: GraphQLQuery[];
|
|
2651
|
+
totalCount: number;
|
|
2652
|
+
}>;
|
|
2555
2653
|
};
|
|
2556
2654
|
|
|
2557
2655
|
type TemplateProps = {
|
|
2558
2656
|
services: TemplateServices;
|
|
2559
|
-
objectTypeCodes: ObjectTypeCode[];
|
|
2560
2657
|
};
|
|
2561
2658
|
declare function Template(props: TemplateProps): react_jsx_runtime.JSX.Element;
|
|
2562
2659
|
|
|
@@ -2565,6 +2662,7 @@ type RoleTag$3 = {
|
|
|
2565
2662
|
id?: number;
|
|
2566
2663
|
name?: string;
|
|
2567
2664
|
workspaceId?: number;
|
|
2665
|
+
versionId?: number;
|
|
2568
2666
|
};
|
|
2569
2667
|
type Role$1 = Role;
|
|
2570
2668
|
type RoleTagInput = {
|
|
@@ -2577,17 +2675,15 @@ type RoleTagInput = {
|
|
|
2577
2675
|
};
|
|
2578
2676
|
|
|
2579
2677
|
type RoleTagServices = {
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
getRoles: (p?: PagingQueryInput<Role$1>) => Promise<{
|
|
2678
|
+
getRoles: (p?: {
|
|
2679
|
+
input: CustomPagingRequestInput;
|
|
2680
|
+
}) => Promise<{
|
|
2584
2681
|
roles: Role$1[];
|
|
2585
2682
|
total: number;
|
|
2586
2683
|
}>;
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
getRoleTags: (p?: PagingQueryInput<RoleTag$3>) => Promise<{
|
|
2684
|
+
getRoleTags: (p?: {
|
|
2685
|
+
input: CustomPagingRequestInput;
|
|
2686
|
+
}) => Promise<{
|
|
2591
2687
|
roleTags: RoleTag$3[];
|
|
2592
2688
|
total: number;
|
|
2593
2689
|
}>;
|
|
@@ -2606,6 +2702,7 @@ type RoleTagServices = {
|
|
|
2606
2702
|
updateRoleTag: (p: {
|
|
2607
2703
|
input: RoleTagInput;
|
|
2608
2704
|
id: number;
|
|
2705
|
+
versionId?: number;
|
|
2609
2706
|
}) => Promise<void>;
|
|
2610
2707
|
};
|
|
2611
2708
|
|
|
@@ -2618,6 +2715,7 @@ type Role = {
|
|
|
2618
2715
|
name?: string;
|
|
2619
2716
|
roleTags?: Array<RoleTag$2>;
|
|
2620
2717
|
workspaceId?: number;
|
|
2718
|
+
versionId?: number;
|
|
2621
2719
|
};
|
|
2622
2720
|
type RoleTag$2 = RoleTag$3;
|
|
2623
2721
|
type RoleInput = {
|
|
@@ -2627,17 +2725,15 @@ type RoleInput = {
|
|
|
2627
2725
|
};
|
|
2628
2726
|
|
|
2629
2727
|
type RoleServices = {
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
getRoles: (p?: PagingQueryInput<Role>) => Promise<{
|
|
2728
|
+
getRoles: (p?: {
|
|
2729
|
+
input: CustomPagingRequestInput;
|
|
2730
|
+
}) => Promise<{
|
|
2634
2731
|
roles: Role[];
|
|
2635
2732
|
total: number;
|
|
2636
2733
|
}>;
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
getRoleTags: (p?: PagingQueryInput<RoleTag$2>) => Promise<{
|
|
2734
|
+
getRoleTags: (p?: {
|
|
2735
|
+
input: CustomPagingRequestInput;
|
|
2736
|
+
}) => Promise<{
|
|
2641
2737
|
roleTags: RoleTag$2[];
|
|
2642
2738
|
total: number;
|
|
2643
2739
|
}>;
|
|
@@ -2656,6 +2752,7 @@ type RoleServices = {
|
|
|
2656
2752
|
updateRole: (p: {
|
|
2657
2753
|
input: RoleInput;
|
|
2658
2754
|
id: number;
|
|
2755
|
+
versionId?: number;
|
|
2659
2756
|
}) => Promise<void>;
|
|
2660
2757
|
};
|
|
2661
2758
|
|
|
@@ -2673,13 +2770,13 @@ type Sharing$1 = {
|
|
|
2673
2770
|
name?: string;
|
|
2674
2771
|
objectFilter?: ObjectFilter;
|
|
2675
2772
|
objectFilterId: number;
|
|
2676
|
-
schema?: Schema
|
|
2773
|
+
schema?: Schema;
|
|
2677
2774
|
schemaId?: number;
|
|
2678
|
-
sharingWorkspaces
|
|
2679
|
-
totalTargetWorkspace: number;
|
|
2775
|
+
sharingWorkspaces?: Array<SharingWorkspace>;
|
|
2680
2776
|
workspaceId: number;
|
|
2681
2777
|
folderSourceDirectoryId?: number;
|
|
2682
2778
|
key?: string;
|
|
2779
|
+
versionId?: number;
|
|
2683
2780
|
};
|
|
2684
2781
|
type ObjectFilter = {
|
|
2685
2782
|
configType?: string;
|
|
@@ -2734,13 +2831,7 @@ type SharingInput = {
|
|
|
2734
2831
|
folderSourceDirectoryId?: number;
|
|
2735
2832
|
targetWorkspaceId?: number;
|
|
2736
2833
|
sharingWorkspaces?: Array<ObjectDataInputOfSharingWorkspaceInput>;
|
|
2737
|
-
|
|
2738
|
-
type GetPagingInWorkspaceRequestGqlInput = {
|
|
2739
|
-
objectTypeCode?: string;
|
|
2740
|
-
pageIndex?: number;
|
|
2741
|
-
pageSize?: number;
|
|
2742
|
-
search?: string;
|
|
2743
|
-
workspaceId?: number;
|
|
2834
|
+
versionId?: number;
|
|
2744
2835
|
};
|
|
2745
2836
|
interface SharingProps {
|
|
2746
2837
|
getSharingById: (p: {
|
|
@@ -2752,14 +2843,16 @@ interface SharingProps {
|
|
|
2752
2843
|
updateWorkspaceSharing: (p: {
|
|
2753
2844
|
id: number;
|
|
2754
2845
|
input: SharingInput;
|
|
2846
|
+
versionId?: number;
|
|
2755
2847
|
}) => Promise<void>;
|
|
2756
2848
|
getSharings: (p?: {
|
|
2757
|
-
|
|
2849
|
+
input: CustomPagingRequestInput;
|
|
2850
|
+
objectTypeCode?: string;
|
|
2758
2851
|
}) => Promise<{
|
|
2759
2852
|
sharings: Sharing$1[];
|
|
2760
2853
|
total: number;
|
|
2761
2854
|
}>;
|
|
2762
|
-
getSchemas: () => Promise<Schema
|
|
2855
|
+
getSchemas: () => Promise<Schema[]>;
|
|
2763
2856
|
getWorkspaces: () => Promise<Workspace$3[]>;
|
|
2764
2857
|
getWorkspaceById: (p: {
|
|
2765
2858
|
id: number;
|
|
@@ -2768,7 +2861,8 @@ interface SharingProps {
|
|
|
2768
2861
|
id: number;
|
|
2769
2862
|
}) => Promise<void>;
|
|
2770
2863
|
getObjectFilters: () => Promise<ObjectFilter[]>;
|
|
2771
|
-
getDirectories: (params?:
|
|
2864
|
+
getDirectories: (params?: {
|
|
2865
|
+
input?: CustomPagingRequestInput;
|
|
2772
2866
|
parentDirectoryId?: number;
|
|
2773
2867
|
workspaceId?: number;
|
|
2774
2868
|
depthFromRoot?: number;
|
|
@@ -2797,6 +2891,7 @@ type Group$1 = {
|
|
|
2797
2891
|
roleAuthens?: RoleAuthens$1[];
|
|
2798
2892
|
workspaceId?: number;
|
|
2799
2893
|
isSystem?: boolean;
|
|
2894
|
+
versionId?: number;
|
|
2800
2895
|
};
|
|
2801
2896
|
type GroupInput = {
|
|
2802
2897
|
description?: string;
|
|
@@ -2866,13 +2961,16 @@ type User$1 = {
|
|
|
2866
2961
|
groups?: number[];
|
|
2867
2962
|
roleAuthens?: Array<RoleAuthens>;
|
|
2868
2963
|
username?: string;
|
|
2964
|
+
versionId?: number;
|
|
2869
2965
|
};
|
|
2870
2966
|
|
|
2871
2967
|
type GroupServices = {
|
|
2872
2968
|
/** Get RoleTags
|
|
2873
2969
|
* @param p - PagingQueryInput<RoleTag> - Không truyền param sẽ lấy tất cả RoleTag
|
|
2874
2970
|
*/
|
|
2875
|
-
getRoleTags: (p?:
|
|
2971
|
+
getRoleTags: (p?: {
|
|
2972
|
+
input: CustomPagingRequestInput;
|
|
2973
|
+
}) => Promise<{
|
|
2876
2974
|
roleTags: RoleTag$1[];
|
|
2877
2975
|
total: number;
|
|
2878
2976
|
}>;
|
|
@@ -2883,10 +2981,9 @@ type GroupServices = {
|
|
|
2883
2981
|
users: User$1[];
|
|
2884
2982
|
total: number;
|
|
2885
2983
|
}>;
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
getGroups: (p?: PagingQueryInput<Group$1>) => Promise<{
|
|
2984
|
+
getGroups: (p?: {
|
|
2985
|
+
input: CustomPagingRequestInput;
|
|
2986
|
+
}) => Promise<{
|
|
2890
2987
|
groups: Group$1[];
|
|
2891
2988
|
total: number;
|
|
2892
2989
|
}>;
|
|
@@ -2905,6 +3002,7 @@ type GroupServices = {
|
|
|
2905
3002
|
updateGroup: (p: {
|
|
2906
3003
|
input: GroupInput;
|
|
2907
3004
|
id: number;
|
|
3005
|
+
versionId?: number;
|
|
2908
3006
|
}) => Promise<void>;
|
|
2909
3007
|
/** Loading khi lấy dữ liệu */
|
|
2910
3008
|
isLoading: boolean;
|
|
@@ -2926,7 +3024,9 @@ type UserServices = {
|
|
|
2926
3024
|
/** Get Users
|
|
2927
3025
|
* @param p - PagingQueryInput<Users> - Không truyền param sẽ lấy tất cả Users
|
|
2928
3026
|
*/
|
|
2929
|
-
getUsers: (p?:
|
|
3027
|
+
getUsers: (p?: {
|
|
3028
|
+
input: CustomPagingRequestInput;
|
|
3029
|
+
}) => Promise<{
|
|
2930
3030
|
users: User$1[];
|
|
2931
3031
|
total: number;
|
|
2932
3032
|
}>;
|
|
@@ -2941,6 +3041,7 @@ type UserServices = {
|
|
|
2941
3041
|
updateUser: (p: {
|
|
2942
3042
|
user: UserInput;
|
|
2943
3043
|
id: number;
|
|
3044
|
+
versionId?: number;
|
|
2944
3045
|
}) => Promise<void>;
|
|
2945
3046
|
/** Delete User by ID */
|
|
2946
3047
|
deleteUser: (p: {
|
|
@@ -2977,6 +3078,7 @@ type Workflow = {
|
|
|
2977
3078
|
description?: string;
|
|
2978
3079
|
workflowMatrices: Array<WorkflowMatrix>;
|
|
2979
3080
|
workflowStates: Array<WorkflowState>;
|
|
3081
|
+
versionId?: number;
|
|
2980
3082
|
};
|
|
2981
3083
|
type WorkflowMatrix = {
|
|
2982
3084
|
id: number;
|
|
@@ -2999,9 +3101,11 @@ type WorkflowState = {
|
|
|
2999
3101
|
|
|
3000
3102
|
type WorkflowFeatureProps = {
|
|
3001
3103
|
getById: (id: number) => Promise<Workflow>;
|
|
3002
|
-
getPaging: (queryInput:
|
|
3104
|
+
getPaging: (queryInput: {
|
|
3105
|
+
input: CustomPagingRequestInput;
|
|
3106
|
+
}) => Promise<PagingType<Workflow>>;
|
|
3003
3107
|
create: (workflow: ObjectInputType<Workflow>) => Promise<void>;
|
|
3004
|
-
update: (id: number, workflow: ObjectInputType<Workflow
|
|
3108
|
+
update: (id: number, workflow: ObjectInputType<Workflow>, versionId?: number) => Promise<void>;
|
|
3005
3109
|
remove: (id: number) => Promise<void>;
|
|
3006
3110
|
objectTypeCodeMap: {
|
|
3007
3111
|
value: string;
|
|
@@ -3017,7 +3121,8 @@ type DirectoryServices = DirectoryAddOrEditServices$1 & DirectoryPermissionServi
|
|
|
3017
3121
|
/** Get Directories
|
|
3018
3122
|
* @params PagingQueryInput<Directory> - Không truyền param sẽ lấy tất cả
|
|
3019
3123
|
*/
|
|
3020
|
-
getDirectories: (params?:
|
|
3124
|
+
getDirectories: (params?: {
|
|
3125
|
+
input?: CustomPagingRequestInput;
|
|
3021
3126
|
parentDirectoryId?: number;
|
|
3022
3127
|
workspaceId?: number;
|
|
3023
3128
|
depthFromRoot?: number;
|
|
@@ -3036,7 +3141,7 @@ type DirectorySystemProps = DirectoryServices & {
|
|
|
3036
3141
|
currentWorkspace?: CurrentWorkspace;
|
|
3037
3142
|
objectTypeCodes?: ObjectTypeCode[];
|
|
3038
3143
|
};
|
|
3039
|
-
declare const DirectorySystem: (props: DirectorySystemProps) => react_jsx_runtime.JSX.Element;
|
|
3144
|
+
declare const DirectorySystem: (props: DirectorySystemProps) => react_jsx_runtime.JSX.Element | null;
|
|
3040
3145
|
|
|
3041
3146
|
declare function Sharing(props: SharingProps): react_jsx_runtime.JSX.Element;
|
|
3042
3147
|
|
|
@@ -3104,7 +3209,8 @@ declare function parseJSON(str: string): any;
|
|
|
3104
3209
|
* Xử lý các thao tác số học và toán học một cách tiện lợi.
|
|
3105
3210
|
* 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.
|
|
3106
3211
|
*/
|
|
3107
|
-
|
|
3212
|
+
type Locale = 'vi' | 'en' | 'ja' | 'th' | 'id';
|
|
3213
|
+
declare function formatNumberByLocale(value?: number | bigint, lang?: string, locale?: string): string;
|
|
3108
3214
|
declare function roundDecimalNumber(number: any): string | null;
|
|
3109
3215
|
declare function WMAPEcalculator(data: any): number | "∞";
|
|
3110
3216
|
|
|
@@ -3130,6 +3236,73 @@ declare function checkValidMacAddress(string?: string): boolean;
|
|
|
3130
3236
|
declare function checkValidUrl(url: string | undefined): boolean;
|
|
3131
3237
|
declare function validateNumber(value?: string | number): boolean;
|
|
3132
3238
|
|
|
3239
|
+
/**
|
|
3240
|
+
* Available filter operation types
|
|
3241
|
+
*/
|
|
3242
|
+
declare enum FilterOperationType {
|
|
3243
|
+
EQ = "eq",// Equal
|
|
3244
|
+
CONTAINS = "contains",// Contains substring
|
|
3245
|
+
STARTSWITH = "startswith",// Starts with
|
|
3246
|
+
ENDSWITH = "endswith",// Ends with
|
|
3247
|
+
GT = "gt",// Greater than
|
|
3248
|
+
GTE = "gte",// Greater than or equal
|
|
3249
|
+
LT = "lt",// Less than
|
|
3250
|
+
LTE = "lte",// Less than or equal
|
|
3251
|
+
IN = "in",// In array
|
|
3252
|
+
BETWEEN = "between",// Between two values
|
|
3253
|
+
NE = "ne",// Not equal
|
|
3254
|
+
NOTCONTAINS = "notcontains",// Does not contain substring
|
|
3255
|
+
NOTIN = "notin",// Not in array
|
|
3256
|
+
CUSTOM = "custom"
|
|
3257
|
+
}
|
|
3258
|
+
/**
|
|
3259
|
+
* Logical operators for combining filter conditions
|
|
3260
|
+
*/
|
|
3261
|
+
declare enum LogicalOperatorType {
|
|
3262
|
+
AND = "and",
|
|
3263
|
+
OR = "or",
|
|
3264
|
+
NOT = "not"
|
|
3265
|
+
}
|
|
3266
|
+
/**
|
|
3267
|
+
* Structure for a single filter item
|
|
3268
|
+
*/
|
|
3269
|
+
interface FilterItem {
|
|
3270
|
+
key: string;
|
|
3271
|
+
value: any;
|
|
3272
|
+
type: FilterOperationType | string;
|
|
3273
|
+
isArray?: boolean;
|
|
3274
|
+
}
|
|
3275
|
+
/**
|
|
3276
|
+
* Structure for a filter group that can contain nested conditions
|
|
3277
|
+
*/
|
|
3278
|
+
interface FilterGroup {
|
|
3279
|
+
operator: LogicalOperatorType;
|
|
3280
|
+
filters: Array<FilterItem | FilterGroup>;
|
|
3281
|
+
}
|
|
3282
|
+
/**
|
|
3283
|
+
* Filter expression can be either a single item or a group
|
|
3284
|
+
*/
|
|
3285
|
+
type FilterExpression = FilterItem | FilterGroup;
|
|
3286
|
+
/**
|
|
3287
|
+
* Converts an array of filter objects to a string condition
|
|
3288
|
+
* @param filters - Array of objects with key, value, and type properties
|
|
3289
|
+
* @param defaultOperator - Default logical operator to use when combining filters (AND or OR)
|
|
3290
|
+
* @returns Object with a 'condition' property containing the string condition and optional 'params' array
|
|
3291
|
+
*/
|
|
3292
|
+
declare function convertArrayFiltersToCondition(filters: Array<FilterItem>, defaultOperator?: LogicalOperatorType): {
|
|
3293
|
+
condition: string;
|
|
3294
|
+
params?: string[];
|
|
3295
|
+
} | null;
|
|
3296
|
+
/**
|
|
3297
|
+
* Converts a complex filter expression to a string condition
|
|
3298
|
+
* @param filterExpression - Filter expression (can be nested with logical operators)
|
|
3299
|
+
* @returns Object with a 'condition' property containing the string condition and optional 'params' array
|
|
3300
|
+
*/
|
|
3301
|
+
declare function convertFilterExpressionToCondition(filterExpression: FilterExpression): {
|
|
3302
|
+
condition: string;
|
|
3303
|
+
params?: string[];
|
|
3304
|
+
} | null;
|
|
3305
|
+
|
|
3133
3306
|
type Workspace$1 = {
|
|
3134
3307
|
customerId?: number;
|
|
3135
3308
|
contactPhoneNumber?: string;
|
|
@@ -3246,4 +3419,4 @@ declare function ThemeProvider(props: {
|
|
|
3246
3419
|
};
|
|
3247
3420
|
}): react_jsx_runtime.JSX.Element;
|
|
3248
3421
|
|
|
3249
|
-
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$
|
|
3422
|
+
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, 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, 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, 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 };
|