mdt-client 31.3.38 → 31.3.40
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/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types/common/list/toolbar/ToolbarPublicOptions.d.ts +2 -1
- package/types/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +1 -0
- package/types/components/form/label/labelOptions.d.ts +1 -0
- package/types/components/icon/iconOptions.d.ts +4 -2
- package/types/security/User.d.ts +2 -1
- package/types/services/api/ApiAccessor/apiV2Types.d.ts +2 -1
- package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +2 -0
- package/types/services/customModules/facades/ILegacyFacade.d.ts +4 -4
- package/types/services/customModules/facades/IMdtFacade.d.ts +3 -0
- package/types/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +8 -2
- package/types/services/customModules/facades/sharedModules/ISharedModulesFacade.d.ts +4 -0
- package/types/services/customModules/facades/ui-kit/UiKitFacade.d.ts +8 -0
- package/types/ui-kit/UiKitFacade.d.ts +4 -2
- package/types/views/page/charts/ChartControlOptions.schema.d.ts +99 -9
- package/types/_core/scripts/common/Datasource.d.ts +0 -9
- package/types/_core/scripts/common/Field.d.ts +0 -51
- package/types/_core/scripts/common/FieldSettings.schema.d.ts +0 -17
- package/types/_core/scripts/common/MdtField.d.ts +0 -9
- package/types/_core/scripts/common/MdtObject.d.ts +0 -7
- package/types/_core/scripts/common/Record.d.ts +0 -27
- package/types/_core/scripts/common/Table.d.ts +0 -66
- package/types/_core/scripts/common/form/tabs/TabsFormExtenderOptions.d.ts +0 -12
- package/types/_core/scripts/common/list/aggregation/AggregayionTypes.d.ts +0 -2
- package/types/_core/scripts/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +0 -6
- package/types/_core/scripts/common/list/cellControlExtender/CellControlExtender.d.ts +0 -1
- package/types/_core/scripts/common/list/columnMenu/ColumnMenuOptions.d.ts +0 -17
- package/types/_core/scripts/common/list/columnMenu/QuickFilterOptions.d.ts +0 -7
- package/types/_core/scripts/common/list/columnMenu/ValuesFilterOptions.d.ts +0 -24
- package/types/_core/scripts/common/list/form/FormListPublicOptions.d.ts +0 -40
- package/types/_core/scripts/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +0 -11
- package/types/_core/scripts/common/list/group/groupTypes.d.ts +0 -177
- package/types/_core/scripts/common/list/hierarchy/hierarchyTypes.d.ts +0 -48
- package/types/_core/scripts/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +0 -3
- package/types/_core/scripts/common/list/labelStyle/LabelStylePublicOptions.d.ts +0 -6
- package/types/_core/scripts/common/list/legend/LegendListExtenderOptions.d.ts +0 -8
- package/types/_core/scripts/common/list/listView/ListViewListExtenderOptions.d.ts +0 -25
- package/types/_core/scripts/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +0 -23
- package/types/_core/scripts/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +0 -29
- package/types/_core/scripts/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +0 -4
- package/types/_core/scripts/common/list/select/SelectPublicOptions.d.ts +0 -18
- package/types/_core/scripts/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +0 -3
- package/types/_core/scripts/common/list/toolbar/ToolbarPublicOptions.d.ts +0 -22
- package/types/_core/scripts/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +0 -7
- package/types/_core/scripts/common/serverMessage/ServerMessageTypes.d.ts +0 -17
- package/types/_core/scripts/components/baseFormControls/input/inputOptions.d.ts +0 -30
- package/types/_core/scripts/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +0 -2
- package/types/_core/scripts/components/button/baseButton/buttonOptions.d.ts +0 -12
- package/types/_core/scripts/components/buttonGroup/buttonGroupOptions.d.ts +0 -7
- package/types/_core/scripts/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +0 -5
- package/types/_core/scripts/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +0 -19
- package/types/_core/scripts/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +0 -32
- package/types/_core/scripts/components/form/fieldView/fieldViewOptions.d.ts +0 -13
- package/types/_core/scripts/components/form/header/types.d.ts +0 -14
- package/types/_core/scripts/components/form/label/labelOptions.d.ts +0 -22
- package/types/_core/scripts/components/icon/iconOptions.d.ts +0 -21
- package/types/_core/scripts/components/iconButton/iconButtonOptions.d.ts +0 -9
- package/types/_core/scripts/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +0 -5
- package/types/_core/scripts/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +0 -16
- package/types/_core/scripts/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +0 -4
- package/types/_core/scripts/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +0 -24
- package/types/_core/scripts/components/resizablePanels/resizablePanelsOptions.d.ts +0 -22
- package/types/_core/scripts/components/textWithIcon/textWithIconOptions.d.ts +0 -16
- package/types/_core/scripts/components/toggleablePanels/toggleablePanelsOptions.d.ts +0 -40
- package/types/_core/scripts/data/active/ActivationListAdapterTypes.d.ts +0 -6
- package/types/_core/scripts/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +0 -21
- package/types/_core/scripts/data/periods/helpers/types.d.ts +0 -4
- package/types/_core/scripts/datasources/FetchResult.d.ts +0 -5
- package/types/_core/scripts/helpers/IUi.d.ts +0 -2
- package/types/_core/scripts/helpers/dateUtils.d.ts +0 -23
- package/types/_core/scripts/helpers/deleteFromArray.d.ts +0 -1
- package/types/_core/scripts/helpers/events/EventEmitter.d.ts +0 -12
- package/types/_core/scripts/helpers/fireEvent.d.ts +0 -4
- package/types/_core/scripts/helpers/formatOptions.d.ts +0 -16
- package/types/_core/scripts/helpers/formattedText.d.ts +0 -8
- package/types/_core/scripts/helpers/pipeline/ImmutableArgPipeline.d.ts +0 -8
- package/types/_core/scripts/helpers/pipeline/Pipeline.d.ts +0 -20
- package/types/_core/scripts/helpers/redraw.d.ts +0 -16
- package/types/_core/scripts/helpers/types.d.ts +0 -84
- package/types/_core/scripts/helpers/ui/elementModificators/focusableComponent.d.ts +0 -14
- package/types/_core/scripts/helpers/ui/elementModificators/modificatorsTypes.d.ts +0 -4
- package/types/_core/scripts/helpers/ui/keyboardUtils/getKeySymbol.d.ts +0 -2
- package/types/_core/scripts/helpers/ui/keyboardUtils/keyboardUtils.d.ts +0 -23
- package/types/_core/scripts/helpers/ui/keyboardUtils/osByUserAgent.d.ts +0 -1
- package/types/_core/scripts/helpers/utils/classNames.d.ts +0 -20
- package/types/_core/scripts/helpers/utils/keyStorage/KeyStorage.d.ts +0 -6
- package/types/_core/scripts/helpers/utils/memoization/memoize.d.ts +0 -18
- package/types/_core/scripts/helpers/utils/object.d.ts +0 -4
- package/types/_core/scripts/helpers/utils/stringifyControlSize.d.ts +0 -3
- package/types/_core/scripts/helpers/utils/valued/getValued.d.ts +0 -18
- package/types/_core/scripts/helpers/zone/IZone.d.ts +0 -7
- package/types/_core/scripts/security/PermissionLevel.d.ts +0 -40
- package/types/_core/scripts/security/User.d.ts +0 -19
- package/types/_core/scripts/services/HotkeyManager.d.ts +0 -6
- package/types/_core/scripts/services/IFilter.d.ts +0 -322
- package/types/_core/scripts/services/ModuleData.d.ts +0 -9
- package/types/_core/scripts/services/api/ApiAccessor/apiV1Types.d.ts +0 -266
- package/types/_core/scripts/services/api/ApiAccessor/apiV2Types.d.ts +0 -585
- package/types/_core/scripts/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +0 -42
- package/types/_core/scripts/services/api/ApiAccessor/job/jobApiTypes.d.ts +0 -82
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +0 -10
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +0 -28
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +0 -9
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +0 -37
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +0 -2
- package/types/_core/scripts/services/api/ApiRequestOptions.d.ts +0 -43
- package/types/_core/scripts/services/api/BaseQuery.d.ts +0 -25
- package/types/_core/scripts/services/api/Query.d.ts +0 -56
- package/types/_core/scripts/services/api/QuerySorting.d.ts +0 -18
- package/types/_core/scripts/services/api/ServerResonseType.d.ts +0 -2
- package/types/_core/scripts/services/commands/Command.d.ts +0 -22
- package/types/_core/scripts/services/commands/CommandGroup.d.ts +0 -15
- package/types/_core/scripts/services/commands/CommandManager.d.ts +0 -77
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlFacade.d.ts +0 -26
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +0 -36
- package/types/_core/scripts/services/customModules/facades/Form/IFieldStateFacade.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/Form/IFormControlFacade.d.ts +0 -133
- package/types/_core/scripts/services/customModules/facades/Form/IFormFacade.d.ts +0 -102
- package/types/_core/scripts/services/customModules/facades/Form/IFormLayout.d.ts +0 -12
- package/types/_core/scripts/services/customModules/facades/IAppFacade.d.ts +0 -38
- package/types/_core/scripts/services/customModules/facades/IAuthFacade.d.ts +0 -9
- package/types/_core/scripts/services/customModules/facades/ILegacyFacade.d.ts +0 -238
- package/types/_core/scripts/services/customModules/facades/IMdtFacade.d.ts +0 -87
- package/types/_core/scripts/services/customModules/facades/IModuleRegistryFacade.d.ts +0 -5
- package/types/_core/scripts/services/customModules/facades/IPageFacade.d.ts +0 -7
- package/types/_core/scripts/services/customModules/facades/List/Column/IColumnFacade.d.ts +0 -7
- package/types/_core/scripts/services/customModules/facades/List/IListCellFacade.d.ts +0 -8
- package/types/_core/scripts/services/customModules/facades/List/IListComponentFacade.d.ts +0 -10
- package/types/_core/scripts/services/customModules/facades/List/IListControlFacade.d.ts +0 -88
- package/types/_core/scripts/services/customModules/facades/List/IListRowFacade.d.ts +0 -2
- package/types/_core/scripts/services/customModules/facades/List/IListServiceFacade.d.ts +0 -96
- package/types/_core/scripts/services/customModules/facades/List/ListOptions/IListOptions.d.ts +0 -4
- package/types/_core/scripts/services/customModules/facades/components/CodeEditorFacade.d.ts +0 -9
- package/types/_core/scripts/services/customModules/facades/components/ModalFacade.d.ts +0 -4
- package/types/_core/scripts/services/customModules/facades/formDashboard/IFormDashboard.d.ts +0 -20
- package/types/_core/scripts/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +0 -77
- package/types/_core/scripts/services/customModules/facades/internalModules/importModuleFacade.d.ts +0 -53
- package/types/_core/scripts/services/customModules/facades/internalModules/jobFacade.d.ts +0 -7
- package/types/_core/scripts/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +0 -12
- package/types/_core/scripts/services/customModules/facades/internalModules/statusFacade.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/record/IRecordFacade.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/record/IRecordManagerFacade.d.ts +0 -5
- package/types/_core/scripts/services/customModules/facades/schema/IFieldFacade.d.ts +0 -14
- package/types/_core/scripts/services/customModules/facades/schema/IObjectFacade.d.ts +0 -20
- package/types/_core/scripts/services/customModules/facades/schema/ISchemaFacade.d.ts +0 -24
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +0 -23
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +0 -8
- package/types/_core/scripts/services/customModules/facades/services/CommandManagerFacade.d.ts +0 -11
- package/types/_core/scripts/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/services/INavigationFacade.d.ts +0 -91
- package/types/_core/scripts/services/customModules/facades/services/ISecurityFacade.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/utils/IApiFacade.d.ts +0 -91
- package/types/_core/scripts/services/customModules/facades/utils/IUiComponentsFacade.d.ts +0 -185
- package/types/_core/scripts/services/customModules/facades/utils/IUiFacade.d.ts +0 -83
- package/types/_core/scripts/services/customModules/facades/utils/IUtilsFacade.d.ts +0 -224
- package/types/_core/scripts/services/customModules/facades/utils/ImUtilsFacade.d.ts +0 -41
- package/types/_core/scripts/services/dropdown/IDropDownMenu.d.ts +0 -40
- package/types/_core/scripts/services/e2e/e2eServiceType.d.ts +0 -11
- package/types/_core/scripts/ui-kit/IUiKitUtilsFacade.d.ts +0 -21
- package/types/_core/scripts/ui-kit/UiKitFacade.d.ts +0 -101
- package/types/_core/scripts/views/controls/Control.d.ts +0 -7
- package/types/_core/scripts/views/controls/panels/panelOptions.d.ts +0 -15
- package/types/_core/scripts/views/form/controls/commonControl/ICommonControl.d.ts +0 -28
- package/types/_core/scripts/views/form/controls/fileupload/FileInputFacade.types.d.ts +0 -6
- package/types/_core/scripts/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +0 -24
- package/types/_core/scripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +0 -70
- package/types/_core/scripts/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +0 -36
- package/types/_core/scripts/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +0 -21
- package/types/_core/scripts/views/form/formTypes.d.ts +0 -5
- package/types/_core/scripts/views/form/schema/FormPageExtOptions.schema.d.ts +0 -22
- package/types/_core/scripts/views/form/schema/FormPageOptions.schema.d.ts +0 -19
- package/types/_core/scripts/views/gallery/ImageFetchOptions.d.ts +0 -5
- package/types/_core/scripts/views/list/ListViewOptions.d.ts +0 -99
- package/types/_core/scripts/views/list/features/aggregation/AggregationRowListOptions.d.ts +0 -23
- package/types/_core/scripts/views/list/schema/ListPageExtOptions.schema.d.ts +0 -123
- package/types/_core/scripts/views/list/schema/ListPageOptions.schema.d.ts +0 -145
- package/types/_core/scripts/views/list/tabular/TabularListTypes.d.ts +0 -53
- package/types/_core/scripts/views/page/PageZoneTypes.d.ts +0 -1
- package/types/_core/scripts/views/page/charts/ChartControlOptions.schema.d.ts +0 -759
- package/types/_core/scripts/views/page/charts/facade/IChartControlFacade.d.ts +0 -29
- package/types/_core/scripts/views/page/charts/reportDashboard/config/chartConfig.d.ts +0 -31
- package/types/_core/scripts/views/page/charts/reportDashboard/config/filterConfig.d.ts +0 -56
- package/types/_core/scripts/views/page/charts/reportDashboard/config/listConfig.d.ts +0 -9
- package/types/_core/scripts/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +0 -55
- package/types/_core/scripts/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +0 -3
- package/types/_core/scripts/views/page/charts/reportDashboard/index.d.ts +0 -5
- package/types/_core/scripts/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +0 -13
- package/types/job/scripts/types.d.ts +0 -11
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IFilterGroup } from "../services/IFilter";
|
|
2
|
-
import { MdtField } from "../common/MdtField";
|
|
3
|
-
import { MdtObject } from "../common/MdtObject";
|
|
4
|
-
import { Record } from "../common/Record";
|
|
5
|
-
export declare enum PermissionLevel {
|
|
6
|
-
None = 0,
|
|
7
|
-
Read = 1,
|
|
8
|
-
Write = 2,
|
|
9
|
-
Delete = 4,
|
|
10
|
-
Add = 8,
|
|
11
|
-
Execute = 16,
|
|
12
|
-
Filter = 32,
|
|
13
|
-
All = 255
|
|
14
|
-
}
|
|
15
|
-
/** Example: "Read, Write, Delete, Add" */
|
|
16
|
-
export declare type PermissionLevelString = string;
|
|
17
|
-
export interface PrincipalPermission extends Record {
|
|
18
|
-
ID_Permission?: number;
|
|
19
|
-
ID_Permission$?: Permission;
|
|
20
|
-
ID_Object?: number;
|
|
21
|
-
ID_Object$?: MdtObject;
|
|
22
|
-
ID_Field?: number;
|
|
23
|
-
ID_Field$?: MdtField;
|
|
24
|
-
LevelGrant?: PermissionLevel;
|
|
25
|
-
LevelDeny?: PermissionLevel;
|
|
26
|
-
Filter?: IFilterGroup;
|
|
27
|
-
}
|
|
28
|
-
export interface Permission extends Record {
|
|
29
|
-
id?: number;
|
|
30
|
-
Code: string;
|
|
31
|
-
LevelMask: PermissionLevel;
|
|
32
|
-
ID_Parent: number;
|
|
33
|
-
FlagObject: boolean;
|
|
34
|
-
FlagField: boolean;
|
|
35
|
-
}
|
|
36
|
-
export declare class PrincipalTypes {
|
|
37
|
-
static User: string;
|
|
38
|
-
static Group: string;
|
|
39
|
-
static Role: string;
|
|
40
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ApiV1 } from "mdtServices/api/ApiAccessor/apiV1Types";
|
|
2
|
-
export interface User {
|
|
3
|
-
$id: number;
|
|
4
|
-
id: any;
|
|
5
|
-
permissions: ApiV1.Response.User.Permissions;
|
|
6
|
-
login: string;
|
|
7
|
-
fullName: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
identityName: string;
|
|
10
|
-
isAdmin: boolean;
|
|
11
|
-
isAnonymous: boolean;
|
|
12
|
-
roles: string[];
|
|
13
|
-
languageId: number;
|
|
14
|
-
languageCode: string;
|
|
15
|
-
isImpersonated: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare type UserPermissionType = ApiV1.Response.User.UserPermissionType;
|
|
18
|
-
export declare type ObjectPermission = ApiV1.Response.User.ObjectPermission;
|
|
19
|
-
export declare type CommonPermissionData = ApiV1.Response.User.CommonPermissonData;
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Фильтр
|
|
3
|
-
*
|
|
4
|
-
* @default { "op": "eq", "p1": "", "p2": "" }
|
|
5
|
-
*/
|
|
6
|
-
export declare type IFilter = IFilterItem | IFilterGroup | IFilterIn | IFilterQueryIn;
|
|
7
|
-
export declare type FilterKeys = keyof IFilter | keyof IFilterItem | keyof IFilterGroup;
|
|
8
|
-
export declare type FilterUserIdOp = "userId";
|
|
9
|
-
export declare type FilterOp = "eq" | "ne" | "gt" | "ge" | "lt" | "le" | "startsWith" | "endsWith" | "contains" | "fulltext" | "equalTemplate" | "queryIn" | "notStartsWith" | "notContains" | "notEndsWith" | "null" | "notNull" | FilterUserIdOp | FilterInOperation;
|
|
10
|
-
export declare type FilterGroupOp = "and" | "or";
|
|
11
|
-
export declare type AnyFilterOp = FilterOp | FilterGroupOp;
|
|
12
|
-
export interface QueryInValue {
|
|
13
|
-
table?: string;
|
|
14
|
-
field?: string;
|
|
15
|
-
args?: string;
|
|
16
|
-
filter?: IFilter;
|
|
17
|
-
}
|
|
18
|
-
/** Группировка фильтров */
|
|
19
|
-
export interface IFilterGroup {
|
|
20
|
-
op: FilterGroupOp;
|
|
21
|
-
groups: IFilter[];
|
|
22
|
-
not?: boolean;
|
|
23
|
-
}
|
|
24
|
-
/** Фильтр */
|
|
25
|
-
export interface IFilterItem {
|
|
26
|
-
op: FilterOp;
|
|
27
|
-
/** Поле, по которому происходит фильтрация */
|
|
28
|
-
p1: string;
|
|
29
|
-
/** Значение фильтра */
|
|
30
|
-
p2: string | number | Date | QueryInValue;
|
|
31
|
-
not?: boolean;
|
|
32
|
-
cast?: "date";
|
|
33
|
-
}
|
|
34
|
-
declare const filterInOp = "in";
|
|
35
|
-
export declare type FilterInOperation = typeof filterInOp;
|
|
36
|
-
/** Фильтр */
|
|
37
|
-
export interface IFilterIn extends Omit<IFilterItem, "op" | "p2"> {
|
|
38
|
-
op: FilterInOperation;
|
|
39
|
-
p2: {
|
|
40
|
-
table: string;
|
|
41
|
-
field: string;
|
|
42
|
-
filter?: IFilter;
|
|
43
|
-
args?: QueryInArgs;
|
|
44
|
-
} | (string | Date | number)[];
|
|
45
|
-
}
|
|
46
|
-
export declare type QueryInArgs = ArgValue[] | {
|
|
47
|
-
[k: string]: ArgValue;
|
|
48
|
-
};
|
|
49
|
-
declare type ArgValue = any;
|
|
50
|
-
export interface IFilterQueryIn extends Omit<IFilterIn, "op" | "p2"> {
|
|
51
|
-
op: FilterInOperation | "queryIn";
|
|
52
|
-
p2: QueryInValue;
|
|
53
|
-
}
|
|
54
|
-
export interface FilterSetterOptions {
|
|
55
|
-
fireEvents?: boolean;
|
|
56
|
-
}
|
|
57
|
-
export interface FilterConstructor {
|
|
58
|
-
new (): Filter;
|
|
59
|
-
/**
|
|
60
|
-
* Создает группу фильтров, где все условия должны быть выполнены
|
|
61
|
-
*
|
|
62
|
-
* @param groups Группа фильтров - указываются необходимые фильтры
|
|
63
|
-
*
|
|
64
|
-
* **Пример**
|
|
65
|
-
*
|
|
66
|
-
* Поле `Name` должно быть равно `Ivan` и поле `LastName` должно быть равно `Ivanov`
|
|
67
|
-
* ```js
|
|
68
|
-
* Filter.and(Filter.eq('Name', 'Ivan'), Filter.eq('LastName', 'Ivanov'))
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
and(...groups: IFilter[]): IFilterGroup;
|
|
72
|
-
/**
|
|
73
|
-
* Создает группу фильтров, где хотя бы одно условие должно быть выполнено
|
|
74
|
-
*
|
|
75
|
-
* @param groups Группа фильтров - указываются необходимые фильтры
|
|
76
|
-
*
|
|
77
|
-
* Поле `Name` должно быть равно `Ivan` или поле `Name` должно быть равно `Petr`
|
|
78
|
-
* **Пример**
|
|
79
|
-
*
|
|
80
|
-
* ```js
|
|
81
|
-
* Filter.or(Filter.eq('Name', 'Ivan'), Filter.eq('Name', 'Petr'))
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
or(...groups: IFilter[]): IFilterGroup;
|
|
85
|
-
/**
|
|
86
|
-
* Создает фильтр, который проверяет равенство значения поля заданному значению
|
|
87
|
-
*
|
|
88
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
89
|
-
* @param value Значение фильтра
|
|
90
|
-
*
|
|
91
|
-
* **Пример**
|
|
92
|
-
*
|
|
93
|
-
* Поле `Name` должно быть равно `Ivan`
|
|
94
|
-
* ```js
|
|
95
|
-
* Filter.eq('Name', 'Ivan')
|
|
96
|
-
* ```
|
|
97
|
-
*/
|
|
98
|
-
eq(fieldPath: string, value: any): IFilterItem;
|
|
99
|
-
/**
|
|
100
|
-
* Создает фильтр, который проверяет неравенство значения поля заданному значению
|
|
101
|
-
*
|
|
102
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
103
|
-
* @param value Значение фильтра
|
|
104
|
-
*
|
|
105
|
-
* **Пример**
|
|
106
|
-
*
|
|
107
|
-
* Поле `Name` не должно быть равно `Ivan`
|
|
108
|
-
* ```js
|
|
109
|
-
* Filter.ne('Name', 'Ivan')
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
ne(fieldPath: string, value: any): IFilterItem;
|
|
113
|
-
/**
|
|
114
|
-
* Создает фильтр, который проверяет, что значение указанного поля больше заданного значения
|
|
115
|
-
*
|
|
116
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
117
|
-
* @param value Значение фильтра
|
|
118
|
-
*
|
|
119
|
-
* **Пример**
|
|
120
|
-
*
|
|
121
|
-
* Поле `SumOrder` должно быть больше `100000`
|
|
122
|
-
* ```js
|
|
123
|
-
* Filter.gt('SumOrder', 100000)
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
gt(fieldPath: string, value: any): IFilterItem;
|
|
127
|
-
/**
|
|
128
|
-
* Создает фильтр, который проверяет, что значение указанного поля больше или равно заданному значению
|
|
129
|
-
*
|
|
130
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
131
|
-
* @param value Значение фильтра
|
|
132
|
-
*
|
|
133
|
-
* **Пример**
|
|
134
|
-
*
|
|
135
|
-
* Поле `SumOrder` должно быть больше или равно `100000`
|
|
136
|
-
* ```js
|
|
137
|
-
* Filter.ge('SumOrder', 100000)
|
|
138
|
-
* ```
|
|
139
|
-
*/
|
|
140
|
-
ge(fieldPath: string, value: any): IFilterItem;
|
|
141
|
-
/**
|
|
142
|
-
* Создает фильтр, который проверяет, что значение указанного поля меньше заданного значения
|
|
143
|
-
*
|
|
144
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
145
|
-
* @param value Значение фильтра
|
|
146
|
-
*
|
|
147
|
-
* **Пример**
|
|
148
|
-
*
|
|
149
|
-
* Поле `SumOrder` должно быть меньше `100000`
|
|
150
|
-
* ```js
|
|
151
|
-
* Filter.lt('SumOrder', 100000)
|
|
152
|
-
* ```
|
|
153
|
-
*/
|
|
154
|
-
lt(fieldPath: string, value: any): IFilterItem;
|
|
155
|
-
/**
|
|
156
|
-
* Создает фильтр, который проверяет, что значение указанного поля меньше или равно заданному значению
|
|
157
|
-
*
|
|
158
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
159
|
-
* @param value Значение фильтра
|
|
160
|
-
*
|
|
161
|
-
* **Пример**
|
|
162
|
-
*
|
|
163
|
-
* Поле `SumOrder` должно быть меньше или равно `100000`
|
|
164
|
-
* ```js
|
|
165
|
-
* Filter.le('SumOrder', 100000)
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
|
-
le(fieldPath: string, value: any): IFilterItem;
|
|
169
|
-
/**
|
|
170
|
-
* Создает фильтр, который проверяет, начинается ли значение указанного поля с заданной подстроки
|
|
171
|
-
*
|
|
172
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
173
|
-
* @param value Подстрока, с которой должно начинаться значение
|
|
174
|
-
*
|
|
175
|
-
* **Пример**
|
|
176
|
-
*
|
|
177
|
-
* Поле `LastName` должно начинаться с `Al`
|
|
178
|
-
* ```js
|
|
179
|
-
* Filter.startsWith('LastName', 'Al')
|
|
180
|
-
* ```
|
|
181
|
-
*/
|
|
182
|
-
startsWith(fieldPath: string, value: any): IFilterItem;
|
|
183
|
-
/**
|
|
184
|
-
* Создает фильтр, который проверяет, заканчивается ли значение указанного поля на заданную подстроку
|
|
185
|
-
*
|
|
186
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
187
|
-
* @param value Подстрока, с которой должно заканчиваться значение
|
|
188
|
-
*
|
|
189
|
-
* **Пример**
|
|
190
|
-
*
|
|
191
|
-
* Поле `LastName` должно заканчиваться на `ov`
|
|
192
|
-
* ```js
|
|
193
|
-
* Filter.endsWith('LastName', 'ov')
|
|
194
|
-
* ```
|
|
195
|
-
*/
|
|
196
|
-
endsWith(fieldPath: string, value: any): IFilterItem;
|
|
197
|
-
/**
|
|
198
|
-
* Создает фильтр, который проверяет, содержит ли значение указанного поля заданную подстроку
|
|
199
|
-
*
|
|
200
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
201
|
-
* @param value Подстрока, которую должно содержать значение
|
|
202
|
-
*
|
|
203
|
-
* **Пример**
|
|
204
|
-
*
|
|
205
|
-
* Поле `LastName` должно содержать `an`
|
|
206
|
-
* ```js
|
|
207
|
-
* Filter.contains('LastName', 'an')
|
|
208
|
-
* ```
|
|
209
|
-
*/
|
|
210
|
-
contains(fieldPath: string, value: any): IFilterItem;
|
|
211
|
-
/**
|
|
212
|
-
* Создает фильтр для полнотекстового поиска по указанному полю
|
|
213
|
-
*
|
|
214
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
215
|
-
* @param value Подстрока, которую должно содержать значение
|
|
216
|
-
*
|
|
217
|
-
* **Пример**
|
|
218
|
-
*
|
|
219
|
-
* Поле `Description` должно содержать `example`
|
|
220
|
-
* ```js
|
|
221
|
-
* Filter.fulltext('Description', 'example');
|
|
222
|
-
* ```
|
|
223
|
-
*/
|
|
224
|
-
fulltext(fieldPath: string, value: any): IFilterItem;
|
|
225
|
-
/**
|
|
226
|
-
* Создает фильтр, который исключает значения, соответствующие указанному фильтру
|
|
227
|
-
*
|
|
228
|
-
* @param filter Фильтр
|
|
229
|
-
*
|
|
230
|
-
* **Пример**
|
|
231
|
-
*
|
|
232
|
-
* Поле `Name` должно содержать любое значение кроме `Ivan`
|
|
233
|
-
* ```js
|
|
234
|
-
* Filter.not(Filter.eq('Name', 'Ivan'))
|
|
235
|
-
* ```
|
|
236
|
-
*/
|
|
237
|
-
not(filter: IFilterItem | IFilterIn): IFilterItem;
|
|
238
|
-
/**
|
|
239
|
-
* Фильтр, проверяющий, что поле содержит одно из перечисленных значений
|
|
240
|
-
*
|
|
241
|
-
* @param fieldPath Поле, по которому происходит фильтрация
|
|
242
|
-
* @param array Массив значений
|
|
243
|
-
*
|
|
244
|
-
* **Пример**
|
|
245
|
-
*
|
|
246
|
-
* Поле `Name` должно содержать либо значение `Ivan`, либо `Petr`
|
|
247
|
-
* ```js
|
|
248
|
-
* Filter.in('Name', ['Ivan', 'Petr'])
|
|
249
|
-
* ```
|
|
250
|
-
*/
|
|
251
|
-
in(fieldPath: string, array: any[]): IFilterIn;
|
|
252
|
-
/**
|
|
253
|
-
* Строится фильтр для поля на основании значений из другой таблицы
|
|
254
|
-
* @param field Поле, по которому происходит фильтрация
|
|
255
|
-
* @param objectCode Код объекта, из которой берутся значения. Может быть таблицей, представлением, функцей и т.д.
|
|
256
|
-
* @param subField Поле, по которому происходит фильтрация в другой таблице
|
|
257
|
-
* @param filter Фильтр, который применяется к другой таблице
|
|
258
|
-
* @param args Аргументы для объекта (например для функции). Можно задать, например, в виде `{ Search: "Москва" }`.
|
|
259
|
-
*
|
|
260
|
-
* **Пример**
|
|
261
|
-
*
|
|
262
|
-
* Отфильтруется поле `Title` текущей таблицы по полю `Name` таблицы `mdt.Employee`, где поле `Name` равно `Ivan`
|
|
263
|
-
* ```js
|
|
264
|
-
* Filter.queryIn('Title', 'mdt.Employee', 'Name', Filter.eq('Name', 'Ivan'))
|
|
265
|
-
* ```
|
|
266
|
-
*/
|
|
267
|
-
queryIn(field: string, objectCode: string, subField: string, filter?: IFilter, args?: any): IFilterIn;
|
|
268
|
-
/**
|
|
269
|
-
* Преобразует тип данных фильтра
|
|
270
|
-
*
|
|
271
|
-
* @param filter Фильтр
|
|
272
|
-
* @param cast Значение, к типу которого приводится фильтр
|
|
273
|
-
*
|
|
274
|
-
* **Пример**
|
|
275
|
-
*
|
|
276
|
-
* Значение поля `DateTime` приводится к типу `date` (`value` содержит значение типа `datetime`)
|
|
277
|
-
* ```js
|
|
278
|
-
* Filter.cast(Filter.eq('DateTime', value), 'date')
|
|
279
|
-
* ```
|
|
280
|
-
*/
|
|
281
|
-
cast(filter: IFilter, cast: string): IFilter;
|
|
282
|
-
/**
|
|
283
|
-
* Проверка, что фильтр пустой
|
|
284
|
-
*
|
|
285
|
-
* **Пример**
|
|
286
|
-
*
|
|
287
|
-
* Проверка, что `filter` пустой
|
|
288
|
-
* ```js
|
|
289
|
-
* if (filter === Filter.empty) { ... }
|
|
290
|
-
* ```
|
|
291
|
-
*/
|
|
292
|
-
empty: any;
|
|
293
|
-
}
|
|
294
|
-
export declare class Filter {
|
|
295
|
-
static empty: IFilter;
|
|
296
|
-
static isEmptyFilter(filter: IFilter): boolean;
|
|
297
|
-
static mergeFilters(orig: IFilter, filter: IFilter): IFilter;
|
|
298
|
-
static and(...groups: any[]): IFilterGroup;
|
|
299
|
-
static or(...groups: any[]): IFilterGroup;
|
|
300
|
-
static eq(p1: any, p2: any): IFilterItem;
|
|
301
|
-
static ne(p1: any, p2: any): IFilterItem;
|
|
302
|
-
static gt(p1: any, p2: any): IFilterItem;
|
|
303
|
-
static ge(p1: any, p2: any): IFilterItem;
|
|
304
|
-
static lt(p1: any, p2: any): IFilterItem;
|
|
305
|
-
static le(p1: any, p2: any): IFilterItem;
|
|
306
|
-
static startsWith(p1: any, p2: any): IFilterItem;
|
|
307
|
-
static endsWith(p1: any, p2: any): IFilterItem;
|
|
308
|
-
static contains(p1: any, p2: any): IFilterItem;
|
|
309
|
-
static fulltext(p1: any, p2: any): IFilterItem;
|
|
310
|
-
static not(f: any): IFilterItem;
|
|
311
|
-
static in(p1: any, ar: any): IFilterIn;
|
|
312
|
-
static queryIn(field: any, table: any, subField: any, filter?: any, args?: any): IFilterIn;
|
|
313
|
-
static cast(filter: any, cast: any): IFilter;
|
|
314
|
-
static equalTemplate(p1: any, p2: any): IFilter;
|
|
315
|
-
static isFilter(filter: unknown): filter is IFilter;
|
|
316
|
-
static isFilterGroup(filter: IFilter): filter is IFilterGroup;
|
|
317
|
-
static isFilterItem(filter: IFilter): filter is IFilterItem;
|
|
318
|
-
static isFilterIn(filter: IFilter): filter is IFilterIn;
|
|
319
|
-
static isFilterQueryIn(filter: IFilter): filter is IFilterQueryIn;
|
|
320
|
-
static getP2(filter: IFilter): string | number | QueryInValue | Date;
|
|
321
|
-
}
|
|
322
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ModuleCode } from "../helpers/types";
|
|
2
|
-
import { RecordId } from "../common/Record";
|
|
3
|
-
import { Record } from "../common/Record";
|
|
4
|
-
export interface ModuleData extends Record {
|
|
5
|
-
Code: ModuleCode;
|
|
6
|
-
ID_Package?: RecordId;
|
|
7
|
-
Icon?: string;
|
|
8
|
-
Title?: string;
|
|
9
|
-
}
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import { HierarchicalRecord, MdtRecord, RecordId } from "mdtScripts/common/Record";
|
|
2
|
-
import { AnyObject, ColorStyle, FieldCode, ModuleId, ObjectCode, ObjectId, ObjectTitle } from "mdtScripts/helpers/types";
|
|
3
|
-
import { PermissionLevel } from "mdtScripts/security/PermissionLevel";
|
|
4
|
-
export declare namespace ApiV1 {
|
|
5
|
-
namespace Request {
|
|
6
|
-
export type Common = Main | Main[];
|
|
7
|
-
type Main = Save | Delete | AnyObject;
|
|
8
|
-
export interface Save extends MdtRecord, WithParams {
|
|
9
|
-
}
|
|
10
|
-
export type WithParams = {
|
|
11
|
-
$params?: CommonParams;
|
|
12
|
-
};
|
|
13
|
-
export type CommonParams = AnyObject & BaseParams & DataExtParams & DmParams & SaveParams;
|
|
14
|
-
interface BaseParams {
|
|
15
|
-
formId?: RecordId;
|
|
16
|
-
}
|
|
17
|
-
interface DataExtParams {
|
|
18
|
-
ID_Language_ext?: RecordId;
|
|
19
|
-
}
|
|
20
|
-
interface DmParams {
|
|
21
|
-
FlagConfirm?: boolean;
|
|
22
|
-
Actions?: ApiV1.Response.DmAction[];
|
|
23
|
-
}
|
|
24
|
-
interface SaveParams {
|
|
25
|
-
StatusComment?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface Delete extends WithParams {
|
|
28
|
-
tableName: ObjectCode;
|
|
29
|
-
IdList: RecordId[];
|
|
30
|
-
Actions?: Response.DmAction[];
|
|
31
|
-
}
|
|
32
|
-
export namespace Fetch {
|
|
33
|
-
type Params = DataExtParams & MappingParams;
|
|
34
|
-
interface DataExtParams {
|
|
35
|
-
ID_Language_ext?: RecordId;
|
|
36
|
-
dataext?: "explicit";
|
|
37
|
-
}
|
|
38
|
-
interface MappingParams {
|
|
39
|
-
flagGetMappedFKs?: boolean;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* В query.select в Api V1 может содержаться как функция аггрегации, так и приведение типа.
|
|
43
|
-
* Примеры:
|
|
44
|
-
* - `date(DateCreate) date` - приведение datetime к типу date
|
|
45
|
-
* - `avg(Amount) amount` - агрегация
|
|
46
|
-
*/
|
|
47
|
-
type AggragationOrCast = "date" | AggregationType;
|
|
48
|
-
interface ParsedQuery extends Params {
|
|
49
|
-
table?: string;
|
|
50
|
-
select?: string;
|
|
51
|
-
filter?: string;
|
|
52
|
-
orderby?: string;
|
|
53
|
-
skip?: number;
|
|
54
|
-
top?: number;
|
|
55
|
-
distinct?: true;
|
|
56
|
-
aggregate?: true;
|
|
57
|
-
withCount?: true;
|
|
58
|
-
params?: any[][];
|
|
59
|
-
date?: string;
|
|
60
|
-
hierarchy?: string;
|
|
61
|
-
placeIn?: string;
|
|
62
|
-
checkDependency?: string;
|
|
63
|
-
audit?: string;
|
|
64
|
-
workflow?: string;
|
|
65
|
-
workflowStage?: boolean;
|
|
66
|
-
tag?: string;
|
|
67
|
-
export?: string;
|
|
68
|
-
format?: string;
|
|
69
|
-
groups?: string;
|
|
70
|
-
skippedRowsCount?: number;
|
|
71
|
-
/** Нужен для сопоставления ответа в ApiService при сборке нескольких запросов в 1 */
|
|
72
|
-
key?: string;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
export {};
|
|
76
|
-
}
|
|
77
|
-
namespace Response {
|
|
78
|
-
export type Main = AnyObject | DmMessage | Error;
|
|
79
|
-
export interface DmMessage {
|
|
80
|
-
$: "cst";
|
|
81
|
-
items: DmItem[];
|
|
82
|
-
}
|
|
83
|
-
type DmItem = {
|
|
84
|
-
code?: "actions";
|
|
85
|
-
rows?: DmAction[];
|
|
86
|
-
};
|
|
87
|
-
export interface DmAction extends MdtRecord {
|
|
88
|
-
FieldCode?: FieldCode;
|
|
89
|
-
ID_Action?: string;
|
|
90
|
-
ID_Object?: number;
|
|
91
|
-
ID_ObjectField?: RecordId;
|
|
92
|
-
ObjectCode?: string;
|
|
93
|
-
ObjectTitle?: string;
|
|
94
|
-
RecordCount?: string;
|
|
95
|
-
Warning?: string;
|
|
96
|
-
AvailActions?: string[];
|
|
97
|
-
}
|
|
98
|
-
export interface Error {
|
|
99
|
-
Message: string;
|
|
100
|
-
Code: string;
|
|
101
|
-
Args?: any;
|
|
102
|
-
Debug?: any;
|
|
103
|
-
Error: boolean;
|
|
104
|
-
}
|
|
105
|
-
export interface Save {
|
|
106
|
-
$: "msg";
|
|
107
|
-
items: Save.StatItem[];
|
|
108
|
-
debug?: {
|
|
109
|
-
objectRuleLogs?: string[];
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
export namespace Save {
|
|
113
|
-
interface StatItem {
|
|
114
|
-
stats: Stats;
|
|
115
|
-
ids?: RecordId[];
|
|
116
|
-
extIds?: StatExtItem[];
|
|
117
|
-
}
|
|
118
|
-
interface Stats {
|
|
119
|
-
inserted: number;
|
|
120
|
-
updated: number;
|
|
121
|
-
deleted: number;
|
|
122
|
-
}
|
|
123
|
-
interface StatExtItem {
|
|
124
|
-
ID: RecordId;
|
|
125
|
-
Table: string;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
/** Fetch */
|
|
129
|
-
export type Fetch = Fetch.Common<HierarchicalRecord> | Fetch.Common;
|
|
130
|
-
export namespace Fetch {
|
|
131
|
-
interface Common<RowsType = Record> {
|
|
132
|
-
Rows?: RowsType[];
|
|
133
|
-
Items?: any[];
|
|
134
|
-
Count?: number;
|
|
135
|
-
[k: string]: any;
|
|
136
|
-
}
|
|
137
|
-
interface Record extends MdtRecord {
|
|
138
|
-
$tag?: {
|
|
139
|
-
ticket: string;
|
|
140
|
-
list: RecordId[];
|
|
141
|
-
};
|
|
142
|
-
$audit?: {
|
|
143
|
-
ticket: string;
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Ограничения на действия (CRUD) над записью и её полями, накладываемые функцией безопасности.
|
|
147
|
-
* [Документация](https://ics-it.gram.ax/mdt/security/objectSecurity/sqlFn?l=ru)
|
|
148
|
-
*/
|
|
149
|
-
$access?: {
|
|
150
|
-
BaseLevel: PermissionLevel;
|
|
151
|
-
Level: PermissionLevel;
|
|
152
|
-
Fields: {
|
|
153
|
-
[fieldId: number]: {
|
|
154
|
-
Level: PermissionLevel;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
$workflowStage?: {
|
|
159
|
-
Title: string;
|
|
160
|
-
Icon: string;
|
|
161
|
-
LabelStyleCode: ColorStyle;
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
export namespace File {
|
|
166
|
-
interface Upload {
|
|
167
|
-
ID: RecordId;
|
|
168
|
-
ShortUid: string;
|
|
169
|
-
UID: string;
|
|
170
|
-
Name: string;
|
|
171
|
-
Size?: number;
|
|
172
|
-
StorageProvider?: StorageProvider;
|
|
173
|
-
}
|
|
174
|
-
type StorageProvider = "db";
|
|
175
|
-
}
|
|
176
|
-
export namespace Template {
|
|
177
|
-
interface Preview {
|
|
178
|
-
Context: AnyObject;
|
|
179
|
-
Script: string;
|
|
180
|
-
Header: string;
|
|
181
|
-
Text: string;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
export namespace User {
|
|
185
|
-
interface Permissions {
|
|
186
|
-
object: ObjectPermissions;
|
|
187
|
-
listview: PermissionLevel;
|
|
188
|
-
namedfilters: PermissionLevel;
|
|
189
|
-
tag: PermissionLevel;
|
|
190
|
-
[code: string]: CommonPermissonData;
|
|
191
|
-
}
|
|
192
|
-
type CommonPermissonData = PermissionLevel | ObjectPermissions;
|
|
193
|
-
type UserPermissionType = keyof Permissions;
|
|
194
|
-
interface EntityPermission {
|
|
195
|
-
level: PermissionLevel;
|
|
196
|
-
}
|
|
197
|
-
type ObjectPermissions = Record<RecordId, ObjectPermission>;
|
|
198
|
-
interface ObjectPermission {
|
|
199
|
-
level: PermissionLevel;
|
|
200
|
-
fields?: Record<RecordId, EntityPermission>;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
export interface User {
|
|
204
|
-
id: any;
|
|
205
|
-
permissions: User.Permissions;
|
|
206
|
-
login: string;
|
|
207
|
-
fullName: string;
|
|
208
|
-
email?: string;
|
|
209
|
-
identityName: string;
|
|
210
|
-
isAdmin: boolean;
|
|
211
|
-
isAnonymous: boolean;
|
|
212
|
-
roles: string[];
|
|
213
|
-
languageId: number;
|
|
214
|
-
languageCode: string;
|
|
215
|
-
isImpersonated: boolean;
|
|
216
|
-
}
|
|
217
|
-
export namespace Schema {
|
|
218
|
-
interface Object {
|
|
219
|
-
$id?: ObjectId;
|
|
220
|
-
accessLevel?: PermissionLevel;
|
|
221
|
-
code?: ObjectCode;
|
|
222
|
-
defaultFieldCode?: any;
|
|
223
|
-
deleted?: boolean;
|
|
224
|
-
fields?: Field[];
|
|
225
|
-
id?: ObjectId;
|
|
226
|
-
id_ObjectType?: string;
|
|
227
|
-
id_ver_Module?: ModuleId;
|
|
228
|
-
object_id?: number;
|
|
229
|
-
tag_Enabled?: boolean;
|
|
230
|
-
title?: ObjectTitle;
|
|
231
|
-
"title@"?: ObjectTitle;
|
|
232
|
-
titlePlural?: string;
|
|
233
|
-
"titlePlural@"?: string;
|
|
234
|
-
description?: string;
|
|
235
|
-
readonly?: boolean;
|
|
236
|
-
icon?: string;
|
|
237
|
-
audit_Enabled?: boolean;
|
|
238
|
-
inline_AddInRow?: boolean;
|
|
239
|
-
inline_Enabled?: boolean;
|
|
240
|
-
hierarchyParentField?: string;
|
|
241
|
-
hierarchyIDField?: string;
|
|
242
|
-
flagHierarchy?: boolean;
|
|
243
|
-
flagConfiguration?: boolean;
|
|
244
|
-
settings?: string;
|
|
245
|
-
}
|
|
246
|
-
interface Field {
|
|
247
|
-
code: string;
|
|
248
|
-
type: string;
|
|
249
|
-
dataType: string;
|
|
250
|
-
$id?: ObjectId;
|
|
251
|
-
id?: ObjectId;
|
|
252
|
-
title?: string;
|
|
253
|
-
"title@"?: string;
|
|
254
|
-
identity?: boolean;
|
|
255
|
-
refTableCode?: string;
|
|
256
|
-
sortOreder?: number;
|
|
257
|
-
flagScriptDfkInline?: boolean;
|
|
258
|
-
primary?: boolean;
|
|
259
|
-
readonly?: boolean;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
export type Schema = Schema.Object | Schema.Object[];
|
|
263
|
-
export {};
|
|
264
|
-
}
|
|
265
|
-
type AggregationType = "sum" | "avg" | "count" | "distinct" | "max" | "min";
|
|
266
|
-
}
|