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.
Files changed (352) hide show
  1. package/dist/index.d.ts +11 -11
  2. package/dist/index.js +16 -16
  3. package/dist/index.js.map +1 -1
  4. package/package.json +38 -38
  5. package/readme.md +15 -15
  6. package/types/_core/scripts/common/Datasource.d.ts +9 -0
  7. package/types/_core/scripts/common/Field.d.ts +51 -0
  8. package/types/_core/scripts/common/FieldSettings.schema.d.ts +17 -0
  9. package/types/_core/scripts/common/MdtField.d.ts +9 -0
  10. package/types/_core/scripts/common/MdtObject.d.ts +7 -0
  11. package/types/_core/scripts/common/Record.d.ts +27 -0
  12. package/types/_core/scripts/common/Table.d.ts +66 -0
  13. package/types/_core/scripts/common/form/tabs/TabsFormExtenderOptions.d.ts +12 -0
  14. package/types/_core/scripts/common/list/aggregation/AggregayionTypes.d.ts +2 -0
  15. package/types/_core/scripts/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -0
  16. package/types/_core/scripts/common/list/cellControlExtender/CellControlExtender.d.ts +1 -0
  17. package/types/_core/scripts/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -0
  18. package/types/_core/scripts/common/list/columnMenu/QuickFilterOptions.d.ts +7 -0
  19. package/types/_core/scripts/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -0
  20. package/types/_core/scripts/common/list/form/FormListPublicOptions.d.ts +40 -0
  21. package/types/_core/scripts/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -0
  22. package/types/_core/scripts/common/list/group/groupTypes.d.ts +177 -0
  23. package/types/_core/scripts/common/list/hierarchy/hierarchyTypes.d.ts +48 -0
  24. package/types/_core/scripts/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -0
  25. package/types/_core/scripts/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -0
  26. package/types/_core/scripts/common/list/legend/LegendListExtenderOptions.d.ts +8 -0
  27. package/types/_core/scripts/common/list/listView/ListViewListExtenderOptions.d.ts +25 -0
  28. package/types/_core/scripts/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -0
  29. package/types/_core/scripts/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -0
  30. package/types/_core/scripts/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -0
  31. package/types/_core/scripts/common/list/select/SelectPublicOptions.d.ts +18 -0
  32. package/types/_core/scripts/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -0
  33. package/types/_core/scripts/common/list/toolbar/ToolbarPublicOptions.d.ts +22 -0
  34. package/types/_core/scripts/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -0
  35. package/types/_core/scripts/common/serverMessage/ServerMessageTypes.d.ts +17 -0
  36. package/types/_core/scripts/components/baseFormControls/input/inputOptions.d.ts +30 -0
  37. package/types/_core/scripts/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -0
  38. package/types/_core/scripts/components/button/baseButton/buttonOptions.d.ts +12 -0
  39. package/types/_core/scripts/components/buttonGroup/buttonGroupOptions.d.ts +7 -0
  40. package/types/_core/scripts/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -0
  41. package/types/_core/scripts/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +19 -0
  42. package/types/_core/scripts/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -0
  43. package/types/_core/scripts/components/form/fieldView/fieldViewOptions.d.ts +13 -0
  44. package/types/_core/scripts/components/form/header/types.d.ts +14 -0
  45. package/types/_core/scripts/components/form/label/labelOptions.d.ts +22 -0
  46. package/types/_core/scripts/components/icon/iconOptions.d.ts +21 -0
  47. package/types/_core/scripts/components/iconButton/iconButtonOptions.d.ts +9 -0
  48. package/types/_core/scripts/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -0
  49. package/types/_core/scripts/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -0
  50. package/types/_core/scripts/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -0
  51. package/types/_core/scripts/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -0
  52. package/types/_core/scripts/components/resizablePanels/resizablePanelsOptions.d.ts +22 -0
  53. package/types/_core/scripts/components/textWithIcon/textWithIconOptions.d.ts +16 -0
  54. package/types/_core/scripts/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -0
  55. package/types/_core/scripts/data/active/ActivationListAdapterTypes.d.ts +6 -0
  56. package/types/_core/scripts/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -0
  57. package/types/_core/scripts/data/periods/helpers/types.d.ts +4 -0
  58. package/types/_core/scripts/datasources/FetchResult.d.ts +5 -0
  59. package/types/_core/scripts/helpers/IUi.d.ts +2 -0
  60. package/types/_core/scripts/helpers/dateUtils.d.ts +23 -0
  61. package/types/_core/scripts/helpers/deleteFromArray.d.ts +1 -0
  62. package/types/_core/scripts/helpers/events/EventEmitter.d.ts +12 -0
  63. package/types/_core/scripts/helpers/fireEvent.d.ts +4 -0
  64. package/types/_core/scripts/helpers/formatOptions.d.ts +16 -0
  65. package/types/_core/scripts/helpers/formattedText.d.ts +8 -0
  66. package/types/_core/scripts/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -0
  67. package/types/_core/scripts/helpers/pipeline/Pipeline.d.ts +20 -0
  68. package/types/_core/scripts/helpers/redraw.d.ts +16 -0
  69. package/types/_core/scripts/helpers/types.d.ts +84 -0
  70. package/types/_core/scripts/helpers/ui/elementModificators/focusableComponent.d.ts +14 -0
  71. package/types/_core/scripts/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -0
  72. package/types/_core/scripts/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -0
  73. package/types/_core/scripts/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -0
  74. package/types/_core/scripts/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -0
  75. package/types/_core/scripts/helpers/utils/classNames.d.ts +20 -0
  76. package/types/_core/scripts/helpers/utils/keyStorage/KeyStorage.d.ts +6 -0
  77. package/types/_core/scripts/helpers/utils/memoization/memoize.d.ts +18 -0
  78. package/types/_core/scripts/helpers/utils/object.d.ts +4 -0
  79. package/types/_core/scripts/helpers/utils/stringifyControlSize.d.ts +3 -0
  80. package/types/_core/scripts/helpers/utils/valued/getValued.d.ts +18 -0
  81. package/types/_core/scripts/helpers/zone/IZone.d.ts +7 -0
  82. package/types/_core/scripts/security/PermissionLevel.d.ts +40 -0
  83. package/types/_core/scripts/security/User.d.ts +19 -0
  84. package/types/_core/scripts/services/HotkeyManager.d.ts +6 -0
  85. package/types/_core/scripts/services/IFilter.d.ts +322 -0
  86. package/types/_core/scripts/services/ModuleData.d.ts +9 -0
  87. package/types/_core/scripts/services/api/ApiAccessor/apiV1Types.d.ts +266 -0
  88. package/types/_core/scripts/services/api/ApiAccessor/apiV2Types.d.ts +585 -0
  89. package/types/_core/scripts/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -0
  90. package/types/_core/scripts/services/api/ApiAccessor/job/jobApiTypes.d.ts +82 -0
  91. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -0
  92. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -0
  93. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -0
  94. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -0
  95. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -0
  96. package/types/_core/scripts/services/api/ApiRequestOptions.d.ts +43 -0
  97. package/types/_core/scripts/services/api/BaseQuery.d.ts +25 -0
  98. package/types/_core/scripts/services/api/Query.d.ts +56 -0
  99. package/types/_core/scripts/services/api/QuerySorting.d.ts +18 -0
  100. package/types/_core/scripts/services/api/ServerResonseType.d.ts +2 -0
  101. package/types/_core/scripts/services/commands/Command.d.ts +22 -0
  102. package/types/_core/scripts/services/commands/CommandGroup.d.ts +15 -0
  103. package/types/_core/scripts/services/commands/CommandManager.d.ts +77 -0
  104. package/types/_core/scripts/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -0
  105. package/types/_core/scripts/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +36 -0
  106. package/types/_core/scripts/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -0
  107. package/types/_core/scripts/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -0
  108. package/types/_core/scripts/services/customModules/facades/Form/IFormFacade.d.ts +102 -0
  109. package/types/_core/scripts/services/customModules/facades/Form/IFormLayout.d.ts +12 -0
  110. package/types/_core/scripts/services/customModules/facades/IAppFacade.d.ts +38 -0
  111. package/types/_core/scripts/services/customModules/facades/IAuthFacade.d.ts +9 -0
  112. package/types/_core/scripts/services/customModules/facades/ILegacyFacade.d.ts +238 -0
  113. package/types/_core/scripts/services/customModules/facades/IMdtFacade.d.ts +87 -0
  114. package/types/_core/scripts/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -0
  115. package/types/_core/scripts/services/customModules/facades/IPageFacade.d.ts +7 -0
  116. package/types/_core/scripts/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -0
  117. package/types/_core/scripts/services/customModules/facades/List/IListCellFacade.d.ts +8 -0
  118. package/types/_core/scripts/services/customModules/facades/List/IListComponentFacade.d.ts +10 -0
  119. package/types/_core/scripts/services/customModules/facades/List/IListControlFacade.d.ts +88 -0
  120. package/types/_core/scripts/services/customModules/facades/List/IListRowFacade.d.ts +2 -0
  121. package/types/_core/scripts/services/customModules/facades/List/IListServiceFacade.d.ts +96 -0
  122. package/types/_core/scripts/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -0
  123. package/types/_core/scripts/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -0
  124. package/types/_core/scripts/services/customModules/facades/components/ModalFacade.d.ts +4 -0
  125. package/types/_core/scripts/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -0
  126. package/types/_core/scripts/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +77 -0
  127. package/types/_core/scripts/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -0
  128. package/types/_core/scripts/services/customModules/facades/internalModules/jobFacade.d.ts +7 -0
  129. package/types/_core/scripts/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +12 -0
  130. package/types/_core/scripts/services/customModules/facades/internalModules/statusFacade.d.ts +13 -0
  131. package/types/_core/scripts/services/customModules/facades/record/IRecordFacade.d.ts +13 -0
  132. package/types/_core/scripts/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -0
  133. package/types/_core/scripts/services/customModules/facades/schema/IFieldFacade.d.ts +14 -0
  134. package/types/_core/scripts/services/customModules/facades/schema/IObjectFacade.d.ts +20 -0
  135. package/types/_core/scripts/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -0
  136. package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -0
  137. package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -0
  138. package/types/_core/scripts/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -0
  139. package/types/_core/scripts/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -0
  140. package/types/_core/scripts/services/customModules/facades/services/INavigationFacade.d.ts +91 -0
  141. package/types/_core/scripts/services/customModules/facades/services/ISecurityFacade.d.ts +13 -0
  142. package/types/_core/scripts/services/customModules/facades/utils/IApiFacade.d.ts +91 -0
  143. package/types/_core/scripts/services/customModules/facades/utils/IUiComponentsFacade.d.ts +185 -0
  144. package/types/_core/scripts/services/customModules/facades/utils/IUiFacade.d.ts +83 -0
  145. package/types/_core/scripts/services/customModules/facades/utils/IUtilsFacade.d.ts +224 -0
  146. package/types/_core/scripts/services/customModules/facades/utils/ImUtilsFacade.d.ts +41 -0
  147. package/types/_core/scripts/services/dropdown/IDropDownMenu.d.ts +40 -0
  148. package/types/_core/scripts/services/e2e/e2eServiceType.d.ts +11 -0
  149. package/types/_core/scripts/ui-kit/IUiKitUtilsFacade.d.ts +21 -0
  150. package/types/_core/scripts/ui-kit/UiKitFacade.d.ts +101 -0
  151. package/types/_core/scripts/views/controls/Control.d.ts +7 -0
  152. package/types/_core/scripts/views/controls/panels/panelOptions.d.ts +15 -0
  153. package/types/_core/scripts/views/form/controls/commonControl/ICommonControl.d.ts +28 -0
  154. package/types/_core/scripts/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -0
  155. package/types/_core/scripts/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -0
  156. package/types/_core/scripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -0
  157. package/types/_core/scripts/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -0
  158. package/types/_core/scripts/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -0
  159. package/types/_core/scripts/views/form/formTypes.d.ts +5 -0
  160. package/types/_core/scripts/views/form/schema/FormPageExtOptions.schema.d.ts +22 -0
  161. package/types/_core/scripts/views/form/schema/FormPageOptions.schema.d.ts +19 -0
  162. package/types/_core/scripts/views/gallery/ImageFetchOptions.d.ts +5 -0
  163. package/types/_core/scripts/views/list/ListViewOptions.d.ts +99 -0
  164. package/types/_core/scripts/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -0
  165. package/types/_core/scripts/views/list/schema/ListPageExtOptions.schema.d.ts +123 -0
  166. package/types/_core/scripts/views/list/schema/ListPageOptions.schema.d.ts +145 -0
  167. package/types/_core/scripts/views/list/tabular/TabularListTypes.d.ts +53 -0
  168. package/types/_core/scripts/views/page/PageZoneTypes.d.ts +1 -0
  169. package/types/_core/scripts/views/page/charts/ChartControlOptions.schema.d.ts +759 -0
  170. package/types/_core/scripts/views/page/charts/facade/IChartControlFacade.d.ts +29 -0
  171. package/types/_core/scripts/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -0
  172. package/types/_core/scripts/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -0
  173. package/types/_core/scripts/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -0
  174. package/types/_core/scripts/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -0
  175. package/types/_core/scripts/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -0
  176. package/types/_core/scripts/views/page/charts/reportDashboard/index.d.ts +5 -0
  177. package/types/_core/scripts/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -0
  178. package/types/common/Datasource.d.ts +9 -9
  179. package/types/common/Field.d.ts +51 -51
  180. package/types/common/FieldSettings.schema.d.ts +17 -17
  181. package/types/common/MdtField.d.ts +9 -9
  182. package/types/common/MdtObject.d.ts +7 -7
  183. package/types/common/Record.d.ts +27 -27
  184. package/types/common/Table.d.ts +66 -66
  185. package/types/common/form/tabs/TabsFormExtenderOptions.d.ts +12 -12
  186. package/types/common/list/aggregation/AggregayionTypes.d.ts +2 -2
  187. package/types/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -6
  188. package/types/common/list/cellControlExtender/CellControlExtender.d.ts +1 -1
  189. package/types/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -17
  190. package/types/common/list/columnMenu/QuickFilterOptions.d.ts +7 -7
  191. package/types/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -24
  192. package/types/common/list/form/FormListPublicOptions.d.ts +44 -44
  193. package/types/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -11
  194. package/types/common/list/group/groupTypes.d.ts +177 -177
  195. package/types/common/list/hierarchy/hierarchyTypes.d.ts +48 -48
  196. package/types/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -3
  197. package/types/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -6
  198. package/types/common/list/legend/LegendListExtenderOptions.d.ts +8 -8
  199. package/types/common/list/listView/ListViewListExtenderOptions.d.ts +25 -25
  200. package/types/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -23
  201. package/types/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -29
  202. package/types/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -4
  203. package/types/common/list/select/SelectPublicOptions.d.ts +18 -18
  204. package/types/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -3
  205. package/types/common/list/toolbar/ToolbarPublicOptions.d.ts +23 -23
  206. package/types/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -7
  207. package/types/common/serverMessage/ServerMessageTypes.d.ts +17 -17
  208. package/types/components/baseFormControls/input/inputOptions.d.ts +31 -31
  209. package/types/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -2
  210. package/types/components/button/baseButton/buttonOptions.d.ts +12 -12
  211. package/types/components/buttonGroup/buttonGroupOptions.d.ts +7 -7
  212. package/types/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -5
  213. package/types/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +20 -20
  214. package/types/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -32
  215. package/types/components/form/fieldView/fieldViewOptions.d.ts +13 -13
  216. package/types/components/form/header/types.d.ts +14 -14
  217. package/types/components/form/label/labelOptions.d.ts +23 -23
  218. package/types/components/icon/iconOptions.d.ts +24 -24
  219. package/types/components/iconButton/iconButtonOptions.d.ts +10 -10
  220. package/types/components/navigation/header/userButton/UserMenuSlot.d.ts +10 -10
  221. package/types/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -5
  222. package/types/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -16
  223. package/types/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -4
  224. package/types/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -24
  225. package/types/components/resizablePanels/resizablePanelsOptions.d.ts +22 -22
  226. package/types/components/textWithIcon/textWithIconOptions.d.ts +17 -17
  227. package/types/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -40
  228. package/types/data/active/ActivationListAdapterTypes.d.ts +6 -6
  229. package/types/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -21
  230. package/types/data/periods/helpers/types.d.ts +4 -4
  231. package/types/datasources/FetchResult.d.ts +5 -5
  232. package/types/helpers/IUi.d.ts +2 -2
  233. package/types/helpers/dateUtils.d.ts +23 -23
  234. package/types/helpers/deleteFromArray.d.ts +1 -1
  235. package/types/helpers/events/EventEmitter.d.ts +12 -12
  236. package/types/helpers/fireEvent.d.ts +4 -4
  237. package/types/helpers/formatOptions.d.ts +16 -16
  238. package/types/helpers/formattedText.d.ts +8 -8
  239. package/types/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -8
  240. package/types/helpers/pipeline/Pipeline.d.ts +20 -20
  241. package/types/helpers/redraw.d.ts +16 -16
  242. package/types/helpers/types.d.ts +85 -85
  243. package/types/helpers/ui/elementModificators/focusableComponent.d.ts +15 -15
  244. package/types/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -4
  245. package/types/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -2
  246. package/types/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -23
  247. package/types/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -1
  248. package/types/helpers/ui/toolbarItemTypes.d.ts +30 -0
  249. package/types/helpers/utils/classNames.d.ts +20 -20
  250. package/types/helpers/utils/keyStorage/KeyStorage.d.ts +6 -6
  251. package/types/helpers/utils/memoization/memoize.d.ts +18 -18
  252. package/types/helpers/utils/object.d.ts +4 -4
  253. package/types/helpers/utils/stringifyControlSize.d.ts +3 -3
  254. package/types/helpers/utils/valued/getValued.d.ts +18 -18
  255. package/types/helpers/zone/IZone.d.ts +8 -8
  256. package/types/job/scripts/types.d.ts +11 -0
  257. package/types/security/PermissionLevel.d.ts +40 -40
  258. package/types/security/User.d.ts +20 -20
  259. package/types/services/HotkeyManager.d.ts +6 -6
  260. package/types/services/IFilter.d.ts +322 -322
  261. package/types/services/ModuleData.d.ts +9 -9
  262. package/types/services/api/ApiAccessor/apiV1Types.d.ts +266 -266
  263. package/types/services/api/ApiAccessor/apiV2Types.d.ts +586 -586
  264. package/types/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -42
  265. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -10
  266. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -28
  267. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -9
  268. package/types/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -37
  269. package/types/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -2
  270. package/types/services/api/ApiRequestOptions.d.ts +43 -43
  271. package/types/services/api/BaseQuery.d.ts +25 -25
  272. package/types/services/api/Query.d.ts +56 -56
  273. package/types/services/api/QuerySorting.d.ts +18 -18
  274. package/types/services/api/ServerResonseType.d.ts +2 -2
  275. package/types/services/commands/Command.d.ts +22 -22
  276. package/types/services/commands/CommandGroup.d.ts +15 -15
  277. package/types/services/commands/CommandManager.d.ts +77 -77
  278. package/types/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -26
  279. package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +38 -36
  280. package/types/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -13
  281. package/types/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -133
  282. package/types/services/customModules/facades/Form/IFormFacade.d.ts +106 -102
  283. package/types/services/customModules/facades/Form/IFormLayout.d.ts +12 -12
  284. package/types/services/customModules/facades/IAppFacade.d.ts +38 -38
  285. package/types/services/customModules/facades/IAuthFacade.d.ts +9 -9
  286. package/types/services/customModules/facades/ILegacyFacade.d.ts +239 -239
  287. package/types/services/customModules/facades/IMdtFacade.d.ts +91 -88
  288. package/types/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -5
  289. package/types/services/customModules/facades/IPageFacade.d.ts +7 -7
  290. package/types/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -7
  291. package/types/services/customModules/facades/List/IListCellFacade.d.ts +8 -8
  292. package/types/services/customModules/facades/List/IListComponentFacade.d.ts +10 -10
  293. package/types/services/customModules/facades/List/IListControlFacade.d.ts +88 -88
  294. package/types/services/customModules/facades/List/IListRowFacade.d.ts +2 -2
  295. package/types/services/customModules/facades/List/IListServiceFacade.d.ts +96 -96
  296. package/types/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -4
  297. package/types/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -9
  298. package/types/services/customModules/facades/components/ModalFacade.d.ts +4 -4
  299. package/types/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -20
  300. package/types/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +83 -83
  301. package/types/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -53
  302. package/types/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +11 -11
  303. package/types/services/customModules/facades/internalModules/statusFacade.d.ts +13 -13
  304. package/types/services/customModules/facades/record/IRecordFacade.d.ts +13 -13
  305. package/types/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -5
  306. package/types/services/customModules/facades/schema/IFieldFacade.d.ts +14 -14
  307. package/types/services/customModules/facades/schema/IObjectFacade.d.ts +20 -20
  308. package/types/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -24
  309. package/types/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -23
  310. package/types/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -8
  311. package/types/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -11
  312. package/types/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -13
  313. package/types/services/customModules/facades/services/INavigationFacade.d.ts +91 -91
  314. package/types/services/customModules/facades/services/ISecurityFacade.d.ts +13 -13
  315. package/types/services/customModules/facades/sharedModules/ISharedModulesFacade.d.ts +4 -0
  316. package/types/services/customModules/facades/utils/IApiFacade.d.ts +91 -91
  317. package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +191 -191
  318. package/types/services/customModules/facades/utils/IUiFacade.d.ts +84 -84
  319. package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +225 -225
  320. package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +42 -42
  321. package/types/services/dropdown/IDropDownMenu.d.ts +41 -41
  322. package/types/services/e2e/e2eServiceType.d.ts +11 -11
  323. package/types/ui-kit/IUiKitUtilsFacade.d.ts +35 -35
  324. package/types/ui-kit/UiKitFacade.d.ts +120 -106
  325. package/types/ui-kit/components/calendar/Calendar.d.ts +3 -3
  326. package/types/views/controls/Control.d.ts +7 -7
  327. package/types/views/controls/panels/panelOptions.d.ts +15 -15
  328. package/types/views/form/controls/commonControl/ICommonControl.d.ts +29 -29
  329. package/types/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -6
  330. package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -24
  331. package/types/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -70
  332. package/types/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -36
  333. package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -21
  334. package/types/views/form/formTypes.d.ts +5 -5
  335. package/types/views/form/schema/FormPageExtOptions.schema.d.ts +22 -22
  336. package/types/views/form/schema/FormPageOptions.schema.d.ts +19 -19
  337. package/types/views/gallery/ImageFetchOptions.d.ts +5 -5
  338. package/types/views/list/ListViewOptions.d.ts +102 -102
  339. package/types/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -23
  340. package/types/views/list/schema/ListPageExtOptions.schema.d.ts +123 -123
  341. package/types/views/list/schema/ListPageOptions.schema.d.ts +145 -145
  342. package/types/views/list/tabular/TabularListTypes.d.ts +53 -53
  343. package/types/views/page/PageZoneTypes.d.ts +1 -1
  344. package/types/views/page/charts/ChartControlOptions.schema.d.ts +850 -850
  345. package/types/views/page/charts/facade/IChartControlFacade.d.ts +29 -29
  346. package/types/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -31
  347. package/types/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -56
  348. package/types/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -9
  349. package/types/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -55
  350. package/types/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -3
  351. package/types/views/page/charts/reportDashboard/index.d.ts +5 -5
  352. package/types/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -13
@@ -0,0 +1,585 @@
1
+ import { BindingExtData, BindingRowTypes } from "./binding/bindingApiTypes";
2
+ import { MessageUiType, UiType } from "mdtScripts/helpers/IUi";
3
+ import { PermissionLevelString } from "mdtScripts/security/PermissionLevel";
4
+ import { HierarchicalRecord, MdtRecord, RecordId } from "../../../../scripts/common/Record";
5
+ import { AnyObject, ColorStyle, FieldPath, LanguageId, Markdown, ModuleId, ObjectCode, ObjectId, ObjectTitle } from "../../../../scripts/helpers/types";
6
+ import { FETCH_COUNT_ALIAS } from "../ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count";
7
+ import { WithExpandedIds } from "../ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes";
8
+ import { DataExtraInformation } from "../ApiAccessorRequestAdapter/handlers/messageTypes";
9
+ import { ApiV1 } from "./apiV1Types";
10
+ export declare namespace ApiV2 {
11
+ namespace Request {
12
+ type Common = (Save | AnyObject) & WithMessageAction;
13
+ interface Save {
14
+ updates: Save.Update[];
15
+ exts?: Save.Extenders;
16
+ params?: Save.Params;
17
+ }
18
+ interface WithMessageAction {
19
+ messageAction?: MessageAction | MessageActionForm;
20
+ }
21
+ interface MessageActionForm {
22
+ form: {
23
+ objectCode: string;
24
+ record: Record<string, unknown>;
25
+ };
26
+ }
27
+ interface MessageAction {
28
+ actions?: {
29
+ code: string;
30
+ value: string;
31
+ }[];
32
+ recordActions?: MessageRecordAction[];
33
+ }
34
+ interface MessageRecordAction {
35
+ recordId: RecordId;
36
+ code: string;
37
+ value: string;
38
+ }
39
+ namespace Save {
40
+ type UpdateType = "none" | "createNew" | "delete";
41
+ interface Params {
42
+ formId?: RecordId;
43
+ }
44
+ interface Update {
45
+ record: MdtRecord;
46
+ table: string;
47
+ updateType: Save.UpdateType;
48
+ children?: Update[];
49
+ o2mFkField?: string;
50
+ }
51
+ interface Extenders {
52
+ dataExt?: DataExt;
53
+ status?: StatusExt;
54
+ }
55
+ interface DataExt {
56
+ exts: {
57
+ ID_Language_ext: RecordId;
58
+ [key: string]: any;
59
+ };
60
+ }
61
+ interface StatusExt {
62
+ statusComment: string;
63
+ }
64
+ }
65
+ /** FETCH */
66
+ interface Fetch {
67
+ table?: string;
68
+ select?: Fetch.Select;
69
+ orderBy?: Fetch.OrderBy;
70
+ groupBy?: Fetch.GroupBy;
71
+ filter?: Filter;
72
+ skip?: number;
73
+ take?: number;
74
+ distinct?: boolean;
75
+ exts?: Fetch.Exts;
76
+ params?: Fetch.Params & Fetch.SPParams;
77
+ }
78
+ namespace Fetch {
79
+ interface Params {
80
+ dataext?: "explicit";
81
+ }
82
+ /** Параметры для передачи в хранимую процедуру */
83
+ type SPParams = AnyObject;
84
+ type Select = SelectItem[];
85
+ type SelectItem = {
86
+ path: string;
87
+ aggregate?: Aggregation;
88
+ alias?: string;
89
+ castType?: CastType;
90
+ };
91
+ type Aggregation = {
92
+ function: ApiV2.AggregationType;
93
+ distinct?: boolean;
94
+ };
95
+ type CastType = "date";
96
+ type OrderByItem = {
97
+ path: string;
98
+ orderType: "asc" | "desc";
99
+ castType?: CastType;
100
+ aggregate?: Aggregation;
101
+ };
102
+ type OrderBy = OrderByItem[];
103
+ type GroupBy = {
104
+ path: string;
105
+ }[];
106
+ interface Exts {
107
+ dataExt?: Exts.DataExt;
108
+ fatLink?: Exts.FatLink;
109
+ group?: Exts.Group;
110
+ hierarchy?: Exts.Hierarchy;
111
+ hierarchyLegacy?: Exts.HierarchyLegacy;
112
+ dependency?: Exts.Dependency;
113
+ placeIn?: Exts.PlaceIn;
114
+ audit?: Exts.Audit;
115
+ tabular?: Exts.Tabular;
116
+ tag?: Exts.Tag;
117
+ workflow?: Exts.Workflow;
118
+ workflowStage?: Exts.WorkflowStage;
119
+ mapping?: Exts.Mapping;
120
+ binding?: Exts.Binding;
121
+ [k: string]: AnyObject | undefined;
122
+ }
123
+ namespace Exts {
124
+ interface Group {
125
+ groups: GroupItem[];
126
+ allParents?: boolean;
127
+ orphans?: boolean;
128
+ toggledValues?: string[][];
129
+ skippedRowsCount?: number;
130
+ }
131
+ interface GroupItem {
132
+ path: FieldPath;
133
+ collapsed?: boolean;
134
+ select?: FieldPath[];
135
+ sorting?: GroupItemSorting[];
136
+ }
137
+ interface GroupItemSorting {
138
+ path: string;
139
+ desc: boolean;
140
+ }
141
+ interface DataExt {
142
+ explicit?: boolean;
143
+ args?: DataExtArgs;
144
+ }
145
+ interface DataExtArgs {
146
+ ID_Language_ext?: LanguageId;
147
+ }
148
+ interface FatLink {
149
+ date?: string;
150
+ limit?: number;
151
+ }
152
+ interface Hierarchy extends WithExpandedIds {
153
+ idField?: string;
154
+ parentIdField?: string;
155
+ parentId?: RecordId;
156
+ }
157
+ interface HierarchyLegacy {
158
+ idField?: string;
159
+ parentIdField?: string;
160
+ mode?: Mode;
161
+ filter?: Filter;
162
+ }
163
+ type Mode = "NA" | "Up" | "Down" | "UpDown";
164
+ type Dependency = FetchDependencyTypes.Request;
165
+ type PlaceIn = {
166
+ queries: {
167
+ query: Fetch;
168
+ name: string;
169
+ fk: string;
170
+ }[];
171
+ };
172
+ type Audit = TicketQuery;
173
+ type Tag = TicketQuery;
174
+ interface Tabular {
175
+ select?: {
176
+ path: FieldPath;
177
+ table: ObjectCode;
178
+ }[];
179
+ groupBy?: {
180
+ path: FieldPath;
181
+ table: ObjectCode;
182
+ }[];
183
+ orderBy?: {
184
+ path: FieldPath;
185
+ table: ObjectCode;
186
+ }[];
187
+ }
188
+ type Workflow = TicketQuery;
189
+ interface WorkflowStage {
190
+ enabled: boolean;
191
+ }
192
+ interface TicketQuery {
193
+ ticket?: string;
194
+ generateTicket?: true;
195
+ }
196
+ interface Mapping {
197
+ flagGetMappedFKs: boolean;
198
+ }
199
+ type Binding = BindingExtData;
200
+ }
201
+ }
202
+ }
203
+ namespace Response {
204
+ export type Main = AnyObject | Error | Save | Fetch;
205
+ type BaseResponse = {
206
+ exts?: Exts;
207
+ };
208
+ interface Exts {
209
+ objectRule?: {
210
+ logs: string[];
211
+ };
212
+ }
213
+ export interface Error extends BaseResponse {
214
+ message: Markdown;
215
+ code: string;
216
+ debug?: any;
217
+ args?: any;
218
+ error: boolean;
219
+ }
220
+ export interface Save extends BaseResponse, WithMessage {
221
+ stats: Save.SaveStats;
222
+ details: Save.SaveDetails;
223
+ }
224
+ export namespace Save {
225
+ export interface SaveDetails {
226
+ inserted?: SaveDetailsItem[];
227
+ updated?: SaveDetailsItem[];
228
+ deleted?: SaveDetailsItem[];
229
+ }
230
+ interface SaveDetailsItem {
231
+ table: ObjectCode;
232
+ ids: RecordId[];
233
+ }
234
+ export interface SaveStats {
235
+ inserted?: number;
236
+ updated?: number;
237
+ delete?: number;
238
+ }
239
+ export {};
240
+ }
241
+ export interface Fetch {
242
+ message?: DataExtraInformation;
243
+ exts?: Fetch.Exts;
244
+ rows?: Fetch.Row[];
245
+ [k: string]: any;
246
+ }
247
+ /** Fetch */
248
+ export namespace Fetch {
249
+ type Row = MdtRecord & {
250
+ [FETCH_COUNT_ALIAS]?: number;
251
+ $exts?: RecordExt;
252
+ };
253
+ interface RecordExt extends RecordExt.WorkflowStageExt {
254
+ required?: {
255
+ fields: {
256
+ [k: string]: boolean;
257
+ };
258
+ };
259
+ placeIn?: {
260
+ rows: Record<string, Fetch.Row[]>;
261
+ };
262
+ audit?: {
263
+ ticket: string;
264
+ };
265
+ tag?: {
266
+ tags: number[];
267
+ ticket: string;
268
+ };
269
+ workflow?: {
270
+ ticket: string;
271
+ };
272
+ dependency?: FetchDependencyTypes.RecordExtResponse;
273
+ hierarchy?: Exts.Hierarchy;
274
+ binding?: {
275
+ status: BindingRowTypes;
276
+ };
277
+ /**
278
+ * Ограничения на действия (CRUD) над записью и её полями, накладываемые функцией безопасности.
279
+ * [Документация](https://ics-it.gram.ax/mdt/security/objectSecurity/sqlFn?l=ru)
280
+ */
281
+ securityExt?: {
282
+ level: PermissionLevelString;
283
+ baseLevel: PermissionLevelString;
284
+ fields: {
285
+ [fieldId: number]: PermissionLevelString;
286
+ };
287
+ };
288
+ }
289
+ namespace RecordExt {
290
+ interface WorkflowStageExt {
291
+ workflowStage?: WorkflowStage;
292
+ }
293
+ interface WorkflowStage {
294
+ title: string;
295
+ icon?: string;
296
+ labelStyleCode?: ColorStyle;
297
+ }
298
+ }
299
+ interface Exts {
300
+ hierarchyLegacy?: Exts.HierarchyLegacy;
301
+ hierarchy?: Exts.Hierarchy;
302
+ group?: Exts.GroupQuery;
303
+ }
304
+ namespace Exts {
305
+ interface HierarchyLegacy {
306
+ rows: HierarchicalRecord[];
307
+ }
308
+ interface Hierarchy {
309
+ hasChildren: boolean;
310
+ children?: Fetch.Row[];
311
+ }
312
+ interface GroupQuery {
313
+ groups: OutputGroup[];
314
+ skippedRowsCount?: number;
315
+ }
316
+ }
317
+ interface OutputGroup {
318
+ count: number;
319
+ object?: {
320
+ [k: string]: any;
321
+ };
322
+ value?: any;
323
+ subGroups?: OutputGroup[];
324
+ isEmpty?: boolean;
325
+ }
326
+ }
327
+ export interface WithMessage {
328
+ message?: Message;
329
+ }
330
+ export type Message = MessageWithData | MessageWithForm;
331
+ export type MessageWithData = MessageBase & MessageData;
332
+ export type MessageWithForm = MessageBase & MessageForm;
333
+ interface MessageBase {
334
+ type: Message.Type;
335
+ title?: string;
336
+ icon?: string;
337
+ }
338
+ interface MessageData {
339
+ actions?: Message.Action[];
340
+ data: Message.ResponseData[];
341
+ }
342
+ export interface MessageForm {
343
+ form?: {
344
+ layoutCode: string;
345
+ object: {
346
+ Code: string;
347
+ Fields: {
348
+ Code: string;
349
+ Type: string;
350
+ Required: string;
351
+ RefTableCode: string;
352
+ }[];
353
+ Title?: string;
354
+ Description?: string;
355
+ };
356
+ };
357
+ }
358
+ export namespace Message {
359
+ type Type = MessageUiType;
360
+ type UIType = UiType;
361
+ interface Action {
362
+ title: string;
363
+ icon?: string;
364
+ type: Type;
365
+ paramCode: string;
366
+ paramValue: string;
367
+ }
368
+ type ResponseData = ResponseText | ResponseRows | ResponseRef | ResponseRecordAction;
369
+ interface ResponseText {
370
+ type: "Text";
371
+ text: string;
372
+ }
373
+ interface ResponseRows<T extends MdtRecord = MdtRecord> {
374
+ type: "Rows";
375
+ rows: T[];
376
+ }
377
+ interface ResponseRef {
378
+ type: "Refs";
379
+ idObject: number;
380
+ idRecords: RecordId[];
381
+ }
382
+ interface ResponseRecordAction<R = any> {
383
+ type: "RecordAction";
384
+ columns: ResponseRecordActionColumn[];
385
+ rows: ResponseRecordActionRow<R>[];
386
+ }
387
+ interface ResponseRecordActionColumn {
388
+ code: string;
389
+ title: string;
390
+ }
391
+ interface ResponseRecordActionRow<R = any> {
392
+ recordId: RecordId;
393
+ record: R;
394
+ recordActions: ResponseRecordActionAction[];
395
+ }
396
+ interface ResponseRecordActionAction {
397
+ code: string;
398
+ values: {
399
+ title: string;
400
+ value: string;
401
+ }[];
402
+ }
403
+ }
404
+ export namespace File {
405
+ export interface Upload {
406
+ id: RecordId;
407
+ name: string;
408
+ uid: string;
409
+ shortUid: string;
410
+ size?: number;
411
+ storageProvider?: UploadStorageProvider;
412
+ }
413
+ type UploadStorageProvider = ApiV1.Response.File.StorageProvider;
414
+ export {};
415
+ }
416
+ export namespace Data {
417
+ export interface Import {
418
+ stats: Save.SaveStats;
419
+ details: {
420
+ inserted?: ImportDetail[];
421
+ updated?: ImportDetail[];
422
+ delete?: ImportDetail[];
423
+ };
424
+ }
425
+ interface ImportDetail {
426
+ table: string;
427
+ ids: RecordId[];
428
+ }
429
+ export {};
430
+ }
431
+ export namespace Template {
432
+ interface Preview {
433
+ context: AnyObject;
434
+ script: string;
435
+ header: string;
436
+ text: string;
437
+ }
438
+ }
439
+ export namespace User {
440
+ interface EntityPermission {
441
+ level: PermissionLevelString;
442
+ }
443
+ interface Permissions {
444
+ listview: User.EntityPermission;
445
+ namedfilters: User.EntityPermission;
446
+ tag: User.EntityPermission;
447
+ object: ObjectPermissions;
448
+ }
449
+ interface ObjectPermissions {
450
+ objects: ObjectPermissionObjects;
451
+ }
452
+ interface ObjectPermissionObjects {
453
+ [objectCode: string]: {
454
+ level: PermissionLevelString;
455
+ fields?: Record<string, User.EntityPermission>;
456
+ };
457
+ }
458
+ }
459
+ export interface User {
460
+ id: number;
461
+ isAdmin: boolean;
462
+ isAnonymous: boolean;
463
+ isImpersonated: boolean;
464
+ languageId: number;
465
+ roles: string[];
466
+ permissions?: User.Permissions;
467
+ identityName?: string;
468
+ languageCode?: string;
469
+ login?: string;
470
+ fullName?: string;
471
+ email?: string;
472
+ }
473
+ export type Schema = Schema.Object | Schema.Object[];
474
+ export namespace Schema {
475
+ type Object = {
476
+ $id?: ObjectId;
477
+ Code?: ObjectCode;
478
+ DefaultFieldCode?: any;
479
+ Deleted?: boolean;
480
+ Fields?: Field[];
481
+ ID?: ObjectId;
482
+ ID_ObjectType?: string;
483
+ ID_ver_Module?: ModuleId;
484
+ OBJECT_ID?: number;
485
+ tag_Enabled?: boolean;
486
+ Title?: ObjectTitle;
487
+ "Title@"?: ObjectTitle;
488
+ TitlePlural?: string;
489
+ "TitlePlural@"?: string;
490
+ Description?: string;
491
+ Readonly?: boolean;
492
+ Icon?: string;
493
+ audit_Enabled?: boolean;
494
+ inline_AddInRow?: boolean;
495
+ inline_Enabled?: boolean;
496
+ HierarchyParentField?: string;
497
+ HierarchyIDField?: string;
498
+ FlagHierarchy?: boolean;
499
+ FlagConfiguration?: boolean;
500
+ Settings: string;
501
+ AccessLevel: string;
502
+ Parameters?: Parameter[];
503
+ } & Record<string, any>;
504
+ type Field = {
505
+ Code: string;
506
+ Type: string;
507
+ DataType: string;
508
+ $id?: ObjectId;
509
+ ID?: ObjectId;
510
+ Title?: string;
511
+ "Title@"?: string;
512
+ Identity?: boolean;
513
+ RefTableCode?: string;
514
+ SortOreder?: number;
515
+ FlagScriptDfkInline?: boolean;
516
+ Primary?: boolean;
517
+ Readonly?: boolean;
518
+ };
519
+ type Parameter = {
520
+ Code: string;
521
+ DataType: string;
522
+ };
523
+ }
524
+ export {};
525
+ }
526
+ type AggregationType = "sum" | "avg" | "count" | "max" | "min";
527
+ type Filter = Filter.Simple | Filter.List | Filter.SubQuery | Filter.Multi;
528
+ namespace Filter {
529
+ export type MultiOp = "and" | "or";
530
+ export type BinaryOp = "eq" | "ge" | "le" | "gt" | "lt" | "ne" | "contains" | "startsWith" | "endsWith" | "fullText" | "in";
531
+ export interface Multi extends WithNot {
532
+ op: MultiOp;
533
+ groups: Filter[];
534
+ }
535
+ interface WithNot {
536
+ not?: boolean;
537
+ }
538
+ export interface Simple extends WithNot, WithCastType {
539
+ op: BinaryOp;
540
+ path: string;
541
+ value?: any;
542
+ }
543
+ export interface List extends WithNot, WithCastType {
544
+ op: BinaryOp;
545
+ path: string;
546
+ list: string[];
547
+ }
548
+ export interface SubQuery extends WithNot, WithCastType {
549
+ op: BinaryOp;
550
+ path: string;
551
+ query: SubQueryExpression;
552
+ }
553
+ export interface SubQueryExpression {
554
+ table: string;
555
+ field: string;
556
+ filter?: Filter;
557
+ params?: {
558
+ [k: string]: any;
559
+ };
560
+ }
561
+ interface WithCastType {
562
+ castType?: ApiV2.Request.Fetch.CastType;
563
+ }
564
+ export {};
565
+ }
566
+ }
567
+ /**
568
+ * Расширение позволяет получить информацию о ссылках на текущую запись.
569
+ */
570
+ declare namespace FetchDependencyTypes {
571
+ /**
572
+ * В запросе указывается таблица и поле, которое ссылается на текущую таблицу
573
+ */
574
+ type Request = {
575
+ table: string;
576
+ field: string;
577
+ };
578
+ /**
579
+ * В ответе вместе с записью приходит информация есть ли ссылки на эту запись по указанным в запросе данным
580
+ */
581
+ type RecordExtResponse = {
582
+ hasDependencies: boolean;
583
+ };
584
+ }
585
+ export {};
@@ -0,0 +1,42 @@
1
+ import { MdtRecord, RecordId } from "../../../../common/Record";
2
+ export interface BindingFormData {
3
+ ID_ObjectTarget: number;
4
+ ID_ObjectSource: number;
5
+ ID_TargetRecord: number;
6
+ ID_SourceRecords: RecordId[];
7
+ ID_DimensionRecords: MdtRecord[];
8
+ FlagTotalPeriod: boolean;
9
+ DateBegin?: Date;
10
+ DateEndFix?: Date;
11
+ }
12
+ export interface BindingRequestData {
13
+ TargetObjectId: RecordId;
14
+ SourceObjectId: RecordId;
15
+ TargetRecordId: RecordId;
16
+ SourceRecordIds: RecordId[];
17
+ FlagTotalPeriod: boolean;
18
+ DimensionRecordIds?: RecordId[];
19
+ DateBegin?: Date | unknown;
20
+ DateEnd?: Date | unknown;
21
+ }
22
+ export interface UnbindingRequestData {
23
+ ObjectId: RecordId;
24
+ Items: UnbindingDataItemTypes[];
25
+ }
26
+ export interface UnbindingDataItemTypes {
27
+ BindingId: RecordId;
28
+ DateEnd?: Date | unknown;
29
+ }
30
+ export declare type BindingRowTypes = "Bound" | "NotBound" | "BoundOutside";
31
+ export interface BindingFilterParams {
32
+ targetRecordIds?: RecordId[];
33
+ dimensionId?: RecordId;
34
+ customFilterId?: RecordId;
35
+ }
36
+ export interface BindingExtData {
37
+ bindingObjectId?: RecordId;
38
+ date?: Date | unknown;
39
+ filter?: {
40
+ status?: BindingRowTypes;
41
+ } & BindingFilterParams;
42
+ }
@@ -0,0 +1,82 @@
1
+ import { RecordId } from "mdtScripts/common/Record";
2
+ import { AnyObject, ObjectId, URLString } from "mdtScripts/helpers/types";
3
+ export declare namespace ApiV1 {
4
+ namespace Request {
5
+ interface JobTask {
6
+ ObjectId?: number;
7
+ RecordId?: number;
8
+ RecordIds?: number[];
9
+ Args?: AnyObject;
10
+ /**
11
+ * Тип файла (например, "pdf", "docx", "txt")
12
+ * */
13
+ File?: string;
14
+ }
15
+ namespace Job {
16
+ interface ExecProc {
17
+ process: RecordId;
18
+ }
19
+ interface ExecTask {
20
+ taskCode: string;
21
+ }
22
+ interface StopTask {
23
+ taskCode: string;
24
+ }
25
+ interface IsRunning {
26
+ taskCode: string;
27
+ }
28
+ }
29
+ }
30
+ namespace Response {
31
+ namespace Job {
32
+ export type ExecTask = FileExecutionResult | StoredProcExecutionResult | TextExecutionResult | EmptyExecutionResult;
33
+ interface FileExecutionResult {
34
+ Type: "File";
35
+ Url: URLString;
36
+ }
37
+ interface StoredProcExecutionResult {
38
+ Type: "StoredProc";
39
+ ID_ProcedureObject: ObjectId;
40
+ }
41
+ interface TextExecutionResult {
42
+ Type: "Text" | "Error";
43
+ Text: string;
44
+ Header: string;
45
+ }
46
+ interface EmptyExecutionResult {
47
+ Type: "Empty";
48
+ }
49
+ export {};
50
+ }
51
+ }
52
+ }
53
+ export declare namespace ApiV2 {
54
+ namespace Request {
55
+ type ExecProc = ApiV1.Request.Job.ExecProc;
56
+ type ExecTask = ApiV1.Request.Job.ExecTask;
57
+ type StopTask = ApiV1.Request.Job.StopTask;
58
+ type IsRunning = ApiV1.Request.Job.IsRunning;
59
+ }
60
+ namespace Response {
61
+ namespace Job {
62
+ export type ExecTask = FileExecutionResult | StoredProcExecutionResult | TextExecutionResult | EmptyExecutionResult;
63
+ interface FileExecutionResult {
64
+ type: "File";
65
+ url: URLString;
66
+ }
67
+ interface StoredProcExecutionResult {
68
+ type: "StoredProc";
69
+ id_ProcedureObject: ObjectId;
70
+ }
71
+ interface TextExecutionResult {
72
+ type: "Text";
73
+ text: string;
74
+ header: string;
75
+ }
76
+ interface EmptyExecutionResult {
77
+ type: "Empty";
78
+ }
79
+ export {};
80
+ }
81
+ }
82
+ }