awing-library 2.1.2-dev.6 → 2.1.2-dev.61
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 -2
- 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 +5556 -5001
- 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 -126
- 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;
|
|
@@ -2401,24 +2411,23 @@ type WorkspaceSharing = {
|
|
|
2401
2411
|
id?: number;
|
|
2402
2412
|
};
|
|
2403
2413
|
type ObjectFilter$1 = {
|
|
2404
|
-
configType?: string;
|
|
2405
2414
|
directoryPath?: string;
|
|
2406
2415
|
id?: number;
|
|
2407
2416
|
logicalExpression?: string;
|
|
2408
2417
|
name?: string;
|
|
2409
2418
|
objectTypeCode?: string;
|
|
2410
|
-
outputFieldPermission?: OutputFieldPermission$
|
|
2411
|
-
notificationConfigDetails?: Array<NotificationConfigDetail
|
|
2419
|
+
outputFieldPermission?: OutputFieldPermission$2;
|
|
2420
|
+
notificationConfigDetails?: Array<NotificationConfigDetail>;
|
|
2412
2421
|
subscriptionConfigDetails?: Array<SubscriptionConfigDetail$1>;
|
|
2413
2422
|
workspaceSharings?: Array<WorkspaceSharing>;
|
|
2423
|
+
versionId?: number;
|
|
2414
2424
|
};
|
|
2415
2425
|
type ObjectFilterInput = {
|
|
2416
|
-
configType?: string;
|
|
2417
2426
|
logicalExpression?: string;
|
|
2418
2427
|
name?: string;
|
|
2419
2428
|
objectTypeCode?: string;
|
|
2420
2429
|
};
|
|
2421
|
-
type LogicExpressionsStructure = {
|
|
2430
|
+
type LogicExpressionsStructure$1 = {
|
|
2422
2431
|
objectStructures?: {
|
|
2423
2432
|
[key: string]: ObjectStructure$1[];
|
|
2424
2433
|
};
|
|
@@ -2426,10 +2435,9 @@ type LogicExpressionsStructure = {
|
|
|
2426
2435
|
};
|
|
2427
2436
|
|
|
2428
2437
|
type ObjectFilterServices = {
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
getObjectFilters: (p: PagingQueryInput<ObjectFilter$1>) => Promise<{
|
|
2438
|
+
getObjectFilters: (p: {
|
|
2439
|
+
input: CustomPagingRequestInput;
|
|
2440
|
+
}) => Promise<{
|
|
2433
2441
|
items: ObjectFilter$1[];
|
|
2434
2442
|
totalCount: number;
|
|
2435
2443
|
}>;
|
|
@@ -2451,18 +2459,104 @@ type ObjectFilterServices = {
|
|
|
2451
2459
|
updateObjectFilter: (p: {
|
|
2452
2460
|
input: ObjectFilterInput;
|
|
2453
2461
|
id: number;
|
|
2462
|
+
versionId?: number;
|
|
2454
2463
|
}) => Promise<void>;
|
|
2455
2464
|
};
|
|
2456
2465
|
|
|
2457
|
-
declare const NotificationFilter: (props: ObjectFilterServices & {
|
|
2466
|
+
declare const NotificationFilter$1: (props: ObjectFilterServices & {
|
|
2458
2467
|
objectTyeCodes: EnumTypeConvert[];
|
|
2459
|
-
|
|
2460
|
-
logicExpressionsStructure: LogicExpressionsStructure;
|
|
2468
|
+
logicExpressionsStructure: LogicExpressionsStructure$1;
|
|
2461
2469
|
}) => react_jsx_runtime.JSX.Element;
|
|
2462
2470
|
|
|
2463
|
-
type
|
|
2471
|
+
type GraphQLQuery = {
|
|
2472
|
+
id?: number;
|
|
2473
|
+
name?: string;
|
|
2474
|
+
baseObjectType?: string;
|
|
2475
|
+
directoryPath?: string;
|
|
2476
|
+
queryString?: string;
|
|
2477
|
+
resultExpression?: string;
|
|
2478
|
+
graphqlVariables?: {
|
|
2479
|
+
id?: string;
|
|
2480
|
+
name?: string;
|
|
2481
|
+
type?: string;
|
|
2482
|
+
value?: string;
|
|
2483
|
+
};
|
|
2484
|
+
};
|
|
2485
|
+
|
|
2486
|
+
type ObjectDefinition$1 = {
|
|
2487
|
+
fieldName?: string;
|
|
2488
|
+
fieldPath?: string;
|
|
2464
2489
|
id?: number;
|
|
2490
|
+
objectTypeCode?: string;
|
|
2491
|
+
};
|
|
2492
|
+
type ObjectDefinitionWithPermission$1 = {
|
|
2493
|
+
objectDefinition?: ObjectDefinition$1;
|
|
2494
|
+
permission?: number;
|
|
2495
|
+
};
|
|
2496
|
+
type OutputFieldPermission$1 = {
|
|
2497
|
+
objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission$1>;
|
|
2498
|
+
};
|
|
2499
|
+
type NotificationFilter = {
|
|
2500
|
+
directoryPath?: string;
|
|
2501
|
+
id?: number;
|
|
2502
|
+
graphQLQuery?: GraphQLQuery;
|
|
2503
|
+
logicalExpression?: string;
|
|
2504
|
+
name?: string;
|
|
2505
|
+
outputFieldPermission?: OutputFieldPermission$1;
|
|
2506
|
+
versionId?: number;
|
|
2507
|
+
};
|
|
2508
|
+
type NotificationFilterInput = {
|
|
2509
|
+
graphqlQueryId?: number;
|
|
2510
|
+
id?: number;
|
|
2511
|
+
logicalExpression?: string;
|
|
2512
|
+
name?: string;
|
|
2513
|
+
parentDirectoryPath?: string;
|
|
2514
|
+
sagaTransactionId?: number;
|
|
2515
|
+
};
|
|
2516
|
+
type LogicExpressionsStructure = {
|
|
2517
|
+
objectStructures?: {
|
|
2518
|
+
[key: string]: ObjectStructure$1[];
|
|
2519
|
+
};
|
|
2520
|
+
functionStructures?: FunctionStructure$1[];
|
|
2521
|
+
};
|
|
2522
|
+
|
|
2523
|
+
type NotificationFilterServices = {
|
|
2524
|
+
getNotificationFilters: (p: {
|
|
2525
|
+
input: CustomPagingRequestInput;
|
|
2526
|
+
}) => Promise<{
|
|
2527
|
+
items: NotificationFilter[];
|
|
2528
|
+
totalCount: number;
|
|
2529
|
+
}>;
|
|
2530
|
+
/** Delete */
|
|
2531
|
+
deleteNotificationFilter: (p: {
|
|
2532
|
+
id: number;
|
|
2533
|
+
}) => Promise<void>;
|
|
2534
|
+
/** Get by Id */
|
|
2535
|
+
getNotificationFilterById: (p: {
|
|
2536
|
+
id: number;
|
|
2537
|
+
}) => Promise<{
|
|
2538
|
+
notificationFilter?: NotificationFilter;
|
|
2539
|
+
}>;
|
|
2540
|
+
/** Create */
|
|
2541
|
+
createNotificationFilter: (p: {
|
|
2542
|
+
input: NotificationFilterInput;
|
|
2543
|
+
}) => Promise<void>;
|
|
2544
|
+
/** Update */
|
|
2545
|
+
updateNotificationFilter: (p: {
|
|
2546
|
+
input: NotificationFilterInput;
|
|
2547
|
+
id: number;
|
|
2548
|
+
versionId?: number;
|
|
2549
|
+
}) => Promise<void>;
|
|
2550
|
+
getGraphQLQueries: (p: CustomPagingRequestInput) => Promise<{
|
|
2551
|
+
items: GraphQLQuery[];
|
|
2552
|
+
totalCount: number;
|
|
2553
|
+
}>;
|
|
2465
2554
|
};
|
|
2555
|
+
|
|
2556
|
+
declare const FilterNotification: (props: NotificationFilterServices & {
|
|
2557
|
+
logicExpressionsStructure: LogicExpressionsStructure;
|
|
2558
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2559
|
+
|
|
2466
2560
|
type SchemaDetail = {
|
|
2467
2561
|
id?: number;
|
|
2468
2562
|
};
|
|
@@ -2483,9 +2577,6 @@ type ObjectDefinitionWithPermission = {
|
|
|
2483
2577
|
type OutputFieldPermission = {
|
|
2484
2578
|
objectDefinitionWithPermissions?: Array<ObjectDefinitionWithPermission>;
|
|
2485
2579
|
};
|
|
2486
|
-
type Schema = {
|
|
2487
|
-
id?: number;
|
|
2488
|
-
};
|
|
2489
2580
|
type SubscriptionConfigDetail = {
|
|
2490
2581
|
id?: number;
|
|
2491
2582
|
};
|
|
@@ -2496,13 +2587,12 @@ type Template$1 = {
|
|
|
2496
2587
|
contentType?: string;
|
|
2497
2588
|
id?: number;
|
|
2498
2589
|
name?: string;
|
|
2499
|
-
|
|
2500
|
-
|
|
2590
|
+
graphQLQuery?: GraphQLQuery;
|
|
2591
|
+
graphqlQueryId?: number;
|
|
2501
2592
|
outputFieldPermission?: OutputFieldPermission;
|
|
2502
|
-
schema?: Schema;
|
|
2503
|
-
schemaId?: number;
|
|
2504
2593
|
subscriptionConfigDetails?: Array<SubscriptionConfigDetail>;
|
|
2505
2594
|
title?: string;
|
|
2595
|
+
versionId?: number;
|
|
2506
2596
|
};
|
|
2507
2597
|
type TemplateInput = {
|
|
2508
2598
|
channelType?: string;
|
|
@@ -2510,7 +2600,7 @@ type TemplateInput = {
|
|
|
2510
2600
|
content?: string;
|
|
2511
2601
|
contentType?: string;
|
|
2512
2602
|
name?: string;
|
|
2513
|
-
|
|
2603
|
+
graphqlQueryId?: number;
|
|
2514
2604
|
schemaId?: number;
|
|
2515
2605
|
title?: string;
|
|
2516
2606
|
};
|
|
@@ -2526,7 +2616,9 @@ type TemplateServices = {
|
|
|
2526
2616
|
/** Get Roles
|
|
2527
2617
|
* @param p - PagingQueryInput<Role> - Không truyền param sẽ lấy tất cả Role
|
|
2528
2618
|
*/
|
|
2529
|
-
getTemplates: (p
|
|
2619
|
+
getTemplates: (p: {
|
|
2620
|
+
input: CustomPagingRequestInput;
|
|
2621
|
+
}) => Promise<{
|
|
2530
2622
|
items: Template$1[];
|
|
2531
2623
|
totalCount: number;
|
|
2532
2624
|
}>;
|
|
@@ -2542,8 +2634,7 @@ type TemplateServices = {
|
|
|
2542
2634
|
id: number;
|
|
2543
2635
|
}) => Promise<Template$1>;
|
|
2544
2636
|
getObjectDefinitions: (p?: PagingQueryInput<ObjectDefinition>) => Promise<{
|
|
2545
|
-
|
|
2546
|
-
totalCount: number;
|
|
2637
|
+
data: ObjectDefinition[];
|
|
2547
2638
|
}>;
|
|
2548
2639
|
createTemplate: (p: {
|
|
2549
2640
|
input: TemplateInput;
|
|
@@ -2551,12 +2642,16 @@ type TemplateServices = {
|
|
|
2551
2642
|
updateTemplate: (p: {
|
|
2552
2643
|
input: TemplateInput;
|
|
2553
2644
|
id: number;
|
|
2645
|
+
versionId?: number;
|
|
2554
2646
|
}) => Promise<void>;
|
|
2647
|
+
getGraphQLQueries: (p: CustomPagingRequestInput) => Promise<{
|
|
2648
|
+
items: GraphQLQuery[];
|
|
2649
|
+
totalCount: number;
|
|
2650
|
+
}>;
|
|
2555
2651
|
};
|
|
2556
2652
|
|
|
2557
2653
|
type TemplateProps = {
|
|
2558
2654
|
services: TemplateServices;
|
|
2559
|
-
objectTypeCodes: ObjectTypeCode[];
|
|
2560
2655
|
};
|
|
2561
2656
|
declare function Template(props: TemplateProps): react_jsx_runtime.JSX.Element;
|
|
2562
2657
|
|
|
@@ -2565,6 +2660,7 @@ type RoleTag$3 = {
|
|
|
2565
2660
|
id?: number;
|
|
2566
2661
|
name?: string;
|
|
2567
2662
|
workspaceId?: number;
|
|
2663
|
+
versionId?: number;
|
|
2568
2664
|
};
|
|
2569
2665
|
type Role$1 = Role;
|
|
2570
2666
|
type RoleTagInput = {
|
|
@@ -2577,17 +2673,15 @@ type RoleTagInput = {
|
|
|
2577
2673
|
};
|
|
2578
2674
|
|
|
2579
2675
|
type RoleTagServices = {
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
getRoles: (p?: PagingQueryInput<Role$1>) => Promise<{
|
|
2676
|
+
getRoles: (p?: {
|
|
2677
|
+
input: CustomPagingRequestInput;
|
|
2678
|
+
}) => Promise<{
|
|
2584
2679
|
roles: Role$1[];
|
|
2585
2680
|
total: number;
|
|
2586
2681
|
}>;
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
getRoleTags: (p?: PagingQueryInput<RoleTag$3>) => Promise<{
|
|
2682
|
+
getRoleTags: (p?: {
|
|
2683
|
+
input: CustomPagingRequestInput;
|
|
2684
|
+
}) => Promise<{
|
|
2591
2685
|
roleTags: RoleTag$3[];
|
|
2592
2686
|
total: number;
|
|
2593
2687
|
}>;
|
|
@@ -2606,6 +2700,7 @@ type RoleTagServices = {
|
|
|
2606
2700
|
updateRoleTag: (p: {
|
|
2607
2701
|
input: RoleTagInput;
|
|
2608
2702
|
id: number;
|
|
2703
|
+
versionId?: number;
|
|
2609
2704
|
}) => Promise<void>;
|
|
2610
2705
|
};
|
|
2611
2706
|
|
|
@@ -2618,6 +2713,7 @@ type Role = {
|
|
|
2618
2713
|
name?: string;
|
|
2619
2714
|
roleTags?: Array<RoleTag$2>;
|
|
2620
2715
|
workspaceId?: number;
|
|
2716
|
+
versionId?: number;
|
|
2621
2717
|
};
|
|
2622
2718
|
type RoleTag$2 = RoleTag$3;
|
|
2623
2719
|
type RoleInput = {
|
|
@@ -2627,17 +2723,15 @@ type RoleInput = {
|
|
|
2627
2723
|
};
|
|
2628
2724
|
|
|
2629
2725
|
type RoleServices = {
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
getRoles: (p?: PagingQueryInput<Role>) => Promise<{
|
|
2726
|
+
getRoles: (p?: {
|
|
2727
|
+
input: CustomPagingRequestInput;
|
|
2728
|
+
}) => Promise<{
|
|
2634
2729
|
roles: Role[];
|
|
2635
2730
|
total: number;
|
|
2636
2731
|
}>;
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
getRoleTags: (p?: PagingQueryInput<RoleTag$2>) => Promise<{
|
|
2732
|
+
getRoleTags: (p?: {
|
|
2733
|
+
input: CustomPagingRequestInput;
|
|
2734
|
+
}) => Promise<{
|
|
2641
2735
|
roleTags: RoleTag$2[];
|
|
2642
2736
|
total: number;
|
|
2643
2737
|
}>;
|
|
@@ -2656,6 +2750,7 @@ type RoleServices = {
|
|
|
2656
2750
|
updateRole: (p: {
|
|
2657
2751
|
input: RoleInput;
|
|
2658
2752
|
id: number;
|
|
2753
|
+
versionId?: number;
|
|
2659
2754
|
}) => Promise<void>;
|
|
2660
2755
|
};
|
|
2661
2756
|
|
|
@@ -2673,13 +2768,13 @@ type Sharing$1 = {
|
|
|
2673
2768
|
name?: string;
|
|
2674
2769
|
objectFilter?: ObjectFilter;
|
|
2675
2770
|
objectFilterId: number;
|
|
2676
|
-
schema?: Schema
|
|
2771
|
+
schema?: Schema;
|
|
2677
2772
|
schemaId?: number;
|
|
2678
|
-
sharingWorkspaces
|
|
2679
|
-
totalTargetWorkspace: number;
|
|
2773
|
+
sharingWorkspaces?: Array<SharingWorkspace>;
|
|
2680
2774
|
workspaceId: number;
|
|
2681
2775
|
folderSourceDirectoryId?: number;
|
|
2682
2776
|
key?: string;
|
|
2777
|
+
versionId?: number;
|
|
2683
2778
|
};
|
|
2684
2779
|
type ObjectFilter = {
|
|
2685
2780
|
configType?: string;
|
|
@@ -2734,13 +2829,7 @@ type SharingInput = {
|
|
|
2734
2829
|
folderSourceDirectoryId?: number;
|
|
2735
2830
|
targetWorkspaceId?: number;
|
|
2736
2831
|
sharingWorkspaces?: Array<ObjectDataInputOfSharingWorkspaceInput>;
|
|
2737
|
-
|
|
2738
|
-
type GetPagingInWorkspaceRequestGqlInput = {
|
|
2739
|
-
objectTypeCode?: string;
|
|
2740
|
-
pageIndex?: number;
|
|
2741
|
-
pageSize?: number;
|
|
2742
|
-
search?: string;
|
|
2743
|
-
workspaceId?: number;
|
|
2832
|
+
versionId?: number;
|
|
2744
2833
|
};
|
|
2745
2834
|
interface SharingProps {
|
|
2746
2835
|
getSharingById: (p: {
|
|
@@ -2752,14 +2841,16 @@ interface SharingProps {
|
|
|
2752
2841
|
updateWorkspaceSharing: (p: {
|
|
2753
2842
|
id: number;
|
|
2754
2843
|
input: SharingInput;
|
|
2844
|
+
versionId?: number;
|
|
2755
2845
|
}) => Promise<void>;
|
|
2756
2846
|
getSharings: (p?: {
|
|
2757
|
-
|
|
2847
|
+
input: CustomPagingRequestInput;
|
|
2848
|
+
objectTypeCode?: string;
|
|
2758
2849
|
}) => Promise<{
|
|
2759
2850
|
sharings: Sharing$1[];
|
|
2760
2851
|
total: number;
|
|
2761
2852
|
}>;
|
|
2762
|
-
getSchemas: () => Promise<Schema
|
|
2853
|
+
getSchemas: () => Promise<Schema[]>;
|
|
2763
2854
|
getWorkspaces: () => Promise<Workspace$3[]>;
|
|
2764
2855
|
getWorkspaceById: (p: {
|
|
2765
2856
|
id: number;
|
|
@@ -2768,7 +2859,8 @@ interface SharingProps {
|
|
|
2768
2859
|
id: number;
|
|
2769
2860
|
}) => Promise<void>;
|
|
2770
2861
|
getObjectFilters: () => Promise<ObjectFilter[]>;
|
|
2771
|
-
getDirectories: (params?:
|
|
2862
|
+
getDirectories: (params?: {
|
|
2863
|
+
input?: CustomPagingRequestInput;
|
|
2772
2864
|
parentDirectoryId?: number;
|
|
2773
2865
|
workspaceId?: number;
|
|
2774
2866
|
depthFromRoot?: number;
|
|
@@ -2797,6 +2889,7 @@ type Group$1 = {
|
|
|
2797
2889
|
roleAuthens?: RoleAuthens$1[];
|
|
2798
2890
|
workspaceId?: number;
|
|
2799
2891
|
isSystem?: boolean;
|
|
2892
|
+
versionId?: number;
|
|
2800
2893
|
};
|
|
2801
2894
|
type GroupInput = {
|
|
2802
2895
|
description?: string;
|
|
@@ -2866,13 +2959,16 @@ type User$1 = {
|
|
|
2866
2959
|
groups?: number[];
|
|
2867
2960
|
roleAuthens?: Array<RoleAuthens>;
|
|
2868
2961
|
username?: string;
|
|
2962
|
+
versionId?: number;
|
|
2869
2963
|
};
|
|
2870
2964
|
|
|
2871
2965
|
type GroupServices = {
|
|
2872
2966
|
/** Get RoleTags
|
|
2873
2967
|
* @param p - PagingQueryInput<RoleTag> - Không truyền param sẽ lấy tất cả RoleTag
|
|
2874
2968
|
*/
|
|
2875
|
-
getRoleTags: (p?:
|
|
2969
|
+
getRoleTags: (p?: {
|
|
2970
|
+
input: CustomPagingRequestInput;
|
|
2971
|
+
}) => Promise<{
|
|
2876
2972
|
roleTags: RoleTag$1[];
|
|
2877
2973
|
total: number;
|
|
2878
2974
|
}>;
|
|
@@ -2883,10 +2979,9 @@ type GroupServices = {
|
|
|
2883
2979
|
users: User$1[];
|
|
2884
2980
|
total: number;
|
|
2885
2981
|
}>;
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
getGroups: (p?: PagingQueryInput<Group$1>) => Promise<{
|
|
2982
|
+
getGroups: (p?: {
|
|
2983
|
+
input: CustomPagingRequestInput;
|
|
2984
|
+
}) => Promise<{
|
|
2890
2985
|
groups: Group$1[];
|
|
2891
2986
|
total: number;
|
|
2892
2987
|
}>;
|
|
@@ -2905,6 +3000,7 @@ type GroupServices = {
|
|
|
2905
3000
|
updateGroup: (p: {
|
|
2906
3001
|
input: GroupInput;
|
|
2907
3002
|
id: number;
|
|
3003
|
+
versionId?: number;
|
|
2908
3004
|
}) => Promise<void>;
|
|
2909
3005
|
/** Loading khi lấy dữ liệu */
|
|
2910
3006
|
isLoading: boolean;
|
|
@@ -2926,7 +3022,9 @@ type UserServices = {
|
|
|
2926
3022
|
/** Get Users
|
|
2927
3023
|
* @param p - PagingQueryInput<Users> - Không truyền param sẽ lấy tất cả Users
|
|
2928
3024
|
*/
|
|
2929
|
-
getUsers: (p?:
|
|
3025
|
+
getUsers: (p?: {
|
|
3026
|
+
input: CustomPagingRequestInput;
|
|
3027
|
+
}) => Promise<{
|
|
2930
3028
|
users: User$1[];
|
|
2931
3029
|
total: number;
|
|
2932
3030
|
}>;
|
|
@@ -2941,6 +3039,7 @@ type UserServices = {
|
|
|
2941
3039
|
updateUser: (p: {
|
|
2942
3040
|
user: UserInput;
|
|
2943
3041
|
id: number;
|
|
3042
|
+
versionId?: number;
|
|
2944
3043
|
}) => Promise<void>;
|
|
2945
3044
|
/** Delete User by ID */
|
|
2946
3045
|
deleteUser: (p: {
|
|
@@ -2977,6 +3076,7 @@ type Workflow = {
|
|
|
2977
3076
|
description?: string;
|
|
2978
3077
|
workflowMatrices: Array<WorkflowMatrix>;
|
|
2979
3078
|
workflowStates: Array<WorkflowState>;
|
|
3079
|
+
versionId?: number;
|
|
2980
3080
|
};
|
|
2981
3081
|
type WorkflowMatrix = {
|
|
2982
3082
|
id: number;
|
|
@@ -2999,9 +3099,11 @@ type WorkflowState = {
|
|
|
2999
3099
|
|
|
3000
3100
|
type WorkflowFeatureProps = {
|
|
3001
3101
|
getById: (id: number) => Promise<Workflow>;
|
|
3002
|
-
getPaging: (queryInput:
|
|
3102
|
+
getPaging: (queryInput: {
|
|
3103
|
+
input: CustomPagingRequestInput;
|
|
3104
|
+
}) => Promise<PagingType<Workflow>>;
|
|
3003
3105
|
create: (workflow: ObjectInputType<Workflow>) => Promise<void>;
|
|
3004
|
-
update: (id: number, workflow: ObjectInputType<Workflow
|
|
3106
|
+
update: (id: number, workflow: ObjectInputType<Workflow>, versionId?: number) => Promise<void>;
|
|
3005
3107
|
remove: (id: number) => Promise<void>;
|
|
3006
3108
|
objectTypeCodeMap: {
|
|
3007
3109
|
value: string;
|
|
@@ -3017,7 +3119,8 @@ type DirectoryServices = DirectoryAddOrEditServices$1 & DirectoryPermissionServi
|
|
|
3017
3119
|
/** Get Directories
|
|
3018
3120
|
* @params PagingQueryInput<Directory> - Không truyền param sẽ lấy tất cả
|
|
3019
3121
|
*/
|
|
3020
|
-
getDirectories: (params?:
|
|
3122
|
+
getDirectories: (params?: {
|
|
3123
|
+
input?: CustomPagingRequestInput;
|
|
3021
3124
|
parentDirectoryId?: number;
|
|
3022
3125
|
workspaceId?: number;
|
|
3023
3126
|
depthFromRoot?: number;
|
|
@@ -3036,7 +3139,7 @@ type DirectorySystemProps = DirectoryServices & {
|
|
|
3036
3139
|
currentWorkspace?: CurrentWorkspace;
|
|
3037
3140
|
objectTypeCodes?: ObjectTypeCode[];
|
|
3038
3141
|
};
|
|
3039
|
-
declare const DirectorySystem: (props: DirectorySystemProps) => react_jsx_runtime.JSX.Element;
|
|
3142
|
+
declare const DirectorySystem: (props: DirectorySystemProps) => react_jsx_runtime.JSX.Element | null;
|
|
3040
3143
|
|
|
3041
3144
|
declare function Sharing(props: SharingProps): react_jsx_runtime.JSX.Element;
|
|
3042
3145
|
|
|
@@ -3104,7 +3207,8 @@ declare function parseJSON(str: string): any;
|
|
|
3104
3207
|
* Xử lý các thao tác số học và toán học một cách tiện lợi.
|
|
3105
3208
|
* 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
3209
|
*/
|
|
3107
|
-
|
|
3210
|
+
type Locale = 'vi' | 'en' | 'ja' | 'th' | 'id';
|
|
3211
|
+
declare function formatNumberByLocale(value?: number | bigint, lang?: string, locale?: string): string;
|
|
3108
3212
|
declare function roundDecimalNumber(number: any): string | null;
|
|
3109
3213
|
declare function WMAPEcalculator(data: any): number | "∞";
|
|
3110
3214
|
|
|
@@ -3130,6 +3234,73 @@ declare function checkValidMacAddress(string?: string): boolean;
|
|
|
3130
3234
|
declare function checkValidUrl(url: string | undefined): boolean;
|
|
3131
3235
|
declare function validateNumber(value?: string | number): boolean;
|
|
3132
3236
|
|
|
3237
|
+
/**
|
|
3238
|
+
* Available filter operation types
|
|
3239
|
+
*/
|
|
3240
|
+
declare enum FilterOperationType {
|
|
3241
|
+
EQ = "eq",// Equal
|
|
3242
|
+
CONTAINS = "contains",// Contains substring
|
|
3243
|
+
STARTSWITH = "startswith",// Starts with
|
|
3244
|
+
ENDSWITH = "endswith",// Ends with
|
|
3245
|
+
GT = "gt",// Greater than
|
|
3246
|
+
GTE = "gte",// Greater than or equal
|
|
3247
|
+
LT = "lt",// Less than
|
|
3248
|
+
LTE = "lte",// Less than or equal
|
|
3249
|
+
IN = "in",// In array
|
|
3250
|
+
BETWEEN = "between",// Between two values
|
|
3251
|
+
NE = "ne",// Not equal
|
|
3252
|
+
NOTCONTAINS = "notcontains",// Does not contain substring
|
|
3253
|
+
NOTIN = "notin",// Not in array
|
|
3254
|
+
CUSTOM = "custom"
|
|
3255
|
+
}
|
|
3256
|
+
/**
|
|
3257
|
+
* Logical operators for combining filter conditions
|
|
3258
|
+
*/
|
|
3259
|
+
declare enum LogicalOperatorType {
|
|
3260
|
+
AND = "and",
|
|
3261
|
+
OR = "or",
|
|
3262
|
+
NOT = "not"
|
|
3263
|
+
}
|
|
3264
|
+
/**
|
|
3265
|
+
* Structure for a single filter item
|
|
3266
|
+
*/
|
|
3267
|
+
interface FilterItem {
|
|
3268
|
+
key: string;
|
|
3269
|
+
value: any;
|
|
3270
|
+
type: FilterOperationType | string;
|
|
3271
|
+
isArray?: boolean;
|
|
3272
|
+
}
|
|
3273
|
+
/**
|
|
3274
|
+
* Structure for a filter group that can contain nested conditions
|
|
3275
|
+
*/
|
|
3276
|
+
interface FilterGroup {
|
|
3277
|
+
operator: LogicalOperatorType;
|
|
3278
|
+
filters: Array<FilterItem | FilterGroup>;
|
|
3279
|
+
}
|
|
3280
|
+
/**
|
|
3281
|
+
* Filter expression can be either a single item or a group
|
|
3282
|
+
*/
|
|
3283
|
+
type FilterExpression = FilterItem | FilterGroup;
|
|
3284
|
+
/**
|
|
3285
|
+
* Converts an array of filter objects to a string condition
|
|
3286
|
+
* @param filters - Array of objects with key, value, and type properties
|
|
3287
|
+
* @param defaultOperator - Default logical operator to use when combining filters (AND or OR)
|
|
3288
|
+
* @returns Object with a 'condition' property containing the string condition and optional 'params' array
|
|
3289
|
+
*/
|
|
3290
|
+
declare function convertArrayFiltersToCondition(filters: Array<FilterItem>, defaultOperator?: LogicalOperatorType): {
|
|
3291
|
+
condition: string;
|
|
3292
|
+
params?: string[];
|
|
3293
|
+
} | null;
|
|
3294
|
+
/**
|
|
3295
|
+
* Converts a complex filter expression to a string condition
|
|
3296
|
+
* @param filterExpression - Filter expression (can be nested with logical operators)
|
|
3297
|
+
* @returns Object with a 'condition' property containing the string condition and optional 'params' array
|
|
3298
|
+
*/
|
|
3299
|
+
declare function convertFilterExpressionToCondition(filterExpression: FilterExpression): {
|
|
3300
|
+
condition: string;
|
|
3301
|
+
params?: string[];
|
|
3302
|
+
} | null;
|
|
3303
|
+
|
|
3133
3304
|
type Workspace$1 = {
|
|
3134
3305
|
customerId?: number;
|
|
3135
3306
|
contactPhoneNumber?: string;
|
|
@@ -3246,4 +3417,4 @@ declare function ThemeProvider(props: {
|
|
|
3246
3417
|
};
|
|
3247
3418
|
}): react_jsx_runtime.JSX.Element;
|
|
3248
3419
|
|
|
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$
|
|
3420
|
+
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 };
|