mdt-client 31.3.39 → 31.3.41
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 +11 -11
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/package.json +38 -38
- package/readme.md +15 -15
- package/types/_core/scripts/common/Datasource.d.ts +9 -0
- package/types/_core/scripts/common/Field.d.ts +51 -0
- package/types/_core/scripts/common/FieldSettings.schema.d.ts +17 -0
- package/types/_core/scripts/common/MdtField.d.ts +9 -0
- package/types/_core/scripts/common/MdtObject.d.ts +7 -0
- package/types/_core/scripts/common/Record.d.ts +27 -0
- package/types/_core/scripts/common/Table.d.ts +66 -0
- package/types/_core/scripts/common/form/tabs/TabsFormExtenderOptions.d.ts +12 -0
- package/types/_core/scripts/common/list/aggregation/AggregayionTypes.d.ts +2 -0
- package/types/_core/scripts/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -0
- package/types/_core/scripts/common/list/cellControlExtender/CellControlExtender.d.ts +1 -0
- package/types/_core/scripts/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -0
- package/types/_core/scripts/common/list/columnMenu/QuickFilterOptions.d.ts +7 -0
- package/types/_core/scripts/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -0
- package/types/_core/scripts/common/list/form/FormListPublicOptions.d.ts +40 -0
- package/types/_core/scripts/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -0
- package/types/_core/scripts/common/list/group/groupTypes.d.ts +177 -0
- package/types/_core/scripts/common/list/hierarchy/hierarchyTypes.d.ts +48 -0
- package/types/_core/scripts/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -0
- package/types/_core/scripts/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -0
- package/types/_core/scripts/common/list/legend/LegendListExtenderOptions.d.ts +8 -0
- package/types/_core/scripts/common/list/listView/ListViewListExtenderOptions.d.ts +25 -0
- package/types/_core/scripts/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -0
- package/types/_core/scripts/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -0
- package/types/_core/scripts/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -0
- package/types/_core/scripts/common/list/select/SelectPublicOptions.d.ts +18 -0
- package/types/_core/scripts/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -0
- package/types/_core/scripts/common/list/toolbar/ToolbarPublicOptions.d.ts +22 -0
- package/types/_core/scripts/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -0
- package/types/_core/scripts/common/serverMessage/ServerMessageTypes.d.ts +17 -0
- package/types/_core/scripts/components/baseFormControls/input/inputOptions.d.ts +30 -0
- package/types/_core/scripts/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -0
- package/types/_core/scripts/components/button/baseButton/buttonOptions.d.ts +12 -0
- package/types/_core/scripts/components/buttonGroup/buttonGroupOptions.d.ts +7 -0
- package/types/_core/scripts/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -0
- package/types/_core/scripts/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +19 -0
- package/types/_core/scripts/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -0
- package/types/_core/scripts/components/form/fieldView/fieldViewOptions.d.ts +13 -0
- package/types/_core/scripts/components/form/header/types.d.ts +14 -0
- package/types/_core/scripts/components/form/label/labelOptions.d.ts +22 -0
- package/types/_core/scripts/components/icon/iconOptions.d.ts +21 -0
- package/types/_core/scripts/components/iconButton/iconButtonOptions.d.ts +9 -0
- package/types/_core/scripts/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -0
- package/types/_core/scripts/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -0
- package/types/_core/scripts/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -0
- package/types/_core/scripts/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -0
- package/types/_core/scripts/components/resizablePanels/resizablePanelsOptions.d.ts +22 -0
- package/types/_core/scripts/components/textWithIcon/textWithIconOptions.d.ts +16 -0
- package/types/_core/scripts/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -0
- package/types/_core/scripts/data/active/ActivationListAdapterTypes.d.ts +6 -0
- package/types/_core/scripts/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -0
- package/types/_core/scripts/data/periods/helpers/types.d.ts +4 -0
- package/types/_core/scripts/datasources/FetchResult.d.ts +5 -0
- package/types/_core/scripts/helpers/IUi.d.ts +2 -0
- package/types/_core/scripts/helpers/dateUtils.d.ts +23 -0
- package/types/_core/scripts/helpers/deleteFromArray.d.ts +1 -0
- package/types/_core/scripts/helpers/events/EventEmitter.d.ts +12 -0
- package/types/_core/scripts/helpers/fireEvent.d.ts +4 -0
- package/types/_core/scripts/helpers/formatOptions.d.ts +16 -0
- package/types/_core/scripts/helpers/formattedText.d.ts +8 -0
- package/types/_core/scripts/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -0
- package/types/_core/scripts/helpers/pipeline/Pipeline.d.ts +20 -0
- package/types/_core/scripts/helpers/redraw.d.ts +16 -0
- package/types/_core/scripts/helpers/types.d.ts +84 -0
- package/types/_core/scripts/helpers/ui/elementModificators/focusableComponent.d.ts +14 -0
- package/types/_core/scripts/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -0
- package/types/_core/scripts/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -0
- package/types/_core/scripts/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -0
- package/types/_core/scripts/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -0
- package/types/_core/scripts/helpers/utils/classNames.d.ts +20 -0
- package/types/_core/scripts/helpers/utils/keyStorage/KeyStorage.d.ts +6 -0
- package/types/_core/scripts/helpers/utils/memoization/memoize.d.ts +18 -0
- package/types/_core/scripts/helpers/utils/object.d.ts +4 -0
- package/types/_core/scripts/helpers/utils/stringifyControlSize.d.ts +3 -0
- package/types/_core/scripts/helpers/utils/valued/getValued.d.ts +18 -0
- package/types/_core/scripts/helpers/zone/IZone.d.ts +7 -0
- package/types/_core/scripts/security/PermissionLevel.d.ts +40 -0
- package/types/_core/scripts/security/User.d.ts +19 -0
- package/types/_core/scripts/services/HotkeyManager.d.ts +6 -0
- package/types/_core/scripts/services/IFilter.d.ts +322 -0
- package/types/_core/scripts/services/ModuleData.d.ts +9 -0
- package/types/_core/scripts/services/api/ApiAccessor/apiV1Types.d.ts +266 -0
- package/types/_core/scripts/services/api/ApiAccessor/apiV2Types.d.ts +585 -0
- package/types/_core/scripts/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -0
- package/types/_core/scripts/services/api/ApiAccessor/job/jobApiTypes.d.ts +82 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -0
- package/types/_core/scripts/services/api/ApiRequestOptions.d.ts +43 -0
- package/types/_core/scripts/services/api/BaseQuery.d.ts +25 -0
- package/types/_core/scripts/services/api/Query.d.ts +56 -0
- package/types/_core/scripts/services/api/QuerySorting.d.ts +18 -0
- package/types/_core/scripts/services/api/ServerResonseType.d.ts +2 -0
- package/types/_core/scripts/services/commands/Command.d.ts +22 -0
- package/types/_core/scripts/services/commands/CommandGroup.d.ts +15 -0
- package/types/_core/scripts/services/commands/CommandManager.d.ts +77 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +36 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFormFacade.d.ts +102 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFormLayout.d.ts +12 -0
- package/types/_core/scripts/services/customModules/facades/IAppFacade.d.ts +38 -0
- package/types/_core/scripts/services/customModules/facades/IAuthFacade.d.ts +9 -0
- package/types/_core/scripts/services/customModules/facades/ILegacyFacade.d.ts +238 -0
- package/types/_core/scripts/services/customModules/facades/IMdtFacade.d.ts +87 -0
- package/types/_core/scripts/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -0
- package/types/_core/scripts/services/customModules/facades/IPageFacade.d.ts +7 -0
- package/types/_core/scripts/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -0
- package/types/_core/scripts/services/customModules/facades/List/IListCellFacade.d.ts +8 -0
- package/types/_core/scripts/services/customModules/facades/List/IListComponentFacade.d.ts +10 -0
- package/types/_core/scripts/services/customModules/facades/List/IListControlFacade.d.ts +88 -0
- package/types/_core/scripts/services/customModules/facades/List/IListRowFacade.d.ts +2 -0
- package/types/_core/scripts/services/customModules/facades/List/IListServiceFacade.d.ts +96 -0
- package/types/_core/scripts/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -0
- package/types/_core/scripts/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -0
- package/types/_core/scripts/services/customModules/facades/components/ModalFacade.d.ts +4 -0
- package/types/_core/scripts/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +77 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/jobFacade.d.ts +7 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +12 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/statusFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/record/IRecordFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -0
- package/types/_core/scripts/services/customModules/facades/schema/IFieldFacade.d.ts +14 -0
- package/types/_core/scripts/services/customModules/facades/schema/IObjectFacade.d.ts +20 -0
- package/types/_core/scripts/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -0
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -0
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -0
- package/types/_core/scripts/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -0
- package/types/_core/scripts/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/services/INavigationFacade.d.ts +91 -0
- package/types/_core/scripts/services/customModules/facades/services/ISecurityFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/utils/IApiFacade.d.ts +91 -0
- package/types/_core/scripts/services/customModules/facades/utils/IUiComponentsFacade.d.ts +185 -0
- package/types/_core/scripts/services/customModules/facades/utils/IUiFacade.d.ts +83 -0
- package/types/_core/scripts/services/customModules/facades/utils/IUtilsFacade.d.ts +224 -0
- package/types/_core/scripts/services/customModules/facades/utils/ImUtilsFacade.d.ts +41 -0
- package/types/_core/scripts/services/dropdown/IDropDownMenu.d.ts +40 -0
- package/types/_core/scripts/services/e2e/e2eServiceType.d.ts +11 -0
- package/types/_core/scripts/ui-kit/IUiKitUtilsFacade.d.ts +21 -0
- package/types/_core/scripts/ui-kit/UiKitFacade.d.ts +101 -0
- package/types/_core/scripts/views/controls/Control.d.ts +7 -0
- package/types/_core/scripts/views/controls/panels/panelOptions.d.ts +15 -0
- package/types/_core/scripts/views/form/controls/commonControl/ICommonControl.d.ts +28 -0
- package/types/_core/scripts/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -0
- package/types/_core/scripts/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -0
- package/types/_core/scripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -0
- package/types/_core/scripts/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -0
- package/types/_core/scripts/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -0
- package/types/_core/scripts/views/form/formTypes.d.ts +5 -0
- package/types/_core/scripts/views/form/schema/FormPageExtOptions.schema.d.ts +22 -0
- package/types/_core/scripts/views/form/schema/FormPageOptions.schema.d.ts +19 -0
- package/types/_core/scripts/views/gallery/ImageFetchOptions.d.ts +5 -0
- package/types/_core/scripts/views/list/ListViewOptions.d.ts +99 -0
- package/types/_core/scripts/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -0
- package/types/_core/scripts/views/list/schema/ListPageExtOptions.schema.d.ts +123 -0
- package/types/_core/scripts/views/list/schema/ListPageOptions.schema.d.ts +145 -0
- package/types/_core/scripts/views/list/tabular/TabularListTypes.d.ts +53 -0
- package/types/_core/scripts/views/page/PageZoneTypes.d.ts +1 -0
- package/types/_core/scripts/views/page/charts/ChartControlOptions.schema.d.ts +759 -0
- package/types/_core/scripts/views/page/charts/facade/IChartControlFacade.d.ts +29 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/index.d.ts +5 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -0
- package/types/common/Datasource.d.ts +9 -9
- package/types/common/Field.d.ts +51 -51
- package/types/common/FieldSettings.schema.d.ts +17 -17
- package/types/common/MdtField.d.ts +9 -9
- package/types/common/MdtObject.d.ts +7 -7
- package/types/common/Record.d.ts +27 -27
- package/types/common/Table.d.ts +66 -66
- package/types/common/form/tabs/TabsFormExtenderOptions.d.ts +12 -12
- package/types/common/list/aggregation/AggregayionTypes.d.ts +2 -2
- package/types/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -6
- package/types/common/list/cellControlExtender/CellControlExtender.d.ts +1 -1
- package/types/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -17
- package/types/common/list/columnMenu/QuickFilterOptions.d.ts +7 -7
- package/types/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -24
- package/types/common/list/form/FormListPublicOptions.d.ts +44 -44
- package/types/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -11
- package/types/common/list/group/groupTypes.d.ts +177 -177
- package/types/common/list/hierarchy/hierarchyTypes.d.ts +48 -48
- package/types/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -3
- package/types/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -6
- package/types/common/list/legend/LegendListExtenderOptions.d.ts +8 -8
- package/types/common/list/listView/ListViewListExtenderOptions.d.ts +25 -25
- package/types/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -23
- package/types/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -29
- package/types/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -4
- package/types/common/list/select/SelectPublicOptions.d.ts +18 -18
- package/types/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -3
- package/types/common/list/toolbar/ToolbarPublicOptions.d.ts +23 -23
- package/types/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -7
- package/types/common/serverMessage/ServerMessageTypes.d.ts +17 -17
- package/types/components/baseFormControls/input/inputOptions.d.ts +31 -31
- package/types/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -2
- package/types/components/button/baseButton/buttonOptions.d.ts +12 -12
- package/types/components/buttonGroup/buttonGroupOptions.d.ts +7 -7
- package/types/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -5
- package/types/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +20 -20
- package/types/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -32
- package/types/components/form/fieldView/fieldViewOptions.d.ts +13 -13
- package/types/components/form/header/types.d.ts +14 -14
- package/types/components/form/label/labelOptions.d.ts +23 -23
- package/types/components/icon/iconOptions.d.ts +24 -24
- package/types/components/iconButton/iconButtonOptions.d.ts +10 -10
- package/types/components/navigation/header/userButton/UserMenuSlot.d.ts +10 -10
- package/types/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -5
- package/types/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -16
- package/types/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -4
- package/types/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -24
- package/types/components/resizablePanels/resizablePanelsOptions.d.ts +22 -22
- package/types/components/textWithIcon/textWithIconOptions.d.ts +17 -17
- package/types/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -40
- package/types/data/active/ActivationListAdapterTypes.d.ts +6 -6
- package/types/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -21
- package/types/data/periods/helpers/types.d.ts +4 -4
- package/types/datasources/FetchResult.d.ts +5 -5
- package/types/helpers/IUi.d.ts +2 -2
- package/types/helpers/dateUtils.d.ts +23 -23
- package/types/helpers/deleteFromArray.d.ts +1 -1
- package/types/helpers/events/EventEmitter.d.ts +12 -12
- package/types/helpers/fireEvent.d.ts +4 -4
- package/types/helpers/formatOptions.d.ts +16 -16
- package/types/helpers/formattedText.d.ts +8 -8
- package/types/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -8
- package/types/helpers/pipeline/Pipeline.d.ts +20 -20
- package/types/helpers/redraw.d.ts +16 -16
- package/types/helpers/types.d.ts +85 -85
- package/types/helpers/ui/elementModificators/focusableComponent.d.ts +15 -15
- package/types/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -4
- package/types/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -2
- package/types/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -23
- package/types/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -1
- package/types/helpers/ui/toolbarItemTypes.d.ts +30 -0
- package/types/helpers/utils/classNames.d.ts +20 -20
- package/types/helpers/utils/keyStorage/KeyStorage.d.ts +6 -6
- package/types/helpers/utils/memoization/memoize.d.ts +18 -18
- package/types/helpers/utils/object.d.ts +4 -4
- package/types/helpers/utils/stringifyControlSize.d.ts +3 -3
- package/types/helpers/utils/valued/getValued.d.ts +18 -18
- package/types/helpers/zone/IZone.d.ts +8 -8
- package/types/job/scripts/types.d.ts +11 -0
- package/types/security/PermissionLevel.d.ts +40 -40
- package/types/security/User.d.ts +20 -20
- package/types/services/HotkeyManager.d.ts +6 -6
- package/types/services/IFilter.d.ts +322 -322
- package/types/services/ModuleData.d.ts +9 -9
- package/types/services/api/ApiAccessor/apiV1Types.d.ts +266 -266
- package/types/services/api/ApiAccessor/apiV2Types.d.ts +586 -586
- package/types/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -42
- package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -10
- package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -28
- package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -9
- package/types/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -37
- package/types/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -2
- package/types/services/api/ApiRequestOptions.d.ts +43 -43
- package/types/services/api/BaseQuery.d.ts +25 -25
- package/types/services/api/Query.d.ts +56 -56
- package/types/services/api/QuerySorting.d.ts +18 -18
- package/types/services/api/ServerResonseType.d.ts +2 -2
- package/types/services/commands/Command.d.ts +22 -22
- package/types/services/commands/CommandGroup.d.ts +15 -15
- package/types/services/commands/CommandManager.d.ts +77 -77
- package/types/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -26
- package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +38 -36
- package/types/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -13
- package/types/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -133
- package/types/services/customModules/facades/Form/IFormFacade.d.ts +106 -102
- package/types/services/customModules/facades/Form/IFormLayout.d.ts +12 -12
- package/types/services/customModules/facades/IAppFacade.d.ts +38 -38
- package/types/services/customModules/facades/IAuthFacade.d.ts +9 -9
- package/types/services/customModules/facades/ILegacyFacade.d.ts +239 -239
- package/types/services/customModules/facades/IMdtFacade.d.ts +91 -88
- package/types/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -5
- package/types/services/customModules/facades/IPageFacade.d.ts +7 -7
- package/types/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -7
- package/types/services/customModules/facades/List/IListCellFacade.d.ts +8 -8
- package/types/services/customModules/facades/List/IListComponentFacade.d.ts +10 -10
- package/types/services/customModules/facades/List/IListControlFacade.d.ts +88 -88
- package/types/services/customModules/facades/List/IListRowFacade.d.ts +2 -2
- package/types/services/customModules/facades/List/IListServiceFacade.d.ts +96 -96
- package/types/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -4
- package/types/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -9
- package/types/services/customModules/facades/components/ModalFacade.d.ts +4 -4
- package/types/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -20
- package/types/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +83 -83
- package/types/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -53
- package/types/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +11 -11
- package/types/services/customModules/facades/internalModules/statusFacade.d.ts +13 -13
- package/types/services/customModules/facades/record/IRecordFacade.d.ts +13 -13
- package/types/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -5
- package/types/services/customModules/facades/schema/IFieldFacade.d.ts +14 -14
- package/types/services/customModules/facades/schema/IObjectFacade.d.ts +20 -20
- package/types/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -24
- package/types/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -23
- package/types/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -8
- package/types/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -11
- package/types/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -13
- package/types/services/customModules/facades/services/INavigationFacade.d.ts +91 -91
- package/types/services/customModules/facades/services/ISecurityFacade.d.ts +13 -13
- package/types/services/customModules/facades/sharedModules/ISharedModulesFacade.d.ts +4 -0
- package/types/services/customModules/facades/utils/IApiFacade.d.ts +91 -91
- package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +191 -191
- package/types/services/customModules/facades/utils/IUiFacade.d.ts +84 -84
- package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +225 -225
- package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +42 -42
- package/types/services/dropdown/IDropDownMenu.d.ts +41 -41
- package/types/services/e2e/e2eServiceType.d.ts +11 -11
- package/types/ui-kit/IUiKitUtilsFacade.d.ts +35 -35
- package/types/ui-kit/UiKitFacade.d.ts +120 -106
- package/types/ui-kit/components/calendar/Calendar.d.ts +3 -3
- package/types/views/controls/Control.d.ts +7 -7
- package/types/views/controls/panels/panelOptions.d.ts +15 -15
- package/types/views/form/controls/commonControl/ICommonControl.d.ts +29 -29
- package/types/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -6
- package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -24
- package/types/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -70
- package/types/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -36
- package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -21
- package/types/views/form/formTypes.d.ts +5 -5
- package/types/views/form/schema/FormPageExtOptions.schema.d.ts +22 -22
- package/types/views/form/schema/FormPageOptions.schema.d.ts +19 -19
- package/types/views/gallery/ImageFetchOptions.d.ts +5 -5
- package/types/views/list/ListViewOptions.d.ts +102 -102
- package/types/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -23
- package/types/views/list/schema/ListPageExtOptions.schema.d.ts +123 -123
- package/types/views/list/schema/ListPageOptions.schema.d.ts +145 -145
- package/types/views/list/tabular/TabularListTypes.d.ts +53 -53
- package/types/views/page/PageZoneTypes.d.ts +1 -1
- package/types/views/page/charts/ChartControlOptions.schema.d.ts +850 -850
- package/types/views/page/charts/facade/IChartControlFacade.d.ts +29 -29
- package/types/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -31
- package/types/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -56
- package/types/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -9
- package/types/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -55
- package/types/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -3
- package/types/views/page/charts/reportDashboard/index.d.ts +5 -5
- package/types/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -13
|
@@ -1,9 +1,9 @@
|
|
|
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
|
+
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 +1,266 @@
|
|
|
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
|
-
}
|
|
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
|
+
}
|