import "@skbkontur/react-ui/lib/LayoutEvents"; import * as React from "react"; import { fetch as fetch$1 } from "whatwg-fetch"; import { AllIconNames } from "react-ui"; import { CreateDocumentRequest, CreateDocumentResponse, Employee, EmployeeList, GetDocumentsQuery, GetEmployeesWithActivePeriodQuery, GetRelativesQuery, GetWorkingEventListRequest, JsonPatchOperation, MatchEmployeeRequest, MatchEmployeeResponse, MergeRelativeRequest, MergeRelativeResponse, ObjectDocumentList, PatchRelativeResponse, RelativeListDef, StaffClient, WorkingEventList, relativeDef } from "@skbkontur/staff-common"; import { AdditionalColumn, EmployeeListInitialState, ListType } from "@skbkontur/staff-selector-widget"; import "@babel/types"; import * as ReactDOM from "react-dom"; import { PopupPositionsType } from "@skbkontur/react-ui"; import { ObjectDocument } from "@skbkontur/staff-common/lib/client/clientTypes"; import { Client } from "@hey-api/client-fetch"; import { Store } from "redux"; import Big$1, { BigSource } from "big.js"; import "prop-types"; import { ElementHandle, FileChooser, Page } from "playwright-core"; import "@playwright/test"; //#endregion //#region ../Tests/Playwright/Utils/Core/Api/KonturApi.d.ts interface IKonturApi { getAuthInfoFromAuth(login: string, password: string): Promise; getAuthSid(login: string, password: string): Promise; } interface AuthInfo { authSid: string; externSession?: string; } //#endregion //#region ../Common/HttpClient/FetchImplementation/Fetch.d.ts type Fetch = typeof fetch; //#endregion //#region ../Common/HttpClient/IHttpClient.d.ts type HttpStatusCode = number; //#endregion //#region ../Engine/src/Engine/Core/ModalManager/Modals/UploadSection/Types.d.ts interface ICombineByTransfersSort { id: string; fufDriveUri: string; typeId: string; } type ICombineByTransfers = Omit; //#endregion //#region ../Engine/src/Helpers/TypingUtils.d.ts /** * Смотри: https://en.wikipedia.org/wiki/Opaque_data_type * В нашем случае запрещает создание типов напрямую */ type Opaque = T & { readonly _TAG_: U; }; //#endregion //#region ../Common/NidusClient/INidusClient.d.ts interface NidusEntryData { [key: string]: string; } interface NidusEntry { id: NidusEntryId; data: NidusEntryData; } type NidusReferenceKey = string | null | undefined; type NidusName = string; type NidusEntryId = Opaque; interface NidusSearchResponse { items: NidusEntry[]; totalSuitableCount: number; } interface INidusClient { search(nidusName: NidusName, key: NidusReferenceKey, searchValue: string | null | undefined): Promise; searchMinitour(nidusName: NidusName, key: NidusReferenceKey, searchValue: string | null | undefined): Promise; insert(nidusName: NidusName, key: NidusReferenceKey, obj: NidusEntryData): Promise; delete(nidusName: NidusName, key: NidusReferenceKey, objectId: NidusEntryId): Promise; update(nidusName: NidusName, key: NidusReferenceKey, objectId: NidusEntryId, obj: NidusEntryData): Promise; batchInsert(nidusName: NidusName, key: NidusReferenceKey, objects: NidusEntry[]): Promise; } //#endregion //#region ../Common/CandyApiClient/DigestApiClient/Types/DigestQueryFilter.d.ts declare enum DigestFilterOperator { Equal = "equal", Substring = "substring", Prefix = "prefix", ContainsInList = "containsinlist" } interface DigestFilterColumn { operator: DigestFilterOperator.Equal | DigestFilterOperator.Substring | DigestFilterOperator.Prefix | DigestFilterOperator.ContainsInList; column: string; value: string; } interface PicklistRequestOrder { column: string; direction: "asc" | "desc"; } interface DigestQueryFilter { filter?: DigestFilter; skip?: number; take?: number; isTree?: boolean; order?: PicklistRequestOrder; autocomplete?: string; fields?: string; } declare enum DigestLogicalOperator { And = "and", Or = "or" } type DigestFilter = DigestLogicalFilter | DigestFilterColumn; interface DigestLogicalFilter { operator: DigestLogicalOperator; operands: DigestFilter[]; } //#endregion //#region ../Engine/src/Engine/Core/Picklists/PicklistTypes.d.ts interface PicklistDataItem { [columnName: string]: string | number; } interface PicklistColumnMeta { name: string; withMarkdown: boolean; } interface PicklistQueryResponse { items: PicklistDataItem[]; suitableCount: number; columnMetas: PicklistColumnMeta[]; } //#endregion //#region ../Engine/src/Engine/Core/CoreTypes.d.ts type ModelValue = any; type BindingPath = string; type ExternalBindingPath = string; interface ViewModel { children?: string[]; error?: string[]; warning?: string[]; description?: string; id?: string; disabled?: boolean | string; visible?: boolean; disabledSending?: boolean; value?: string | undefined; autoValue?: string | undefined; autoFlag?: boolean | string; resourcesHash?: string; errorsCount?: number; warningsCount?: number; code?: string; picklist?: PicklistDataItem; normalized?: boolean; emptyUnitsVisible?: boolean; pencilOpened?: boolean; ignoreAutoFlag?: boolean; disableValueAutoInit?: boolean; index?: string; regionCode?: string; district?: string; city?: string; settlement?: string; street?: string; house?: string; building?: string; room?: string; bossValue?: string; agentValue?: string; senderInn?: string; nameorg?: string; /** * @summary Это поле проставляется при генерации авторасчётов */ sum?: string; /** * @summary Это поле проставляется при генерации авторасчётов */ count?: string; normalizationSource?: "server" | "client"; referencedId?: NidusEntryId; dirtyChangedPathMasks?: string; forceAutoValue?: boolean | undefined; } type ViewModelFieldName = keyof ViewModel; //#endregion //#region ../Common/ModelPath/EachCurrentCollision.d.ts declare enum EachCurrentCollision { AreSame = 0, AreDifferent = 1 } //#endregion //#region ../Common/ModelPath/PathMatcher.d.ts type PathMatching = PathMatchingPart[]; type PathMatchingPart = { kind: MatchKind.MatchedPath; prefix: ModelPath; } | { kind: MatchKind.DifferentSuffix; source: ModelPath | undefined; target: ModelPath | undefined; } | { kind: MatchKind.MatchedMultiplicity; source: PathToken; target: PathToken; }; declare enum MatchKind { MatchedPath = "MatchedPath", DifferentSuffix = "DifferentSuffix", MatchedMultiplicity = "MatchedMultiplicity" } //#endregion //#region ../Common/ModelPath/IEquatable.d.ts interface IEquatable { isEquals(right: T): boolean; getHash(): number; } declare namespace ModelPath_d_exports { export { AbsoluteModelPath, AbsoluteResolvedModelPath, IModelPath, ModelPath, ModelPathImpl, PathToken, PathTokens, RelativeModelPath, RelativeResolvedModelPath, ResolvedModelPath, SimplePathToken, convertToAbsoluteModelPath, convertToLegacyPath, convertToRelativeModelPath, createAbsolute, createAbsoluteFromMask, createAbsoluteFromTokens, createAbsoluteResolvedFromTokens, createFromMask, createModelPath, createRelativeFromMask, createRelativeFromTokens, createRelativeResolvedModelPath, emptyAbsoluteModelPath, emptyModelPath, isModelPath, joinModelPaths }; } declare const EachSymbol: unique symbol; declare const CurrentSymbol: unique symbol; declare class PathTokens { static each: typeof EachSymbol; static current: typeof CurrentSymbol; static isMultiToken(part: undefined | PathToken): part is typeof EachSymbol | typeof CurrentSymbol; static isSimpleToken(part: undefined | PathToken): part is string; static isInstanceToken(part: undefined | PathToken): part is string; static isInstanceTokenOrInstancesSpec(part: undefined | PathToken): part is string; } type SimplePathToken = string; type PathToken = SimplePathToken | typeof EachSymbol | typeof CurrentSymbol; declare function isModelPath(path: BindingPath | ModelPath | unknown): path is ModelPath; declare function convertToLegacyPath(path: BindingPath | ModelPath): BindingPath; declare function convertToAbsoluteModelPath(path: BindingPath | IModelPath): IModelPath; declare function convertToRelativeModelPath(path: BindingPath | IModelPath): IModelPath; declare function emptyModelPath(): RelativeResolvedModelPath; declare function emptyAbsoluteModelPath(): AbsoluteResolvedModelPath; declare function createModelPath(path: string, absolute: true): AbsoluteResolvedModelPath; declare function createModelPath(path: string, absolute: false): RelativeResolvedModelPath; declare function createModelPath(path: string, absolute: "auto"): ResolvedModelPath; declare function createFromMask(path: string, absolute: true, multiplicitySymbol: PathToken): AbsoluteModelPath; declare function createFromMask(path: string, absolute: false, multiplicitySymbol: PathToken): ResolvedModelPath; declare function createFromMask(path: string, absolute: "auto", multiplicitySymbol: PathToken): ModelPath; declare function createAbsoluteFromMask(path: string, multiplicitySymbol: PathToken): AbsoluteModelPath; declare function createRelativeFromMask(path: string, multiplicitySymbol: PathToken): RelativeModelPath; declare function createAbsolute(path: string): AbsoluteResolvedModelPath; declare function createRelativeResolvedModelPath(path: string): RelativeResolvedModelPath; declare function createAbsoluteFromTokens(tokens: PathToken[]): AbsoluteModelPath; declare function createAbsoluteResolvedFromTokens(tokens: readonly string[]): AbsoluteResolvedModelPath; declare function createRelativeFromTokens(tokens: readonly string[]): RelativeResolvedModelPath; declare function createRelativeFromTokens(tokens: readonly PathToken[]): RelativeModelPath; declare function joinModelPaths(...parts: Array): ModelPath; interface IModelPath extends IEquatable> { readonly resolved: TResolved; readonly absolute: TAbsolute; isEquals(modelPath: ModelPath, eachCurrentCollision?: EachCurrentCollision): boolean; getHash(eachCurrentCollision?: EachCurrentCollision): number; isResolved(): this is IModelPath; isAbsolute(): this is IModelPath; toAbsolute(): IModelPath; joinWith(...path: string[]): IModelPath; joinWith(...path: PathToken[]): IModelPath; joinWith(...path: Array): IModelPath; joinWith(...path: Array): IModelPath; joinWith(...path: Array): IModelPath; getPathParts(): Iterable>; getPathPartsAsArray(): ReadonlyArray>; getSimpleTokensStrict(): Iterable; getSimpleTokensAsArrayStrict(): readonly SimplePathToken[]; resolveAll(instance: string): ModelPath; isContainIteration(): boolean; isContainCurrentIteration(): boolean; isContainCurrentOrEachIteration(): boolean; getLastListPath(): PathToken[]; getPathWithoutLastIteration(): IModelPath; getPathWithoutIterations(): IModelPath; getLastIndexOfCurrentOrEachIteration(): number | -1; isEndsWithIteration(): boolean; isEndsWithCurrentIteration(): boolean; isIncludes(modelPath: ModelPath): boolean; getIterationRank(eachCurrentCollision?: EachCurrentCollision): number; isEmpty(): boolean; matchFor(modelPath: ModelPath): PathMatching; startsWith(modelPath: ModelPath): boolean; endsWith(modelPath: ModelPath): boolean; splitByMultiplicity(): Iterable; normalize(): IModelPath; toCurrentIteration(): IModelPath; toEachIteration(): IModelPath; getAllParentPaths(): Iterable; trimLastStarIfLastToken(): IModelPath; trimFirstStarIfFirstToken(): IModelPath; getSuffixPathFrom(modelFieldPath: ModelPath): RelativeModelPath; getParentPath(): IModelPath; applyInstancesDirty(instances: SimplePathToken[], fillWithMultiplicityIfHasNoInstance?: boolean): IModelPath; applyCommonInstancesFromAnotherPath(modelPath: ModelPath): IModelPath; getFirstMultiplicityInstanceNumber(): number; tokensCount(): number; toString(): string; toLegacyPath(): string; } type ModelPath = IModelPath; type ResolvedModelPath = IModelPath; type AbsoluteModelPath = IModelPath; type AbsoluteResolvedModelPath = IModelPath; type RelativeModelPath = IModelPath; type RelativeResolvedModelPath = IModelPath; type PathTokenSpec = TResolved extends true ? string : PathToken; type ReadonlyPathTokensSpec = ReadonlyArray>; declare class ModelPathImpl implements IEquatable, IModelPath { private readonly tokens; readonly absolute: TAbsolute; private legacyPath; private cachedHash; constructor(pathParts: ReadonlyPathTokensSpec, absolute: TAbsolute); get resolved(): TResolved; getPathParts(): Iterable>; getPathPartsAsArray(): ReadonlyArray>; getSimpleTokensStrict(): Iterable; getSimpleTokensAsArrayStrict(): readonly SimplePathToken[]; joinWith(...path: string[]): IModelPath; joinWith(...path: PathToken[]): IModelPath; joinWith(...path: Array): IModelPath; joinWith(...path: Array): IModelPath; joinWith(...path: Array): IModelPath; getFirstMultiplicityInstanceNumber(): number; tokensCount(): number; isResolved(): this is IModelPath; resolveAll(instance: string): ModelPath; isContainIteration(): boolean; isContainCurrentIteration(): boolean; isContainCurrentOrEachIteration(): boolean; getLastListPath(): PathToken[]; getPathWithoutLastIteration(): IModelPath; getPathWithoutIterations(): IModelPath; getLastIndexOfCurrentOrEachIteration(): number | -1; isEndsWithIteration(): boolean; isEndsWithCurrentIteration(): boolean; isAbsolute(): this is IModelPath; toString(): string; toLegacyPath(): string; isEquals(modelPath: ModelPath, eachCurrentCollision?: EachCurrentCollision): boolean; /** * Всегда целое положительное беззнаковое 32-битное число */ getHash(eachCurrentCollision?: EachCurrentCollision): number; isIncludes(modelPath: ModelPath): boolean; getIterationRank(eachCurrentCollision?: EachCurrentCollision): number; isEmpty(): boolean; matchFor(modelPath: ModelPath): PathMatching; startsWith(modelPath: ModelPath): boolean; endsWith(modelPath: ModelPath): boolean; splitByMultiplicity(): Iterable; normalize(): IModelPath; /** * @summary Спецификаторы множественности Each заменяет на Current */ toCurrentIteration(): IModelPath; toEachIteration(): IModelPath; toAbsolute(): IModelPath; getAllParentPaths(): Iterable; trimLastStarIfLastToken(): IModelPath; trimFirstStarIfFirstToken(): IModelPath; getSuffixPathFrom(modelFieldPath: ModelPath): RelativeModelPath; getParentPath(): IModelPath; applyInstancesDirty(instances: SimplePathToken[], fillWithMultiplicityIfHasNoInstance?: boolean): IModelPath; applyCommonInstancesFromAnotherPath(modelPath: ModelPath): IModelPath; private pathPartToString; } //#endregion //#region ../Common/ModelPath/BaseModelFieldPath.d.ts declare abstract class BaseModelFieldPath implements IEquatable> { protected static readonly extraFieldNames: string[]; protected static readonly fieldExtractRegex: RegExp; readonly path: T; readonly field: ViewModelFieldNameWithCustomFields; protected constructor(path: T, fieldName: ViewModelFieldNameWithCustomFields); getHash(): number; isEquals(modelPath: BaseModelFieldPath, eachCurrentCollision?: EachCurrentCollision): boolean; toString(includeLeadingSlash?: boolean): string; toLegacyPath(addSlashIfLastTokenIsInstanceOrMultiplicity?: boolean): string; } //#endregion //#region ../Common/ModelPath/AbsoluteModelFieldPath.d.ts type ViewModelFieldNameWithCustomFields = ViewModelFieldName | "$errorCount" | "$warningCount" | ""; declare class AbsoluteModelFieldPath extends BaseModelFieldPath { constructor(path: AbsoluteModelPath, fieldName: ViewModelFieldNameWithCustomFields); static createFromString(pathWithFieldName: string, defaultFieldName?: ViewModelFieldNameWithCustomFields): AbsoluteModelFieldPath; static createFromMask(pathWithFieldName: string, multiplicitySymbol: PathToken, defaultFieldName?: ViewModelFieldNameWithCustomFields): AbsoluteModelFieldPath; private static createFrom; } //#endregion //#region ../Common/CandyApiClient/Types/DraftFullId.d.ts interface DraftFullId { ns: string; draftId: string; } //#endregion //#region ../Common/HttpClient/AuthenticationMode.d.ts type AuthenticationMode = "browser-credentials-include" | { authSid: string; }; //#endregion //#region ../Common/CandyApiClient/ClientDraftInfo/FnsFormInfo.d.ts interface FormInfo { knd?: string; formVersion?: string; periodDescription?: string; okud?: string; relevance?: boolean; dateRelease?: string; notice?: string; periodBeginNew?: string; relevanceMessage?: string; reportingDeadlines?: string; } //#endregion //#region ../Common/CandyApiClient/ClientDraftInfo/PrintInfo.d.ts interface PrintInfo { available?: boolean; message?: string; } //#endregion //#region ../Common/GFV.d.ts type GFV = string; //#endregion //#region ../Engine/src/Controls/Internals/LayoutEvents/LayoutEvents.d.ts interface LayoutEventsSubscription { remove(): void; } interface LayoutEventsStatic { addListener(callback: () => void): LayoutEventsSubscription; emit(): void; } //#endregion //#region ../Engine/src/Controls/FormParts/SimpleForm/SimpleForm.d.ts interface customButtonOptions { visible?: boolean; title?: string; } //#endregion //#region ../Common/TypingUtils.d.ts type ErrorFirstCallback = (...args: [Error, null | undefined] | [null | undefined, T] | [Error]) => void; declare function reject(message?: string | Error): never; //#endregion //#region ../Engine/src/Controls/Internals/ControlContexts/PathContexts/PushInstance.d.ts interface CurrentInstanceContext { bindingPath: AbsoluteResolvedModelPath; instance: string; } //#endregion //#region ../Generator/src/generators/markupGenerator/Serializer/SugarSerializer.d.ts type HtmlLengthUnit = string | number; //#endregion //#region ../Engine/src/Forms/PublicForm/ModelChangeListener.d.ts interface ModelChangeInfo { path: BindingPath; value: ModelValue; type: "remove" | "change"; } type ModelChangeListener = (changeInfo?: ModelChangeInfo) => void; //#endregion //#region ../Engine/src/Engine/Form/ModelChangeEventListener.d.ts type ModelChangeHooks = Map; interface Subscription { unsubscribe: () => void; } //#endregion //#region ../Engine/src/Engine/Core/ComponentHandleRegistry/ICandyComponentHandle.d.ts interface ICandyComponentHandle { focus(path?: unknown): void; makePathAvailableForFocus(path: AbsoluteModelPath): Promise; getAnchorElement(): HTMLElement | undefined; getTargetBoundingClientRect(): DOMRect | undefined; } //#endregion //#region ../Engine/src/Engine/Core/ControlDispatcher/ControlReference.d.ts type ControlReference = HTMLElement | React.ReactInstance | ICandyComponentHandle; //#endregion //#region ../Engine/src/Controls/FormParts/Panel/PanelTypes.d.ts type PanelType = "pin" | "show" | "hide" | "pinManual" | "hideManual"; type PanelTabType = "menu" | "check"; //#endregion //#region ../Engine/src/Controls/FormParts/HiddenPanel/Store/HiddenPanelActions.d.ts declare enum HiddenPanelActionType { SetPanelState = "SET_PANEL_STATE", SetWidePanel = "SET_WIDE_PANEL", SetPopupPanel = "SET_POPUP_PANEL", FrozenPanel = "FROZEN_PANEL", SetPanelActiveTab = "SetPanelActiveTab" } type HiddenPanelAction = { type: HiddenPanelActionType.SetPanelState; payload: PanelType; } | { type: HiddenPanelActionType.SetWidePanel; payload: boolean; } | { type: HiddenPanelActionType.SetPopupPanel; payload: { isPopupPanel: boolean; isFrozenPopup: undefined | boolean; }; } | { type: HiddenPanelActionType.FrozenPanel; payload: boolean; } | { type: HiddenPanelActionType.SetPanelActiveTab; payload: PanelTabType; }; //#endregion //#region ../Engine/src/Controls/FormParts/Unit/Store/unitActions.d.ts declare enum UnitActionType { UnitHighlight = "UNIT_HIGHLIGHT", SetUnitTableWidth = "SetUnitTableWidth", RemoveUnitTableWidth = "RemoveUnitTableWidth", AddUnit = "ADD_UNIT", RemoveUnit = "REMOVE_UNIT", UpdateEmptyUnits = "UPDATE_EMPTY_UNITS", ShowModalUnit = "ShowModalUnit", ReplaceModalUnit = "ReplaceModalUnit", CloseModalUnit = "CloseModalUnit", InitUnitInfo = "InitUnitInfo" } type UnitAction = { type: UnitActionType.UnitHighlight; payload: { unitId: UnitId; }; } | SetUnitTableWidthActionType | RemoveUnitTableWidthActionType | { type: UnitActionType.AddUnit; payload: { bindingPath: string; newInstance: string; newIndex?: number; unitId: UnitId; }; } | { type: UnitActionType.RemoveUnit; payload: { bindingPath: string; index: string; unitId: UnitId; }; } | { type: UnitActionType.UpdateEmptyUnits; payload: { unitId: UnitId; empty: boolean; }; } | { type: UnitActionType.ShowModalUnit; payload: { targetUnitId: UnitId; modalUnitId: UnitId; }; } | { type: UnitActionType.ReplaceModalUnit; payload: { currentModalUnitId: UnitId; nextModalUnitId: UnitId; }; } | { type: UnitActionType.CloseModalUnit; payload: { targetUnitId: UnitId; }; } | { type: UnitActionType.InitUnitInfo; payload: { unitInfos: UnitInfo[]; }; }; interface RemoveUnitTableWidthActionType { type: UnitActionType.RemoveUnitTableWidth; payload: { tableId: string; unitId: UnitId; }; } interface SetUnitTableWidthActionType { type: UnitActionType.SetUnitTableWidth; payload: { tableId: string; unitId: UnitId; width: number; }; } //#endregion //#region ../Engine/src/Controls/MultiControls/CrossfitTable/Store/crossFitTableActions.d.ts declare enum CrossFitTableActionType { SetColumnGrouping = "SET_COL_GROUPING", SetHiddenColumnGrouping = "SET_HIDDEN_COL_GROUPING", SetStateHiddenColumnGrouping = "SET_STATE_HIDDEN_COL_GROUPING", ColumnGroupingBatch = "ColumnGroupingBatch", SetLoading = "SET_LOADING" } type CrossFitTableColumnGroupingAction = { type: CrossFitTableActionType.SetColumnGrouping; payload: { stickyTablePath: string; groupKey: undefined | string; isShowColumns: boolean; doNotThrottle: boolean; }; } | { type: CrossFitTableActionType.SetHiddenColumnGrouping; payload: { stickyTablePath: string; groupKey: undefined | string; isShowColumns: boolean; doNotThrottle: boolean; }; } | { type: CrossFitTableActionType.SetStateHiddenColumnGrouping; payload: { stickyTablePath: string; groupKey: undefined | string; isShowColumns: boolean; }; } | { type: CrossFitTableActionType.SetLoading; payload: { stickyTablePath: string; loading: boolean; }; }; type CrossFitTableAction = CrossFitTableColumnGroupingAction | { type: CrossFitTableActionType.ColumnGroupingBatch; payload: { events: CrossFitTableColumnGroupingAction[]; }; } | { type: CrossFitTableActionType.SetLoading; payload: { stickyTablePath: string; loading: boolean; }; }; //#endregion //#region ../Engine/src/Controls/ValueEditors/INN/Store/INNActions.d.ts declare enum INNActionType { SetHiddenOrgName = "SET_HIDDEN_ORG_NAME" } interface INNAction { type: INNActionType.SetHiddenOrgName; payload: boolean; } //#endregion //#region ../Common/CandyApiClient/Types/Attachments/Attacments.d.ts interface AttachInfoFileInfo { name: string; size: number; contentUri?: string; } interface AttachInfo { contentUri?: string; file?: AttachInfoFileInfo; id: string; draftId?: string; nsId?: string; meta: { bindingPath: BindingPath; fileName: string; fileSize: number; instance?: string; pathToAttachment?: BindingPath; gfv?: string; attachmentDraftId?: string; progress: number | string; isConverted?: boolean; ndsTotalSum?: string | number; fileNamePatched?: string; format?: AttachFormat; }; } declare enum AttachFormat { PdfA1_1_4 = "PdfA1_1_4", Pdf = "Pdf" } //#endregion //#region ../Common/CandyApiClient/Types/ErrorLog/CandyPopdProtocol.d.ts interface CandyPopdProtocol { resultCode: PopdResultCode; contentDriveUri: string; errorsCount: number; warningsCount: number; message: string; } interface CandyPopdProtocolState { isChecking?: boolean; resultCode?: PopdResultCode; contentDriveUri?: string; errorsCount?: number; warningsCount?: number; message?: string; } declare enum PopdResultCode { Ok = "Ok", Error = "Error" } //#endregion //#region ../Engine/src/Engine/Types/Guid.d.ts type Guid$1 = string; //#endregion //#region ../Common/CandyApiClient/Types/ErrorLog/ServerErrorLog.d.ts interface ServerErrorLogItem { id: Guid$1; description: string; path: null | undefined | string; source: string; tags: string[] | string | null; usedArguments: string[] | undefined; justification?: string | undefined | null; } interface ServerErrorLog$1 { errorLogName?: null | string; propsName?: null | string; errors: ServerErrorLogItem[]; warnings: ServerErrorLogItem[]; successes: ServerErrorLogItem[]; } interface ErrorLogGroup { groupName: string | null; errors: ServerErrorLogItem[]; warnings: ServerErrorLogItem[]; successes: ServerErrorLogItem[]; groupAttachmentId?: string; tid?: string; } interface GroupedErrorLog { errorLogName?: null | string; propsName?: null | string; canSend?: boolean; hasErrors?: boolean; groups: ErrorLogGroup[]; interdocumentCheckerResult?: InterdocumentCheckerResult | null; } //#endregion //#region ../Engine/src/Engine/Core/ErrorManager/Utils/Models.d.ts declare enum ItemErrorMessageType { external = "external", navLink = "navLink", text = "text" } interface NavLinkErrorMessage { type: ItemErrorMessageType.navLink; text: string; highlanderUrl: string; bindingPaths: BindingPath[]; } type ItemErrorMessage = { type: ItemErrorMessageType.external; text: string; url?: string; } | NavLinkErrorMessage | { type: ItemErrorMessageType.text; text: string; hideLinks?: boolean; url?: string; }; interface ErrorLogItem { id: Guid$1; description: ItemErrorMessage[]; highlanderPath: null | undefined | string; bindingPaths?: undefined | BindingPath[]; source: string[]; tags: string[]; highlanderUsedArguments: string[] | undefined; usedArgumentBindingPaths: undefined | BindingPath[]; touched: boolean; justification?: string; } interface ErrorLogItems { [key: string]: ErrorLogItem; } interface ErrorLogGroupInfo { groupName: string | null; errorIds: string[]; warningIds: string[]; successIds: string[]; groupAttachmentId?: string; tid?: string; } interface ErrorLog { errorsTotalCount: number; warningsTotalCount: number; successesTotalCount: number; errorLogName?: null | string; propsName?: null | string; canSend?: boolean; hasErrors?: boolean; errorGroupInfos: ErrorLogGroupInfo[]; errors?: ErrorLogItems; warnings?: ErrorLogItems; successes?: ErrorLogItems; interdocumentCheckerResult?: InterdocumentCheckerResult | null; isChecking?: boolean; requestFailed?: true; errorLogWasRequested?: true; counterEnabled?: boolean; } declare enum InterdocumentCheckStatus { Fail = "fail", Success = "success" } declare enum InterdocumentCheckType { Error = "error", Warning = "warning", Fine = "fine", NotFound = "notfound", Issues = "issues" } declare enum InterdocumentIssueSeverity { Warning = "warning", Error = "error" } interface InterdocumentIssue { id: string; description: string; severity: InterdocumentIssueSeverity; } interface CheckedReport { id: string; url: string; caption: string; } interface DiscrepancyInfo { discrepanciesCount: number; issues: InterdocumentIssue[]; } interface InterdocumentCheck { type: InterdocumentCheckType; title: string; userDescription?: string; issues?: InterdocumentIssue[]; checkedReports?: CheckedReport[]; discrepancyInfo: DiscrepancyInfo | null; } interface InterdocumentCheckerResult { status: InterdocumentCheckStatus; failReason?: string; checks?: InterdocumentCheck[]; } interface IErrorLogTaskResult { errorLogName?: null | string; propsName?: null | string; hasErrors: boolean; canSend: boolean; mainReportCheckLog: ServerErrorLog$1; mainReportCrossCheckLog: ServerErrorLog$1; warrantCheckLog: ServerErrorLog$1 | null; digitalWarrantCheckLog: ServerErrorLog$1 | null; interdocumentsCheckLog: InterdocumentCheckerResult | null; attachmentsCheckLogsWithIds: { [attachmentId: string]: ServerErrorLog$1; }; } //#endregion //#region ../Common/CandyApiClient/Types/ErrorLog/AttachmentErrorLog.d.ts interface AttachmentErrorLog { attachmentId: string; path?: string; errorItemId?: string; } //#endregion //#region ../Engine/src/Engine/Core/ErrorManager/Store/ErrorLogReducer.d.ts interface ErrorLogState { modelChangedAfterCheck: boolean; form: ErrorLog; expert?: ErrorLog; popdProtocol?: CandyPopdProtocolState; attachmentErrorLogs?: AttachmentErrorLog; } //#endregion //#region ../Engine/src/Controls/FormParts/EmbeddedLog/ErrorList/ErrorLogTooltip/CustomErrorLogTooltipState.d.ts interface CustomErrorLogTooltipState { anchorElement: HTMLElement; message: string; } //#endregion //#region ../Engine/src/Helpers/Deferred.d.ts declare class Deferred { readonly promise: Promise; resolve: (result: T) => void; reject: (error: unknown) => void; constructor(); } //#endregion //#region ../Engine/src/StaffServiceIntegration/EmployeeServiceTypes.d.ts interface ImportFromEmployeeServiceOptions { single: true; additionalColumn?: AdditionalColumn; listType?: ListType; selected?: (e: Employee) => boolean; } type EmployerDocumentTag = string; interface ImportEmployerDocumentsColumn { title: string; tagFieldName: string; renderValue?: (value: string | string[]) => string; } declare enum ImportEmployerDocumentsFilterType { Month = "targetMonth", Quarter = "targetQuarter" } type RequestsTags = string[][]; interface DocumentsFilterSelectValue { label: string; value: string | number; requestsTags: RequestsTags; } interface ImportEmployerDocumentsFilter { filterTypes: ImportEmployerDocumentsFilterType[]; selectValues: Record; hideFilterSelectFor?: ImportEmployerDocumentsFilterType[]; defaultValue?: { filterType?: ImportEmployerDocumentsFilterType; selectValue?: DocumentsFilterSelectValue["value"]; }; } interface ImportEmployerDocumentsOptions { gfv: string; requestsTags?: RequestsTags; tagsForView?: string[]; filterTagsCallback?: (tag: EmployerNormalizedTag) => boolean; title: string; description?: string; importResultDocumentNameGenitive?: string; instanceNumber?: number | string; snils?: string; importArguments?: string[]; employeeIds?: string[]; warning?: string; hint?: string; columns: ImportEmployerDocumentsColumn[]; filter?: ImportEmployerDocumentsFilter; getDocumentsQuery?: Partial; filterByEmployeeRelations?: boolean; } type EmployerDocument = ObjectDocument; interface EmployerNormalizedTag { sourceTag: EmployerDocumentTag; normalizedTag: { [key: string]: string; }; documentId: string; date: string; dateIso: string; content?: { report: { link?: string; gfv?: number; }; }; } //#endregion //#region ../Engine/src/StaffServiceIntegration/EmployeeServiceState.d.ts interface ImportEmployeesState { showSideBar: boolean; initialState?: EmployeeListInitialState; options?: ImportFromEmployeeServiceOptions; resultDeferred?: Deferred; } interface EmployerDocumentsState { showSideBar: boolean; loading: boolean; documents: EmployerDocument[]; activePage: number; filterType?: ImportEmployerDocumentsFilterType; filterValue?: string | number; options?: ImportEmployerDocumentsOptions; resultDeferred?: Deferred; } interface EmployeeRelativesItem { relatives: relativeDef[]; selectedRelative: relativeDef | null; } interface EmployeeRelativesState { [path: BindingPath]: EmployeeRelativesItem; } //#endregion //#region ../Engine/src/Forms/Types/FeatureFlags.d.ts type FeatureFlags = { candyTestFeature?: string; showDraftHistoryInEditor?: boolean; } | { [data: string]: unknown; }; //#endregion //#region ../Engine/src/Controls/FormParts/Unit/UnitId/UnitIdImmutableSet.d.ts interface UnitIdImmutableSet { [unitId: string]: true; } //#endregion //#region ../Common/CandyApiClient/CandyApiErrors.d.ts declare enum ErrorCode { FufSizeTooLarge = "FufSizeTooLarge", BadRequest = "BadRequest", UnknownError = "UnknownError" } //#endregion //#region ../Common/CandyApiClient/Types/DraftActions/FileProperties.d.ts interface FileProperties extends ErrorUploadFiles { Demandfilename: string; AccountDescription: string; BossName: string; CorrectFileName: string; FormName: string; IDPol: string; INN: string; IdFilePrefix: string; KPP: string; MriCode: string; PayerName: string; ИНСАЙТ: string; PropertiesVersion: string; TypeInf: string; docId: string; fioPodp: string; fufUri: string; gfv: string; idPolFromIdFile: string; mriCodeProvidedByForm: string; prPodp: string; senderInn: string; senderKpp: string; ВерсПрог: string; ИдФайл: string; КодНО: string; RecordCount?: string; IsLastVersion?: string; PeriodCode?: string; ndsTotalSum?: string; } interface ErrorUploadFiles { errorCode?: string; message?: string; systemMessage?: string; } interface UploadFilePropertiesResponse extends ServerErrorResponse { sourcesTotalCount: number; /** Сериализованный массив ссылок на драйв, которые истребования определили как: файлы не по формату */ invalidSourceDriveContentNames: string; fufUri?: string; /** кол-во инстансов в распаршенных файлах */ prevDocsInstancesCount?: string; gfv?: string; } interface ServerErrorResponse { serverError?: ErrorCode; message?: string; } interface ExcelsToPartialFufsResponse { parsed: string[]; failed: ExcelsToPartialFufsFailed[]; } interface ExcelsToPartialFufsFailed { item1: string; item2: string; } //#endregion //#region ../Common/CandyApiClient/Types/DraftActions/CombineFufResult.d.ts interface CombineFufResult { fufUri: string; addedItemsCount: number; updatedItemsCount: number; } interface ImportArguments { employerId: string; documentId: string; arguments?: string[]; } declare enum FufCombineMethod { Merge = "Merge", AddToEnd = "AddToEnd", ReplaceThenAddToEnd = "ReplaceThenAddToEnd", ReplaceThenMerge = "ReplaceThenMerge" } declare enum CombinatorType { XmlCombinatorByPath = "XmlCombinatorByPath", Default = "Default" } //#endregion //#region ../Common/FormActionHandlers/ContextualActionNames.d.ts declare const contextualActions: readonly ["userPicklist.AddToReference", "referencedfields.ClearFields", "referencedfields.SwitchToManual", "referencedfields.SwitchToReferenced", "referencedfields.SelectFromReference", "modalInstanceUnit.Open", "modalInstanceUnit.Close"]; type ContextualActionNames = (typeof contextualActions)[number]; //#endregion //#region ../Common/FormActionHandlers/ControlNamedContextualAction.d.ts interface ControlNamedContextualAction { type: "ContextualAction"; contextualActionName: ContextualActionNames; } //#endregion //#region ../Engine/src/Controls/Internals/FormActionHandlers/FormActionHandler.d.ts interface HelperFunctionParams { bindingPath?: ExternalBindingPath; field: "value"; } type HelperFunctionActionHandler = (callContext: IHelperFunctionsCallContext, params: HelperFunctionParams, args?: unknown) => void | unknown; type FormActionHandler = HelperFunctionActionHandler | ControlNamedContextualAction; //#endregion //#region ../Engine/src/Engine/Form/CustomizationContexts/HelperFunctionContext/UIUtil/ConfirmMiniModal/ConfirmMiniModal.d.ts type MiniModalButtonsDirection = "row" | "column"; //#endregion //#region ../Engine/src/Helpers/file.d.ts declare global { interface Window { lastInputElement?: HTMLInputElement; kontur?: { drive?: { upload?: any; init: (callback: (error?: Error) => void) => void; }; }; } } interface CustomFile { name: string; size: number; contentUri?: string; ndsTotalSum?: string | number; } //#endregion //#region ../Engine/src/Engine/Core/ModalManager/Modals/Utils/Types.d.ts interface FileProps { id?: string; uploadFile: CustomFile; errorMessage?: JSX.Element; warningMessage?: JSX.Element; driveUri?: string; excelUri?: string; status?: UploadFileStatuses; instancesInfo?: InstancesInFile; ndsTotalSum?: string; } interface InstancesInFile { count?: number; description?: string; } declare enum UploadFileStatuses { new = "new", progress = "progress", error = "error", success = "success" } declare enum TableType { static = "static", dynamic = "dynamic" } //#endregion //#region ../Engine/src/Engine/Core/ModalManager/IModalState.d.ts interface ModalStateInfo extends ModalOptions { isOpen: boolean; } interface SectionInfo { name: string; gfv: number; checkSectionPropertiesName: string; path: string; fileUploadNotSectionFoundErrorMessage?: string; fileUploadUnknownFormatErrorMessage?: string; } interface ModalOptions { modalName: modalNames; acceptFiles: string[]; maxInstances?: number; currentInstancesCount?: number; sectionInfo?: SectionInfo; getTransferIdByProperties?: (properties: FileProperties | undefined, sectionGfv: number | undefined) => string; multiple?: boolean; tableType?: TableType; pathToTable?: string | undefined; combineType?: FufCombineMethod; combinatorType?: CombinatorType; acceptGFVs?: string[]; instanceCountFromProps?: instancesInFileInfo; invalidFileErrorText?: string; navigationPath?: string; isOnlyAddToEnd?: boolean; isOnlyReplace?: boolean; getTypeId?: FormActionHandler; isImportByFuf?: boolean; rsvSection?: number; period?: string; useTransfersAndCheckUnitExist?: boolean; applyDeepMerge?: boolean; width?: string; buttonsDirection?: MiniModalButtonsDirection; } interface instancesInFileInfo { name: string; description: string; } type modalNames = "PatchFufByAttachment" | "UploadSection" | "ZeroReport" | "LoadExcel" | "LoadXml" | "NdflInquiryUpload"; //#endregion //#region ../Common/ModelPath/Map/Map2.d.ts declare class Map2, V> { private readonly hashMap; constructor(iterable?: Iterable); set(key: K, value: V): void; getOrSet(key: K, defaultValueFactory: () => V): V; get(key: K): V | undefined; has(key: K): boolean; remove(key: K): boolean; get isEmpty(): boolean; /** * Обновляет значение в словаре по ключю, если значения нет -- устнавит новое * @param key ключ словаря для робновления * @param newValueFactory Если значения нет -- будет установлен результат этой функции * @param updateValueFactory Если значение есть -- будет установлен результат этой функции */ setOrUpdate(key: K, newValueFactory: (key: K) => V, updateValueFactory: (key: K, update: V) => V): V; keys(): Iterable; values(): Iterable; entries(): Iterable<[key: K, value: V]>; clear(): void; protected getKeyHash(key: K): number; protected areKeyEqual(left: K, right: K): boolean; private getEntryOrUndefined; } //#endregion //#region ../Common/StringArrayKey.d.ts declare class StringArrayKey implements IEquatable { readonly items: string[]; private cachedHash; constructor(items: string[]); getHash(): number; isEquals(right: StringArrayKey): boolean; } //#endregion //#region ../Engine/src/Controls/Internals/ViewModeSelector/ViewModes.d.ts declare enum CaptionsViewMode { Short = 0, Long = 1 } declare enum HintsViewMode { Hide = 0, Show = 1 } //#endregion //#region ../Engine/src/Controls/Internals/ViewModeSelector/Store/ViewModesReducer.d.ts interface ViewModes { captions: CaptionsViewMode; hints: HintsViewMode; } interface ViewModesAction { type: "UpdateViewModes"; payload: Partial; } //#endregion //#region ../Engine/src/Helpers/FilterExpressions/FilterExpression.d.ts interface FilterOrExpression { operator: OperatorType.Or; conditions: FilterExpression[]; } interface FilterEqualExpression { operator: OperatorType.Equal; condition: CompareWithConstantCondition; } interface FilterEqualExpression { operator: OperatorType.Equal; condition: CompareWithConstantCondition; } interface FilterStartDateExpression { operator: OperatorType.StartDate; condition: CompareWithConstantCondition; } interface FilterEndDateExpression { operator: OperatorType.EndDate; condition: CompareWithConstantCondition; } interface FilterLessOrEqualExpression { operator: OperatorType.LessOrEqual; condition: CompareWithConstantCondition; } interface FilterGreaterOrEqualExpression { operator: OperatorType.GreaterOrEqual; condition: CompareWithConstantCondition; } interface FilterSubstringExpression { operator: OperatorType.Substring; condition: CompareWithConstantCondition; } interface FilterByInstancesExpression { operator: OperatorType.ByInstances; condition: CompareWithInstancesCondition; } interface FilterAndExpression { operator: OperatorType.And; conditions: FilterExpression[]; } interface FilterUnaryNotExpression { operator: OperatorType.UnaryNot; condition: FilterExpression; } type FilterExpression = FilterEqualExpression | FilterStartDateExpression | FilterEndDateExpression | FilterSubstringExpression | FilterAndExpression | FilterOrExpression | FilterUnaryNotExpression | FilterByInstancesExpression | FilterLessOrEqualExpression | FilterGreaterOrEqualExpression; interface CompareWithConstantCondition { dataPath: string; value: string; } interface CompareWithInstancesCondition { dataPath: string; instances: string[]; } declare enum OperatorType { UnaryNot = "unaryNot", And = "and", Or = "or", Equal = "equal", StartDate = "startDate", EndDate = "endDate", Substring = "substring", ByInstances = "byInstances", LessOrEqual = "lessOrEqual", GreaterOrEqual = "greaterOrEqual" } //#endregion //#region ../Engine/src/Controls/MultiControls/MultiLine/MultiLineFilter.d.ts interface MultiLineFilter { filterSourceId: string; filterSourceInfo: FilterSourceInfo; expression: FilterExpression; } type MultiLineFilters = MultiLineFilter[]; declare enum FilterSourceInfoType { DateRange = 0, String = 1, Items = 2, PredefinedFilter = 3, DefaultFilter = 4 } interface FilterDateRangeSource { type: FilterSourceInfoType.DateRange; startDate: string; endDate: string; } interface FilterStringSource { type: FilterSourceInfoType.String; value: string; } interface FilterPredefinedFilterSource { type: FilterSourceInfoType.PredefinedFilter; selectItemId: string; } interface FilterItemsSource { type: FilterSourceInfoType.Items; values: string[][]; } interface FilterDefaultSource { type: FilterSourceInfoType.DefaultFilter; } type FilterSourceInfo = FilterDateRangeSource | FilterStringSource | FilterItemsSource | FilterPredefinedFilterSource | FilterDefaultSource; //#endregion //#region ../Engine/src/Controls/MultiControls/MultiLine/MultiLineTypes.d.ts interface MultiLineSort { dataPath: string; value: SortType; dataType: SortDataType; } declare enum SortEnum { Asc = "asc", Desc = "desc" } declare enum DataType { Date = "date", Number = "number", CaseInsensitiveString = "caseInsensitiveString" } type SortType = SortEnum; type SortDataType = DataType; //#endregion //#region ../Engine/src/Controls/MultiControls/Tabs/Store/TabInfosState.d.ts interface TabInfosState { currentInstance: { [key: string]: string | undefined; }; currentTabInstanceIndex: { [key: string]: string | undefined; }; } //#endregion //#region ../Engine/src/Controls/FormParts/Panel/FormSaveStatus/Store/FormSaveStatusActions.d.ts declare enum FormSaveStatusActionType { SetSavingStatus = "SET_SAVING_STATUS" } type FormSavingStatus = "saving" | "success" | "error" | "unsavedChanges"; interface FormSaveStatusAction { type: FormSaveStatusActionType.SetSavingStatus; payload: { status: FormSavingStatus; }; } //#endregion //#region ../Engine/src/Engine/FormVisualStateReducer.d.ts interface FormVisualState { isWidePanel: boolean; panelState: PanelType; panelActiveTab: PanelTabType; savingStatus: FormSavingStatus; isFufDownloading?: boolean; isInnerDownloading?: boolean; isFrozenPanel?: boolean; isFrozenPopup?: boolean; isPopupPanel?: boolean; isFormReloading?: boolean; isHideOrgName?: boolean; } //#endregion //#region ../Engine/src/ContractorsServiceIntegration/Types/WidgetApi/types.gen.d.ts type SendFeedbackRequest = { /** * Рейтинг от 1 до 5 включительно */ rating: number; /** * Заголовок */ subject?: string | null; /** * Контактная информация */ contact?: string | null; /** * Сообщение */ message?: string | null; /** * Откуда пришел запрос */ location?: string | null; /** * Дополнительная произвольная информация */ context?: { [key: string]: string; } | null; }; type GetContractorResponse$1 = { /** * Идентификатор контрагента */ id: string; contractorDetails: ContractorDetails; /** * Токен обновления данных. Совпадает с сохраненным значением. */ updateToken: string; }; /** * Контрагент */ type ContractorDetails = ({ contractorType: 'organizationDetails'; } & OrganizationDetails$1) | ({ contractorType: 'entrepreneurDetails'; } & EntrepreneurDetails$1) | ({ contractorType: 'foreignContractorDetails'; } & ForeignContractorDetails$1); /** * Реквизиты организации */ type OrganizationDetails$1 = { contractorType: string; /** * Полное наименование */ name?: string | null; /** * Краткое наименование */ shortName?: string | null; /** * ИНН */ inn: string; /** * КПП */ kpp: string; /** * ОГРН */ ogrn?: string | null; /** * ОКПО */ okpo?: string | null; contacts?: Contacts | null; /** * Юридический адрес */ address?: Address$2 | null; /** * Дополнительные адреса */ customAddresses?: Array | null; }; /** * Контакты */ type Contacts = { /** * Телефон */ phone?: string | null; /** * Электронная почта */ email?: string | null; /** * Произвольный комментарий */ comment?: string | null; }; /** * Адрес */ type Address$2 = { /** * Полный текст адреса */ text: string; fiasReference?: FiasAddressReference$1 | null; /** * ОКТМО */ oktmo?: string | null; /** * Почтовый индекс */ postalCode?: string | null; }; /** * Адрес по ФИАС */ type FiasAddressReference$1 = { /** * Регион */ region?: AddressItem$1 | null; /** * Муниципальный район */ municipalDistrict?: AddressItem$1 | null; /** * Район */ district?: AddressItem$1 | null; /** * Городское и сельское поселение */ urbanSettlement?: AddressItem$1 | null; /** * Город */ city?: AddressItem$1 | null; /** * Внутригородская территория */ intracityArea?: AddressItem$1 | null; /** * Населенный пункт */ settlement?: AddressItem$1 | null; /** * Планировочная структура */ planningStructure?: AddressItem$1 | null; /** * Улица */ street?: AddressItem$1 | null; /** * Земельный участок */ stead?: AddressItem$1 | null; /** * Дом */ house?: House$1 | null; }; type AddressItem$1 = { fiasId?: string | null; name: string; abbreviation?: string | null; }; /** * Дом */ type House$1 = { fiasId?: string | null; /** * Номер дома */ number?: string | null; houseType?: HouseType$1 | null; /** * Части дома */ additionalHouseParts?: Array | null; flat?: Flat$1 | null; }; /** * Тип дома */ type HouseType$1 = 'None' | 'Hold' | 'House' | 'HouseHold' | 'Garage' | 'Building' | 'Mine' | 'Structure' | 'Construction' | 'Litera' | 'Housing' | 'Basement' | 'BoilerRoom' | 'Cellar' | 'UnfinishedConstruction'; /** * Часть дома */ type HousePart$1 = { /** * Номер части дома */ number: string; partType?: HousePartType$1 | null; }; /** * Тип части дома */ type HousePartType$1 = 'None' | 'Structure' | 'Construction' | 'Litera' | 'Housing'; /** * Квартира */ type Flat$1 = { fiasId?: string | null; /** * Номер квартиры */ number: string; flatType: FlatType$1; room?: Room$1 | null; }; /** * Тип квартиры */ type FlatType$1 = 'None' | 'Placement' | 'Apartment' | 'Office' | 'Room' | 'WorkArea' | 'Stock' | 'ShoppingRoom' | 'Workshop' | 'Pavilion' | 'Basement' | 'BoilerRoom' | 'Cellar' | 'Garage' | 'CarPlace'; /** * Комната */ type Room$1 = { fiasId?: string | null; /** * Номер комнаты */ number: string; roomType: RoomType$1; }; /** * Тип комнаты */ type RoomType$1 = 'Placement' | 'Room'; /** * Реквизиты предпринимателя */ type EntrepreneurDetails$1 = { contractorType: string; /** * ИНН */ inn: string; personFullName: PersonFullName; /** * ОГРНИП */ ogrnip?: string | null; /** * ОКПО */ okpo?: string | null; contacts?: Contacts | null; /** * Юридический адрес */ address?: Address$2 | null; /** * Дополнительные адреса */ customAddresses?: Array | null; }; /** * ФИО */ type PersonFullName = { /** * Фамилия */ lastName: string; /** * Имя */ firstName: string; /** * Отчество */ middleName?: string | null; }; /** * Реквизиты иностранного контрагента */ type ForeignContractorDetails$1 = { contractorType: string; /** * Наименование */ name: string; /** * Числовой код страны по ОКСМ */ countryCode: string; /** * Регистрационный номер */ registrationCode?: string | null; /** * Адрес */ address?: string | null; }; type GetContractorsResponse$1 = { items: Array; /** * Общее количество контрагентов */ totalCount: number; }; /** * Запрос на создание контрагента */ type CreateContractorRequest = { contractorDetails: ContractorDetails; /** * Тип дополнительных адресов */ customAddressType?: string | null; }; /** * Запрос на обновление данных о контрагенте */ type UpdateContractorRequest = { contractorDetails: ContractorDetails; /** * Токен обновления данных. Должен совпадать с сохраненным значением */ updateToken: string; /** * Тип дополнительных адресов */ customAddressType?: string | null; }; type ContractorsGetListData = { body?: never; path: { /** * Идентификатор справочника */ directoryId: string; }; query?: { /** * Тип дополнительных адресов */ customAddressType?: string | null; /** * Количество отбрасываемых элементов. По умолчанию 0 */ skip?: number | null; /** * Количество возвращаемых элементов. По умолчанию 20. Максимум 100 */ count?: number | null; /** * Возвращать общее количество найденных объектов. */ returnTotalCount?: boolean; /** * Фильтр по префиксу ИНН */ inn?: string | null; /** * Фильтр по подстроке ФИО предпринимателя, наименованию иностранного контрагента, * именам и кратким именам организаций, а также префиксу ИНН */ searchText?: string | null; }; url: '/widget/v1/directories/{directoryId}/contractors'; }; //#endregion //#region ../Engine/src/ContractorsServiceIntegration/Types/ServiceApi/types.gen.d.ts /** * Контрагент */ type Contractor = { type: ContractorType; organization?: OrganizationDetails | null; entrepreneur?: EntrepreneurDetails | null; foreignContractor?: ForeignContractorDetails | null; /** * Теги, навешанные на контрагента. Приводится к нижнему регистру. Пустые значения и повторы удаляются. */ tags?: Array | null; /** * Список категорий контрагента */ categories?: Array | null; /** * Идентификатор справочника */ directoryId: string; /** * Идентификатор контрагента */ id: string; meta: ContractorMeta; /** * Информация о последнем документообороте */ docflowInformation?: DocflowInformation | null; }; /** * Тип контрагента */ type ContractorType = 'organization' | 'entrepreneur' | 'foreignContractor'; /** * Реквизиты организации */ type OrganizationDetails = { /** * ИНН */ inn: string; /** * КПП */ kpp: string; /** * Полное наименование */ fullName?: string | null; /** * Краткое наименование */ shortName?: string | null; /** * Юридический адрес */ address?: Address$1 | null; }; /** * Адрес */ type Address$1 = { /** * Полный текст адреса */ text: string; fiasReference?: FiasAddressReference | null; /** * ОКТМО */ oktmo?: string | null; /** * Почтовый индекс */ postalCode?: string | null; }; /** * Адрес по ФИАС */ type FiasAddressReference = { /** * Регион */ region?: AddressItem | null; /** * Муниципальный район */ municipalDistrict?: AddressItem | null; /** * Район */ district?: AddressItem | null; /** * Городское и сельское поселение */ urbanSettlement?: AddressItem | null; /** * Город */ city?: AddressItem | null; /** * Внутригородская территория */ intracityArea?: AddressItem | null; /** * Населенный пункт */ settlement?: AddressItem | null; /** * Планировочная структура */ planningStructure?: AddressItem | null; /** * Улица */ street?: AddressItem | null; /** * Земельный участок */ stead?: AddressItem | null; /** * Дом */ house?: House | null; }; type AddressItem = { fiasId?: string | null; name?: string | null; abbreviation?: string | null; }; /** * Дом */ type House = { fiasId?: string | null; /** * Номер дома */ number?: string | null; houseType?: HouseType | null; /** * Части дома */ additionalHouseParts?: Array | null; flat?: Flat | null; }; /** * Тип дома */ type HouseType = 'none' | 'hold' | 'house' | 'houseHold' | 'garage' | 'building' | 'mine' | 'structure' | 'construction' | 'litera' | 'housing' | 'basement' | 'boilerRoom' | 'cellar' | 'unfinishedConstruction'; /** * Часть дома */ type HousePart = { /** * Номер части дома */ number: string; partType?: HousePartType | null; }; /** * Тип части дома */ type HousePartType = 'none' | 'structure' | 'construction' | 'litera' | 'housing'; /** * Квартира */ type Flat = { fiasId?: string | null; /** * Номер квартиры */ number?: string | null; flatType: FlatType; room?: Room | null; }; /** * Тип квартиры */ type FlatType = 'none' | 'placement' | 'apartment' | 'office' | 'room' | 'workArea' | 'stock' | 'shoppingRoom' | 'workshop' | 'pavilion' | 'basement' | 'boilerRoom' | 'cellar' | 'garage' | 'carPlace'; /** * Комната */ type Room = { fiasId?: string | null; /** * Номер комнаты */ number?: string | null; roomType: RoomType; }; /** * Тип комнаты */ type RoomType = 'placement' | 'room'; /** * Реквизиты предпринимателя */ type EntrepreneurDetails = { /** * ИНН */ inn: string; /** * ФИО */ fio?: Fio$1 | null; /** * Пользовательское наименование */ customName?: string | null; /** * Юридический адрес */ address?: Address$1 | null; }; /** * ФИО */ type Fio$1 = { /** * Имя */ firstName?: string | null; /** * Фамилия */ lastName?: string | null; /** * Отчество */ middleName?: string | null; }; /** * Реквизиты иностранного контрагента */ type ForeignContractorDetails = { /** * Наименование */ name: string; /** * Числовой код страны по ОКСМ */ countryCode: string; /** * Регистрационный номер */ registrationCode?: string | null; /** * Адрес */ address?: string | null; }; /** * Категория контрагента */ type ContractorCategory = 'seller' | 'buyer' | 'insurant' | 'insurer' | 'borrower' | 'creditor' | 'carrier'; type ContractorMeta = { created: ActionInfo; lastModified: ActionInfo; /** * Версия изменений */ version: number; }; /** * Информация о событии */ type ActionInfo = { /** * UTC дата-время события */ date: string; /** * Идентификатор сервиса, который инициировал событие */ serviceId?: string | null; }; /** * Информация о документообороте */ type DocflowInformation = { /** * Статус ДО */ state: DocflowState; /** * Дата-время отправки (UTC) */ sendTime: string; /** * Идентификатор ДО */ docflowId: string; }; /** * Статус документооборота */ type DocflowState = 'none' | 'sent' | 'accepted' | 'notAccepted' | 'protocolReceived'; type ContractorList = { items: Array; /** * Общее количество объектов. * Вернет 0 если ReturnTotalCount=false */ totalCount: number; }; type SearchContractorsRequest = { /** * Количество отбрасываемых элементов. * По умолчанию 0. */ skip?: number | null; /** * Количество возвращаемых элементов. * По умолчанию 100. * Максимум 10000. */ count?: number | null; /** * Возвращать общее количество найденных объектов. * По умолчанию false. */ returnTotalCount?: boolean | null; /** * Фильтрация по периоду последнего ДО */ docflowPeriod?: DatePeriod$1 | null; /** * Фильтр по префиксу ИНН */ inn?: string | null; /** * Фильтр по подстроке ФИО предпринимателя, наименованию иностранного контрагента, * именам и кратким именам организаций, а также префиксу ИНН */ searchText?: string | null; /** * Список реквизитов для сортировки. * По умолчанию сортировка происходит по ключу. * Реквизиты, доступные для сортировки: * `entrepreneur.fio`, `entrepreneur.fio.lastname`, `entrepreneur.fio.firstname`, `entrepreneur.fio.middlename` * `entrepreneur.inn`, `organization.inn` * `organization.fullname`, `organization.shortname` * `foreignContractor.name`, * `meta.created.date`, `meta.lastmodified.date` */ sort?: Array | null; }; /** * Период дат */ type DatePeriod$1 = { /** * Дата начала */ begin?: string | null; /** * Дата конца */ end?: string | null; }; //#endregion //#region ../Engine/src/ContractorsServiceIntegration/Types/ContractorsTypes.d.ts type GetContractorsListQuery = ContractorsGetListData["query"]; type GetContractorsResponse = GetContractorsResponse$1; type CreateContractorRequestBody = CreateContractorRequest; type GetContractorResponse = GetContractorResponse$1; type UpdateContractorRequestBody = UpdateContractorRequest; type SendFeedbackRequestBody = SendFeedbackRequest; type SearchContractorsRequestBody = SearchContractorsRequest; type SearchContractorsResponse = ContractorList; type Mode$1 = "single" | "default"; interface ImportContractorsWidgetOptions { directoryId: string; mode?: Mode$1; } //#endregion //#region ../Engine/src/ContractorsServiceIntegration/State/ContractorsState.d.ts interface ContractorsState { showSideBar: boolean; options?: ImportContractorsWidgetOptions; resultDeferred?: Deferred; } //#endregion //#region ../Engine/src/PersonsServiceIntegration/Types/PersonsApi/types.gen.d.ts /** * Гражданство */ type Citizenship = { /** * Числовой код страны * [Справочник](https://platform.testkontur.ru/api/persons/v1/references/countries) */ countryCode: string; }; /** * Сведения об организации, если физлицо является сотрудником чужой организации */ type ContractorInfo = { /** * Идентификатор ящика организации-работодателя физлица в ДД */ boxId?: string | null; /** * Идентификационный номер организации-работодателя физлица, которая может быть ЮЛ или ИП. */ inn?: string | null; }; /** * Период дат */ type DatePeriod = { /** * Дата начала */ begin?: string | null; /** * Дата конца */ end?: string | null; }; /** * Полное имя */ type FullName = { /** * Фамилия */ lastName?: string | null; /** * Имя */ firstName?: string | null; /** * Отчество */ middleName?: string | null; }; /** * Документ удостоверяющий личность */ type IdentityDocument = { /** * Код вида документа, обязателен на запись */ type?: string | null; /** * Серия документа */ series?: string | null; /** * Номер документа */ number?: string | null; /** * Орган, выдавший документ */ issuer?: string | null; /** * Код подразделения */ issuerUnitCode?: string | null; validityPeriod?: DatePeriod; /** * Категории водительских прав * Persons.Api.Client.Models.IdentityDocuments.DriverLicenseCategory */ driversCategories?: Array<'A' | 'A1' | 'B' | 'B1' | 'BE' | 'C' | 'C1' | 'C1E' | 'CE' | 'D' | 'D1' | 'D1E' | 'DE' | 'M' | 'Tb' | 'Tm'> | null; /** * Идентификатор документа, удостоверяющего личность. * Устанавливается сервисом при создании нового документа. */ id?: string | null; /** * Идентификатор физического лица */ personId: string; /** * Идентификатор директории */ directoryId: string; meta: IdentityDocumentMeta; }; type IdentityDocumentMeta = { /** * Версия записи */ version: number; }; /** * Физическое лицо */ type Person$1 = { /** * Идентификатор физического лица */ id: string; /** * Идентификатор связанного портального пользователя */ userId?: string | null; profile: PersonProfile; /** * Актуальные документы, удостоверяющие личность */ actualIdentityDocuments?: Array | null; /** * Теги, навешанные на физическое лицо, в нижнем регистре */ tags?: Array | null; meta: PersonMeta; contractorInfo?: ContractorInfo; /** * Комментарий по физлицу */ comment?: string | null; attribute?: PersonAttribute; }; type PersonAttribute = 'isNonContractorPerson' | 'isContractorPerson'; /** * Метаинформация о физическом лице */ type PersonMeta = { /** * Версия записи */ version: number; /** * Дата создания */ creationDate?: string | null; /** * Дата последнего изменения */ modificationDate?: string | null; }; /** * Профиль физического лица */ type PersonProfile = { name?: FullName; /** * День рождения */ birthday?: string | null; citizenship?: Citizenship; /** * СНИЛС * Формат 999-999-999 99 */ snils?: string | null; /** * ИНН ФЛ * Формат 999999999999 */ inn?: string | null; /** * Номер телефона * Формат +79999999999 */ phone?: string | null; /** * Email адрес */ email?: string | null; }; //#endregion //#region ../Engine/src/PersonsServiceIntegration/Types/PersonsTypes.d.ts type Mode = "single" | "default"; type Person = Person$1; interface ImportPersonsWidgetOptions { directoryId: string; mode?: Mode; additionalColumn?: AdditionalListField; additionalSearchField?: AdditionalListField; fields?: Partial; identityDocumentTypes?: string[]; } type AdditionalListField = "inn" | "phone"; type ConfigurablePersonFields = Record<"snils" | "inn" | "citizenship" | "email" | "phone", { required: boolean; } | undefined>; //#endregion //#region ../Engine/src/PersonsServiceIntegration/State/PersonsState.d.ts interface PersonsState { showSideBar: boolean; options?: ImportPersonsWidgetOptions; resultDeferred?: Deferred; } //#endregion //#region ../Engine/src/Engine/Core/Store/FormViewModel.d.ts interface NodeViewModel { [key: string]: NodeViewModel | ViewModel; } interface FormViewModel { [key: string]: NodeViewModel; } //#endregion //#region ../Engine/src/Engine/Core/Store/FullFormState.d.ts interface ErrorLogTooltipState { bindingPaths: BindingPath[]; errorId: string; } interface ErrorLogTooltipAttachmentState { bindingPaths: BindingPath[]; errorId: string; attachmentId?: string; highlanderPath?: string; } interface IViewModelContainer { viewModel: FormViewModel; redefinedViewModels?: FormViewModel[]; enabledValidatedModels?: { [key: string]: boolean; }; errorLogTooltip?: ErrorLogTooltipState; errorLogTooltipAttachment?: ErrorLogTooltipAttachmentState; } interface TableState { loading: boolean; } interface TableInfosState { [key: string]: TableState; } type InstanceNumberState = Record; interface FullFormState extends IViewModelContainer { attachments: AttachmentState; units: { [key: string]: { width: number; }; }; errorLog: ErrorLogState; modalState?: ModalStateInfo; highlightUnit?: UnitId; highlightUnitsInfo?: Map2; emptyUnits: UnitIdImmutableSet; settings: FormSettings; requisites?: RequisitesInfo; unitInfos?: UnitInfo[]; featureFlags?: FeatureFlags; modalUnits: ModalUnitInfo[]; customErrorLogTooltip?: CustomErrorLogTooltipState; tableInfos: TableInfosState; tabInfos: TabInfosState; importEmployees?: ImportEmployeesState; contractors?: ContractorsState; persons?: PersonsState; employerDocuments?: EmployerDocumentsState; employeeRelatives?: EmployeeRelativesState; viewModes: ViewModes; formVisualState: FormVisualState; instanceNumber?: InstanceNumberState; } interface ModalUnitInfo { targetUnitId: UnitId; modalUnitId: UnitId; } //#endregion //#region ../Engine/src/Engine/Externals/Attachments/Store/AttachmentsReducer.d.ts interface AttachmentState { allIds: string[]; byId: { [id: string]: undefined | AttachInfo; }; } //#endregion //#region ../Engine/src/Engine/Externals/Attachments/Store/AttachmentsActions.d.ts declare enum AttachmentsActionType { LoadInitialAttachments = "LoadInitialAttachments", AddAttachments = "ADD_ATTACHMENTS", RemoveAttachment = "REMOVE_ATTACHMENT", UpdateAttachment = "UPDATE_ATTACHMENT", SetAttachmentProgress = "SET_ATTACHMENT_PROGRESS" } type AttachmentAction = { type: AttachmentsActionType.LoadInitialAttachments; payload: AttachmentState; } | { type: AttachmentsActionType.AddAttachments; payload: AttachInfo[]; } | { type: AttachmentsActionType.RemoveAttachment; payload: { id: string; }; } | { type: AttachmentsActionType.UpdateAttachment; payload: { id: string; attachment: AttachInfo; }; } | { type: AttachmentsActionType.SetAttachmentProgress; payload: { id: string; progress: number; }; }; //#endregion //#region ../Engine/src/Engine/TooltipsResolveActions.d.ts declare enum TooltipsResolveActionType { DisableOwnTooltip = "DISABLE_OWN_TOOLTIP", EnableOwnTooltip = "ENABLE_OWN_TOOLTIP", DisableOwnTooltipAttachment = "DISABLE_OWN_TOOLTIP_ATTACHMENT", EnableOwnTooltipAttachment = "ENABLE_OWN_TOOLTIP_ATTACHMENT" } type TooltipsResolveAction = { type: TooltipsResolveActionType.DisableOwnTooltip; payload: { bindingPaths: BindingPath[]; errorId: string; }; } | { type: TooltipsResolveActionType.EnableOwnTooltip; } | { type: TooltipsResolveActionType.DisableOwnTooltipAttachment; payload: { bindingPaths: BindingPath[]; errorId: string; attachmentId?: string; highlanderPath?: string; }; } | { type: TooltipsResolveActionType.EnableOwnTooltipAttachment; }; //#endregion //#region ../Engine/src/Engine/Core/ErrorManager/Store/ErrorLogActions.d.ts declare enum ErrorLogActionsType { UpdateModelState = "UpdateModelState", requestErrorlog = "REQUEST_ERROR_LOG", receivedErrorLog = "RECEIVED_ERROR_LOG", requestFailed = "REQUEST_FAILED", requestExpertErrorlog = "REQUEST_EXPERT_ERROR_LOG", receivedExpertErrorLog = "RECEIVED_EXPERT_ERROR_LOG", requestExpertErrorLogFailed = "REQUEST_EXPERT_ERROR_LOG_FAILED", requestPopdProtocol = "REQUEST_POPD_PROTOCOL", receivedPopdProtocol = "RECEIVED_POPD_PROTOCOL", requestPopdProtocolFailed = "REQUEST_POPD_PROTOCOL_FAILED", setAttachmentErrors = "SET_ATTACHMENT_ERRORS", clearAttachmentErrors = "CLEAR_ATTACHMENT_ERRORS" } type ErrorLogAction = { type: ErrorLogActionsType.UpdateModelState; payload: { modelChanged: boolean; }; } | { type: ErrorLogActionsType.requestErrorlog; } | { type: ErrorLogActionsType.receivedErrorLog; payload: ErrorLog; } | { type: ErrorLogActionsType.requestFailed; } | { type: ErrorLogActionsType.requestExpertErrorlog; } | { type: ErrorLogActionsType.receivedExpertErrorLog; payload: ErrorLog; } | { type: ErrorLogActionsType.requestExpertErrorLogFailed; } | { type: ErrorLogActionsType.requestPopdProtocol; } | { type: ErrorLogActionsType.receivedPopdProtocol; payload: CandyPopdProtocol; } | { type: ErrorLogActionsType.requestPopdProtocolFailed; } | { type: ErrorLogActionsType.setAttachmentErrors; payload: AttachmentErrorLog; } | { type: ErrorLogActionsType.clearAttachmentErrors; }; //#endregion //#region ../Engine/src/Engine/Core/ModelStoring/ModelChunk.d.ts interface ModelChunk { [path: string]: undefined | ViewModel; } interface ReadonlyModelChunk { readonly [path: string]: Readonly; } interface ReadonlyModelValuesBatch { readonly [path: string]: undefined | Readonly; } //#endregion //#region ../Engine/src/Engine/Core/ModelStoring/IReadonlyModelHunk.d.ts interface TokenNode { childNodes?: Map; viewModel?: ViewModel; } interface IReadonlyModelHunk { isEmpty(): boolean; hasPath(path: AbsoluteResolvedModelPath): boolean; get(modelPath: AbsoluteResolvedModelPath): undefined | ViewModel; iteratePaths(): Iterable; iterateEntries(): Iterable<[AbsoluteResolvedModelPath, ViewModel]>; toModelChunk(): ModelChunk; mergeIntoViewModel(nextViewModelState: FormViewModel): FormViewModel; getTokenNodes(): Readonly>; } //#endregion //#region ../Engine/src/Engine/Core/ModelStoring/Store/modelActions.d.ts declare enum ModelActionType { SetValues = "SET_VALUES", ClearModel = "CLEAR_MODEL", redefineModel = "REDEFINE_MODEL", MergeRedefinedModel = "MERGE_REDEFINED_MODEL", DropRedefinedModel = "DROP_REDEFINED_MODEL", AggregatedSetToModel = "AGGREGATED_SET_TO_MODEL" } declare type ModelAction = { type: ModelActionType.SetValues; payload: { values: IReadonlyModelHunk; deleted: AbsoluteResolvedModelPath[]; }; } | { type: ModelActionType.ClearModel; } | { type: ModelActionType.AggregatedSetToModel; payload: { bindingPath: BindingPath; field: string; value: unknown; }; } | { type: ModelActionType.redefineModel; } | { type: ModelActionType.MergeRedefinedModel; } | { type: ModelActionType.DropRedefinedModel; }; //#endregion //#region ../Engine/src/Controls/FormParts/EmbeddedLog/ErrorList/ErrorLogTooltip/CustomErrorLogTooltipAction.d.ts declare enum CustomErrorLogTooltipActionType { Open = 0, Close = 1 } type CustomErrorLogTooltipAction = { type: CustomErrorLogTooltipActionType.Open; payload: { anchorElement: HTMLElement; message: string; }; } | { type: CustomErrorLogTooltipActionType.Close; }; //#endregion //#region ../Engine/src/StaffServiceIntegration/Employees/State/ImportEmployeesAction.d.ts declare enum ImportEmployeesActionType { BeginImport = "ImportEmployeesAction.BeginImport", EndImport = "ImportEmployeesAction.EndImport" } type ImportEmployeesAction = { type: ImportEmployeesActionType.BeginImport; payload: { deferredResult: Deferred; initialState?: EmployeeListInitialState; options?: ImportFromEmployeeServiceOptions; }; } | { type: ImportEmployeesActionType.EndImport; }; //#endregion //#region ../Engine/src/Engine/Externals/Requisites/Store/RequisitesActions.d.ts declare enum RequisitesActionType { LoadInitialRequisites = "LoadInitialRequisites" } interface RequisitesAction { type: RequisitesActionType.LoadInitialRequisites; payload: RequisitesInfo; } //#endregion //#region ../Engine/src/Engine/Externals/FeatureFlags/Store/FeatureFlagsActions.d.ts declare enum FeatureFlagsActionType { LoadInitialFeatureFlags = "LoadInitialFeatureFlags" } interface FeatureFlagsAction { type: FeatureFlagsActionType.LoadInitialFeatureFlags; payload: FeatureFlags; } //#endregion //#region ../Engine/src/Engine/Core/ModalManager/FormModalAction.d.ts declare enum ModalStateActionType { ShowModal = "SHOW_MODAL", CloseModal = "CLOSE_MODAL" } interface ShowModalAction { type: ModalStateActionType.ShowModal; payload: ModalStateInfo; } interface HideModalAction { type: ModalStateActionType.CloseModal; } type FormModalStateAction = ShowModalAction | HideModalAction; //#endregion //#region ../Engine/src/StaffServiceIntegration/Documents/State/EmployerDocumentsAction.d.ts declare enum EmployerDocumentsActionType { BeginImport = "EmployerDocumentsAction.BeginImport", ChangeFilterType = "EmployerDocumentsAction.ChangeFilterType", ChangeFilterValue = "EmployerDocumentsAction.ChangeFilterValueValue", BeginLoading = "EmployerDocumentsAction.BeginLoading", CompleteLoading = "EmployerDocumentsAction.CompleteLoading", EndImport = "EmployerDocumentsAction.EndImport", ChangePage = "EmployerDocumentsAction.ChangePage" } type EmployerDocumentsAction = { type: EmployerDocumentsActionType.BeginImport; payload: { deferredResult: Deferred; options: ImportEmployerDocumentsOptions; filterType?: ImportEmployerDocumentsFilterType; filterValue?: string | number; }; } | { type: EmployerDocumentsActionType.ChangeFilterType; payload: { filterType: ImportEmployerDocumentsFilterType; }; } | { type: EmployerDocumentsActionType.ChangeFilterValue; payload: { filterValue: string | number; }; } | { type: EmployerDocumentsActionType.BeginLoading; } | { type: EmployerDocumentsActionType.CompleteLoading; payload: { documents: EmployerDocument[]; }; } | { type: EmployerDocumentsActionType.EndImport; } | { type: EmployerDocumentsActionType.ChangePage; payload: { pageNumber: number; }; }; //#endregion //#region ../Engine/src/Controls/MultiControls/Tabs/Store/TabInfosActions.d.ts declare enum TabInfosActionTypes { ChangeTab = "CHANGE_TAB", SetCurrentTab = "SET_CURRENT_TAB" } interface TabInfosAction { type: TabInfosActionTypes.ChangeTab | TabInfosActionTypes.SetCurrentTab; payload: { bindingPath: string; instance: string | undefined; }; } //#endregion //#region ../Engine/src/StaffServiceIntegration/Relatives/State/EmployeeRelativesAction.d.ts declare enum EmployeeRelativesActionType { CompleteLoading = "EmployeeRelativesAction.CompleteLoading", InsertAddedRelative = "EmployeeRelativesAction.InsertAddedRelative", SelectRelative = "EmployeeRelativesAction.SelectRelative" } type EmployeeRelativesAction = { type: EmployeeRelativesActionType.CompleteLoading; payload: { path: string; relatives: relativeDef[]; }; } | { type: EmployeeRelativesActionType.SelectRelative; payload: { path: string; relative: relativeDef | null; }; } | { type: EmployeeRelativesActionType.InsertAddedRelative; payload: { path: string; relative: relativeDef; }; }; //#endregion //#region ../Engine/src/Engine/Form/Store/FormActions.d.ts declare enum FormActionType { SetFormReloading = "SET_FORM_RELOADING" } interface FormAction { type: FormActionType.SetFormReloading; payload: { isFormReloading: boolean; }; } //#endregion //#region ../Engine/src/Controls/FormParts/Panel/ActionPanel/Store/ActionPanelActions.d.ts declare enum ActionPanelActionType { BeginDownloadFuf = "ActionPanel.BeginDownloadFuf", EndDownloadFuf = "ActionPanel.EndDownloadFuf", BeginDownloadInner = "ActionPanel.BeginDownloadInner", EndDownloadInner = "ActionPanel.EndDownloadInner" } type ActionPanelAction = { type: ActionPanelActionType.BeginDownloadFuf; } | { type: ActionPanelActionType.EndDownloadFuf; } | { type: ActionPanelActionType.BeginDownloadInner; } | { type: ActionPanelActionType.EndDownloadInner; }; //#endregion //#region ../Engine/src/Controls/MultiControls/InstanceNumber/Store/instanceNumberActions.d.ts declare enum InstanceNumberActionType { AddInstanceNumber = "ADD_INSTANCE_NUMBER", RemoveInstanceNumber = "REMOVE_INSTANCE_NUMBER" } type InstanceNumberAction = { type: InstanceNumberActionType.AddInstanceNumber; payload: { bindingPath: BindingPath; instanceNumber: number; }; } | { type: InstanceNumberActionType.RemoveInstanceNumber; payload: { bindingPath: BindingPath; }; }; //#endregion //#region ../Engine/src/ContractorsServiceIntegration/State/ContractorsAction.d.ts declare enum ContractorsActionType { ImportViaSidePage = "ContractorsAction.ImportViaSidePage", CompleteImport = "ContractorsAction.CompleteImport" } type ContractorsAction = { type: ContractorsActionType.ImportViaSidePage; payload: { deferredResult: Deferred; options: ImportContractorsWidgetOptions; }; } | { type: ContractorsActionType.CompleteImport; }; //#endregion //#region ../Engine/src/PersonsServiceIntegration/State/PersonsAction.d.ts declare enum PersonsActionType { ImportViaSidePage = "PersonsAction.ImportViaSidePage", CompleteImport = "PersonsAction.CompleteImport" } type PersonsAction = { type: PersonsActionType.ImportViaSidePage; payload: { deferredResult: Deferred; options: ImportPersonsWidgetOptions; }; } | { type: PersonsActionType.CompleteImport; }; //#endregion //#region ../Engine/src/Controls/Internals/ControlsReexport/CustomControls/ReactUIUtilituTypes.d.ts type Nullable = T | null | undefined; //#endregion //#region ../Engine/src/Engine/FormSettingsActions.d.ts declare enum FormSettingsActionType { SetPortalUserId = "FormSettings.SetPortalUserId" } interface FormSettingsAction { type: FormSettingsActionType.SetPortalUserId; payload: { value: Nullable; }; } //#endregion //#region ../Engine/src/Engine/Core/Store/FullFormAction.d.ts type FullFormAction = TooltipsResolveAction | AttachmentAction | RequisitesAction | FeatureFlagsAction | CrossFitTableAction | TabInfosAction | UnitAction | ModelAction | ErrorLogAction | HiddenPanelAction | INNAction | ActionPanelAction | FormSaveStatusAction | FormAction | CustomErrorLogTooltipAction | ImportEmployeesAction | ContractorsAction | PersonsAction | EmployerDocumentsAction | EmployeeRelativesAction | FormModalStateAction | ViewModesAction | FormSettingsAction | InstanceNumberAction; //#endregion //#region ../Engine/src/Engine/Core/Store/CandyReduxTypes.d.ts interface CandyDispatch { (asyncAction: CandyThunkAction): R; (asyncAction: FullFormAction): void; } type CandyThunkAction = (dispatch: CandyDispatch, getState: () => FullFormState, extraArgument: IForm$1) => R; //#endregion //#region ../Engine/src/Controls/FormParts/Tour/TourTypes.d.ts interface Step { content: string | JSX.Element; control?: ControlReference; controlId?: string; group?: string[]; header: string; id: string; isEnabled?: boolean; offset?: number; order?: number; positions: PopupPositionsType[]; style?: "keweb"; type?: string; width?: number; } //#endregion //#region ../Engine/src/Forms/PublicForm/InitSectionLightbox.d.ts interface CallInitSectionLightboxProps { inn: string; kpp: string; orgName: string; gfv: number; options: InitSectionFormLightboxOptions; } interface InitSectionLightboxPeriodModel { year: number; periodNumber: number; type: "quarter" | "month" | "year"; } interface InitSectionFormLightboxOptions { path: string; navigationPath?: string; period?: InitSectionLightboxPeriodModel; periodPath?: string; setToPathTrue?: boolean; initPage?: SectionName; zeroReporting?: boolean; } //#endregion //#region ../Engine/src/Engine/Externals/FufManager/IFufManager.d.ts declare enum UploadFormTypes { "default" = 0, "NDS" = 1 } interface UploadFileOptions { formType: UploadFormTypes; declarationGfv: string; requestedGfv?: string; } interface IFufManager { addFile(file: CustomFile, ignoreSizeCheck?: boolean, skipUploadFile?: boolean, uploadFileOptions?: UploadFileOptions): Promise; prepareAndAddFile(file: CustomFile, gfv: string): Promise; getFufExpectedDemandFileName(): Promise; setFuf(driveUri: string): Promise; excelsToPartialFufs(gfv: string, pathToTable: string, driveUris: string[]): Promise; importXmls(driveUris: string[], combineMethod: FufCombineMethod, combinatorType: CombinatorType, isImportByFuf: boolean, args?: string[]): Promise; } //#endregion //#region ../Engine/src/Engine/Core/ModalManager/Modals/UploadXmlInTable/UploadXmlInTable.d.ts interface rsvPreferredTransfers { typeId: "formsRsvTransfers"; role: "curPeriod" | "yearPeriod" | "allPrevPeriod"; onEnd: () => void; } //#endregion //#region ../Engine/src/Engine/Core/EventManagement/ExternalEvents/ExternalEventInfo.d.ts interface ErrorEventInfo { origin: "dataProvider" | "model"; message: string; } type ExternalEventInfo = undefined | string | string[] | CallInitSectionLightboxProps | rsvPreferredTransfers | (ErrorEventInfo | { type?: Exclude; } | ControlReference); //#endregion //#region ../Engine/src/Engine/Core/EventManagement/ExternalEvents/ExternalHookFunction.d.ts type ExternalHookFunction = (data: ExternalEventInfo) => void; //#endregion //#region ../Common/Funcs.d.ts type Predicate = (value: T) => boolean; type Action = (value: T) => void; //#endregion //#region ../Engine/src/Engine/Core/EventManagement/ModelEvents/ModelEvent.d.ts type ModelEventType = "change" | "remove"; interface ModelEvent { readonly type: ModelEventType; readonly value?: ModelValue; readonly name?: ViewModelFieldName; readonly path: AbsoluteResolvedModelPath; readonly fullPath?: AbsoluteModelFieldPath; readonly oldValue?: ModelValue; processedBySum?: boolean; } type ModelEventsListener = Action; //#endregion //#region ../Engine/src/Engine/Form/IFormModelAccessor.d.ts interface IFormReadonlyModelAccessor { getViewModel(bindingPath: BindingPath | AbsoluteResolvedModelPath): ViewModel | undefined; getViewModelField(bindingPath: BindingPath | AbsoluteResolvedModelPath, fieldName: string): ModelValue | undefined; getValue(bindingPath: BindingPath | AbsoluteResolvedModelPath): string | undefined; getChildren(bindingPath: BindingPath | AbsoluteResolvedModelPath): string[] | undefined; getBatch(path: BindingPath | AbsoluteResolvedModelPath): ModelChunk; } interface IUpdateFormModelAccessor extends IFormReadonlyModelAccessor { setChildren(bindingPath: BindingPath | AbsoluteResolvedModelPath, children: string[]): void; setValue(bindingPath: BindingPath | AbsoluteResolvedModelPath, value: string | undefined): void; remove(bindingPath: AbsoluteResolvedModelPath): void; removeByPrefix(bindingPath: AbsoluteResolvedModelPath | AbsoluteResolvedModelPath[]): void; setViewModelField(bindingPath: BindingPath | AbsoluteResolvedModelPath, fieldName: ViewModelFieldName, value: unknown): void; setBatch(batch: ReadonlyModelChunk | IReadonlyModelHunk): void; setBatchByPrefix(prefix: BindingPath | AbsoluteResolvedModelPath, batch: ReadonlyModelChunk): void; addInstance(path: BindingPath): string; removeInstance(path: BindingPath, instance: string): void; removeInstances(path: BindingPath, instances: readonly string[]): void; copySubtree(sourceBindingPath: BindingPath | AbsoluteResolvedModelPath, targetBindingPath: BindingPath | AbsoluteResolvedModelPath, doNotCopyPaths?: string[]): void; } interface IModelValidationsAccessor { setError(path: BindingPath | AbsoluteResolvedModelPath, errorMessage: string): void; setWarning(bindingPath: BindingPath, param2: string): void; addError(nodePath: BindingPath | AbsoluteResolvedModelPath, message: string): void; addWarning(nodePath: string, message: string): void; clearWarnings(nodePath: string): void; clearErrors(nodePath: string): void; removeWarning(nodePath: string, message: string): void; } interface IFormModelAccessor extends IUpdateFormModelAccessor, IModelValidationsAccessor { updateModel(updateFn: (model: IUpdateFormModelAccessor) => void): void; } //#endregion //#region ../Common/CandyApiClient/Types/MassActions/MassActionParameters.d.ts interface MassActionParameters { options?: MassActionOptions; } interface MassActionOptions { [key: string]: string; } //#endregion //#region ../Engine/src/Controls/Modal/ModalForm/ModalFormsContext.d.ts type ModalId = string; type CallbackType = () => Promise; type ChannelName = "afterOpen"; interface NewInstanceInfo { multiplicityPath: AbsoluteResolvedModelPath; instanceKey: string; } interface IModalFormsRegistry { openModal(id: ModalId): void; openModalWithNewInstance(id: ModalId, path: AbsoluteResolvedModelPath | BindingPath): void; confirm(id: ModalId): Promise; cancel(id: ModalId): Promise; remove(id: ModalId, modalPath: AbsoluteResolvedModelPath): Promise; isOpened(id: ModalId): boolean; getNewInstanceInfo(modalId: ModalId): NewInstanceInfo | undefined; subscribe(channelName: ChannelName, modalId: ModalId, callback: CallbackType): VoidFunction; publish(channelName: ChannelName, modalId: ModalId): Promise; setParams(params: unknown): void; getParams(): unknown; } //#endregion //#region ../Common/CandyApiClient/Types/Print/PrintType.d.ts declare enum PrintType { NdflPerson = "NdflPerson", EfsPerson = "EfsPerson" } //#endregion //#region ../Common/CandyApiClient/Types/Staff/EmployeeInfo.d.ts interface EmployeeInfo$1 { employeeId: string; } //#endregion //#region ../Common/CandyApiClient/Types/Staff/StaffInfo.d.ts interface StaffInfo { employerId: string | undefined; employeeInfos: EmployeeInfo$1[]; documentsPeriod?: DocumentsPeriod; } interface DocumentsPeriod { begin?: string; end?: string; } //#endregion //#region ../Common/CandyApiClient/Types/Staff/ImportEmployeesOptions.d.ts interface ImportEmployeesOptions { scenario?: string; employeesMultiplicityPath?: string; documentsPeriod?: DocumentsPeriod; } //#endregion //#region ../Common/CandyApiClient/Types/InstancesDeleting/InstancesDeletingRule.d.ts interface InstancesDeletingRule { multiplicityPath: string; instanceNumbers: string[]; prefixesToDelete?: string[]; } //#endregion //#region ../Engine/src/Controls/ValueEditors/Fias/FiasInput/Utils/Convertations/Types.d.ts declare enum fiasConvertationMethods { getFlatTypeShortName = "getFlatTypeShortName", getFlatTypeLongName = "getFlatTypeLongName", getRoomTypeLongName = "getRoomTypeLongName", getRoomTypeShortName = "getRoomTypeShortName", getHouseTypeShortName = "getHouseTypeShortName", getHouseTypeLongName = "getHouseTypeLongName", getHouseTypeObjectID = "getHouseTypeObjectID", getFlatTypeObjectID = "getFlatTypeObjectID", getMunicipalDistrictTypeCode = "getMunicipalDistrictTypeCode", getMunicipalDistrictTypeCodeWithFT = "getMunicipalDistrictTypeCodeWithFT", getMunicipalDistrictTypeShortName = "getMunicipalDistrictTypeShortName", extractRegionCode = "extractRegionCode", extractOKTMO8Symbols = "extractOKTMO8Symbols", getUrbanSettlementTypeCode = "getUrbanSettlementTypeCode", getUrbanSettlementTypeShortName = "getUrbanSettlementTypeShortName", convertAbbreviationToShortName = "convertAbbreviationToShortName", convertAbbreviationToFullName = "convertAbbreviationToFullName" } //#endregion //#region ../Engine/src/Controls/ValueEditors/Fias/FiasInput/Types/FiasTypes.d.ts interface FiasAddressFields { region?: FiasRegion; municipaldistrict?: FiasMunicipalDistrict; urbansettlement?: FiasUrbanSettlement; district?: FiasDistrict; city?: FiasCity; settlement?: FiasSettlement; planningstructure?: FiasPlanningStructure; street?: FiasStreet; stead?: FiasStead; garhouse?: FiasHouseGar; house?: FiasHouseGar; carplace?: FiasApartment; apartment?: FiasApartment; room?: FiasFlatRoom; suggest?: SuggestAddress; } interface FiasCity { name: string; abbreviation: string; fiasId: Guid$1; actuality: boolean; id: string; parentFiasId: string; level: string; okato: string; oktmo: string; ifnsfl: string; ifnsul: string; code: string; } interface FiasSettlement { name: string; abbreviation: string; fiasId: string; actuality: boolean; id: string; parentFiasId: string; level: string; okato: string; oktmo: string; ifnsfl: string; ifnsul: string; postalCode: string; code: string; } interface FiasUrbanSettlement { name: string; abbreviation: string; fiasId: Guid$1; actuality: boolean; id: string; parentFiasId: string; level: string; oktmo: string; } interface SuggestAddress { actualLevel: null | string; fiasId: string; fiasLevel: null | string; label: string; level: string; matchResult: string; value: string; } interface FiasDistrict { abbreviation: string; actuality: boolean; code: string; fiasId: string; id: string; ifnsfl: string; ifnsul: string; level: string; name: string; okato: string; oktmo: string; } interface FiasStead { number: string; fiasId: string; parentFiasId: string; id: string; liveStatus: string; okato: string; oktmo: string; ifnsfl: string; ifnsul: string; cadastralNumber: string; } interface FiasMunicipalDistrict { name: string; abbreviation: string; fiasId: Guid$1; actuality: boolean; id: string; parentFiasId: string; level: string; oktmo: string; } interface FiasRegion { id: Guid$1; fiasId: Guid$1; name: string; abbreviation: string; nameWithAbbreviation: string; actuality: boolean; level: string; official: string; okato?: string; ifnsfl?: string; oktmo?: string; ifnsul?: string; postalCode?: string; code?: string; } interface FiasStreet { name: string; abbreviation: string; fiasId: string; actuality: boolean; id: string; parentFiasId: string; level: string; okato: string; oktmo: string; ifnsfl: string; ifnsul: string; postalCode: string; code: string; } interface FiasStead { number: string; fiasId: string; parentFiasId: string; id: string; liveStatus: string; okato: string; oktmo: string; ifnsfl: string; ifnsul: string; cadastralNumber: string; } interface FiasPlanningStructure { name: string; abbreviation: string; fiasId: Guid$1; actuality: boolean; id: string; parentFiasId: string; level: string; okato: string; oktmo: string; ifnsfl: string; ifnsul: string; postalCode: string; code: string; } interface FiasFlatRoom { flatNumber: string; flatType: number; fiasId: string; parentFiasId: string; id: string; liveStatus: string; flatFiasId: string; roomNumber: string; roomType: string; } interface FiasHouseGar { buildingNumber: Boolean; houseNum: string; houseType: string; addNum1?: string; addType1?: string; addNum2?: string; addType2?: string; fiasId: string; parentFiasId: string; id: string; actuality: boolean; postalCode: string; okato: string; oktmo: string; ifnsfl: string; ifnsul: string; } interface FiasApartment { flatNumber: string; flatType: number; fiasId: Guid$1; parentFiasId: string; id: string; liveStatus: "active" | "inactive"; roomNumber: string; flatFiasId: string; } interface FiasStead { number: string; fiasId: string; parentFiasId: string; id: string; liveStatus: string; okato: string; oktmo: string; ifnsfl: string; ifnsul: string; cadastralNumber: string; } interface FiasCountry { code: string; fullName: string; shortName: string; } type divisionType = "municipal" | "administrative"; type addressLevels = keyof FiasAddressFields; //#endregion //#region ../Engine/src/Controls/ValueEditors/Fias/FiasInput/FiasApi.d.ts type RegionsType = Array<{ region: FiasRegion; }>; interface FiasClientInitOptions { division?: divisionType; maxItems?: number; addressLevel?: addressLevels; } declare class FiasApi { private readonly baseUrl; private readonly maxItems; private readonly maxSteadsCount; private readonly division; private readonly addressLevel; private readonly searchSteads; constructor(formUrl: string, maxItemsCount: number, division: divisionType, addressLevel: addressLevels, searchSteads?: boolean, maxSteadsCount?: number); private setApiUrl; getApiUrl(): string; fetchSteadsByTextAndParentFiasId(text: string, parentFiasId: string): Promise; fetchSuggestAddressesByText(text: string): Promise; fetchFullAddressesByFiasId(fiasId: string): Promise; fetchFlatByParentFiasId(parentFiasId: string, number: string): Promise; fetchCountriesByName(countryName: string): Promise; fetchRegions(): Promise; convertAbbreviation(value: string, helper?: fiasConvertationMethods): string | undefined; private extractSteadNumberFromText; private createAddressUrlByStringAddress; private createSteadUrlBySteadNumber; private createRegionsRequestUrl; private createFullAddressUrlByFiasId; private createFullAddressUrlToFetchFlat; private createFullAddressUrlToFetchCountry; private extractUniqAddresses; private prepareAddressBeforeRequest; } //#endregion //#region ../Common/CandyApiClient/Types/Presentations/DraftPresentationType.d.ts declare enum DraftPresentationType { fuf = "fuf", inner = "inner", printed = "printed", requisites = "requisites", errorLog = "errorLog", clientRequisites = "clientRequisites", clientInfo = "clientInfo", hlInner = "hlInner", innerFuf = "innerFuf", outer = "outer", fufWithAttachments = "fufWithAttachments", formsClientInfo = "formsClientInfo", errorlogExpert = "errorlogexpert", explanatoryNote = "explanatorynote" } //#endregion //#region ../Common/FSPrinterClient/IFSPrinterClient.d.ts declare enum PrinterResultTypes { Unknown = 0, Pdf = 1, Excel = 2, Html = 3, Xml = 4 } declare enum RsvInfoTypes { PersonsSection321 = 2, PersonsSection321WithContracts = 3, PersonsSection322 = 4, PersonsRevise = 5 } declare enum NdflInfoTypes { PersonsReport = 0, Registry = 1, SummaryTable = 2, Revice = 3 } declare enum EfsInfoTypes { PersonsReport = 0 } interface PrinterOptions { resultType?: PrinterResultTypes; krecPdfPrint?: boolean; fuf?: { driveUri: string; }; rsvInfo?: { type: RsvInfoTypes; }; ndflInfo?: { type: NdflInfoTypes; }; efsInfo?: { type: EfsInfoTypes; }; senderApp?: "candy-front"; presentation?: DraftPresentationType.innerFuf | DraftPresentationType.fuf; clientInfo?: unknown; } interface RSVPrinterOptions { resultType?: PrinterResultTypes; type: RsvInfoTypes; presentation?: DraftPresentationType.innerFuf | DraftPresentationType.fuf; innerFuf?: { driveUri: string; }; } interface PrintByRulesOptions { rules: string[]; options: Pick; } interface PrinterRequestOptions { timeout?: number; pullingDelay?: number; factor?: number; } interface IFSPrinterClient { print(options: PrinterOptions, requestOptions?: PrinterRequestOptions): Promise; printByRules(options: PrintByRulesOptions): Promise; printRSV(rsvOptions: RSVPrinterOptions, requestOptions?: PrinterRequestOptions): Promise; } //#endregion //#region ../Engine/src/Engine/Core/PathUtils/PathUtils.d.ts declare class PathUtils { static getAbsolutePath(parentPath: string, relativePath: string): string; static getParentPath(nodePath: string): null | string; static splitToPathAndValueName(path: string): [string, string]; static getLastToken(nodePath: string): string; static getValuePath(nodePath: BindingPath, valueName: string): string; static isMask(path: string): boolean; static trimLastStarIfLastToken(path: string | ModelPath): string; static isPrefix(prefix: string, path: string): boolean; static split(path: string): string[]; static splitMask(mask: string): string[]; static join(tokens: string[]): string; static resolve(pathWithMask: BindingPath, instances?: string[]): BindingPath; static resolve(pathWithMask: ModelPath, instances?: string[]): ModelPath; static resolve(pathWithMask: AbsoluteModelPath, instances?: string[]): AbsoluteModelPath; static resolveMaskToDeepestCommonInstance(fullPath: string, mask: string): string | null; static isPicklistFieldValueName(valueName: string): boolean; static getPicklistFieldName(valueName: string): string; /** * Используется снаружи. Извлкается номер инстанса для пути. Например, если передать `pathWithMask` /A/B*, а * `path` /A/B/2, то функция вернёт `"2"` * @param pathWithMask * @param path */ static extractInstance(pathWithMask: BindingPath, path: BindingPath): string; static extractPathWithInstance(pathWithMask: BindingPath, path: BindingPath): string | undefined; } //#endregion //#region ../Engine/src/Controls/Services/Contexts/VariablesContext.d.ts interface VariablesContextData { [name: string]: string | number | Big | boolean | Error | undefined; } //#endregion //#region ../Engine/src/Helpers/StateAccessors/GetValueByPath.d.ts type PrimitiveValue = string | number | boolean; //#endregion //#region ../Engine/src/Engine/Form/IExternalPropertiesProvider.d.ts interface IExternalPropertiesProvider { getExternalProperty(path: string): PrimitiveValue | undefined | null; } //#endregion //#region ../Engine/src/Engine/Core/Picklists/IPicklist.d.ts interface IPicklist { query(filter?: DigestQueryFilter): Promise; } //#endregion //#region ../Engine/src/Engine/Core/Picklists/IPicklistsProvider.d.ts interface PicklistSourceId { gId?: string; gPaths?: string[]; } interface IPicklistsProvider { getDigestApiPicklist(gId: string): IPicklist; getInnerPathsPicklist(paths: readonly AbsoluteModelPath[]): IPicklist; getPicklist(source: PicklistSourceId): IPicklist | undefined; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/ModelPath/IterationContext.d.ts declare class IterationContext { private readonly pathToList; private readonly instance; constructor(pathToList: ModelPath, instance: string); applyTo(modelPath: IModelPath): IModelPath; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/IEvaluationContext.d.ts interface IEvaluationContext { readonly model: IModel; readonly relatedEvents: ModelEvent[]; getPicklistProvider(): IPicklistsProvider; getExternalPropertiesProvider(): IExternalPropertiesProvider; set(pathParts: AbsoluteModelPath, value: string | undefined): void; setAutoValue(targetPath: AbsoluteModelPath, evaluationResult: string | undefined): void; setError(targetPath: AbsoluteModelPath, error: string | undefined): void; setWarning(targetPath: AbsoluteModelPath, error: string | undefined): void; get(pathParts: AbsoluteModelPath): string | undefined; getAutoValue(pathParts: AbsoluteModelPath): string | undefined; getIgnoreAutoFlag(pathParts: AbsoluteModelPath): boolean; getInstances(pathParts: AbsoluteModelPath): Iterable; getInstanceCount(pathParts: AbsoluteModelPath): number; getAllResolvedValues(modelPath: AbsoluteModelPath): Iterable; getAutoFlag(targetPath: AbsoluteModelPath): boolean | undefined; resolvePath(targetPath: AbsoluteModelPath): AbsoluteModelPath; pushIterationContext(iterationContext: IterationContext): IEvaluationContext; popIterationContext(): IEvaluationContext; isIgnoredPath(targetPath: AbsoluteModelPath): boolean; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/KCExpressionRuntime.d.ts type PlainModelValue = string | undefined; interface IKCExpressionRuntime { when(condition: boolean | undefined, body: () => boolean | undefined | Promise): boolean | undefined | Promise; or(conditions: Array): boolean | undefined; and(conditions: Array): boolean | undefined; not(condition: boolean | undefined): boolean | undefined; eq(left: PlainModelValue | Date, right: PlainModelValue | Date): boolean | undefined; gt(left: PlainModelValue | Date, right: PlainModelValue | Date): boolean | undefined; lt(left: PlainModelValue | Date, right: PlainModelValue | Date): boolean | undefined; ge(left: PlainModelValue | Date, right: PlainModelValue | Date): boolean | undefined; le(left: PlainModelValue | Date, right: PlainModelValue | Date): boolean | undefined; const(value: PlainModelValue): PlainModelValue; argument(modelPath: string | AbsoluteModelPath): PlainModelValue; count(modelPath: string | AbsoluteModelPath, withNullOrEmptyValues?: boolean): PlainModelValue; instanceCount(modelPath: string | AbsoluteModelPath, withNullOrEmptyValues?: boolean): PlainModelValue; exists(modelPath: string | AbsoluteModelPath): boolean; isValueEqlAutoValue(modelPath: string | AbsoluteModelPath): boolean | undefined; isSnils(value: PlainModelValue): boolean; isRegNumSfr(value: PlainModelValue): boolean; isInn(value: PlainModelValue): boolean; isOgrn(value: PlainModelValue): boolean; isValidMirCardNumber(value: PlainModelValue): boolean; isValidAccountNumber(bikValue: PlainModelValue, accountValue: PlainModelValue): boolean; length(value: PlainModelValue): PlainModelValue; regexMatch(value: PlainModelValue, pattern: string): boolean; regexReplace(value: PlainModelValue, pattern: string, replacement: string, flags?: string): string; multySum(modelPath: string | AbsoluteModelPath): PlainModelValue; groupSum(targetKeys: PlainModelValue | undefined, sourceKeyPath: string, sourceValuePath: string): PlainModelValue; groupCount(targetKeys: PlainModelValue | undefined, sourceKeyPath: string): PlainModelValue; multiply(values: PlainModelValue[]): PlainModelValue; division(values: PlainModelValue[]): PlainModelValue; sum(values: PlainModelValue[]): PlainModelValue; minus(value: PlainModelValue): PlainModelValue; abs(value: PlainModelValue): PlainModelValue; xabs(value: PlainModelValue): PlainModelValue; choose(condition: boolean | undefined, thenBlock: () => PlainModelValue, elseBlock: () => PlainModelValue): PlainModelValue; substring(modelPath: PlainModelValue, start: number, length: number): PlainModelValue; concat(values: PlainModelValue[]): PlainModelValue; dateNow(): Date; getDaysInMonth(value: PlainModelValue): PlainModelValue; getDay(value: PlainModelValue): PlainModelValue; getMonth(value: PlainModelValue): PlainModelValue; getYear(value: PlainModelValue): PlainModelValue; isDate(value: PlainModelValue): boolean | undefined; differenceInMonths(values: PlainModelValue[]): PlainModelValue; differenceInDays(values: PlainModelValue[]): PlainModelValue; addDays(value: PlainModelValue, amount: number | PlainModelValue): Date | undefined; addMonths(value: PlainModelValue, amount: number | PlainModelValue): Date | undefined; addYears(value: PlainModelValue, amount: number | PlainModelValue): Date | undefined; dateToString(value: Date | undefined, format: string): PlainModelValue; dateTime(value: PlainModelValue): Date | undefined; oneOf(value: PlainModelValue, items: PlainModelValue[]): boolean; join(values: PlainModelValue[]): string; getProperty(name: string): string | undefined | null; getPicklistValues(gid: string, filterColumns: string[], filterValues: PlainModelValue[], resultColumnName: string): Promise; round(value: PlainModelValue, fractional?: number | PlainModelValue): PlainModelValue; floor(value: PlainModelValue): PlainModelValue; numerator(value: PlainModelValue): PlainModelValue; denominator(value: PlainModelValue): PlainModelValue; uuid(): string; } //#endregion //#region ../Engine/src/Engine/Form/CustomizationContexts/FetchFunctionContext/FetchFunctionCallContext.d.ts interface IFetchFunctionModelAccessor { getCached(path: string, name: "children"): undefined | string[]; getCached(path: string, name: "value"): undefined | string; } interface IFetchFunctionCallContext { model: IFetchFunctionModelAccessor; settings: FormSettings; requisites: RequisitesInfo; pathUtils: typeof PathUtils; __INTERNAL__getDefaultAutoFlag: (nodePath: string) => void; __INTERNAL__getSectionFunction: (sectionName: string, nodePath: string) => string[]; expressionRuntime: IKCExpressionRuntime; ap: typeof createAbsoluteFromTokens; each: typeof PathTokens.each; current: typeof PathTokens.current; } //#endregion //#region ../Engine/src/Engine/Form/CustomizationContexts/FetchFunctionContext/IFetchFunctionCallContextProvider.d.ts interface IFetchFunctionCallContextProvider { getFetchFunctionCallContext(model: IModel | undefined): IFetchFunctionCallContext; } //#endregion //#region ../Generator/src/generators/validationGenerator/Nodes/TypeNode.d.ts type TypeBase = "string" | "pattern" | "integer" | "decimal" | "boolean" | "date" | "gYear" | "gMonth" | "valueEqlAutoValue"; //#endregion //#region ../Common/RngSchemeTypes/types.d.ts type RngSchemeTypes = TypeBase | "dateTime" | "int" | "double"; //#endregion //#region ../Generator/src/generators/DataDeclarationGenerator/DataDeclaration.d.ts interface SectionDeclaration { id: string; path: string; optional: boolean; dependsOnSection: string | undefined; } //#endregion //#region ../Common/ModelPath/Set/Set2.d.ts declare class Set2> { private readonly hashMap; constructor(source?: Iterable); add(path: TI): boolean; remove(path: TI): void; has(path: TI): boolean; isEmpty(): boolean; values(): Iterable; clear(): void; protected getItemHash(key: TI): number; protected areItemsEqual(left: TI, right: TI): boolean; } //#endregion //#region ../Common/ModelPath/Set/AbsoluteModelPathSet.d.ts declare class AbsoluteModelPathSet extends Set2 { private readonly eachCurrentCollision; constructor(eachCurrentCollision?: EachCurrentCollision); static unique(paths: Iterable>): Iterable>; protected areItemsEqual(left: AbsoluteModelPath, right: AbsoluteModelPath): boolean; protected getItemHash(key: AbsoluteModelPath): number; static from(source: Iterable): AbsoluteModelPathSet; } //#endregion //#region ../Engine/src/Engine/Core/DataDeclaration/DataDeclaration.d.ts type FetchFunction = (this: IFetchFunctionCallContext, nodePath: BindingPath) => undefined | string | string[]; type NodeFieldValueSources = NodeFieldValueSource[]; type ConstValueSource = string | string[] | boolean; interface TakeFromModelValueSource { model: true | string; } interface FetchFunctionValueSource { fn: FetchFunction; fnName?: string; fnPropName?: string; } type NodeFieldValueSource = ConstValueSource | TakeFromModelValueSource | FetchFunctionValueSource; interface NodeDataDeclaration { autoFlag?: NodeFieldValueSources; optionalSections?: SectionDeclaration[]; allSingleSections?: SectionDeclaration[]; children?: NodeFieldValueSources; optional?: NodeFieldValueSources; disabled?: NodeFieldValueSources; section?: NodeFieldValueSources; value?: NodeFieldValueSources; fnsConvertFileExtentions?: NodeFieldValueSources; errorAndWarningCountRequired?: [boolean]; hasDisableValueAutoInitFlag?: boolean; type?: RngSchemeTypes; useServerFilters?: boolean; } interface DataDeclaration { [path: string]: NodeDataDeclaration; } //#endregion //#region ../Engine/src/Engine/Core/DataDeclaration/DataDeclarationHelper.d.ts declare class DataDeclarationHelper { private readonly fetchFunctionCallContextProvider; private dataDeclaration; private optionalSections; private allSingleSections; private dataDeclarationMasks; private allPaths; constructor(fetchFunctionCallContextProvider: IFetchFunctionCallContextProvider, dataDeclaration: DataDeclaration, formRoot: string); reloadDataDeclaration(formRoot: string, dataDeclaration: DataDeclaration): void; getAllPaths(): readonly AbsoluteModelPath[]; hasMask(nodePath: BindingPath): boolean; getMask(nodePath: AbsoluteModelPath | BindingPath): undefined | BindingPath; isNodeHasChildrenEntry(nodePath: BindingPath | AbsoluteModelPath): boolean; isNodeHasAutoFlagEntry(nodePath: BindingPath | AbsoluteResolvedModelPath): boolean; getType(nodePath: BindingPath | AbsoluteResolvedModelPath): RngSchemeTypes | undefined; isErrorsAndWarningsCountRequired(nodePath: BindingPath | AbsoluteModelPath): boolean; isDisableValueAutoInit(nodePath: BindingPath | AbsoluteModelPath): boolean | undefined; getEntry(nodePath: AbsoluteModelPath | BindingPath): NodeDataDeclaration; getSections(nodePath: BindingPath | AbsoluteModelPath): SectionName[]; getSectionsStrict(nodePath: BindingPath | AbsoluteModelPath): undefined | SectionName[]; getTargetFormat(path: BindingPath | AbsoluteResolvedModelPath, fileName: string): AttachFormat | undefined; isFnsConvertFile(path: BindingPath | AbsoluteResolvedModelPath, fileName?: string): boolean; getOptionalSections(): readonly SectionDeclaration[]; getAllSingleSections(): readonly SectionDeclaration[]; buildSectionToMasksMap(): Map; getMasksByPrefix(nodePathPrefix: AbsoluteModelPath): Iterable; } //#endregion //#region ../Engine/src/Engine/Core/EventManagement/ExternalEvents/ExternalEvent.d.ts type ExternalEventPath = readonly string[]; type ExternalEvent = Opaque<[ExternalEventPath, ExternalEventInfo], "ExternalEvent">; //#endregion //#region ../Engine/src/Engine/Core/EventManagement/ExternalEvents/ExternalEventManager.d.ts interface IExternalEventListener { offExternalEvent(pathArr: ExternalEventPath, x2: ExternalHookFunction): void; onExternalEvent(pathArr: ExternalEventPath, x2: ExternalHookFunction): void; onceExternalEvent(pathArr: ExternalEventPath, x2: ExternalHookFunction): ExternalHookFunction; } interface IExternalEventEmitter { triggerExternalEvent(event: ExternalEvent): void; triggerExternalEvents(events: ExternalEvent[]): void; } interface IExternalEventManager extends IExternalEventListener, IExternalEventEmitter { hasExternalEventSubscriber(event: ExternalEventPath): boolean; } //#endregion //#region ../Engine/src/Engine/Core/ModelStoring/Sections.d.ts declare class Sections { private readonly section2masks; private readonly dataDeclarationHelper; private readonly externalEventManager; private readonly allOptionalSections; private readonly visibleOptionalSections; private readonly allSingleSections; constructor(dataDeclarationHelper: DataDeclarationHelper, externalEventManager: IExternalEventManager); private isPrefixPath; markSectionsAsIgnoredByPrefix(prefixes: Iterable): void; private markSectionAsIgnoredForced; private getSingleSectionByNameOrDependencySection; markSectionAsIgnored(sectionName: SectionName): void; removeSectionFromIgnore(sectionName: SectionName): void; markAllAsIgnored(): void; isSectionIgnored(sectionName: SectionName): boolean; isIgnoredPathByMasks(path: BindingPath | AbsoluteModelPath): boolean; resolveOptionalSections(serverSideModel: ReadonlyModelChunk | IReadonlyModelHunk): void; private hasChildrenField; paths(model: IFormReadonlyModelAccessor, section: SectionName): Iterable; masks(section: SectionName): Iterable; getSectionPathsForCalculations(model: IFormReadonlyModelAccessor, section: SectionName): Iterable; getSectionPrefix(section: SectionName): AbsoluteResolvedModelPath | undefined; } //#endregion //#region ../Engine/src/Engine/Core/Store/CandyStore.d.ts interface FormStore extends Store { dispatch: CandyDispatch; getState(): FullFormState; } //#endregion //#region ../Engine/src/Engine/Core/ModelStoring/Model.d.ts interface IModel extends IUpdateFormModelAccessor { setChildrenWithoutNormalization(path: BindingPath | AbsoluteResolvedModelPath, instances: string[]): void; flushIntoStore(store: FormStore): void; beginGetEvents(): IEventCollectionContext; removeByPrefix(nodePathPrefix: AbsoluteResolvedModelPath): void; } interface IEventCollectionContext { releaseAndGetEvent(): ModelEvent[]; } //#endregion //#region ../Engine/src/Engine/Form/CustomizationContexts/CalculatorContext/CalculationFunctionCallContext.d.ts interface ICalculationFunctionModelAccessor { /** * Используется только в одном месте в 1900110 */ get(path: string, name: "children"): string[] | undefined; } interface ICalculationFunctionValidator { validate(nodePath: string): void; validateAll(nodePaths: string[]): void; } interface ICalculationFunctionCallContext { model: ICalculationFunctionModelAccessor; validator: ICalculationFunctionValidator; pathUtils: typeof PathUtils; settings: FormSettings; requisites: RequisitesInfo; } //#endregion //#region ../Engine/src/Engine/Core/ErrorManager/ErrorManager.d.ts interface IErrorManager { addErrorCached(model: IModel, nodePath: BindingPath | AbsoluteResolvedModelPath, message: string): void; addWarningCached(model: IModel, nodePath: BindingPath | AbsoluteResolvedModelPath, message: string): void; clearErrorsCached(model: IModel, nodePath: BindingPath | AbsoluteResolvedModelPath): void; clearWarningsCached(model: IModel, nodePath: BindingPath | AbsoluteResolvedModelPath): void; clearCached(model: IModel, path: BindingPath | AbsoluteResolvedModelPath): void; removeWarning(model: IModel, nodePath: BindingPath | AbsoluteResolvedModelPath, message: string): void; } //#endregion //#region ../Engine/src/Engine/Core/AutoCalculations/OperandsGetter.d.ts interface ValuesResult { paths: string[]; values: string[]; } type ArgMappingType = "sum" | "count"; type OperandGettingResult = number | "" | Big$1 | ValuesResult; interface IOperandsGetter { get(relativeOperandNodePath: string, valueName?: string, type?: ArgMappingType): OperandGettingResult; } //#endregion //#region ../Engine/src/Engine/Core/AutoCalculations/CalculationResources.d.ts interface CalculationAction$1 { base: string; fn: string; res?: string; } type CalculationActions = CalculationAction$1[]; interface CalculationHooks { [path: string]: undefined | CalculationActions; } interface CalculationFunctions { [fnName: string]: CalculationFunction$1; } type CalculationFunction$1 = (this: ICalculationFunctionCallContext, operandsGetter: IOperandsGetter) => CalculationFunctionExecutionResult; type CalculationFunctionExecutionResult = CalculationResult[]; type CalculationResult = [string, string, ModelValue]; //#endregion //#region ../Common/CandyApiClient/Types/ChangeSet/ServerChangeSet.d.ts interface ServerChangeSet { added: string[]; changed: { [path: string]: string | boolean | number | string[]; }; oldValues?: { [path: string]: string | boolean | number | string[]; }; removed: string[]; } //#endregion //#region ../Engine/src/Engine/Core/ChangeSet/ChangeSet.d.ts declare class ChangeSet { private readonly changeSet; private readonly includeOldValues; constructor(includeOldValues: boolean); appendEventInfo(eventArgs: ModelEvent): void; canBeMerged(event: ModelEvent): boolean; isEmpty(): boolean; toServerChangeSet(): ServerChangeSet; prependWithChangeSet(source: ChangeSet): void; } //#endregion //#region ../Engine/src/Engine/Core/ChangeSet/IChangeSetManager.d.ts type ChangesCallback = (originalChangeSet: ServerChangeSet, queuedChangeSets: Iterable, paths: AbsoluteModelFieldPath[]) => Promise; type InnerChangingAction = () => Promise; interface IChangeSetManager { applyEvents(events: readonly ModelEvent[]): void; onServerChangesReceived(callback: ChangesCallback): () => void; send(options?: SendChangeSetOptions): Promise; scheduleInnerChangeAction(action: InnerChangingAction): Promise; sendSync(): void; startAutosend(sendInterval?: number): void; stopAutosend(): void; redefine(): void; isRedefined(): boolean; dropRedefined(): void; mergeRedefined(): void; __testOnly__getChangeSetToSend(): ChangeSet; setCurrentDataVersion(version: number): void; } //#endregion //#region ../Engine/src/Engine/Core/ChangeSet/ChangeSetManager.d.ts interface SendChangeSetOptions { force?: boolean; operationName?: string; } //#endregion //#region ../Common/CandyApiClient/Types/GetInner/ServerInnerResponse.d.ts interface InnerFields { children?: string[]; error?: string[]; warning?: string[]; description?: string; id?: string; disabled?: boolean; visible?: boolean; disabledSending?: boolean; value?: string | undefined; autoValue?: string | undefined; autoFlag?: boolean | string; resourcesHash?: string; errorsCount?: number; warningsCount?: number; code?: string; picklist?: PicklistDataItem; } interface ServerInnerResponse { [path: string]: InnerFields; } interface ServerJsonResponse { [path: string]: ServerJsonResponseItem; } interface ServerJsonResponseItem { ".": InnerFields; [value: string]: ServerJsonResponseItem | InnerFields; } //#endregion //#region ../Common/CandyApiClient/Types/GetInner/ServerRawResponse.d.ts type PathWithInnerFieldName = string; interface StringInnerViewModel { [path: PathWithInnerFieldName]: string; } interface ServerRawResponseRootItem { "@": StringInnerViewModel; } type PathWithMultiplicityInstanceNumber = string; interface ServerRawResponseItem { [path: PathWithMultiplicityInstanceNumber]: StringInnerViewModel; } type ServerRawResponse = Readonly<[ServerRawResponseRootItem, ...ServerRawResponseItem[]]>; //#endregion //#region ../Engine/src/Engine/Core/LazyLoading/LazyLoadingDeclaration.d.ts type LazyLoadMode = "deferred" | "initial" | "request" | "serverOnly" | "initialForced"; interface LazyLoadingNodeDeclaration { lazyLoadMode: LazyLoadMode; thresholdValue?: number; } interface LazyLoadingDeclaration { [bindingPath: string]: LazyLoadingNodeDeclaration; } //#endregion //#region ../Engine/src/Engine/Core/LazyLoading/LazyLoadingManager.d.ts declare enum LazyLoadingInstanceState { OnlyInitialData = 0, OnlyRequiredData = 1, FullyLoaded = 2, Pending = 3 } interface LazyLoadRule { modelPath: AbsoluteModelFieldPath; skip: boolean; } type InstancesExtractedFromPath = string[]; type LazyLoadedPathResolveResult = InstancesExtractedFromPath[]; interface ILazyLoadingManager { requestInstancesLoad(multiplicityPath: AbsoluteModelPath, ...instances: string[]): Promise; requestFullInstanceLoad(multiplicityPath: AbsoluteModelPath, ...instances: string[]): Promise; requestFullInstanceLoadForCustomPath(multiplicityPath: AbsoluteModelPath): Promise; getInstanceLazyLoadingState(multiplicityPath: AbsoluteModelPath, instance: string): LazyLoadingInstanceState; getLazyLoadingStateByPath(path: AbsoluteModelPath): LazyLoadingInstanceState; resolvePathByLoadedInstances(path: AbsoluteModelPath | AbsoluteModelFieldPath): LazyLoadedPathResolveResult; resolvePathByInitialRules(sourcePath: AbsoluteModelPath | AbsoluteModelFieldPath): LazyLoadedPathResolveResult; getServerOnlyRules(): Set; getCurrentInitialLazyLoadRules(): Iterable; hasLazyLoadRules(): boolean; isLazyLoadingEnabled(): boolean; setLazyLoadingEnabledMode(enabled: boolean): void; clearState(): Promise; waitForAllPendingRequests(): Promise; } //#endregion //#region ../Engine/src/Engine/Core/PathUtils/NavigationPathMapper.d.ts interface IPathMapper { mapPath(outerPath: string): string; } declare class NavigationPathMapper implements IPathMapper { private readonly dataDeclarationHelper; private readonly modelAccessor; private readonly lazyLoadingManager; private readonly candyApiDraftClient; constructor(modelAccessor: IFormReadonlyModelAccessor, dataDeclarationHelper: DataDeclarationHelper, lazyLoadingManager: ILazyLoadingManager, candyApiDraftClient: ICandyApiDraftClient); isCandyPath(path: BindingPath | AbsoluteModelPath): boolean; mapPath(outerPath: string): string; mapPathWithLazyLoading(outerPath: string): Promise; private splitToPathTokens; private getTextsBetweenBrackets; private removeLastInnerTextToken; private isInstanceIndex; private parseInstanceIndex; private extractFilters; private isPathFilterExpression; private createPathFilter; private simplePathMap; private filter; private elementAt; private findIndexMatchTo; } //#endregion //#region ../Engine/src/Engine/Form/CustomizationContexts/ValidatorContext/ICustomValidationFunctionCallContext.d.ts interface ICustomValidationModelAccessor { form: Omit; pathUtils: typeof PathUtils; getCached(path: string, name: "children"): undefined | string[]; getCached(path: string, name: "value"): undefined | string; getCached(path: string, name: "touched"): undefined | boolean | string; } interface ICustomValidationFunctionValidationRunner { validate(nodePath: string): void; validateAll(nodePaths: string[]): void; } interface ICustomValidationModelAccessorViaPublicForm { get(pathOrArray: undefined | string): ModelValue; } interface ICustomValidationErrorManagerProxy { addError(nodePath: string, message: string): void; addWarning(nodePath: string, message: string): void; clearErrors(nodePath: string): void; clearWarnings(nodePath: string): void; removeWarning(nodePath: string, message: string): void; } interface ICustomValidationLocalizer { translate(message: string): string; } interface ICustomValidationPicklistsProvider { getByGId(gId: string, filter?: DigestQueryFilter): Promise; } interface ICustomValidationFunctionCallContext { settings: FormSettings; requisites: RequisitesInfo; pathUtils: typeof PathUtils; calculationFunctions: { generateFirstErrorPart?: (length: number) => string; }; model: ICustomValidationModelAccessor; validator: ICustomValidationFunctionValidationRunner; publicForm: ICustomValidationModelAccessorViaPublicForm; errorManager: ICustomValidationErrorManagerProxy; localization: ICustomValidationLocalizer; picklistsProvider: ICustomValidationPicklistsProvider; } //#endregion //#region ../Engine/src/Engine/Form/CustomizationContexts/ValidatorContext/ICustomValidationFunctionCallContextProvider.d.ts interface ICustomValidationFunctionCallContextProvider { getCustomValidationFunctionCallContext(model: IModel): ICustomValidationFunctionCallContext; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/CalculationFunctionDependency.d.ts declare class CalculationFunctionDependency { private readonly targetPath; private readonly dependencyPath; constructor(targetPath: AbsoluteModelPath, dependencyPath: AbsoluteModelPath); isMatchToPath(modelPath: ModelPath): boolean; getDependencyPath(): AbsoluteModelPath; getTargetByChangedPath(changedPath: ModelPath): undefined | ModelPath; getTargetByChangedChildrenPath(changedPath: ModelPath): undefined | ModelPath; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/CalculationTarget.d.ts declare enum CalculationTargetAttribute { Value = 0, Validation = 1 } declare class CalculationTarget implements IEquatable { readonly modelPath: AbsoluteModelPath; readonly targetAttribute: CalculationTargetAttribute; constructor(modelPath: AbsoluteModelPath, targetAttribute: CalculationTargetAttribute); isEquals(target: CalculationTarget): boolean; toString(): string; getHash(): number; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/IExecutable.d.ts interface IExecutable { execute(context: IEvaluationContext): void | Promise; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/ExecutionPlan/ExecutionPlanStep.d.ts type CalculationAction = (context: IEvaluationContext) => void | Promise; type CalculationActionDecorator = (action: CalculationAction) => CalculationAction; interface IExecutionPlanStep { getStepExecutor(): CalculationActionDecorator; toDebugString(): string; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/ExecutionPlan/CalculationFunctionExecutionPlan.d.ts declare class CalculationFunctionExecutionPlan { private readonly steps; private readonly executable; constructor(executable: IExecutable); addStep(step: IExecutionPlanStep): void; execute(context: IEvaluationContext): void | Promise; toDebugString(): string; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/AddedInstancesInfo.d.ts interface AddedInstancesInfo { path: AbsoluteModelPath; instancesToIterate: string[]; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/ICalculationFunction.d.ts interface ICalculationFunction extends IExecutable { getDependencies(): readonly CalculationFunctionDependency[]; getTarget(): CalculationTarget; isDependsOn(modelPath: CalculationTarget): boolean; getPlanForTarget(targetPath: ModelPath, iterationData?: AddedInstancesInfo, sync?: boolean): CalculationFunctionExecutionPlan; getFullPlan(): CalculationFunctionExecutionPlan; pathIsOutsideDependenciesList(path: ModelPath): boolean; asDebugString(): string; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/Calculator2.d.ts interface ICalculator2 { addCalculationFunction(calculationFunction: ICalculationFunction): void; process(model: IModel, eventArg: ModelEvent, acceptFunction?: Predicate): Promise; processSync(model: IModel, eventArg: ModelEvent, acceptFunction?: Predicate): void; processEvents(model: IModel, modelChangeEventInfos: ModelEvent[]): Promise; calculateAll(model: IModel, acceptTarget: Predicate, acceptFunction?: Predicate): Promise; calculateFunctions(model: IModel, acceptFunction: Predicate): Promise; recalculateTargets(model: IModel, paths: readonly BindingPath[]): Promise; revalidateTargets(model: IModel, paths: AbsoluteModelPath[]): Promise; getArgumentsPaths(calcPath: AbsoluteModelPath): AbsoluteModelPath[]; ensurePrepared(): void; getFunctionsByTarget(path: AbsoluteModelPath): ICalculationFunction[]; clearFunctions(): void; } //#endregion //#region ../Engine/src/Engine/Core/Localization/ILocalizer.d.ts interface ILocalizer { readonly translate: (message: string) => string; } type LocalizedString = string | ((localizer: ILocalizer) => string); //#endregion //#region ../Engine/src/Engine/Core/Localization/Localization.d.ts interface Dictionary { [id: string]: string; } interface LocalizationDictionary { [lang: string]: Dictionary; } declare class Localization implements ILocalizer { private readonly dictionary; private readonly defaultDictionary; constructor(lang: undefined | string, localizationDictionary?: LocalizationDictionary); translate: (message: string) => string; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/AutoCalculations/CalculationFunctionBase.d.ts declare abstract class CalculationFunctionBase implements ICalculationFunction { protected readonly targetPath: AbsoluteModelPath; protected pathIsOutsideDependenciesListCache: Map2; protected hasDependencyOutsideTargetMultiplicityCache: boolean | undefined; protected constructor(targetPath: AbsoluteModelPath); abstract asDebugString(): string; getFullPlan(): CalculationFunctionExecutionPlan; getPlanForTarget(targetPath2: ModelPath, iterationData?: AddedInstancesInfo, sync?: boolean): CalculationFunctionExecutionPlan; pathIsOutsideDependenciesList(path: ModelPath): boolean; abstract execute(context: IEvaluationContext): void | Promise; abstract getDependencies(): readonly CalculationFunctionDependency[]; abstract getTarget(): CalculationTarget; abstract isDependsOn(modelPath: CalculationTarget): boolean; } //#endregion //#region ../Engine/src/Engine/Core/Validator/ValueValidators/Bases/IValueValidator.d.ts type CheckType = "error" | "warning"; interface IValidationContext { localizer: ILocalizer; store: FormStore; model: IModel; picklistsProvider: IPicklistsProvider; errorManager: IErrorManager; customValidationFunctionCallContextProvider: ICustomValidationFunctionCallContextProvider; path: BindingPath; evaluationContext: IEvaluationContext; } interface IValueValidator { validate(context: IValidationContext, nodeViewModel: ViewModel): ValidationResult | Promise; asDebugString(): string; } type ValidationResult = { valid: true; forceValid?: true; additionalEvents?: readonly ModelEvent[]; } | { valid: false; message: undefined | string; type: CheckType; additionalEvents?: readonly ModelEvent[]; }; //#endregion //#region ../Engine/src/Controls/withEvaluators.d.ts type ModelAccessor = (path: BindingPath, valueName?: string) => PrimitiveValue | string[]; type ModelCountAccessor = (path: BindingPath) => number; interface ModelDependentEvaluator { type: "ModelDependentEvaluator"; expression: (path: ModelAccessor, count: ModelCountAccessor) => T; } type EvaluableProp = T | ModelDependentEvaluator; //#endregion //#region ../Engine/src/Engine/Core/Validator/ValidatorResources.d.ts type LegacyValidationFunction = (this: ICustomValidationFunctionCallContext, nodePath: BindingPath) => void; interface ValidatorResources { [key: string]: LegacyValidationFunction | Array<[conditions: Array<[condition: (path: ModelAccessor, count: ModelCountAccessor) => boolean, conditionContext: AbsoluteModelPath, deps: AbsoluteModelPath[]]>, value: IValueValidator]>; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/Validations/LegacyValidationFunctionAdapter.d.ts declare class LegacyValidationFunctionAdapter extends CalculationFunctionBase { private readonly calculationTarget; private readonly dependencies; private readonly validatorPathMask; private readonly enableLegacyValidators; private readonly customValidationFunctionCallContextProvider; private readonly getIsValidationsDisabled; private readonly localization; private readonly store; private readonly errorManager; private readonly picklistsProvider; private readonly validator; private readonly condition; constructor(validatorPathMask: string, validator: IValueValidator | LegacyValidationFunction, localization: Localization, store: FormStore, errorManager: IErrorManager, picklistsProvider: IPicklistsProvider, customValidationFunctionCallContextProvider: ICustomValidationFunctionCallContextProvider, enableLegacyValidators: boolean, getIsValidationsDisabled: () => boolean, deps: AbsoluteModelPath[] | undefined, condition: undefined | ((evaluationContext: IEvaluationContext) => boolean)); asDebugString(): string; getDependencies(): readonly CalculationFunctionDependency[]; isDependsOn(calculationTarget: CalculationTarget): boolean; getTarget(): CalculationTarget; execute(context: IEvaluationContext): Promise; private executeValidatorOnlyForEngineApprovalTests; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/Validations/ValidationFunction.d.ts type ValidationFunctionEvaluator = (evaluationContext: IEvaluationContext, targetPath: ModelPath) => ValidationFunctionResult | Promise; type ValidationFunctionResult = { valid: true; } | { valid: false; message: string; severity: ValidationSeverity; }; declare enum ValidationSeverity { Error = "Error", Warning = "Warning" } declare class ValidationFunction extends CalculationFunctionBase { private readonly calculationTarget; private readonly dependencies; private readonly evaluator; private readonly source?; private readonly allDependencies; constructor(targetPath: AbsoluteModelPath, dependenciesPaths: AbsoluteModelPath[], evaluator: ValidationFunctionEvaluator, source?: string); getDependencies(): readonly CalculationFunctionDependency[]; static conditionalValidatorEvaluator(validateIfCondition: undefined | ((evaluationContext: IEvaluationContext) => boolean), evaluator: ValidationFunctionEvaluator): ValidationFunctionEvaluator; static javascriptSugarExpressionToEvaluator(form: IForm, conditionContextAndDeps: Array<[condition: (path: ModelAccessor, count: ModelCountAccessor) => boolean, conditionContext: AbsoluteModelPath]>): undefined | ((evaluationContext: IEvaluationContext) => boolean); execute(context: IEvaluationContext): Promise; isDependsOn(calculationTarget: CalculationTarget): boolean; getTarget(): CalculationTarget; asDebugString(): string; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/AggregatedValidationFunction.d.ts interface ValidationFiunctionDebugInfo { valueValidators: string[]; validationFunctions: string[]; } declare class AggregatedValidationFunction extends CalculationFunctionBase { private readonly validationFunctions; private readonly target; private dependencies?; constructor(target: CalculationTarget); asDebugString(): string; addValidationFunction(validationFunction: ValidationFunction | LegacyValidationFunctionAdapter): void; execute(context: IEvaluationContext): Promise; getDependencies(): readonly CalculationFunctionDependency[]; getTarget(): CalculationTarget; getValidationFunctionDebugInfo(): ValidationFiunctionDebugInfo; isDependsOn(modelPath: CalculationTarget): boolean; private buildDependencies; } //#endregion //#region ../Engine/src/Engine/Core/Validator/Validator.d.ts interface IValidator { disableAllValidations(): void; enableAllValidations(): void; loadValidationFunctions(validatorResources: ValidatorResources): void; getAggregatedValidationFunctionByPath(path: AbsoluteModelPath): undefined | AggregatedValidationFunction; } //#endregion //#region ../Engine/src/Engine/Externals/ActiveLog/IActiveLogHelper.d.ts interface IActiveLogHelper { navigate(navigationPath: string): Promise; navigateByBindingPaths(paths: Iterable): Promise; navigateByHighlanderPaths(paths: Iterable): Promise; } //#endregion //#region ../Engine/src/Engine/Externals/Attachments/IAttachmentsManager.d.ts interface BulkFiles { bindingPath: AbsoluteResolvedModelPath; files: CustomFile[]; gfv: string; } interface IAttachmentsManager { addFiles(bindingPath: AbsoluteModelPath, files: CustomFile[]): Promise; addFile(bindingPath: AbsoluteModelPath, file: CustomFile): Promise; removeFileByInstance(bindingPath: AbsoluteModelPath, instance: string, changeSetOptions?: SendChangeSetOptions): Promise; removeFile(pathToAttachment: AbsoluteModelPath, changeSetOptions?: SendChangeSetOptions): Promise; initTasks(): Promise; validateAttachments(): void; openAsDraft(gfv: string, path: AbsoluteResolvedModelPath): Promise; openFufAsDraft(attachInfo: AttachInfo): Promise; loadAsFile(loadedFileProps: FileProps, gfv: string, path: AbsoluteResolvedModelPath): Promise; getAttachmentIdByPath(path: string): string; addBulkFiles(bulkFiles: BulkFiles[]): Promise; updateAttachment(attachment: AttachInfo): Promise; } //#endregion //#region ../Engine/src/Controls/Internals/Metrics/MetricsProviderContext.d.ts type MetricValue = null | string | number | boolean | undefined | AbsoluteModelPath; type TrackCallback = (action: string, options?: { [key: string]: MetricValue; }) => void; //#endregion //#region ../Engine/src/Controls/Internals/Metrics/MetricsProvider.d.ts declare global { interface Window { _paq: unknown[]; } } interface MetricsPayload { [key: string]: MetricValue; /** можно распространить на все контролы */ control?: "custom"; } //#endregion //#region ../Common/CandyApiClient/Types/QueryCollecton/InnerQueryResponse.d.ts type DataFieldValue = string | undefined | null; type DataFieldRow = DataFieldValue[]; interface InnerQueryResponse { columns: string[]; data: DataFieldRow[]; totalFilteredCount?: number; } //#endregion //#region ../Common/ModelPath/RelativeModelFieldPath.d.ts declare class RelativeModelFieldPath extends BaseModelFieldPath { constructor(path: RelativeModelPath, fieldName: ViewModelFieldNameWithCustomFields); static createFromString(pathWithFieldName: string, defaultFieldName?: ViewModelFieldNameWithCustomFields): RelativeModelFieldPath; static createFromMask(pathWithFieldName: string, multiplicitySymbol: PathToken, defaultFieldName?: ViewModelFieldNameWithCustomFields): RelativeModelFieldPath; private static createFrom; } //#endregion //#region ../Engine/src/Engine/Core/Filtering/IAggregationQueryStrategy.d.ts declare enum AggregationType { Sum = 0, Count = 1, Max = 2, Min = 3 } //#endregion //#region ../Engine/src/Engine/Core/Filtering/IFilteringStrategy.d.ts type FilterResult = string[]; interface IFilteringStrategy { performFilteringAndSorting(multilinePath: string, filters: FilterExpression[], multilineSort?: MultiLineSort, abortSignal?: AbortSignal): Promise; performFilteringAndSortingItems(multilinePath: string, requestPaths: RelativeModelFieldPath[], filters: FilterExpression[], multilineSort?: MultiLineSort, abortSignal?: AbortSignal): Promise; getAggregationValue(multilinePath: string, pathToValue: RelativeModelFieldPath, aggregationType: AggregationType, abortSignal?: AbortSignal): Promise; } //#endregion //#region ../Engine/src/Engine/Core/Filtering/FilteringManager.d.ts interface ISimpleModelAccessor { getChildren(bindingPath: BindingPath | AbsoluteResolvedModelPath): readonly string[] | undefined; } declare class FilteringManager { private readonly lazyLoadingManager; private readonly sendToServerAction; private readonly serverSideFilteringStrategy; private readonly clientSideFilteringStrategy; private readonly multilineManagers; private readonly dataDeclarationHelper; private readonly modelAccessorFactory; private readonly currentRedefinedLayerIndexProvider; constructor(dataDeclarationHelper: DataDeclarationHelper, lazyLoadingManager: ILazyLoadingManager, sendToServerAction: () => Promise, clientSideFilteringStrategy: IFilteringStrategy, serverSideFilteringStrategy: IFilteringStrategy, modelAccessorFactory: () => ISimpleModelAccessor, currentRedefinedLayerIndexProvider: () => number | undefined); notifyWithChanges(changedPathFields: Set2): void; requestFilteringAllMultilines(): Promise; handleAddInstances(bindingPath: AbsoluteResolvedModelPath, instances: readonly string[], insertAfterInstance?: string, insertBeforeInstance?: string): void; handleRemoveInstances(bindingPath: AbsoluteResolvedModelPath, instances: readonly string[]): void; handleRedefinedModelMerged(): void; getMultilineManager(bindingPath: AbsoluteResolvedModelPath, filteringUniqueId: string): MultilineManager; resetAllMultilinePages(): void; private getRedefinedModelLayerIndex; private getMultilineManagersByLayer; private getMultilineManagersByCurrentLayer; } //#endregion //#region ../Engine/src/Engine/Core/Filtering/MultilineManager.d.ts type Unsubscriber = () => void; interface IMultilineManagerClient { setFilter(filter: MultiLineFilter): void; setSorting(sorting: MultiLineSort | undefined): void; setCurrentPage(currentPage: number): void; removeFilter(filterSourceId: string): void; removeAllFilters(): void; requestFiltering(): void; waitForPendingOperations(): Promise; getCurrentState(): IMultilineState; } interface IMultilineState { filters: MultiLineFilters; sorting: MultiLineSort | undefined; currentPage: number; loading: boolean; useServerFilter: boolean; instancesPerPage: number; isMultilineConnected: boolean; displayedInstances: readonly string[]; filteringResultVersion: number; } declare class MultilineManager implements IMultilineManagerClient { private readonly subscriptions; private readonly lazyLoadingManager; private readonly sendToServerAction; private readonly dataDeclarationHelper; private readonly clientSideFilteringStrategy; private readonly serverSideFilteringStrategy; private multilineState; private handleFilterChangeDebounced; private readonly modelAccessor; readonly bindingPath: AbsoluteResolvedModelPath; readonly filteringUniqueId: string; readonly queue: { enqueue: (func: (signal: AbortSignal) => Promise, isNonCancellable?: boolean, category?: string) => void; enqueueWithPromise: (func: (signal: AbortSignal) => Promise, isNonCancellable?: boolean) => Promise; abortCurrent: () => void; awaitCurrent: () => Promise; }; private variablesContext; constructor(dataDeclarationHelper: DataDeclarationHelper, lazyLoadingManager: ILazyLoadingManager, sendToServerAction: () => Promise, clientSideFilteringStrategy: IFilteringStrategy, serverSideFilteringStrategy: IFilteringStrategy, modelAccessor: ISimpleModelAccessor, bindingPath: AbsoluteResolvedModelPath, filteringUniqueId: string); subscribeMultiline(instancesPerPage: number, storeFiltersWithinSession: boolean, useShortDebounce: boolean, defaultFilterExpression: FilterExpression | undefined, onStateUpdated: (multilineState: IMultilineState) => void): Unsubscriber; subscribeClient(onStateUpdated: (multilineState: IMultilineState) => void): Unsubscriber; setFilter(filter: MultiLineFilter): void; setSorting(sorting: MultiLineSort | undefined): void; setCurrentPage(page: number): void; removeFilter(filterSourceId: string): void; removeAllFilters(): void; requestFiltering(resetToFirstPage?: boolean): void; setVariablesContext(variablesContext: VariablesContextData): void; waitForPendingOperations(): Promise; notifyWithChanges(changedPathFields: Set2): void; requestInstancesWithExtraFilter(filterExpression: FilterExpression): Promise; requestItemsWithExtraFilter(filterExpression: FilterExpression, requestPaths: RelativeModelFieldPath[]): Promise; getAggregationValue(pathToValue: RelativeModelFieldPath, aggregationType: AggregationType): Promise; getCurrentState(): IMultilineState; handleAddInstances(instances: readonly string[], insertAfterInstance?: string, insertBeforeInstance?: string): void; handleRemoveInstances(instances: readonly string[]): void; private mergeFilters; private runLoadingInstancesIfNeededWithStateUpdate; private handleFilterChange; private updateLoadingStateIfRequired; private updateSubscriptionDependencies; private getFilteringStrategy; private sendDataToServerIfRequired; private getNotLoadedInstances; private loadInstancesIfNeeded; private getPreloadedInstances; private calculateCurrentPage; private addSubscription; private updateState; private getDefaultState; private storeFiltersIfRequired; } //#endregion //#region ../Engine/src/ContractorsServiceIntegration/Types/WorkspaceTypes.d.ts declare enum WorkspaceResourceType { ContractorsRpn = "contractors.rpn" } //#endregion //#region ../Engine/src/ContractorsServiceIntegration/ContractorsApiClient.d.ts interface IContractorsApiClient { init(orgId: string, inn: string, resourceType: WorkspaceResourceType, kpp?: string): Promise; getContractorsApiClient(): Client; getDirectoryId(): string | null; getContractors(query?: GetContractorsListQuery): Promise; createContractor(body: CreateContractorRequestBody): Promise; searchContractors(body: SearchContractorsRequestBody): Promise; getContractor(contractorId: string, query?: { customAddressType?: string | null; }): Promise; deleteContractor(contractorId: string): Promise; updateContractor(contractorId: string, body: UpdateContractorRequestBody): Promise; sendFeedback(body: SendFeedbackRequestBody): Promise; } //#endregion //#region ../Engine/src/Controls/ExternalHighlighting.d.ts type HighlightingType = "bg-warning" | "border-warning"; interface HighlightingOptions { highlightingType?: HighlightingType; tooltipText?: string; isTooltipFixed?: boolean; } interface HighlightedControl extends HighlightingOptions { pathMask: T; } interface HighlightedControlWithFocus extends HighlightedControl { focused: boolean; } //#endregion //#region ../Engine/src/PersonsServiceIntegration/PersonsApiClient.d.ts interface IPersonsApiClient { init(orgId: string, inn: string, resourceType: WorkspaceResourceType, kpp?: string, parentResourceType?: string): Promise; getDirectoryId(): string | null; } //#endregion //#region ../Engine/src/Forms/PublicForm/IPublicForm.d.ts interface IPublicForm { modalFormsRegistry?: IModalFormsRegistry; fsPrinterClient?: IFSPrinterClient; on(eventName: string, listener: ExternalHookFunction): void; off(eventName: string, listener: ExternalHookFunction): void; onBeforeModelChange(path: string | string[], listener: unknown): Subscription; onModelChange(path: string | string[], listener: unknown): Subscription; save(): Promise; runCheck(): Promise; close(): Promise; getTourSteps(): Step[]; validate(): Promise; validateChildrenByPath(path: string): Promise; hasErrors(): boolean; onErrorsCountChanged(listener: ModelEventsListener): void; offErrorsCountChanged(listener: ModelEventsListener): void; getByGId(gId: string, filter?: DigestQueryFilter): Promise; waitForPendingCalculations(calculationAwaitingOption?: CalculationAwaitingOption): Promise; set(pathOrModelChunk: { [path: string]: string | undefined; }): void | Promise; set(pathOrModelChunk: string, value: ModelValue): void | Promise; set(pathOrModelChunk: string | { [path: string]: string | undefined; }, value?: ModelValue): void | Promise; addInstance(path: BindingPath): Promise; removeInstance(path: BindingPath, instance: string): Promise; removeInstances(path: BindingPath, instances: string[], serverSide?: boolean): Promise; batchUpdate(updateProc: (updateAccessor: IUpdateFormModelAccessor) => void): Promise; get(pathOrArray?: string | string[]): ModelValue; getValue(pathOrArray?: string | string[]): ModelValue; getChildren(path: BindingPath): string[]; getPicklistData(path: BindingPath): Promise; setErrorLog(errorLog: Partial): void; copySubtree(sourceBindingPath: BindingPath | AbsoluteResolvedModelPath, targetBindingPath: BindingPath | AbsoluteResolvedModelPath, doNotCopyPaths?: string[]): void; reloadInner(): Promise; showModal(options: ModalOptions): void; uuidGenerate(): string; callInitSection(options: CallInitSectionLightboxProps): void; addSection(options: InitSectionFormLightboxOptions): Promise; openEmployeeEditor(employeeId: string): void; setAutoFieldsToAutoValue(pathPrefixes: string[]): Promise; resetByPrefix(path: string): Promise; focusOnControlIfExist(path: BindingPath): boolean; highlightControlsByPaths(paths: Array>): void; focusOnHighlightedControl(path: string): Promise; unhighlightControls(): void; navigateByHighlanderPaths(paths: BindingPath[]): Promise; getNavigationPathMapper(): NavigationPathMapper; importEmployees(employees: Employee[], options?: ImportEmployeesOptions): Promise; __INTERNAL__importFromEmployeeService(options?: ImportFromEmployeeServiceOptions): Promise; __INTERNAL__getSelectFunctionForDisableEmployeeInSS(pathSpec: string): Promise<(employee: Employee) => boolean>; importEmployerDocuments(options: ImportEmployerDocumentsOptions): Promise; runMassAction(actionId: string, parameters?: MassActionParameters): Promise; customNormalize(normalizerId: string, pathPrefixes: string[]): Promise; print(printType: PrintType, body?: string[]): Promise; navigate(navigationPath: string): Promise; navigateToFirstInvalidPath(): Promise; getAdditionalEmployeeInfo(filters: GetEmployeesWithActivePeriodQuery): Promise; getEmployees(query: GetEmployeesWithActivePeriodQuery): Promise; getWorkingEventsForEmployee(filters: GetWorkingEventListRequest): Promise; removeInstancesByRules(rules: InstancesDeletingRule[]): Promise; mergeRelative(bindingPath: BindingPath, employeeId: string, query: MergeRelativeRequest): Promise; patchRelative(employeeId: string, relativeId: string, operations: JsonPatchOperation[]): Promise; matchEmployee(query: MatchEmployeeRequest): Promise; cancelSelectRelative(bindingPath: BindingPath): void; getStaffClient(): StaffClient; getContractorsClient(): IContractorsApiClient; getPersonsClient(): IPersonsApiClient; importContractorsWidgetOptions(options: ImportContractorsWidgetOptions): Promise; importFromPersonsWidget(options: ImportPersonsWidgetOptions): Promise; getTabsState(): TabInfosState; getModalUnitOpenedInstance(pageId: string): string | undefined | null; createFiasApiClient(options: FiasClientInitOptions): FiasApi; ensureInstanceFullyLoaded(bindingPath: BindingPath | AbsoluteResolvedModelPath, ...instances: string[]): Promise; createDnp(): Promise; sendMetrics(action: string, payload?: MetricsPayload): void; getSelectedInstances(multiplicityPath: BindingPath | AbsoluteResolvedModelPath, tableUniqId: string, pathToChecked: string, checkedValue?: string): Promise; getSelectedQueryCollection(multiplicityPath: BindingPath | AbsoluteResolvedModelPath, requestPaths: string[], tableUniqId: string, pathToChecked: string, checkedValue?: string): Promise; getMaxValueFromQueryCollection(multiplicityPath: BindingPath | AbsoluteResolvedModelPath, tableUniqId: string, pathToValue: string): Promise; getAttachmentPublicFormByPath(path: string): IPublicForm; getGfv(): string; clearFormWithReload(): Promise; getMultilineManager(bindingPath: AbsoluteResolvedModelPath, filteringUniqueId?: string): IMultilineManagerClient; } //#endregion //#region ../Engine/src/Helpers/StringHelpers.d.ts declare const HelperFunctionsStringHelpers: { pluralize: (count: number, words: readonly [string, string, string], localizer?: ILocalizer, hideNumber?: boolean) => string; }; //#endregion //#region ../Engine/src/Helpers/DateHelpers.d.ts interface DateShape { date: number | null | undefined; month: number | null | undefined; year: number | null | undefined; } declare function parseDateString(value: string): DateShape; declare function isValidDate({ date, month, year }: DateShape): boolean; declare const HelperFunctionsDateHelpers: { isValidDate: typeof isValidDate; parseDateString: typeof parseDateString; }; //#endregion //#region ../Engine/src/Engine/Form/CustomizationContexts/HelperFunctionContext/UIUtil/IUIUtil.d.ts interface ILongOperationProgress { setFinishValue(value: number): void; reportProgress(value: number): void; } interface IUIUtil { confirm(message: string, confirmButtonText?: null | string): Promise; executeLongOperation(title: string, executeCallback: (progress: ILongOperationProgress) => Promise): Promise; } //#endregion //#region ../Engine/src/Engine/Form/CustomizationContexts/HelperFunctionContext/IHelperFunctionsCallContext.d.ts interface IHelperFunctionsCallContext { pathUtils: typeof PathUtils; modelPathUtils: typeof ModelPath_d_exports; model: IHelperFunctionsModelAccessor; modelNormalizer: IHelperFunctionsModelNormalizer; validator: IHelperFunctionsValidator; store: IHelperFunctionsStoreAccessor; publicForm: IPublicForm; uiUtil: IUIUtil; React: typeof React; ReactDOM: typeof ReactDOM; "react-ui": unknown; typedHelpers: IHelperFunctionsTypedHelpers; } interface IHelperFunctionsTypedHelpers { dateHelpers: typeof HelperFunctionsDateHelpers; stringHelpers: typeof HelperFunctionsStringHelpers; } interface IHelperFunctionsModelAccessor { set(path: string, name: string, value: ModelValue): void; getCached(path: string): ViewModel; getCached(path: string, name: "children"): undefined | string[]; getCached(path: string, name: "errorsCount" | "warningsCount"): undefined | number; getCached(path: string, name: string): ModelValue; fill(modelChunk: ReadonlyModelValuesBatch): void; } interface IHelperFunctionsModelNormalizer { normalizeSections(sections: SectionName[]): void; } interface IHelperFunctionsValidator { validateAll(nodePaths: string[]): void; } interface IHelperFunctionsStoreAccessor { dispatch(action: unknown): void; } interface IHelperFunctionsCallContextProvider { getHelperFunctionsCallContext(): IHelperFunctionsCallContext; } //#endregion //#region ../Engine/src/Engine/Form/GeneratedPage.d.ts interface GeneratedPageProps {} type GeneratedPageComponentType = React.ComponentType; //#endregion //#region ../Engine/src/Controls/FormParts/Unit/UnitLayoutKind.d.ts type UnitLayoutKind = "simple" | "wide" | "scrollable" | "formInForm"; //#endregion //#region ../Engine/src/Controls/FormParts/Unit/Types.d.ts interface SugarPageAction { description?: string; disableAction?: boolean; hideAction?: boolean; } interface PropsPageActions { caption?: string; actions?: { [actionName: string]: SugarPageAction; }; disableButton?: boolean; hideButton?: boolean; showInsertButtons?: boolean; lastButtonName?: string; intermediateButtonName?: string; } interface ExtraPageAction { tid?: string; description: string; handler: (...args: unknown[]) => void; disabled: boolean; } type SetUnitItemExtraInfo = (info?: Array | string) => void; //#endregion //#region ../Engine/src/Controls/UnitInfo.d.ts interface UnitInfo { component: GeneratedPageComponentType; id: string; multiple: boolean; height: HtmlLengthUnit; enableHorizontalScrolling: boolean; layoutKind: UnitLayoutKind; navigationName: undefined | string; instanceCaption?: string; minHeight?: HtmlLengthUnit; evaluatorsContextPath: AbsoluteModelPath; visible?: EvaluableProp; bindingPath: AbsoluteModelPath; optional?: boolean; pageActions?: PropsPageActions; hideEnableAutoValues?: boolean; showOnDemand?: boolean; onNavigateFromErrorLog?: (context: IHelperFunctionsCallContext, unitId: UnitId, path: BindingPath) => boolean | undefined; onMount?: FormActionHandler; onUnmount?: FormActionHandler; uploadFilesInPage?: FormActionHandler; enableUploadFilesInPage: boolean; maxOccurs?: number; modalInstancePageId?: string; isUnitExistsFlag?: string; } //#endregion //#region ../Engine/src/Controls/FormParts/Unit/UnitId/UnitId.d.ts type SectionName = Opaque; interface UnitId { pageId: string; instance?: string; parentInstances?: string[]; instancesStack?: CurrentInstanceContext[]; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/AutoCalculations/CalculationFunction.d.ts type CalculationFunctionEvaluator = (evaluationContext: IEvaluationContext) => string | undefined; declare class CalculationFunction extends CalculationFunctionBase { private readonly calculationTarget; private readonly dependencies; private readonly evaluator; private readonly isDisabled; private readonly isAutoField; private readonly isOptional; private readonly isAutoValueForced; constructor(targetPath: AbsoluteModelPath, dependenciesPaths: AbsoluteModelPath[], evaluator: CalculationFunctionEvaluator, isAutoField?: boolean | undefined, isDisabled?: boolean | undefined, isOptional?: boolean | undefined, isAutoValueForced?: boolean | undefined); getDependencies(): readonly CalculationFunctionDependency[]; execute(context: IEvaluationContext): void; checkIfCalculationRequired(context: IEvaluationContext): boolean; isDependsOn(calculationTarget: CalculationTarget): boolean; getTarget(): CalculationTarget; asDebugString(): string; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/AutoCalculations/CalculationsBuilder.d.ts type ModelPathAsString = string; declare class CalculationsBuilder { private readonly calculationFunctionsBuilders; set(target: ModelPathAsString): CalculationFunctionBuilder; applyTo(calculator2: ICalculator2): void; } type TargetEvaluator = (injection: EvaluatorContext) => string | undefined; declare class CalculationFunctionBuilder { private readonly target; private readonly dependencies; private targetEvaluator?; constructor(target: ModelPathAsString); dependsOn(...dependencies: ModelPathAsString[]): CalculationFunctionBuilder; as(targetEvaluator: TargetEvaluator): CalculationFunctionBuilder; build(): CalculationFunction; private resolveModelPath; } interface EvaluatorContext { readonly get: (modelPath: ModelPathAsString) => string | undefined; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/AutoCalculations/Expressions.d.ts declare class Expressions { static add(left: undefined | string, right: undefined | string, defaultValue: undefined | string): undefined | string; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/Validations/KCCondition.d.ts type EvaluatorFunc = (kcExpression: IKCExpressionRuntime) => boolean | undefined | Promise; type MessageEvaluatorFunc = (kcExpression: IKCExpressionRuntime) => string | undefined; declare class KCCondition { static execute(context: IEvaluationContext, kcConditionEvaluator: EvaluatorFunc, message: MessageEvaluatorFunc, severity: ValidationSeverity): ValidationFunctionResult | Promise; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/Validations/DependenciesRequiredAreEmpty.d.ts declare class DependenciesRequiredAreEmpty { private static readonly checkDependenciesAreEmpty; private static readonly checkValueNotEmpty; private static getMessage; static execute(context: IEvaluationContext, path: AbsoluteModelPath, dependencies: AbsoluteModelPath[], message: LocalizedString | undefined, severity: ValidationSeverity, localization: ILocalizer): ValidationFunctionResult; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/AutoCalculations/KCCalculation.d.ts type AutoCalcEvaluatorFunc = (kcExpression: IKCExpressionRuntime) => PlainModelValue | boolean; declare class KCCalculation { static execute(context: IEvaluationContext, evaluator: AutoCalcEvaluatorFunc, defaultValue: string): PlainModelValue; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/AutoCalculations/KCSumCalculation.d.ts declare class KCSumCalculation { static execute(context: IEvaluationContext, targetPath: AbsoluteModelPath, dependencyPath: AbsoluteModelPath, countPath: AbsoluteModelPath, defaultValue: string): PlainModelValue; } //#endregion //#region ../Engine/src/Engine/Core/Calculator2/AutoCalculations/KCCountCalculation.d.ts declare class KCCountCalculation { static execute(context: IEvaluationContext, targetPath: AbsoluteModelPath, dependencyPath: AbsoluteModelPath, isDependencyAggregation: boolean, defaultValue: string): PlainModelValue; } //#endregion //#region ../Common/KCLangRuntimeUtils.d.ts type ValueSelector = (path: string) => string; type BigSourceOrUndefined = BigSource | undefined; declare class KCLangRuntimeUtils { static kcLangUtilsName: string; and(left: boolean | undefined, right: boolean | undefined): boolean | undefined; division(left: BigSourceOrUndefined, right: BigSourceOrUndefined): Big$1 | undefined; eq(left: BigSourceOrUndefined | boolean, right: BigSourceOrUndefined | boolean): boolean; ge(left: BigSourceOrUndefined, right: BigSourceOrUndefined): boolean; gt(left: BigSourceOrUndefined, right: BigSourceOrUndefined): boolean; le(left: BigSourceOrUndefined, right: BigSourceOrUndefined): boolean; lt(left: BigSourceOrUndefined, right: BigSourceOrUndefined): boolean; minus(argument: BigSourceOrUndefined): unknown; multiply(left: BigSourceOrUndefined, right: BigSourceOrUndefined): unknown; not(left?: boolean): boolean | undefined; noteq(left: BigSourceOrUndefined, right: BigSourceOrUndefined): boolean; or(left: boolean | undefined, right: boolean | undefined): boolean | undefined; round(value: BigSourceOrUndefined, fractionDigits?: number): Big$1 | undefined; floor(value: BigSourceOrUndefined): Big$1 | undefined; getYear(value: string): number | undefined; dateTime(value: string): Date | undefined; sum(left: BigSourceOrUndefined, right: BigSourceOrUndefined): Big$1 | undefined; abs(argument: BigSourceOrUndefined): Big$1 | undefined; xabs(argument: BigSourceOrUndefined): Big$1 | undefined; length(argument: string | undefined | null): number | undefined; exists(valueSelector: (path: string) => unknown, path: string): boolean | undefined; isSnils(valueSelector: ValueSelector, path: string): boolean | undefined; isRegNumSfr(valueSelector: ValueSelector, path: string): boolean | undefined; isInn(valueSelector: ValueSelector, path: string): boolean | undefined; isOgrn(valueSelector: ValueSelector, path: string): boolean | undefined; isValidAccountNumber(valueSelector: ValueSelector, bik: string, account: string): boolean | undefined; isValidMirCardNumber(valueSelector: ValueSelector, path: string): boolean | undefined; convertToDecimal(argument: BigSourceOrUndefined | string | undefined): Big$1 | undefined; convertToString(argument: boolean | BigSourceOrUndefined | undefined | null): string | undefined; regexMatch(pattern: string | undefined, value: string | undefined): boolean | undefined; regexReplace(value: string | undefined, pattern: string | undefined, replacement: string | undefined, flags?: string): string | undefined; oneof(values: Array, value: string | number | Big$1): boolean | undefined; substring(str: string | undefined, start: number | undefined, length: number | undefined): string | undefined; dateNow(): string | undefined; numerator(argument: string): Big$1 | undefined; denominator(argument: string): Big$1 | undefined; uuid(): string | undefined; } //#endregion //#region ../Engine/src/Forms/FormResources.d.ts interface AutocalculationInjectableModules { form: IForm$1; Expressions: typeof Expressions; CalculationFunction: typeof CalculationFunction; ValidationFunction: typeof ValidationFunction; PathTokens: typeof PathTokens; builder: CalculationsBuilder; KCCondition: typeof KCCondition; KCCalculation: typeof KCCalculation; KCSumCalculation: typeof KCSumCalculation; KCCountCalculation: typeof KCCountCalculation; DependenciesRequiredAreEmpty: typeof DependenciesRequiredAreEmpty; kcLangUtils: KCLangRuntimeUtils; ap: (path: PathToken[]) => AbsoluteModelPath; } type AutocalculationConfigurator = (modules: AutocalculationInjectableModules) => void; interface FormResources { requisiteList: string[]; resourcesHash: string; settings: FormSettings; hooks?: FormHooks; dataDeclaration: DataDeclaration; lazyLoadDeclaration: LazyLoadingDeclaration; calculationHooks: CalculationHooks; calculationFunctions: CalculationFunctions; validationFunctions: ValidatorResources; localizationDictionary?: LocalizationDictionary; autocalculationConfigurators: undefined | AutocalculationConfigurator[]; } interface ReloadableFormResources { requisiteList?: string[]; resourcesHash?: string; dataDeclaration?: DataDeclaration; calculationHooks?: CalculationHooks; calculationFunctions?: CalculationFunctions; validationFunctions?: ValidatorResources; autocalculationConfigurators?: AutocalculationConfigurator[]; } //#endregion //#region ../Engine/src/Engine/Api/TemplateApiClient/ITemplatesApiClient.d.ts interface LoadTemplateRequest { guid: string; draftId: string; gfv: string; } interface RestoreTemplateRequest { templateName: string; guid: string; gfv: string; } interface DeleteTemplateRequest { guid: string; gfv: string; } interface SaveTemplateRequest { templateName: string; guid?: string; draftId: string; gfv: string; } interface Template { guid: string; name: string; } type Templates = Template[]; interface ITemplatesApiClient { getTemplates(params: { gfv: string; }): Promise; loadTemplate(params: LoadTemplateRequest): Promise; renameTemplate(params: RestoreTemplateRequest): Promise; deleteTemplate(params: DeleteTemplateRequest): Promise; saveTemplate(params: SaveTemplateRequest): Promise; } //#endregion //#region ../Common/CandyApiClient/Types/Focus/FocusTypes.d.ts declare enum FocusServerErrorCode { FocusError = "FocusError", HttpError = "HttpError", NotWork = "NotWork", NotInn = "NotInn", NoInnError = "NoInnError" } interface GetByInnResponseInfo { error: undefined | string; errorCode: undefined | FocusServerErrorCode; value: undefined | string; } interface GetByInnResponse { [inn: string]: GetByInnResponseInfo; } //#endregion //#region ../Engine/src/Engine/Externals/FocusProvider/IFocusProvider.d.ts interface IFocusProvider { getOrganizationNameByInn(inn: string): Promise; } //#endregion //#region ../Engine/src/Engine/Core/ComponentHandleRegistry/IControlRegistry.d.ts interface IControlRegistry { registerComponentHandle(bindingPath: BindingPath, control: ICandyComponentHandle, exclusiveRegistration?: boolean): void; unregisterComponentHandle(bindingPath: BindingPath, control: ICandyComponentHandle): void; getComponentHandles(bindingPath: BindingPath): undefined | readonly ICandyComponentHandle[]; getBindingPaths(): Iterable; } //#endregion //#region ../Engine/src/Controls/FormParts/Navigation/IUnitNavigator.d.ts interface IUnitNavigator { scrollToUnit(unitId: UnitId): Promise; } //#endregion //#region ../Engine/src/Engine/Testing/TestLogging/ITestLogger.d.ts interface ITestLogger { log(message: string, customFields: Record): void; } //#endregion //#region ../Engine/src/Forms/CandyInjectableModules.d.ts type CandyInjectableModules = any; //#endregion //#region ../Engine/src/Forms/RawFormResources.d.ts type ValidationFunctionsFactory = (allModules: CandyInjectableModules) => ValidatorResources; interface ReloadableRawFormResources { requisiteList: string[]; dataDeclaration: DataDeclaration; calculationFunctions: (allModules: CandyInjectableModules) => { calculationHooks: CalculationHooks; calculationFunctions: CalculationFunctions; }; validationFunctions: ValidationFunctionsFactory; autocalculationConfigurators: AutocalculationConfigurator[]; } //#endregion //#region ../Engine/src/Engine/Core/Normalization/CustomNormalizationHelper.d.ts declare class CustomNormalizationHelper { private readonly form; constructor(form: IForm); isFillAutoFieldsFeatureEnabled(): boolean; fillAutoFieldsWithAutoValuesAndReload(pathPrefixes: AbsoluteModelPath[], forceReload?: boolean): Promise; } //#endregion //#region ../Engine/src/StaffServiceIntegration/FormStaffClient.d.ts interface IFormStaffClient { getStaffClient(): StaffClient; getWorkingEventsForEmployee(query: GetWorkingEventListRequest): Promise; getAdditionalEmployeeInfo(query: GetEmployeesWithActivePeriodQuery): Promise; getDocuments(query: GetDocumentsQuery, signal?: AbortSignal): Promise; createDocument(request: CreateDocumentRequest, signal?: AbortSignal): Promise; getEmployee(employeeId: string, signal?: AbortSignal): Promise; getEmployees(query: GetEmployeesWithActivePeriodQuery, signal?: AbortSignal): Promise; getRelative(employeeId: string, relativeId: string, signal?: AbortSignal): Promise; getRelatives(employeeId: string, query?: GetRelativesQuery, signal?: AbortSignal): Promise; mergeRelative(employeeId: string, query: MergeRelativeRequest, signal?: AbortSignal): Promise; patchRelative(employeeId: string, relativeId: string, operations: JsonPatchOperation[], signal?: AbortSignal): Promise; matchEmployee(query: MatchEmployeeRequest, signal?: AbortSignal): Promise; } //#endregion //#region ../Engine/src/Engine/ActionCreators/UnitActionCreators.d.ts declare enum ClearPageMethod$1 { OnlyParent = "OnlyParent", ParentAndChildren = "ParentAndChildren" } //#endregion //#region ../Common/DriveIntegration/DriveApiClientExtension.d.ts interface IDriveContentsCopyResult { Name: string; } interface IDriveApiClientExtension { copyContents(name: string, copyName: string): Promise; } //#endregion //#region ../Engine/src/Engine/Core/ErrorManager/ErrorLogApi.d.ts interface IErrorLogApi { getErrorLog(getAttachInfo: (attachmentId: string) => AttachInfo | undefined): Promise; resetStatuses(): void; } //#endregion //#region ../Common/CandyApiClient/Types/MassActions/ValueForInstancesSettingRule.d.ts interface ValueForInstancesSettingRule { path: BindingPath | AbsoluteModelPath; instances: readonly string[]; changingFields: readonly ValueChangeRule[]; } interface ValueChangeRule { fieldName: string; value: string; } //#endregion //#region ../Common/NdsPlusApiClient/INdsPlusApiClient.d.ts interface InvoicesCounter { diff: number; error: number; ok: number; type: string; wait: number; warn: number; } interface NdsSverkaResult { result?: { invoices_counters?: InvoicesCounter[]; }; error?: string; } interface NdsSverkaParams { inn: string; kpp?: string; periodYear: string; periodNumber?: string; formattedPeriodNumber: string; } interface INdsPlusApiClient { getNdsSverkaPageUrl(params: NdsSverkaParams): string; getNdsSverkaStatus(params: NdsSverkaParams): Promise; } //#endregion //#region ../Engine/src/Engine/Form/CustomizationContexts/HooksContext/IFormHookCallContext.d.ts interface IFormHookCallContext { validator: IFormHookValidator; publicForm: IPublicForm; model: IFormHookModelAccessor; settings: FormSettings; eventManager: IFormHookEventEmitter; } interface IFormHookEventEmitter { trigger(pathArr: string[], eventData?: ExternalEventInfo): void; } interface IFormHookModelAccessor { getCached(path: string): ViewModel; getCached(path: string, name: "children"): undefined | string[]; getCached(path: string, name: "errorsCount" | "warningsCount"): undefined | number; getCached(path: string, name: string): ModelValue; setCached(path: string, name: string, value: ModelValue): void; } interface IFormHookValidator { validate(nodePath: string): void; validateAll(nodePaths: string[]): void; } interface IFormHookCallContextProvider { getFormHookCallContext(): IFormHookCallContext; } //#endregion //#region ../Engine/src/Engine/Form/IForm.d.ts interface RequisitesInfo { [key: string]: { value: undefined | null | string; }; } interface FormHooks { readonly beforeInit: (form: IFormHookCallContext) => void; readonly afterInit: (form: IFormHookCallContext) => void | Promise; readonly beforeUnload: (form: IFormHookCallContext) => void; } interface ITrackActionProvider { track: TrackCallback; } interface IModelChangeEventListener { onBeforeModelChange(path: string | string[], listener: ModelChangeListener): Subscription; onModelChange(path: string | string[], listener: ModelChangeListener): Subscription; } declare enum CalculationAwaitingOption { Calculations = 0, CalculationsAndValidations = 1 } type DependencyPathsCallback = (paths: AbsoluteModelPath[]) => void; type HighlightedPathsCallback = (paths: HighlightedControlWithFocus[]) => void; interface IForm$1 extends IHelperFunctionsCallContextProvider, IFormHookCallContextProvider, IExternalEventEmitter, IFormModelAccessor, IModelChangeEventListener, ITrackActionProvider { readonly calculator2: ICalculator2; readonly changeSet: IChangeSetManager; readonly publicForm: IPublicForm; readonly activeLogHelper: IActiveLogHelper; readonly dataDeclarationHelper: DataDeclarationHelper; readonly errorManager: IErrorManager; readonly errorLogApi: IErrorLogApi; readonly focusProvider: IFocusProvider; readonly fufManager: IFufManager; readonly hooks: FormHooks; readonly navigationPathMapper: NavigationPathMapper; readonly picklistsProvider: IPicklistsProvider; readonly sections: Sections; readonly settings: FormSettings; readonly validator: IValidator; readonly localization: Localization; readonly candyApi: ICandyApiClient; readonly candyApiDraftClient: ICandyApiDraftClient; readonly staffClient: IFormStaffClient; readonly contractorsClient: IContractorsApiClient; readonly personsClient: IPersonsApiClient; readonly fsPrinterClient: IFSPrinterClient; readonly driveApiClientExtension: IDriveApiClientExtension; readonly templatesApi: ITemplatesApiClient; readonly componentHandleRegistry: IControlRegistry; readonly testLogger: ITestLogger; readonly requisiteList: string[]; readonly nidusClient: INidusClient; readonly store: FormStore; readonly lazyLoadingManager: ILazyLoadingManager; readonly customNormalizationHelper: CustomNormalizationHelper; readonly filteringManager: FilteringManager; readonly attachmentsPublicForms: { [attachmentId: string]: IPublicForm; }; readonly ndsPlusApiClient: INdsPlusApiClient; readonly track: TrackCallback; getModelChangeEventListenerHooks(): ModelChangeHooks; getBeforeModelChangeEventListenerHooks(): ModelChangeHooks; featureFlags: FeatureFlags; requisites: RequisitesInfo; ieSizeError: boolean; attachments: IAttachmentsManager; unmount: () => void; unitNavigator?: IUnitNavigator; updateFormResources?: (FormCreator: (allModules: CandyInjectableModules) => React.ComponentType, resources: ReloadableRawFormResources) => void; replaceResources(prevResources: FormResources, resources: ReloadableFormResources): Promise; triggerExternalEvent(event: ExternalEvent): void; triggerExternalEvents(events: ExternalEvent[]): void; hasExternalEventSubscriber(pathArr: ExternalEventPath): boolean; offExternalEvent(pathArr: ExternalEventPath, x2: ExternalHookFunction): void; onExternalEvent(pathArr: ExternalEventPath, x2: ExternalHookFunction): void; onceExternalEvent(pathArr: ExternalEventPath, x2: ExternalHookFunction): ExternalHookFunction; disableAllValidations(): void; enableAllValidations(): void; revalidatePaths(paths: Iterable): Promise; recalculateTargets(paths: readonly string[]): Promise; runCheckFromPublicForm(): Promise; setErrorLogForTestsOnly(errorLog: ServerErrorLog): void; renormalizePage(sectionName: SectionName, bindingPath: AbsoluteResolvedModelPath): Promise; clearSection(sectionName: SectionName, bindingPath: AbsoluteResolvedModelPath | undefined, method: ClearPageMethod$1): Promise; removeByPrefix(path: AbsoluteResolvedModelPath | AbsoluteResolvedModelPath[]): void; normalizeByPrefix(path: AbsoluteResolvedModelPath): void; resetByPrefix(path: AbsoluteResolvedModelPath): Promise; normalizeSection(sectionName: SectionName): Promise; removeSection(unitType: SectionName, bindingPath?: AbsoluteResolvedModelPath): void; loadDataIntoForm(data: IReadonlyModelHunk): Promise; performInitialFormLoad(data: IReadonlyModelHunk, settings: FormSettings): Promise; performFormLoad(data: IReadonlyModelHunk): Promise; performFormLazyLoad(data: IReadonlyModelHunk): void; reloadInner(): Promise; getChildrenPaths(path: AbsoluteModelPath): Iterable; getDependsOnPaths(path: AbsoluteModelPath): AbsoluteModelPath[]; resolveMask(pathWithMask: BindingPath): BindingPath[]; openModalUnit(targetUnit: UnitId, modalUnit: UnitId, withScrollToUnit?: boolean): void; closeModalUnit(targetUnit: UnitId): void; showCustomModal(options: ModalOptions): void; waitForPendingCalculations(calculationAwaitingOption?: CalculationAwaitingOption): Promise; onErrorsCountChanged(listener: ModelEventsListener): void; offErrorsCountChanged(listener: ModelEventsListener): void; setHoveredPath(path: AbsoluteResolvedModelPath): void; onDependencyPathsFromHoveredPathChanged(callback: DependencyPathsCallback): () => void; setExternalHighlightedPaths(paths: Array>): void; onExternalHighlightPaths(callback: HighlightedPathsCallback): () => void; focusOnHighlightedControl(path: AbsoluteModelPath | undefined): void; focusFirstInvalidControl(): Promise; focusFirstInvalidControlByPath(validationPath: string): boolean; getWorkingEventsForEmployee(query: GetWorkingEventListRequest): Promise; getAdditionalEmployeeInfo(query: GetEmployeesWithActivePeriodQuery): Promise; getEmployees(query: GetEmployeesWithActivePeriodQuery): Promise; importFromEmployeeService(options?: ImportFromEmployeeServiceOptions, initialState?: EmployeeListInitialState): Promise; importEmployerDocument(options: ImportEmployerDocumentsOptions): Promise; importEmployees(employees: Employee[], options?: ImportEmployeesOptions): Promise; mergeRelative(bindingPath: BindingPath, employeeId: string, query: MergeRelativeRequest): Promise; patchRelative(employeeId: string, relativeId: string, operations: JsonPatchOperation[]): Promise; matchEmployee(query: MatchEmployeeRequest): Promise; importContractorsWidgetOptions(options: ImportContractorsWidgetOptions): Promise; importFromPersonsWidget(options: ImportPersonsWidgetOptions): Promise; runMassAction(actionId: string, parameters?: MassActionParameters): Promise; getSectionsByPath(bindingPath: AbsoluteResolvedModelPath, parentInstances: string[]): SectionName[]; customNormalize(normalizerId: string | null, pathPrefixes: AbsoluteModelPath[], forceReload: boolean): Promise; normalizeDirtyMasksAndReloadInnerIfRequired(): Promise; setMultipleWithNormalization(rules: ValueForInstancesSettingRule[]): Promise; getAttachmentsPublicFormsById(id: string): IPublicForm; getAttachmentPath(id: string): string | undefined; getPortalUser(): Promise; } //#endregion //#region ../Engine/src/Helpers/Url.d.ts type RequestParams = Record; //#endregion //#region ../Engine/src/Forms/Types/IKeWebTemplatesApiClient.d.ts interface KeWebFormEditorTemplate { id: string; name: string; } interface IKeWebTemplatesApiClient { getTemplates(): Promise; loadTemplate(templateId: string): Promise; saveAsTemplate(name: string, templateId?: string): Promise; renameTemplate(templateId: string, newName: string): Promise; restoreTemplate(templateId: string, name: string): Promise; removeTemplate(templateId: string): Promise; } //#endregion //#region ../Engine/src/Forms/Types/AUOOptions.d.ts interface AUOOptions { abonId: string; orgId: string; userId: string; } //#endregion //#region ../Engine/src/Forms/Client/Client.d.ts interface ExtraPageActionAttachment { tid?: string; description: string; handler: (instancePath?: string) => void; disabled: boolean; } type FormContainer = string | HTMLElement; type EngineEntryPoint = () => void; interface ActionDescription { icon: AllIconNames; text?: string | (() => string); onClick: () => void; hint?: undefined | string; id: string; tid?: string; weight: number; } interface RenderFormSettings { gfv: string; engineVersion?: undefined | null | string; theme?: undefined | null | string; resourceZone?: string; renderForm: undefined | EngineEntryPoint; templatesApi?: IKeWebTemplatesApiClient; panelActions?: ActionDescription[]; /** * Используется для тестирования (на момент добавления в Диадоке) */ passBindingPathsIntoDomElements?: boolean; } type StartFormFunc = (pageContent: FormContainer, extendedSettings: RenderFormSettings) => Promise; interface CandyGlobalInjectedVar { start: (pageContent: FormContainer, options: StartFormOptions, callback?: ErrorFirstCallback) => void; keformsUrl?: string; staffServiceUrl: string; contractorsApiUrl: string; picklistUrl: string; nidusUrl: string; fsPrinterUrl: string; partialRenderingForIE8: boolean; entryPoint: { [key: string]: StartFormFunc; }; loadError?: unknown; } type Loader = (params: RequestParams) => Promise; declare global { interface Window extends Record { CF: CandyGlobalInjectedVar; } namespace NodeJS { interface Global { CF: CandyGlobalInjectedVar; } } } interface StartFormOptions extends Partial { ns: string; draftId: string; gfv?: string; resourceZone?: string; templatesApi?: IKeWebTemplatesApiClient; feedbackEnabled?: boolean; isDisabledCloseButton?: boolean; isDisabledCloseAndSaveButton?: boolean; isDisabledCleanForm?: boolean; hidePanelActions?: boolean; theme?: undefined | null | string; authentication?: "browser-credentials-include" | { authSid: string; }; fetch?: typeof fetch$1; model?: { [path: string]: unknown; }; panelActions?: ActionDescription[]; eventEmitter?: LayoutEventsStatic; employerId?: string; showNavigationSidebar?: boolean; onRemoveAttachment?: () => void; onClearAttachment?: () => void; attachmentId?: string; attachmentPageActions?: ExtraPageActionAttachment[]; setUnitItemExtraInfo?: (info?: Array) => void; attachmentUnitItemInfoPaths?: AbsoluteResolvedModelPath | AbsoluteResolvedModelPath[]; hideFormLoader?: boolean; } //#endregion //#region ../Engine/src/Controls/Internals/ThemeProvider/ThemeProvider.d.ts declare enum ThemeVariant { Default = "default", Dark = "dark", Diadoc = "diadoc", Logistics = "logistics" } //#endregion //#region ../Engine/src/Forms/Types/FormSettings.d.ts interface FormSettings extends Partial { draftId: string; ns: string; gfv: GFV; authentication?: AuthenticationMode; setModalContext?: boolean; doNotValidateFormOnStart?: boolean; disableMinitours?: boolean; resourceHash?: string; employerId?: string; navigationQueryPath?: string; navigationPath?: string; navigationAttachmentId?: string; navigationHighlanderPath?: string; attachmentId?: string; isIndividual?: boolean; isForeign?: boolean; canCheckByPopd?: boolean; isTestServer?: boolean; renderCachingForIE8?: boolean; normalizationOnServer?: boolean; debug?: boolean; printFromEditor?: boolean; noLoader?: boolean; formRoot: string; showFormContainer: boolean; hasTemplates?: boolean; embeddedLogEnabled: boolean; theme?: ThemeVariant; enableCustomizationButton?: boolean; allowsend: boolean; printInfo: PrintInfo; regions: string[]; hideFufDownloadButton?: boolean; feedbackEnabled?: boolean; isDisabledCloseButton?: boolean; isDisabledCloseAndSaveButton?: boolean; isDisabledCleanForm?: boolean; isINNEnabled?: boolean; prevGfvDraftId?: string; model?: { [path: string]: unknown; }; isDisabledTour?: boolean; shownTours?: string[]; resourceZone?: string; lang?: string; isReadOnly?: boolean; enableAutocalcsInReadOnly?: boolean; engineVersion?: string; externalInitSectionPath?: string; interdocumentTransfer?: boolean; templatesApi?: IKeWebTemplatesApiClient; panelActions?: ActionDescription[]; hidePanelActions?: boolean; showUnitBorder?: boolean; showNavigationSidebar?: boolean; ieDeprecationWarningEnabled?: boolean; formInfo?: FormInfo; externalOnClickByPathWithSingleCallback?: onClickByPathWithSingleCallback; eventEmitter?: LayoutEventsStatic; __onlyForTests__enableLegacyValidators?: boolean; keformsUrl: string; normativeUrl?: string; staffWidgetUrl?: string; contractorsWidgetUrl?: string; personsWidgetUrl?: string; staffServiceUrl: string; contractorsApiUrl: string; picklistUrl: string; nidusUrl: string; fsPrinterUrl: string; ndsPlusApiUrl?: string; portalUserId?: string | null; useHeavyErrorLog?: boolean; isFormInFormNds?: boolean; useExtendedErrorLog: boolean; useServerSideFLangNormalization?: boolean; useServerSideCalculations?: boolean; disableFlangRulesForEnableAutoFieldFeature?: boolean; hideFormLoader?: boolean; restoreToSourceFuf?: boolean; /** * Используется для тестирования (на момент добавления в Диадоке) */ passBindingPathsIntoDomElements?: boolean; onRemoveAttachment?: () => void; onClearAttachment?: () => void; attachmentPageActions?: ExtraPageAction[]; setUnitItemExtraInfo?: SetUnitItemExtraInfo; attachmentUnitItemInfoPaths?: AbsoluteResolvedModelPath[]; zeroReportingEnabled?: boolean; callInitZeroReport?: boolean; /** * сделано для фсс кастомной кнопки https://kontur.slack.com/archives/C08EAL0P2/p1686725230032659?thread_ts=1685968468.539989&cid=C08EAL0P2 Выпилить в рамках https://yt.skbkontur.ru/issue/FS-7999/Pereehat-na-generaciyu-kontenta-futera-v-SimpleForm-iz-resursov * */ sendToSignButton?: customButtonOptions; signAndSendButton?: customButtonOptions; innerHistoryEnabled?: boolean; isNeedNdsRevise?: boolean; showErrorsCountInPanel?: boolean; inventoryAttachment?: boolean; actualGfvInventory?: string; } interface onClickByPathWithSingleCallback { pathMasks: string[]; callback: (resolvedPath: string) => Promise; } //#endregion //#region ../Common/CandyApiClient/Types/Guid.d.ts type Guid = string; //#endregion //#region ../Common/CandyApiClient/Types/CreateDraft/CreateDraftResponse.d.ts interface CreateDraftResponse { ns: Guid; draftId: Guid; gfv: string; editorUrl: string; } //#endregion //#region ../Common/CandyApiClient/Types/CreateDraft/CreateDraftParams.d.ts interface CreateEmptyDraftParams { ns: string; gfv: string; abortSignal?: AbortSignal; scenario?: string; } interface CreateDraftFromDriveParams { ns: string; fufDriveUri: string; abortSignal?: AbortSignal; scenario?: string; } //#endregion //#region ../Common/CandyApiClient/Types/ExplanatoryNote/CreateExplanatoryNoteResponse.d.ts declare enum CreateExplanatoryNoteStatus { Success = "Success", Error = "Error", ExpertError = "ExpertError" } type CreateExplanatoryNoteResponse = { driveUri: string; errorMessage: null; status: CreateExplanatoryNoteStatus.Success; } | { driveUri: null; errorMessage: string; status: CreateExplanatoryNoteStatus.Error | CreateExplanatoryNoteStatus.ExpertError; }; //#endregion //#region ../Common/CandyApiClient/Types/Tasks/Tasks.d.ts declare enum TaskStatus { InProgress = "InProgress", Success = "Success", Error = "Error", Cancelled = "Cancelled" } interface TaskInfoError { diagnosticMessage: string; errorCode: "Cancelled" | "KrecFileNotSupportedError" | "UnexpectedException" | string; properties: null | { fileCheckResult: unknown; }; } interface ServerTaskInfo { id: string; error: TaskInfoError | null; progress: { done: number; total: number; }; status: TaskStatus; } interface VerifyAndFixFnsRequirementsTaskInfo { type: "VerifyAndFixFnsRequirements"; attachmentId: string; } type VerifyAndFixFnsRequirementsTask = ServerTaskInfo & VerifyAndFixFnsRequirementsTaskInfo; type ServerTask = VerifyAndFixFnsRequirementsTask; //#endregion //#region ../Common/CandyApiClient/Types/Presentations/PresentationContent.d.ts type PresentationContent = unknown; //#endregion //#region ../Common/CandyApiClient/Types/DraftActions/ConvertDraftRequest.d.ts interface ConvertDraftRequest { prevGfvDraftId: string; gfv: string; } //#endregion //#region ../Common/CandyApiClient/Types/GetInner/ServerRequisitesResponse.d.ts interface ServerRequisitesResponse { [path: string]: { value: string | undefined | null; }; } //#endregion //#region ../Common/CandyApiClient/Types/FeatureFlags/FeatureFlagsResponse.d.ts type FeatureFlagsResponse = { candyTestFeature?: string; useExtendedErrorLog?: boolean; showDraftHistoryInEditor?: boolean; } | { [data: string]: unknown; }; //#endregion //#region ../Common/CandyApiClient/Types/Staff/ImportEmployeesRequest.d.ts interface ImportEmployeesRequest extends StaffInfo { scenario?: string; employeesMultiplicityPath?: string; } //#endregion //#region ../Common/CandyApiClient/Types/Print/PrintResponse.d.ts interface PrintResponse { resultUri: string; } //#endregion //#region ../Common/CandyApiClient/Types/Attachments/GetAttachmentsResponse.d.ts interface GetAttachmentsResponse { [request: string]: { value: AttachInfo; }; } //#endregion //#region ../Common/CandyApiClient/Types/QueryCollecton/InnerQueryExpression.d.ts interface InnerQueryExpression {} //#endregion //#region ../Common/CandyApiClient/Types/QueryCollecton/SortingRule.d.ts declare class SortingRule { readonly fieldName: string; readonly direction: "Ascending" | "Descending"; constructor(fieldName: string, direction: "Ascending" | "Descending"); } //#endregion //#region ../Common/CandyApiClient/Types/QueryCollecton/SelectClause.d.ts declare class SelectClause { readonly name: string; readonly expression: InnerQueryExpression; constructor(name: string, expression: InnerQueryExpression); } //#endregion //#region ../Common/CandyApiClient/Types/QueryCollecton/InnerQueryRequest.d.ts declare class InnerQueryRequest { readonly multiplicityPath: string; readonly selects: SelectClause[]; readonly filter?: InnerQueryExpression; readonly sortingRules?: SortingRule[]; readonly groupByRules?: InnerQueryExpression[]; readonly skip?: number; readonly take?: number; constructor(multiplicityPath: string, selects: SelectClause[], filter?: InnerQueryExpression, sortingRules?: SortingRule[], groupByRules?: InnerQueryExpression[], skip?: number, take?: number); } //#endregion //#region ../Common/CandyApiClient/Types/ErrorLog/ResolveInnerPathRequest.d.ts interface ResolveInnerPathRequest { errorLogPath: string; } //#endregion //#region ../Common/CandyApiClient/Types/ErrorLog/ResolvePathResponse.d.ts interface ResolvePathResponse { innerPath: string; } //#endregion //#region ../Common/CandyApiClient/Types/HistoryEditing/InnerHistoryResponse.d.ts interface AdditionalDataResponse { UndoId?: string; } interface InnerHistoryEntry { Id: string; OperationName: string; DateUtc: Date; ChangesExpiresUtc: Date; Ip: string; Author: string; AdditionalData?: AdditionalDataResponse; AuthorFirstName?: string | null; AuthorMiddleName?: string | null; AuthorLastName?: string | null; } type InnerHistoryResponse = InnerHistoryEntry[]; interface InnerHistoryUndoResponse { changedAttachments?: string[]; } interface InnerHistoryUndoResponseWithStatus { status: HttpStatusCode; response?: InnerHistoryUndoResponse; } //#endregion //#region ../Common/CandyApiClient/Types/PollingTasks/PollingTasks.d.ts interface PollingTaskBase { id: string; status: "InProgress" | "Success" | "Error" | "Cancelled"; progress: number; errorInfo: ErrorInfo | undefined; } interface PollingTaskWithResult extends PollingTaskBase { result?: TResult; } interface ErrorInfo { httpStatusCode: number; userMessage: string | undefined; } //#endregion //#region ../Common/CandyApiClient/ICandyApiClient.d.ts interface ICandyApiClient { forDraft(draftFullId: DraftFullId): ICandyApiDraftClient; createDraft(ns: string, gfv: string): Promise; createDraft(ns: string, gfv: undefined, body: Buffer): Promise; createDraftFromDrive(params: CreateDraftFromDriveParams): Promise; createEmptyDraft(params: CreateEmptyDraftParams): Promise; getInfoByInns(draftFullId: DraftFullId, inns: readonly string[]): Promise; getAllGfvs(abortSignal?: AbortSignal): Promise; forceGetAllGfvs(): Promise; checkAlive(): Promise; getFeatureFlags(abonId?: string, orgId?: string, userId?: string): Promise; bindExternOrganization(orgId: string, resourceType: WorkspaceResourceType): Promise; getWorkspaceDirectoryId(options: { orgId?: string; resourceType: WorkspaceResourceType; inn: string; kpp?: string; parentResourceType?: string; organizatorProductName?: "poa" | "poa-staging"; }): Promise; convertToPdfAndGetMeta(driveUri: string): Promise; convertToPdf(driveUri: string): Promise; } interface ICandyApiDraftTasksClient { getAllTasks(): Promise; getTaskById(taskId: string): Promise; enqueueTask(taskId: string, taskInfo: VerifyAndFixFnsRequirementsTaskInfo): Promise; cancelTask(taskId: string): Promise; } interface ICandyApiDraftAttachmentsClient { getAttachmentById(attachmentId: string): Promise; getAllAttachments(): Promise; createOrUpdateAttachments(attachments: readonly AttachInfo[]): Promise; createDraftAttachment(gfv: string, path: string): Promise; openLoadedAttachmentAsDraft(id: string): Promise; removeAttachments(attachmentIds: readonly string[]): Promise; } interface PathLoadSpecification { pathOrPathPrefix: AbsoluteModelPath | AbsoluteModelFieldPath | "*"; skip: boolean; } type CheckScenarioType = "readonly"; interface IInnerChangeSuccessResult { dataVersion: number; changedPaths?: string[]; } type IInnerChangeResult = IInnerChangeSuccessResult | HttpStatusCode; interface DraftSettings { isReadOnly?: FormSettings["isReadOnly"]; isIndividual?: FormSettings["isIndividual"]; isForeign?: FormSettings["isForeign"]; employerId?: FormSettings["employerId"]; } type NormalizerNames = "formulas" | "formulasWithInitializers"; interface NormalizationProgressTask { id: string; status: "InProgress" | "Success" | "Error"; progress: number; } interface RequestNdsFileOptions { driveUri: string; ignoreSizeCheck?: boolean; declarationGfv: string; requestedGfv?: string; } interface ICandyApiDraftClient extends ICandyApiDraftTasksClient, ICandyApiDraftAttachmentsClient { getExplanatoryNote(): Promise; getErrorLog(): Promise; checkByPopd(): Promise; getErrorLogWithCheckScenarios(checkScenarios: CheckScenarioType[]): Promise; getExpertErrorLog(auo: Partial): Promise; getHrefToErrorLogPdf(errorLogName: string, propsName: string): string; getRequisites(requisiteList: readonly string[]): Promise; getInner(paths: undefined | readonly string[]): Promise; getPartialInner(rules: readonly PathLoadSpecification[], maxInstanceCount?: number): Promise; getPartialInnerAsJsonTree(rules: readonly PathLoadSpecification[], maxInstanceCount?: number, skipNormalization?: boolean): Promise; getRawPartialInnerAsJsonTree(rules: readonly PathLoadSpecification[], maxInstanceCount?: number, skipNormalization?: boolean): Promise; getDataVersion(): Promise; startNormalizationTask(): Promise; getNormalizationTask(): Promise; sendChangeSet(data: ServerChangeSet, currentDataVersion: number, operationName?: string): Promise; sendChangeSetSync(data: ServerChangeSet, currentDataVersion: number): IInnerChangeResult; sendChangeWithNormalizationSet(data: ServerChangeSet, currentDataVersion: number, normalizerId?: NormalizerNames, operationName?: string): Promise; startPatchWithNormalizationTask(data: ServerChangeSet, currentDataVersion: number, normalizerId?: string, operationName?: string): Promise | number>; getPatchWithNormalizationTask(): Promise>; setPresentation(type: DraftPresentationType, content: string | unknown): Promise; patchPresentation(type: DraftPresentationType, content: PresentationContent): Promise; print(type: PrintType, body?: string[]): Promise; clearDraft(): Promise; restoreToSourceFuf(): Promise; convertDraftFromPrevGfv(request: ConvertDraftRequest): Promise; getFileProperties(driveUri: string, ignoreSizeCheck?: boolean): Promise; getFileNdsProperties(params: RequestNdsFileOptions): Promise; prepareAndGetFileProperties(driveUri: string, gfv: string, ignoreSizeCheck?: boolean): Promise; uploadAndGetFileProperties(driveUri: string[], gfv: string, abortSignal?: AbortSignal): Promise; setFufByDriveUri(driveUri: string): Promise; acceptMultipleTransferType(files: ICombineByTransfers[], abortSignal?: AbortSignal): Promise; excelsToPartialFufs(gfv: string, pathToTable: string, driveUris: string[]): Promise; importXmls(driveUris: string[], combineMethod: FufCombineMethod, combinatorType: CombinatorType, isImportByFuf: boolean, args?: string[]): Promise; setDraftSettings(settings: DraftSettings): Promise; getDraftSettings(): Promise; normalizeByRules(rules: string): Promise; getHrefToConvertationLog(): string; getHrefToDownloadInnerFuf(): string; getHrefToDownloadInner(): string; getHrefToDownloadClientInfo(): string; getHrefToDownloadFormsClientInfo(): string; getHrefToInnerEditor(): string; getFufWithAttachments(): Promise; startGetFufWithAttachmentsTask(): Promise>; getFufWithAttachmentsTask(format: "Json" | "DriveUri"): Promise>; startGetFufWithScenarioTask(scenario: string): Promise>; getFufWithScenarioTask(format: "Json" | "DriveUri", scenario: string): Promise>; getPartialFuf(rules: string[]): Promise; getInnerFuf(): Promise; startGetInnerFufTask(): Promise>; getInnerFufTask(): Promise>; downloadFuf(scenario?: string): Promise; downloadInner(): Promise; makeDownloadDriveLink(uri: string, fileName?: string): void; setMultipleWithNormalization(rules: ValueForInstancesSettingRule[]): Promise; normalizeDirtyMasks(): Promise; searchInstancesByText(text: string, pathPrefix: string, pathsToSearch: string[], maxInstanceCount?: number): Promise; queryCollection(request: InnerQueryRequest, abortSignal?: AbortSignal): Promise; customNormalize(normalizerId: string | null, pathPrefixes: AbsoluteModelPath[], abortSignal?: AbortSignal): Promise; startCustomNormalizationTask(pathPrefixes: AbsoluteModelPath[], normalizerId?: string, operationName?: string): Promise>; getCustomNormalizationTask(): Promise>; importEmployees(request: ImportEmployeesRequest): Promise; runMassAction(actionId: string, parameters?: MassActionParameters): Promise; deleteInstances(deletingRules: InstancesDeletingRule[]): Promise; printExcel(pathToTable: string): Promise; startTransferTask(combineMethod: FufCombineMethod, combinatorType: CombinatorType, isImportByFuf: boolean, args?: ImportArguments): Promise>; getTransferTask(taskId: string): Promise>; resolveInnerPath(request: ResolveInnerPathRequest, abortSignal?: AbortSignal): Promise; getHistory(): Promise; undoToChange(changeGUID: string): Promise; getGFV(): Promise; getUser(): Promise; } interface GetUserResponse { Id: string | null; Ip: string | null; FirstName: string | null; MiddleName: string | null; LastName: string | null; } interface GetPartialFufResponse { ContentUri: string; Name: string; } interface BaseGetFufResponse { contentUri: string; name: string; } interface FufWithAttachmentsResponse { fuf: BaseGetFufResponse; attachments: GetAttachmentsResponse[]; } type FufWithAttachmentsTaskResult = FufWithAttachmentsResponse | { resultUri: string; }; type FufWithScenarioTaskResult = FufWithAttachmentsResponse | { resultUri: string; }; interface ConvertedPDFMetaResponse { contentUri: string; isModified: boolean; pageCount: number; lastPageHeight: number; contentSizeBytes: number; } interface ConvertedPdfResponse { contentUri: string; isModified: boolean; contentSizeBytes: number; } //#endregion //#region ../Tests/Playwright/Utils/Core/RequisitesBuilding/ClientRequisites.d.ts interface ClientRequisites { senderDescription: SenderDescription; organizationInfo: OrganizationInfo$1; recipientDescription: null | RecipientDescription; metricsInfo: null | MetricsInfo; } interface SenderDescription { inn: string; kpp: null | string; certInfo: null | string; certificateFields: CertificateFields; type: string; requisites: string; signerType: SignerType$1; } interface CertificateFields { inn: null | string; fio: null | string; regInfo: null | string; orgInfo: null | string; subjectNameIsValid: null | boolean; } interface OrganizationInfo$1 { inn: string; kpp: null | string; type: string; requisites: string; } interface RecipientDescription { ifnsCode: null | string; mriCode: null | string; ifnsFromReqsName: null | string; } interface MetricsInfo { abonId: null | ServerGuid; userId: null | ServerGuid; orgId: null | ServerGuid; } type ServerGuid = string; declare enum SignerType$1 { Chief = "Chief", Representative = "Representative" } //#endregion //#region ../Tests/Playwright/Utils/Core/RequisitesBuilding/ClientInfo.d.ts interface ClientInfo { Sender?: SenderInfo; Recipient?: RecipientInfo; CurrentAccount?: AccountInfo; } type RecipientInfo = any; interface SenderInfo { Type?: AccountType; Inn?: string; Kpp?: string; FullName?: string; Signer?: SignerInfo; } interface SignerInfo { Type: SignerType; Certificate: CertificateInfo; } interface CertificateInfo { Inn?: string; Fio?: Fio; Ogrn?: string; OgrnIp?: string; OrgName?: string; RnsFss?: string; Region?: string; } type Fio = any; declare enum AccountType { Organization = 1, Individual = 2, ForeignOrganization = 3, CreditOrganization = 4 } declare enum SignerType { Unknown = 0, Chief = 1, Representative = 2 } interface AccountInfo { Type?: AccountType; Inn?: string; FullName?: string; ShortName?: string; Ogrn?: string; Okato?: string; Oktmo?: string; Okved?: string; Okpo?: string; Chief?: EmployeeInfo; Phone?: string; AddressRegistration?: Address; FiasAddressRegistration?: Address; AddressActual?: Address; Pfr?: PfrInfo; Fss?: FssInfo; Fns?: FnsInfo; Oms?: OmsInfo; Organization?: OrganizationInfo; Individual?: IndividualInfo; } type EmployeeInfo = any; type Address = any; type PfrInfo = any; type FssInfo = any; type FnsInfo = any; type OmsInfo = any; type OrganizationInfo = any; type IndividualInfo = any; //#endregion //#region ../Tests/Playwright/Utils/CandyApi/CandyServiceTestContext.d.ts interface Outer { [key: string]: number | string | boolean; } interface Inner { [key: string]: number | string | boolean; } interface Presentations { outer?: Outer; inner?: Inner; clientRequisites?: ClientRequisites; formsClientInfo?: ClientInfo; fuf?: Buffer; } interface DraftInfo { ns: string; draftId: string; } interface CandyServiceTestContextOptions { domain: string; resourceZone?: string; } declare class CandyServiceTestContext { readonly konturApi: IKonturApi; readonly candyApi: ICandyApiClient; readonly testUserSid: string; readonly externSession?: string; constructor(konturApi: IKonturApi, candyApi: ICandyApiClient, testUserAuthInfo: AuthInfo); static initialize(options?: CandyServiceTestContextOptions): Promise; static ensureAliveApi(candyApi: ICandyApiClient): Promise; downloadFile(url: string): Promise; getInner(draftFullId: DraftFullId): Promise; createDefaultDraft(gfv: string): Promise; createDraftFromFuf(fufContent: Buffer): Promise; setPresentations(draftInfo: DraftInfo, presentations: Presentations): Promise; sendChangeSet(draftInfo: DraftInfo, changeSet: ServerChangeSet): Promise; private getCookie; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/candyApiFixture.d.ts interface CandyApiFixture$2 { candyApi: CandyServiceTestContext; } //#endregion //#region ../Common/HttpClient/HttpClient.d.ts interface IExceptionLoggerParams { fetchUrl?: string; } type ExceptionLogger = (error: unknown, params?: IExceptionLoggerParams) => void; //#endregion //#region ../Common/NidusClient/NidusClientImpl.d.ts declare class NidusClientImpl implements INidusClient { private readonly httpClient; private readonly client; constructor(fetchImpl: Fetch, baseUrl: string, authentication?: AuthenticationMode, exceptionLogger?: ExceptionLogger); batchInsert(): Promise; delete(nidusName: NidusName, key: NidusReferenceKey, objectId: NidusEntryId): Promise; insert(nidusName: NidusName, key: NidusReferenceKey, obj: NidusEntryData): Promise; private static nativeEntryToEntry; search(nidusName: NidusName, key: NidusReferenceKey, searchValue: string | null | undefined): Promise; searchMinitour(nidusName: NidusName, key: NidusReferenceKey, searchValue: string | null | undefined): Promise; update(nidusName: NidusName, key: NidusReferenceKey, objectId: NidusEntryId, obj: NidusEntryData): Promise; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/nidusClientFixture.d.ts interface NidusClientFixture { nidusClient: NidusClientImpl; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/authFixture.d.ts interface CandyApiFixture$1 { auth: void; } //#endregion //#region ../Tests/Playwright/Utils/CandyApi/CandyEditorUrlOptions.d.ts interface CandyEditorUrlOptions { embeddedLogEnabled?: boolean; lang?: string; isIndividual?: boolean; navigationPath?: string; navigationQueryPath?: string; navigationAttachmentId?: string; theme?: string; doNotValidateFormOnStart?: boolean; scenario?: string; orgId?: string; allowsend?: boolean; isReadOnly?: boolean; employerId?: string; resourceZone?: string; zeroReportingEnabled?: boolean; "sendToSignButton.visible"?: boolean; "sendToSignButton.title"?: string; "signAndSendButton.title"?: string; useHeavyErrorLog?: boolean; useExtendedErrorLog?: boolean; isINNEnabled?: boolean; printFromEditor?: boolean; feedbackEnabled?: boolean; isFormInFormNds?: boolean; interdocumentTransfer?: boolean; innerHistoryEnabled?: boolean; showErrorsCountInPanel?: boolean; } //#endregion //#region ../Tests/Playwright/Utils/Core/TestBaseClassWrapperDecorator/TestBaseClassWrapperTypes.d.ts interface Constructor { new (...args: any[]): T; } interface PageOptions { gfv?: string; withNavigationPanel?: boolean; withStaffService?: boolean; withEmbeddedLog?: boolean; useExtendedErrorLog?: boolean; initMetrics?: boolean; withAUO?: boolean; disableMinitours?: boolean; urlOptions?: CandyEditorUrlOptions; fakeRequisites?: { [key: string]: { value: string; }; }; fakeErrorLog?: { [key: string]: { value: string; }; }; } //#endregion //#region ../Tests/Playwright/Utils/ExtenedPromises/ExtendedPromise.d.ts type Func = (...args: TArgs) => TR; declare type ExtendedPromise = Promise & { __recall: () => Promise; } & (T extends unknown[] ? {} : { [P in keyof T]: T[P] extends ExtendedPromise ? ExtendedPromise : T[P] extends Func> ? Func> : T[P] extends Func ? Func> : ExtendedPromise; }); //#endregion //#region ../Tests/Playwright/Utils/BrowserWrapper/Candy/CandyWebElementHandle.d.ts interface CandyWebElementHandle { click(): Promise; hover(): Promise; focus(): Promise; type(text: string): Promise; deprecatedType(text: string): Promise; getProperty(name: string): Promise; textContent(): Promise; findByCssSelector(span: string): Promise; takeScreenshot(): Promise; pressEnter(): Promise; clear(): Promise; setAttribute(name: string, value: string): Promise; getAttribute(attrName: string): Promise; elementHandle: ElementHandle; } //#endregion //#region ../Tests/Playwright/Utils/BrowserWrapper/Candy/CandyBrowserSideObjectHandle.d.ts interface CandyBrowserSideObjectHandle { jsonValue(): Promise; asElement(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/BrowserWrapper/Candy/CandyBrowserPage.d.ts declare abstract class CandyBrowserPage { abstract readonly page: Page; pressCtrlA(): Promise; pressHome(): Promise; pressEnd(): Promise; pressManyTimes(key: string, iterations: number, timeout?: number): Promise; pressCtrlV(): Promise; pressCtrlC(): Promise; pressCtrlZ(): Promise; abstract down(key: string): Promise; abstract press(key: string): Promise; abstract up(key: string): Promise; abstract goto(url: string): Promise; abstract refresh(): Promise; abstract refreshAndSkipNavigationError(): Promise; abstract scrollTo(x: number, y: number): Promise; abstract changeZoom(zoomValue: string): Promise; abstract release(): Promise; abstract waitForDownloadEvent(): Promise; abstract expectDownloadedFile(downloadCallback: () => Promise): Promise<{ content: Buffer; filename: string; }>; abstract evaluateScript(script: string): Promise; abstract setClipBoardData(data: string): Promise; abstract setUrlOptions(opts: CandyEditorUrlOptions): Promise; abstract evaluatePromisedExpression(script: string): Promise; abstract evaluateExpressionAsHandle(script: string): Promise; abstract evaluateFunctionAsHandle>>(script: (args: ExtractHandleTypes) => TR, ...args: TA): Promise>; abstract url(): Promise; abstract takePageScreenshot(): Promise; abstract acceptNextDialog(): Promise; abstract moveMouse(point: { x: number; y: number; }): Promise; abstract getAllConsoleMessage(): string[]; abstract waitForRefreshPage(): Promise; } interface CandyBrowserSideObjectHandle1 extends CandyBrowserSideObjectHandle { jsonValue(): Promise; } type ExecuteScriptArgs = CandyBrowserSideObjectHandle1 | CandyWebElementHandle | T; type ExtractHandleTypes = { [P in keyof T]: T[P] extends CandyBrowserSideObjectHandle1 ? U : T[P] extends CandyWebElementHandle ? HTMLElement : T[P]; }; //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/Selectors/ReactTestSelector.d.ts interface IQuerySelectorResult { querySelector(selectorString: string): IQuerySelectorResult; hasNodes(): boolean; at(index: number): IQuerySelectorResult; getDomElements(): Array; getDomElement(): Element | undefined; getProps(): Record; getState(): Record; } declare global { interface Window { rts: { querySelector(selectorString: string): IQuerySelectorResult; }; } } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/Selectors/ReactSelectorTypingBridge.d.ts type ReactSelectorResultHandle = CandyBrowserSideObjectHandle1; //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/Selectors/ISearchContext.d.ts interface ISearchContext { readonly rootPage: CandyBrowserPage; readonly rootPageWrapper: BrowserPageWrapper; getSelectorResultForChildSearch(): Promise; getSelectorDescription(): string; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/Selectors/ISelector.d.ts interface ISelector { execute(context: ISearchContext): Promise; getDescription(context: ISearchContext): string; } //#endregion //#region ../Tests/Playwright/Utils/BrowserWrapper/BrowserPageWrapper.d.ts interface ControlConstructor { defaultElementSelector?: string | ISelector; new (context: ISearchContext, selector: ISelector, ...rest: TArgs): TControl; } declare class BrowserPageWrapper implements ISearchContext { private readonly uploadedFilePaths; get rootPage(): CandyBrowserPage; get rootPageWrapper(): BrowserPageWrapper; private readonly page; constructor(page: CandyBrowserPage); close(): Promise; loadSimplePage(url: string): Promise; getSelectorResultForChildSearch(): Promise; getSelectorDescription(): string; expectDownloadedFile(downloadCallback: () => Promise): Promise<{ content: Buffer; filename: string; }>; moveMouse(point: { x: number; y: number; }): Promise; addUploadedFilePath(tmpFileName: string): void; waitForRefreshPage(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/ControlDeclaration/FluentControlFactory.d.ts declare class FluentControlFactory { selector: ISelector; readonly controlConstructor: ControlConstructor; constructor(controlConstructor: ControlConstructor); in(searchContext: ISearchContext): T; listIn(searchContext: ISearchContext): ControlList; tid(tidString: string): FluentControlFactory; first(): FluentControlFactory; second(): FluentControlFactory; prop(name: string, value: string): FluentControlFactory; path(bindingPath: string): FluentControlFactory; asIs(): FluentControlFactory; unitId(idValue: string): FluentControlFactory; itemAt(index: number): FluentControlFactory; as(selector: string | ISelector | React.ComponentType): FluentControlFactory; } declare function control(controlConstructor: ControlConstructor): FluentControlFactory; //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/ControlList.d.ts declare class ControlList { private readonly context; private readonly childSelector; private readonly childFactory; constructor(context: ISearchContext, childSelector: ISelector, childFactory: ControlConstructor); static of(instanceBuilder: FluentControlFactory): ControlConstructor>; get count(): ExtendedPromise; itemAt(index: number): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/ControlFactoryStatics.d.ts declare class ControlFactoryStatics { static as(this: ControlConstructor, selector: string | ISelector | React.ComponentType): FluentControlFactory; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/UsualControlProps.d.ts /** временный костыль над пропами контроллов, чтобы не тянуть их из tsx * В будущем можно импортить интерфейсы пропов из Engine. пока как времянка - так. * */ interface UsualControlProps { disabled: boolean; id: UnitId; active: boolean; error: string; warning: string; highlighted: boolean; isCurrent: boolean; multiple: boolean; empty: boolean; hidden: boolean; value: string; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/ControlsBase.d.ts declare class ControlBase extends ControlFactoryStatics implements ISearchContext { static defaultElementSelector?: string | ISelector; protected readonly context: ISearchContext; private readonly selector; constructor(context: ISearchContext, selector: ISelector); get rootPage(): CandyBrowserPage; get rootPageWrapper(): BrowserPageWrapper; protected getRootElement(): Promise; hover(): Promise; getSelectorResultForChildSearch(): Promise; protected getSelectorResult(): Promise; getProp(propName: string): ExtendedPromise; getState(statePropName: string): ExtendedPromise; isActiveElement(): ExtendedPromise; isHoveredElement(): ExtendedPromise; isPresent(): ExtendedPromise; isNotPresent(): ExtendedPromise; getSelectorDescription(): string; takeScreenshot(): Promise; hide(): Promise; show(): Promise; get isInViewport(): ExtendedPromise; scrollIntoView(): Promise; get text(): ExtendedPromise; click(): Promise; setAttribute(name: string, value: string): Promise; pick(pickier: (props: UsualControlProps, ...args: TArgs) => V, ...args: TArgs): ExtendedPromise; focus(): Promise; blur(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/HtmlControls/HtmlInputControl.d.ts declare class HtmlInputControl extends ControlBase { get value(): Promise; type(text: string): ExtendedPromise; clear(): ExtendedPromise; clearAndType(text: string): ExtendedPromise; pressEnter(): Promise; getAttribute(attributeName: string): Promise; setCursorPosition(position: number): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/Action/ButtonControl.d.ts declare class ButtonControl extends ControlBase { static defaultElementSelector: string; private readonly internalHtmlButton; get text(): ExtendedPromise; get disabled(): ExtendedPromise; get errorMessage(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ReactUIControls/ReactUIInputControl.d.ts declare class ReactUIInputControl extends ControlBase { static defaultElementSelector: string; protected readonly internalInputHtmlElement: HtmlInputControl; protected getInternalInputHtmlElement(): HtmlInputControl; type(text: string): Promise; get value(): Promise; get isDisabled(): Promise; get isValid(): Promise; get isFocused(): ExtendedPromise; get focused(): ExtendedPromise; pressEnter(): Promise; clearAndType(text: string): Promise; clickAndType(text: string): Promise; focus(): Promise; clear(): Promise; blur(): Promise; get placeholder(): Promise; get error(): Promise; get warning(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/LabelControl.d.ts declare class LabelControl extends ControlBase {} //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/Picklist/PicklistModalContent.d.ts declare class PicklistItemControl extends ControlBase { readonly captions: ControlList; private readonly checkbox; getFieldByIndex(index: number): ExtendedPromise; get selected(): ExtendedPromise; get focused(): ExtendedPromise; click(): Promise; } declare class PicklistLoaderContainerControl extends ControlBase { get active(): ExtendedPromise; } declare class PicklistModalContent extends ControlBase { readonly title: LabelControl; readonly searchInput: InputControl; readonly items: ControlList; readonly textRenderTotalCount: LabelControl; readonly saveButton: ButtonControl; readonly cancelButton: ButtonControl; readonly cancelX: ButtonControl; readonly loader: PicklistLoaderContainerControl; nextFocus(): Promise; moveFocusToNextItem(): Promise; moveFocusToPreviousItem(): Promise; selectItemByEnter(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/Picklist/PicklistControl.d.ts declare class ModalControl$1 extends ControlBase { constructor(context: ISearchContext, selector: ISelector, contentControl: ControlConstructor); readonly content: T; } declare class TooltipControl$2 extends ControlBase { get active(): ExtendedPromise; } declare class PicklistControl extends ControlBase implements ValueControl { static defaultElementSelector: string; private readonly tooltip; private readonly internalPicklist; readonly internalBasePicklist: ControlBase; readonly picklistModal: PicklistModalContent; readonly input: ReactUIInputControl; readonly openButton: ButtonControl; private readonly internalInput; get isDisabled(): ExtendedPromise; private get isButtonDisabled(); get errorMessage(): Promise; get warningMessage(): Promise; open(): Promise; pressDown(): Promise; openModalPicklist(): Promise; setValuesViaInput(values: string): Promise; clearAndType(text: string): Promise; blur(): Promise; getModal(contentClass: ControlConstructor): Promise>; isTooltipActive(): ExtendedPromise; get isFocused(): ExtendedPromise; expectValue(value: string | null): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/InputControl.d.ts declare class InternalCandyInputControl extends ControlBase { get highlighted(): ExtendedPromise; get value(): ExtendedPromise; } declare class InputControl extends ControlBase implements ValueControl { static defaultElementSelector: string; protected readonly internalInputHtmlElement: HtmlInputControl; protected readonly internalCandyInput: InternalCandyInputControl; readonly tooltipLink: TooltipControl$2; protected getInternalInputHtmlElement(): HtmlInputControl; type(text: string): Promise; get value(): Promise; get isHighlighted(): ExtendedPromise; get isDisabled(): Promise; get isValid(): Promise; get isFocused(): ExtendedPromise; get errorMessage(): Promise; get warningMessage(): Promise; pressEnter(): Promise; pressDelete(): Promise; clearAndTypeFromKeyboard(text: string): Promise; typeFromKeyboard(text: string): Promise; clearAndType(text: string): Promise; clickAndType(text: string): Promise; clickAndPressBackspace(): Promise; clearAndTypeByKeyboard(text: string): Promise; focus(): Promise; blur(): Promise; clear(): Promise; get placeholder(): Promise; setCursorPosition(position: number): Promise; expectValue(value: string | null): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/FxInputControl.d.ts declare class FormulaTooltipControl extends ControlBase { get opened(): ExtendedPromise; get formulaText(): ExtendedPromise; } declare class FxInputControl extends InputControl implements ValueControl { static defaultElementSelector: string; private readonly highlightedFxInputElement; protected readonly internalInputHtmlElement: HtmlInputControl; private readonly internalCandyFxInput; readonly Icon: ControlBase; private readonly switchToAutoButton; formulaTooltip: FormulaTooltipControl; get isHighlighted(): ExtendedPromise; get isValid(): Promise; switchToAuto(): Promise; get errorMessage(): Promise; get warningMessage(): Promise; get autoValue(): Promise; get fxState(): Promise; focus(): Promise; blur(): Promise; expectValue(value: string | null): Promise; } declare enum FxState { Auto = "Auto", Manual = "Manual" } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/TextControl.d.ts declare class TextControl extends ControlBase implements ValueControl { static defaultElementSelector: string; private readonly internalCandyText; get isValid(): Promise; expectValue(value: string | null): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/DropdownControl.d.ts declare class DropdownControl extends ControlBase { static defaultElementSelector: string; private readonly internalButtonHtmlElement; readonly content: TContent; readonly spinner: ControlBase; constructor(context: ISearchContext, selector: ISelector, contentControl: ControlConstructor); get disabled(): ExtendedPromise; get text(): ExtendedPromise; static withMenus(menus: ControlConstructor): ControlConstructor>; open(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/MenuItemControl.d.ts declare class MenuItemControl extends ControlBase { static defaultElementSelector: string; private readonly internalButtonHtmlElement; get disabled(): ExtendedPromise; get text(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/ComboboxControl.d.ts declare class ComboboxControl extends ControlBase implements ValueControl { static defaultElementSelector: string; static emptyValue: null; private readonly internalInput; private readonly internalComboBox; private readonly internalComboBoxView; readonly menu: ControlList; private readonly wrapperInput; formulaTooltip: FormulaTooltipControl; private readonly switchToAutoButton; readonly hint: ControlBase; get value(): ExtendedPromise; get isDisabled(): Promise; switchToAuto(): Promise; get placeholderText(): ExtendedPromise; get isFocused(): Promise; pressEnter(): Promise; get errorMessage(): Promise; get warningMessage(): Promise; get isValid(): Promise; valueOfProp(prop: string): Promise; selectValueByIndex(index: number): ExtendedPromise; typeValueAndSelectSingle(searchValue: string): ExtendedPromise; typeValueAndSelectItem(searchValue: string, itemNumber: number): ExtendedPromise; typeValueAndPressTab(value: string): ExtendedPromise; clearAndType(text: string): Promise; dropDownItemValue(itemNumber: number): ExtendedPromise; hover(): Promise; blur(): ExtendedPromise; clear(): Promise; getDropdown(contentClass: ControlConstructor): Promise>; expectValue(value: string | RegExp | null): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/CompoundControl.d.ts declare class CompoundControl extends ControlBase { setValues(values: EditableControlValues): Promise; expectValues(values: ExpectableControlValues): Promise; } interface ValueControl { expectValue: (value: Value | null) => Promise; } type EditableControlValues = { [P in keyof T]?: T[P] extends InputControl ? string : never; }; type ExpectableControlValues = { [P in keyof T]?: T[P] extends InputControl | FxInputControl | TextControl | PicklistControl ? string | null : T[P] extends ComboboxControl ? string | RegExp | null : never; }; //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ClickableAreaControl.d.ts declare class ClickableAreaControl extends ControlBase {} //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/Action/LinkControl.d.ts declare class LinkControl extends ControlBase { static defaultElementSelector: string; private readonly internalLinkControl; get disabled(): ExtendedPromise; clickNTimes(n: number): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/DropdownMenuControl.d.ts declare class DropdownMenuControl extends ControlBase { readonly content: TContent; constructor(context: ISearchContext, selector: ISelector, contentControl: ControlConstructor); open(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/TooltipContentBaseControl.d.ts declare class TooltipContentBaseControl extends ControlBase { private readonly portal; constructor(context: ISearchContext, selector: ISelector); getSelectorResultForChildSearch(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/Action/KebabControl.d.ts declare class KebabActionControl extends ControlBase { static defaultElementSelector: string; get disabled(): ExtendedPromise; get path(): ExtendedPromise; } declare class KebabControl extends ControlBase { static defaultElementSelector: string; readonly menuItems: ControlList; get disabled(): ExtendedPromise; blur(): ExtendedPromise; selectItemByIndex(index: number): ExtendedPromise; getItems(contentClass: ControlConstructor): Promise>; } declare class KebabPopupControl extends ControlBase { static defaultElementSelector: string; readonly content: TContent; constructor(context: ISearchContext, selector: ISelector, contentControl: ControlConstructor); } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/UnitItemControl.d.ts declare class UnitItemTooltip extends TooltipContentBaseControl { readonly closeButton: LabelControl; readonly descriptionItemText: LabelControl; isPresent(): ExtendedPromise; } declare class IconButtonControl extends ControlBase { static defaultElementSelector: string; get disabled(): ExtendedPromise; } declare class UnitItemControl$1 extends ControlBase { static defaultElementSelector: string; protected readonly menuItem: ControlBase; protected readonly content: ControlBase; protected readonly itemName: ControlBase; readonly extraInfo: ControlBase; readonly errorsCount: ControlBase; click(): Promise; get text(): ExtendedPromise; get unitId(): ExtendedPromise; get filled(): ExtendedPromise; get active(): ExtendedPromise; get multiple(): Promise; get current(): Promise; get extraInfoText(): ExtendedPromise; isPresent(): ExtendedPromise; } declare class MultipleUnitPagingControl extends ControlBase { readonly nextLink: LinkControl; readonly previousLink: LinkControl; readonly input: InputControl; goToPage(instanceNumber: string): Promise; } declare class MenuItemControl$1 extends ControlBase { get current(): ExtendedPromise; } declare class ItemMultipleInstanceNestedControl extends MenuItemControl$1 { readonly kebab: KebabControl; readonly deleteIcon: IconButtonControl; readonly addButton: ButtonControl; readonly copyButton: ButtonControl; readonly clearButton: ButtonControl; readonly deleteButton: ButtonControl; readonly errorsCount: ControlBase; addInstance(): Promise; copyInstance(): Promise; clearInstance(): Promise; deleteInstance(): Promise; } declare class ItemMultipleFlatInstanceControl extends UnitItemControl$1 { private readonly nestedItemsControlType; readonly deleteIcon: IconButtonControl; readonly copyIcon: IconButtonControl; readonly kebab: KebabControl; readonly addButton: ButtonControl; readonly copyButton: ButtonControl; readonly clearButton: ButtonControl; readonly deleteButton: ButtonControl; constructor(context: ISearchContext, selector: ISelector, controlType: ControlConstructor); deleteInstance(): Promise; copyInstance(): Promise; clearInstance(): Promise; get nested(): TNestedItems; click(): Promise; } declare abstract class UnitItemControlBase extends UnitItemControl$1 {} declare class UnitItemSingleControl extends UnitItemControlBase { readonly nestedList: ControlBase; readonly kebab: KebabControl; readonly deleteButton: ButtonControl; readonly clearButton: ButtonControl; readonly plusButton: ButtonControl; nestedItems: ControlList; menuItemChildren: ControlList; clearInstance(): Promise; deleteInstance(): Promise; } declare class MultipleFlatRootItem extends LabelControl { readonly addButton: ClickableAreaControl; } declare class UnitItemMultipleFlatControl extends UnitItemControl$1 { readonly tooltip: UnitItemTooltip; readonly nestedItemsControlType: ControlConstructor; readonly pager: MultipleUnitPagingControl; readonly kebab: KebabControl; readonly addButton: ButtonControl; readonly copyButton: ButtonControl; readonly clearButton: ButtonControl; readonly deleteButton: ButtonControl; constructor(context: ISearchContext, selector: ISelector, nestedItemsControlType: ControlConstructor); get instancesFlat(): ExtendedPromise>>; get instancesNested(): ExtendedPromise>; get disableAppend(): ExtendedPromise; get rootItem(): ExtendedPromise; get addIcon(): ExtendedPromise; addInstanceByKebab(): Promise; addInstanceByPlus(): Promise; addNInstanceByPlus(n: number): Promise; addNInstanceByKebab(n: number): Promise; addInstance(): Promise; copyInstance(): Promise; clearInstance(): Promise; deleteInstance(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/LoaderControl.d.ts declare class LoaderControl extends ControlBase { get isActive(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/MinitourControl.d.ts declare class MinitourControl extends CompoundControl { readonly closeX: ControlBase; get isOpened(): Promise; minitourClose(): Promise; get minitourName(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/EmbeddedLogControl.d.ts declare class ErrorItemControl extends CompoundControl { readonly sourceLinkControl: LabelControl; readonly description: LabelControl; readonly descriptionItemHiddenText: LabelControl; touched(): Promise; } declare class InterdocumentCheckIssueControl extends CompoundControl { readonly description: LabelControl; readonly descriptionItemHiddenText: LabelControl; } declare class ErrorListControl extends CompoundControl { readonly attachmentGroup: ErrorsGroupControl; readonly warrantGroup: ErrorsGroupControl; readonly items: ControlList; readonly interdocumentCheckIssues: ControlList; } declare class ErrorsGroupControl extends CompoundControl { readonly items: ControlList; } declare class ErrorLogTooltip extends TooltipContentBaseControl { readonly closeButton: LabelControl; readonly descriptionItemText: LabelControl; } declare class CheckingStatusControl extends CompoundControl { private readonly textControl; get text(): ExtendedPromise; } declare class ErrorLogFooter extends CompoundControl { readonly showErrorLogModalButton: LinkControl; readonly minitourExtendedProtocol: MinitourControl; } declare class EmbeddedLogControl extends CompoundControl { readonly header: CompoundControl; readonly footer: ErrorLogFooter; readonly checkingStatus: CheckingStatusControl; readonly checkButton: ButtonControl; readonly errorList: ErrorListControl; readonly loader: LoaderControl; readonly initialLoader: LabelControl; readonly tooltip: ErrorLogTooltip; readonly printErrorLog: ButtonControl; readonly sendButton: ButtonControl; readonly errorLogHeader: ControlBase; get hasErrors(): ExtendedPromise; downloadErrorLogAsPdf(candyServiceContext: CandyServiceTestContext): Promise; downloadErrorLogAsPdfConvertedToText(candyServiceContext: CandyServiceTestContext): Promise; get loading(): ExtendedPromise; clickErrorLinkIfNotTouched(errorIndex: number): Promise; checkTooltip(_errorIndex: number, _errorText: string): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ModalControl.d.ts declare class ModalControl extends CompoundControl { readonly cancelX: ButtonControl; readonly save: ButtonControl; readonly remove: ButtonControl; readonly content: TContent | undefined; constructor(context?: ISearchContext, selector?: ISelector, contentControl?: ControlConstructor); } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/FufAndAttachmentsUploadModalControl.d.ts declare class AttachmentsItemControl extends ControlBase { static defaultElementSelector: string; unitItemMinusCircleIcon(): ControlBase; isUnitItemMinusCircleIconPresent(): ExtendedPromise; unitItemErrorPopup(): ControlBase; } declare class UnitItemControl extends ControlBase { static defaultElementSelector: string; readonly attachmentsItem: ControlList; unitItemByGfv(gfv: string): ControlBase; isExistGfv(gfv: string): ExtendedPromise; unitItemNoneTitle(): ControlBase; isUnitItemNoneTitlePresent(): ExtendedPromise; getUnitItemNoneTitleText(): ExtendedPromise; } declare class FufAndAttachmentsSuccessModalControl extends ModalControl { static defaultElementSelector: string; readonly successButton: ButtonControl; } declare class FufAndAttachmentsUploadModalControl extends ControlBase { readonly fufFileUploader: ControlBase; readonly unitItems: ControlList; readonly uploadButton: ButtonControl; readonly ndsSum: ControlBase; readonly confirmModal: FufAndAttachmentsSuccessModalControl; uploadFiles(filesPath: string[]): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/NavigationPanel.d.ts declare class MoreActionsMenuContent$1 extends CompoundControl { readonly downloadButton: LinkControl; readonly clearFormButton: LinkControl; readonly uploadFufButton: LinkControl; readonly uploadFufAndAttachmentButton: LinkControl; } declare class MoreActionsMenu extends CompoundControl { readonly menu: DropdownMenuControl; } declare class HideUnitButtonControl extends ControlBase { get text(): ExtendedPromise; isPresent(): ExtendedPromise; } declare class FufUploadModalControl extends ControlBase { readonly uploadButton: ButtonControl; readonly fufFileProperties: ControlBase; readonly fufUploadError: ControlBase; readonly fufFileUploader: ControlBase; get fileProperties(): Promise; get success(): ExtendedPromise; get error(): ExtendedPromise; get text(): ExtendedPromise; } declare class NavigationPanelActionList extends CompoundControl { private readonly downloadButton; readonly historyEditingButton: ButtonControl; private readonly clearFormButton; private readonly uploadFufButton; private readonly uploadFufAndAttachmentsButton; readonly moreActionsMenu: MoreActionsMenu; clickClearFormButton(): Promise; clickUploadFufButton(filesPath: string[], contentClass: typeof FufUploadModalControl): Promise>; clickUploadFufAndAttachmentsButton(contentClass: typeof FufAndAttachmentsUploadModalControl): Promise>; clickDownloadButton(): Promise; openHistoryEditingWidget(): Promise; } declare class NavigationPanel extends CompoundControl { static defaultElementSelector: string; readonly actionList: NavigationPanelActionList; readonly runTourButton: ButtonControl; readonly checkButton: ButtonControl; readonly sendActionButton: ButtonControl; readonly zeroReportingButton: ButtonControl; readonly formSaveStatus: ClickableAreaControl; readonly pin: ClickableAreaControl; readonly embeddedLog: EmbeddedLogControl; readonly unitList: ControlList; unit2NavigationItem: UnitItemMultipleFlatControl; readonly hideUnitButton: HideUnitButtonControl; readonly recalculateDirtyMasksButton: ButtonControl; ensureAllDataSaved(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/DeleteUnitModal.d.ts declare class DeleteUnitModal extends ModalControl { private readonly buttons; readonly submit: ExtendedPromise; readonly cancel: ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/RadioControl.d.ts declare class RadioControl extends ControlBase { static defaultElementSelector: string; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ClearUnitModal.d.ts declare class ClearUnitModal extends ModalControl { readonly onlyParentRadio: RadioControl; readonly parentAndChildrenRadio: RadioControl; private readonly buttons; readonly submit: ExtendedPromise; readonly cancel: ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/RadioGroupControl.d.ts declare class RadioGroupControl extends ControlBase { static defaultElementSelector: string; private readonly items; private readonly internalRadioGroup; get value(): ExtendedPromise; get currentValueCaption(): ExtendedPromise; selectValueByIndex(index: number): Promise; selectValueByValue(value: string): Promise; get errorMessage(): Promise; get warningMessage(): Promise; get error(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/PrintUnitModal.d.ts declare class PrintUnitModal extends ModalControl { readonly radioGroup: RadioGroupControl; private readonly buttons; readonly submit: ExtendedPromise; readonly cancel: ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ConfirmMiniModalControl.d.ts declare class ConfirmMiniModalControl extends ModalControl { static defaultElementSelector: string; readonly submit: ButtonControl; readonly discard: ButtonControl; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/PageBase.d.ts declare class PageBase extends CompoundControl { protected readonly formComponent: ControlBase; constructor(context: ISearchContext, selector: ISelector); setValueToModel(path: AbsoluteModelPath, value: string | undefined): Promise; getViewModelField(bindingPath: AbsoluteModelPath, fieldName: string): ExtendedPromise; protected setViewModelField(bindingPath: AbsoluteModelPath, fieldName: ViewModelFieldName, value: string): Promise; reloadInner(): Promise; refresh(): Promise; nidusCleanup(nidusClient: NidusClientImpl, nidusName: string, nidusReferenceKey?: string): Promise; waitToCloseCheckSumModalAsync(ms?: number, interval?: number): Promise; initMetrics(): Promise; private checkOpenCheckSumModal; private skipUiUtilsModal; private checkUiUtilsModal; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/CandyPageWithNavigationBase.d.ts declare class CandyPageWithNavigationBase extends PageBase { readonly showMenuButton: ControlBase; readonly pinMenuButton: ControlBase; readonly navigationPanel: NavigationPanel; readonly longOperationModal: ControlBase; readonly tabsWrapper: ControlBase; readonly tabs: ControlList; readonly deleteModal: DeleteUnitModal; readonly clearModal: ClearUnitModal; readonly printUnitModal: PrintUnitModal; readonly confirmMiniModal: ConfirmMiniModalControl; suspendNextUpload(): Promise; resumeLastSuspendedUpload(): Promise; setFakeErrorLog(errorLog: ServerErrorLog$1 | IErrorLogTaskResult, draftId: string): Promise; togglePinNavigationPanel(isVisible?: boolean): Promise; expandNavigationPanel(): Promise; openNavigationPanel(): Promise; closeNavigationPanel(): Promise; collapseNavigationPanel(): Promise; clearForm(): Promise; runCheck(isFake?: boolean): Promise; prepareBrowserForDownload(): Promise<() => Promise>; getImageFromFuf(): Promise<() => Promise>; ensureAllDataSaved(): Promise; ensureCalculations(): Promise; ensureAllDataSavedWithPublicForm(): Promise; refreshWithNormalization(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/PopupMenu.d.ts declare class PopupMenuControl extends ControlBase { private readonly portal; constructor(context: ISearchContext, selector: ISelector, contentControl: ControlConstructor); get content(): TContent; static withContent(contentConrol: ControlConstructor): ControlConstructor>; open(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/CandySimplePageBase.d.ts declare class MoreActionsMenuContent extends CompoundControl { readonly downloadButton: LinkControl; } declare class CandySimplePageBase extends PageBase { readonly moreActions: ButtonControl; readonly menu: PopupMenuControl; prepareBrowserForDownload(): Promise<() => Promise>; getImageFromFuf(): Promise<() => Promise>; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/pageObjectFixture.d.ts interface PageObjectFixture { pageObject: TPage; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/pageOptionsFixture.d.ts interface PageOptionsFixture { pageOptions: PageOptions; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/draftInfoFixture.d.ts interface DraftInfoFixture { draftInfo: CreateDraftResponse; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/presentationFixture.d.ts interface PresentationFixture { setPresentations: void; presentations: Presentations; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/FufChecker.d.ts interface FufAsJson { [key: string]: FufAsJson & FufAsJson[] & string; } declare class FufChecker { private readonly rootPageWrapper; constructor(rootPageWrapper: BrowserPageWrapper); checkFuf(candyPage: CandyPageWithNavigationBase | CandySimplePageBase, expectedFufContentPart: {} | ((fuf: FufAsJson) => Promise | void), forceEncoding?: string): Promise; getFufImagesCount(candyPage: CandySimplePageBase): Promise; private bufferWithXmlToString; private isImage; private fufToJson; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/fufCheckerFixture.d.ts interface CandyApiFixture { fufChecker: FufChecker; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/browserPageFixture.d.ts interface CandyBrowserFixture { browserPage: CandyBrowserPage; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/forEachTests.d.ts interface ForEachTestFixture { forEachTest: void; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/UITestBases/IUITestPageAccessor.d.ts interface IUITestPageAccessor { setValueToControl(inNodePath: string, inStatePath: string, inValue?: string | boolean | number): Promise; getValueFromControl(inNodePath: string, inStatePath: string): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/UITestBases/AdapterProxies/ControlAdapterProxy.d.ts declare class ControlAdapterProxy { protected readonly page: IUITestPageAccessor; constructor(page: IUITestPageAccessor); } //#endregion //#region ../Tests/Playwright/Utils/PageBases/UITestBases/AdapterProxies/ErrorsItemAdapterProxy.d.ts declare class ErrorsItemAdapterProxy extends ControlAdapterProxy { private readonly name; constructor(page: IUITestPageAccessor, name: string); navigate(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/UITestBases/AdapterProxies/GenericControlAdapterProxy.d.ts declare class GenericControlAdapterProxy extends ControlAdapterProxy { private readonly tid; constructor(page: IUITestPageAccessor, tid: string); get isFocused(): Promise; get isInView(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/UITestBases/AdapterProxies/PanelAdapterProxy.d.ts declare class PanelAdapterProxy extends ControlAdapterProxy { toggle(active: "check" | "menu"): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/UITestBases/AdapterProxies/UnitAdapterProxy.d.ts declare class UnitAdapterProxy extends ControlAdapterProxy { private readonly id; constructor(page: IUITestPageAccessor, id: string); add(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/UITestBases/UITestFormPageWrapper.d.ts declare enum ClearPageMethod { OnlyParent = "OnlyParent", ParentAndChildren = "ParentAndChildren" } declare global { interface Window { publicForm: IPublicForm & { form: IForm$1; }; } } declare class UITestFormPageWrapper implements IUITestPageAccessor { private readonly page; private readonly candyApi; private readonly draftInfo; private readonly pageObject; panel: PanelAdapterProxy; constructor(page: Page, candyApi: CandyServiceTestContext, draftInfo: CreateDraftResponse, pageObject: CandyPageWithNavigationBase); wait(tm: number): Promise; errorLogItem(name: string): ErrorsItemAdapterProxy; unit(id: string): UnitAdapterProxy; control(name: string): GenericControlAdapterProxy; restartForm(): Promise; controlExists(nodePath: string): Promise; saveForm(): Promise; setErrorLogFromFile(errorLog: Partial): Promise; getValueFromControl(inNodePath: string, inStatePath: string): Promise; setValueToControl(inNodePath: string, inStatePath: string, inValue?: string | boolean | number): Promise; setValueToModel(inNodePath: string, inFieldName: ViewModelFieldName, inValue: string | boolean | string[]): Promise; getValueFromModel(inNodePath: string, inFieldName: string): Promise; close(): Promise; private readonly executeAction; setFuf(fuf?: Buffer): Promise; setInner(inner?: Inner): Promise; setOuter(outer?: Outer): Promise; setRequisites(fakeRequisites?: { [key: string]: { value: string; }; }): Promise; confirmRemoveUnit(): Promise; confirmMiniModal(): Promise; confirmModalForm(buttonText?: string): Promise; confirmClearUnit(method?: ClearPageMethod): Promise; private refreshPage; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/uiTestPageFixture.d.ts interface CandyUITestFixture { form: UITestFormPageWrapper; } //#endregion //#region ../Tests/Playwright/Utils/Fixtures/index.d.ts declare function createTest(pageOptions: PageOptions, pageObjectConstructor: Constructor): import("playwright/test").TestType & PageOptionsFixture & DraftInfoFixture & PresentationFixture & CandyApiFixture & CandyBrowserFixture & ForEachTestFixture, import("playwright/test").PlaywrightWorkerArgs & import("playwright/test").PlaywrightWorkerOptions>; declare function createCandyUITest(pageOptions: PageOptions): import("playwright/test").TestType & CandyApiFixture & CandyBrowserFixture & ForEachTestFixture & CandyUITestFixture, import("playwright/test").PlaywrightWorkerArgs & import("playwright/test").PlaywrightWorkerOptions>; //#endregion //#region ../Common/AsyncUtils.d.ts declare function delay(timeout: number): Promise; //#endregion //#region ../Common/ParsePdf.d.ts declare const parsePdf: (file: Buffer) => Promise; //#endregion //#region ../Tests/Playwright/Utils/CIUtils.d.ts declare const isRunningOnCI: () => boolean; //#endregion //#region ../Tools/src/Commons/GetCpuLimits.d.ts declare function getCpuLimits(): number; //#endregion //#region ../Tests/Playwright/Utils/Core/RequisitesBuilding/ClientInfoBuilder.d.ts declare const defaultFormsClientInfo: ClientInfo; //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Bases/Selectors/Selector.d.ts interface PropsFilter { readonly [key: string]: undefined | string | boolean | number | string[]; } declare class ReactSelector implements ISelector { private readonly selectorString; private readonly props?; private readonly ignoreContext; constructor(selectorString: string, props?: PropsFilter, ignoreContext?: boolean); first(): ISelector; second(): ISelector; at(index: number): ISelector; internalSetPropsFilter(props?: PropsFilter): ReactSelector; internalGetPropsFilter(): undefined | PropsFilter; execute(context: ISearchContext): Promise; getDescription(context: ISearchContext): string; private getCurrentSelectorDescription; static from

(componentType: React.ComponentType

, propFilter?: string | { bindingPath: string; } | { [TK in keyof P]?: P[TK] extends string ? P[TK] : never; } | { [TK in `data-${string}`]: string; }): ReactSelector; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/PageActionsControl.d.ts declare class PageActionsDropdownContent extends CompoundControl { readonly clearItem: MenuItemControl; readonly deleteItem: MenuItemControl; readonly copyItem: MenuItemControl; readonly enableAutoValues: MenuItemControl; readonly addXml: MenuItemControl; } declare class PageActionsControl extends ControlBase { readonly clearPageButton: ButtonControl; readonly deletePageButton: ButtonControl; readonly dropdown: DropdownControl; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/UnitPagerControl/UnitPagerControl.d.ts declare class UnitPagerControl extends CompoundControl { readonly previousPageButton: ButtonControl; readonly nextPageButton: ButtonControl; readonly unitNumberInput: InputControl; readonly currentUnitName: LabelControl; readonly totalUnitCount: LabelControl; goToPage(number: string): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/UnitBase.d.ts declare class UnitBase extends CompoundControl { static defaultElementSelector: string; readonly header: ControlBase; readonly pageActions: PageActionsControl; private readonly internalUnit; get visible(): ExtendedPromise; scrollTo(): Promise; } declare class UnitList extends CompoundControl { readonly insertButton: ControlList; readonly addUnitButton: ControlBase; readonly units: ControlList; readonly topPager: UnitPagerControl; readonly bottomPager: UnitPagerControl; constructor(context: ISearchContext, selector: ISelector, unitClass: ControlConstructor, childUnitSelector?: ISelector); addNInstance(n: number): Promise; get count(): ExtendedPromise; itemAt(index: number): ExtendedPromise; static ofUnit(childFactory: ControlConstructor): ControlConstructor>; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/CheckboxControl.d.ts declare class TooltipControl$1 extends ControlBase { private readonly tooltipContent; get active(): ExtendedPromise; get isOpened(): ExtendedPromise; get value(): ExtendedPromise; } declare class CheckboxControl extends ControlBase { static defaultElementSelector: string; private readonly internalLabel; private readonly internalReactUICheckbox; readonly tooltip: TooltipControl$1; get error(): ExtendedPromise; get warning(): ExtendedPromise; get errorMessage(): Promise; get warningMessage(): Promise; click(checkState?: boolean): Promise; get checked(): ExtendedPromise; isTooltipActive(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ReactUIControls/ReactUIComboBoxControl.d.ts declare class ReactUIComboBoxControl extends ControlBase { static defaultElementSelector: string; static emptyValue: null; private readonly internalInput; private readonly internalComboBox; readonly menu: ControlList; private readonly label; get text(): ExtendedPromise; get value(): ExtendedPromise; clearAndType(text: string): Promise; get error(): Promise; selectValueByIndex(index: number): ExtendedPromise; typeValueAndSelectSingle(searchValue: string): ExtendedPromise; getDropdown(contentClass: ControlConstructor): Promise>; pressEnter(): Promise; get isFocused(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/ToggleControl.d.ts declare class TooltipControl extends ControlBase { private readonly tooltipContent; get active(): ExtendedPromise; get isOpened(): ExtendedPromise; get value(): ExtendedPromise; } declare class ToggleControl extends ControlBase { static defaultElementSelector: string; private readonly internalLabel; private readonly internalReactUIToggle; readonly tooltip: TooltipControl; get error(): ExtendedPromise; get warning(): ExtendedPromise; get disabled(): ExtendedPromise; get captionPosition(): Promise<"right" | "left" | undefined>; get errorMessage(): Promise; get warningMessage(): Promise; click(checkState?: boolean): Promise; get checked(): ExtendedPromise; isTooltipActive(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/DatePickerControl.d.ts declare class DatePickerControl extends ControlBase { static defaultElementSelector: string; private readonly internalCandyDatePicker; private readonly internalDateInput; get value(): ExtendedPromise; get highlighted(): ExtendedPromise; get isValid(): Promise; get error(): ExtendedPromise; get errorMessage(): Promise; clear(): Promise; blur(): Promise; clearAndType(text: string): Promise; focus(): Promise; click(): Promise; get isFocused(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ReactUIControls/ReactUIDatePicker.d.ts declare class ReactUIDatePicker extends ControlBase { static defaultElementSelector: string; type(text: string): Promise; get value(): Promise; clear(): Promise; blur(): Promise; clearAndType(text: string): Promise; clearAndTypeAndBlur(text: string): Promise; focus(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/IconControl.d.ts declare class IconControl extends ControlBase {} //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/FileLoader/FileLoaderControl.d.ts declare class ViewFileRemoveTooltip extends TooltipContentBaseControl { readonly removeButton: ButtonControl; } declare class ViewFileControl extends CompoundControl { readonly progressBar: ControlBase; readonly fileName: LabelControl; readonly removeArea: ClickableAreaControl; readonly removeTooltip: ViewFileRemoveTooltip; readonly viewFileError: LabelControl; readonly viewFileWarning: LabelControl; remove(): Promise; } declare class FileLoaderControlButton extends ControlBase { private readonly internalButtonHtmlElement; click(): Promise; get disabled(): ExtendedPromise; } declare class FileLoaderControl extends CompoundControl { static defaultElementSelector: string; readonly addButton: FileLoaderControlButton; readonly replaceButton: FileLoaderControlButton; readonly overflowDocuments: LabelControl; readonly files: ControlList; readonly downloadButton: IconControl; private readonly convertationInfo; private readonly loadingIcon; addFiles(filesPath: string[], wait?: boolean): Promise; replaceFile(filesPath: string[], wait?: boolean): Promise; waitConvertationSuccess(): Promise; waitConvertationFailed(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/MultilineControl.d.ts declare class MultilineControl extends CompoundControl { rows: ControlList; constructor(context: ISearchContext, selector: ISelector, contentControl: ControlConstructor); } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/MultilineFieldControl.d.ts declare class MultilineFieldControl extends CompoundControl { static defaultElementSelector: string; items: ControlList>; readonly moreItemsLink: LinkControl; constructor(context: ISearchContext, selector: ISelector, childFactory: ControlConstructor); static of(childFactory: ControlConstructor): ControlConstructor>; addItem(): Promise; } declare class MultilineFieldItemBase extends CompoundControl { readonly value: TRow; readonly addButton: IconControl; readonly removeButton: IconControl; constructor(context: ISearchContext, selector: ISelector, rowConstructor: ControlConstructor); } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/PageLinkControl.d.ts declare class PageLinkControl extends CompoundControl { readonly link: LinkControl; get disabled(): ExtendedPromise; click(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/PagerControl.d.ts declare class PagerControl extends CompoundControl { readonly pageLinks: ControlList; readonly previousLink: LinkControl; readonly nextLink: LinkControl; readonly goToPageInput: InputControl; get empty(): ExtendedPromise; get currentPage(): ExtendedPromise; get instanceCount(): ExtendedPromise; goToRow(number: string): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/PencilControl.d.ts declare class PencilControl extends CompoundControl { readonly editIcon: IconControl; get opened(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/MultilineFooterControl.d.ts declare class MultilineFooterControl extends CompoundControl { readonly addButton: ButtonControl; addRow(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CrossFitTable/HeaderMenu.d.ts declare class HeaderMenu extends ControlBase { readonly menu: DropdownMenuControl; constructor(context: ISearchContext, selector: ISelector, contentControl: ControlConstructor); openDropdownMenu(): ExtendedPromise; closeDropdownMenu(): Promise; get filtered(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/StickyTableControl.d.ts declare class RemoveButton extends CompoundControl {} declare class RowMenuContent$1 extends CompoundControl { addPreviousButton: ButtonControl; addNextButton: ButtonControl; copyButton: ButtonControl; copyToEndButton: ButtonControl; removeButton: ButtonControl; } declare class RowMenu$1 extends CompoundControl { menu: PopupMenuControl; copyAfterViaRowMenu(): Promise; removeViaRowMenu(): Promise; copyToEndViaRowMenu(): Promise; addNextViaRowMenu(): Promise; addPreviousViaRowMenu(): Promise; private openMenu; } declare class StickyTableSideBar extends CompoundControl { readonly rowsMenu: ControlList; readonly removeRowButtons: ControlList; } declare class StickyTableSideBarWithRows extends CompoundControl { readonly rows: ControlList; readonly rowsMenu: ControlList; readonly removeRowButtons: ControlList; constructor(context: ISearchContext, selector: ISelector, childFactory: ControlConstructor); static of(rowFactory: ControlConstructor): ControlConstructor>; } declare class StickyTableControl extends CompoundControl { static defaultElementSelector: string; readonly rows: ControlList; readonly addButtons: ControlList; readonly addButton: ButtonControl; readonly pager: PagerControl; readonly sideBar: StickyTableSideBar; readonly scrollToRightArrow: ClickableAreaControl; readonly scrollToLeftArrow: ClickableAreaControl; readonly emptyRow: ControlBase; constructor(context: ISearchContext, selector: ISelector, childFactory: ControlConstructor); static withRow(childFactory: ControlConstructor): ControlConstructor>; addRow(): Promise; addRows(n: number): Promise; getMultilineByPath(bindingPath: string, row: ControlConstructor, instance?: number): MultilineControl; getSidebarByPath(bindingPath: string, rowFactory: ControlConstructor): StickyTableSideBarWithRows; getPagerByPath(bindingPath: string): PagerControl; getMultilineFooterByPath(bindingPath: string): MultilineFooterControl; findHeaderMenuByText(text: string, headerMenuContent: ControlConstructor): HeaderMenu; removeAllRows(): Promise; removeRowsExceptFirst(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/TableCellPencilControl.d.ts declare class TableCellPencilControl extends ClickableAreaControl {} //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/TourControl.d.ts declare class ModalTourStepControl extends CompoundControl { private readonly modal; getContentAs(content: ControlConstructor): T; } declare class TooltipTourStepControl extends CompoundControl { getContentAs(content: ControlConstructor): T; } declare class TourControl extends CompoundControl { readonly currentTooltipStep: TooltipTourStepControl; readonly currentModalStep: ModalTourStepControl; } declare class TourStepContentBase extends CompoundControl { readonly prevButton: ButtonControl; readonly nextButton: ButtonControl; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/TextAreaControl.d.ts declare class TextAreaControl extends InputControl { static defaultElementSelector: string; protected readonly internalInputHtmlElement: HtmlInputControl; private readonly internalReactUITextarea; private readonly focusedTextArea; get isFocused(): ExtendedPromise; get error(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/KladrControl.d.ts declare class KladrModal extends ControlBase { readonly comboboxFields: ControlList; readonly inputFields: ControlList; readonly buttons: ControlList; } declare class KladrControl extends ControlBase { static defaultElementSelector: string; fillAddress: LinkControl; internalKladr: ControlBase; address: LabelControl; inner: LabelControl; get isValid(): Promise; openModalEditor(): Promise>; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/SelectControl.d.ts declare class SelectDropdownContent extends CompoundControl { readonly items: ControlList; readonly resetValue: LabelControl; } declare class SelectControl extends ControlBase { static defaultElementSelector: string; private readonly internalButton; private readonly internalCandySelect; readonly menu: SelectDropdownContent; get text(): ExtendedPromise; get isDisabled(): ExtendedPromise; get isHighlighted(): ExtendedPromise; click(): Promise; selectValueByIndex(index: number): Promise; get errorMessage(): Promise; openMenu(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CrossFitTable/CrossFitTableControl.d.ts declare class CrossFitTableColgroupButton extends CompoundControl { readonly button: ButtonControl; private readonly tableCells; click(): Promise; get collapsed(): ExtendedPromise; } declare class RowMenuContent extends CompoundControl { readonly copyButton: ButtonControl; readonly copyToEndButton: ButtonControl; readonly removeButton: ButtonControl; } declare class RowMenu extends CompoundControl { readonly menu: PopupMenuControl; removeViaRowMenu(): Promise; } declare class CrossFitTableSideBar extends CompoundControl { readonly rowsMenu: ControlList; readonly removeRowButtons: ControlList; } declare class CrossFitTableFilterInfo extends CompoundControl { readonly resetFilters: LinkControl; readonly foundInstancesText: LabelControl; isPresent(): ExtendedPromise; } declare class CrossFitTableControl extends CompoundControl { static defaultElementSelector: string; readonly rows: ControlList; readonly addButton: ButtonControl; readonly pager: PagerControl; readonly hideColumnButtons: ControlList; readonly sideBar: CrossFitTableSideBar; readonly filterInfo: CrossFitTableFilterInfo; readonly scrollToRightArrow: ClickableAreaControl; readonly scrollToLeftArrow: ClickableAreaControl; readonly emptyRow: ControlBase; constructor(context: ISearchContext, selector: ISelector, childFactory: ControlConstructor); static withRow(childFactory: ControlConstructor): ControlConstructor>; addRow(): Promise; addRows(n: number): Promise; findHeaderMenuByText(text: string, headerMenuContent: ControlConstructor): HeaderMenu; removeAllRows(): Promise; removeRowsExceptFirst(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ComboboxItemControl.d.ts declare class ComboboxItemControl extends ControlBase { isHighlighted(): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ComboboxDropdownContent.d.ts declare class ComboboxDropdownContent extends ControlBase { readonly items: ControlList; readonly menu: ControlBase; readonly textRenderTotalCount: LabelControl; readonly autoValueItems: ControlList; readonly autoValueNote: LabelControl; readonly commonItems: ControlList; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/FormInFormControl.d.ts declare class AttachmentPageActionsDropdownContent extends PageActionsDropdownContent { readonly deleteItem: MenuItemControl; } declare class AttachmentPageActionsControl extends PageActionsControl { readonly dropdown: DropdownControl; } declare class AttachmentFormUnit extends UnitBase { readonly pageActions: AttachmentPageActionsControl; removeAttachment(): Promise; } declare class FormInFormControl extends ControlBase { readonly input: InputControl; readonly unit: UnitBase; constructor(context: ISearchContext); } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/AttachmentFormContent/AttachmentFormContentControl.d.ts declare class UploadedFileContainer extends CompoundControl { readonly fileName: LabelControl; readonly removeButton: ClickableAreaControl; readonly exceptionMessage: LabelControl; } declare class AttachmentFormContentControl extends ControlBase { static defaultElementSelector: string; readonly fillInSystemBtn: ButtonControl; readonly addFileLink: ButtonControl; readonly openLoadedAttachmentEditorLink: ButtonControl; readonly deleteLoadedFileLink: ButtonControl; readonly attachmentFormSizeErrorMessage: LabelControl; readonly uploadedFileContainer: UploadedFileContainer; loadAttachmentFromFile(filesPath: string[]): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/AttachmentFormUnitBase.d.ts declare class AttachmentFormUnitBase extends CompoundControl { static defaultElementSelector: string; readonly formInFormContainer: ControlBase; readonly attachmentFormContent: AttachmentFormContentControl; readonly formInFormEmptyLoader: ControlBase; readonly innerForm: FormInFormControl; openEmptyAttachmentEditor(delayInMs?: number): Promise; openLoadedAttachmentEditor(): Promise; removeLoadedFile(): Promise; removeBadLoadedFile(): Promise; loadAttachmentFromFile(filesPath: string[]): Promise; checkUnitIsEmpty(): Promise; checkUploadExceptionMessage(message: string): Promise; checkUploadedFileTooBigForEditMessage(): Promise; ensureAttachmentUploadSuccessful(fileName: string): Promise; } //#endregion //#region ../Tests/Playwright/Utils/PageBases/ModalUnitBase.d.ts declare class ModalUnitBase extends CompoundControl { static defaultElementSelector: string; readonly pageActions: PageActionsControl; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/UploadFilesModal/UploadFilesModal.d.ts declare class UploadFilesModal extends ControlBase { addFilesButton: LinkControl; readonly modalHeader: ControlBase; readonly modalHeader2: ControlBase; readonly modalSubheaderModal: ControlBase; readonly modalHeaderMergeNotice: ControlBase; readonly startUploadButton: ButtonControl; readonly startUploadButtonInPickSum: ButtonControl; readonly closeButton: ButtonControl; readonly cancelButton: ButtonControl; readonly pickSumMethodButton: ButtonControl; filesContainer: ControlList; readonly loader: ControlBase; readonly replaceButton: ControlBase; readonly mergeButton: ControlBase; readonly deepMergeButton: ControlBase; readonly uploadInfo: MergeResult; readonly modal1UploadButton: ButtonControl; readonly modal1CancelButton: ButtonControl; readonly modal2radioGroup: RadioGroupControl; readonly modal2NextStepButton: ButtonControl; readonly modal2PreviousStepButton: ButtonControl; uploadFile(filesPath: string[], callUploadCallback: () => Promise): Promise; } declare class FileUnit extends UnitBase { readonly name: ComboboxControl; readonly errorMessage: ControlBase; readonly deleteButton: IconControl; readonly instancesCount: ControlBase; getFileStatus(): ExtendedPromise; isLoading(): Promise; delete(): Promise; readonly status: ControlBase; readonly loading: ControlBase; } declare class MergeResult extends ControlBase { readonly addedCount: ControlBase; readonly updatedCount: ControlBase; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/DropdownButtonControl.d.ts declare class DropdownButtonControl extends ButtonControl { private readonly internalMenu; readonly items: ControlList; get opened(): ExtendedPromise; clickItemAt(itemIndex: number): Promise; getItems(): Promise>; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/Table2MultirowControl.d.ts declare class Table2MultirowControl extends CompoundControl { static defaultElementSelector: string; readonly rows: ControlList; constructor(context: ISearchContext, selector: ISelector, childFactory: ControlConstructor); static withRow(childFactory: ControlConstructor): ControlConstructor>; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/TabControl.d.ts declare class TabTitle extends ControlBase { readonly removeButton: ButtonControl; } declare class Tab extends ControlBase { readonly tabTitle: TabTitle; } declare class TabsControl extends CompoundControl { private readonly tabsContainer; private readonly tabs; readonly items: ControlList; get itemCount(): ExtendedPromise; get currentInstance(): ExtendedPromise; clickTabsAt(index: number): Promise; } //#endregion //#region ../Engine/test/Engine/Calculator2/Calculator2TestUtils.d.ts type InferPathTrainsFromBindingPath = S extends `/${string}*${string}` ? IModelPath : S extends `/${string}!${string}` ? IModelPath : S extends `${string}*${string}` ? IModelPath : S extends `/${string}` ? IModelPath : IModelPath; /** * Исключительно для использования в тестах */ declare function mp(path: S): InferPathTrainsFromBindingPath; /** * Исключительно для использования в тестах */ declare const ap: typeof mp; //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/CandyControls/ValueEditors/SelectAllCheckboxControl.d.ts declare class SelectAllCheckboxControl extends ControlBase { static defaultElementSelector: string; private readonly internalLabel; private readonly internalReactUICheckbox; click(checkState?: boolean): Promise; get checked(): ExtendedPromise; get isIndeterminate(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/ReactUIControls/ReactUICheckboxControl.d.ts declare class ReactUICheckboxControl extends ControlBase { static defaultElementSelector: string; click(checkState?: boolean): Promise; get checked(): ExtendedPromise; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/FilterListControl.d.ts declare class FilterItemBase extends CompoundControl { static defaultElementSelector: string; readonly checkbox: ReactUICheckboxControl; } declare class FilterListControl extends CompoundControl { static defaultElementSelector: string; readonly items: ControlList; readonly input: InputControl; } //#endregion //#region ../Tests/Playwright/Utils/PageObjects/Controls/Widgets/HistoryEditingWidgetControl.d.ts declare class HistoryEditingWidgetControl extends ControlBase { readonly recoveryButton: ControlList; readonly recoverySubmitButton: ButtonRecoverySubmitControl; readonly historyItemTimeList: ControlList; readonly userNameList: ControlList; readonly historyItemNames: ControlList; readonly loaderModal: LoaderRecoveryModalInHistoryEditing; doUndo(index: number): Promise; } declare class TimeControl extends ControlBase { static defaultElementSelector: string; } declare class ButtonRecoveryControl extends ControlBase { static defaultElementSelector: string; } declare class ButtonRecoverySubmitControl extends ControlBase { static defaultElementSelector: string; } declare class UserName extends ControlBase { static defaultElementSelector: string; } declare class HistoryItemName extends ControlBase { static defaultElementSelector: string; } declare class LoaderRecoveryModalInHistoryEditing extends ControlBase { static defaultElementSelector: string; } //#endregion export { AttachmentFormContentControl, AttachmentFormUnit, AttachmentFormUnitBase, AttachmentPageActionsDropdownContent, AttachmentsItemControl, ButtonControl, CandyPageWithNavigationBase, CandySimplePageBase, CheckboxControl, ClickableAreaControl, ComboboxControl, ComboboxDropdownContent, CompoundControl, ConfirmMiniModalControl, ControlBase, ControlList, CrossFitTableControl, DatePickerControl, DropdownButtonControl, DropdownControl, DropdownMenuControl, EmbeddedLogControl, ErrorListControl, FileLoaderControl, FilterListControl, FormInFormControl, FufAndAttachmentsSuccessModalControl, FufAndAttachmentsUploadModalControl, FxInputControl, FxState, HistoryEditingWidgetControl, type ISearchContext, type ISelector, IconControl, type InnerHistoryEntry, InputControl, KladrControl, KladrModal, LabelControl, LinkControl, LoaderControl, MenuItemControl, ModalControl, ModalUnitBase, MultilineControl, MultilineFieldControl, NavigationPanel, PageActionsControl, PageLinkControl, PagerControl, PencilControl, PicklistControl, PicklistModalContent, PopupMenuControl, type PresentationContent, RadioControl, RadioGroupControl, ReactSelector, ReactUIComboBoxControl, ReactUIDatePicker, SelectAllCheckboxControl, SelectControl, StickyTableControl, Table2MultirowControl, TableCellPencilControl, TabsControl, TextAreaControl, TextControl, ToggleControl, TooltipContentBaseControl, TourControl, TourStepContentBase, UnitBase, UnitItemControl, UnitItemMultipleFlatControl, UnitList, UploadFilesModal, ap, control, createCandyUITest, createTest, defaultFormsClientInfo, delay, getCpuLimits, isRunningOnCI, parsePdf, reject };