export as namespace gpzuRest; declare function requireAll(r: any): any; /// export interface IAuthenticationRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export declare class AuthenticationRestServiceProvider implements IAuthenticationRestServiceProvider { root: string; $get: object; } export interface IAuthenticationRestService { newSession(model: ILoginModel): ng.IPromise; checkSession(): ng.IPromise; destroySession(): ng.IPromise; } export declare class AuthenticationRestService implements IAuthenticationRestService { private $http; private $q; private root; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); newSession(model: ILoginModel): ng.IPromise; checkSession(): ng.IPromise; destroySession(): ng.IPromise; } /// export interface IBrRequestsRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export declare class BrRequestsRestServiceProvider implements IBrRequestsRestServiceProvider { root: string; $get: object; } export interface IBrRequestsRestService { getRequests(reqNum: string): ng.IPromise; getFile(reqNum: string, reqType: string): ng.IPromise; sendRequest(data: IBrRequestPostData): ng.IPromise; } export declare class BrRequestsRestService implements IBrRequestsRestService { private $http; private $q; private root; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); getRequests(reqNum: string): ng.IPromise; getFile(reqNum: string, reqType: string): ng.IPromise; sendRequest(data: IBrRequestPostData): ng.IPromise; } /// export interface IEgipRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export declare class EgipRestServiceProvider implements IEgipRestServiceProvider { root: string; $get: object; } export interface IEgipRestService { insert(guid: string, contentType: string, attributes: IEgipAttribute[]): ng.IPromise; update(id: number, guid: string, contentType: string, attributes: IEgipAttribute[]): ng.IPromise; delete(id: string): ng.IPromise; updateAttributes(id: number, attributes: IEgipAttribute[]): ng.IPromise; findObjects(attributes: IEgipAttribute[]): ng.IPromise; findTerrytory(id: number): ng.IPromise; getIntersectionZones(id: number): ng.IPromise; getPoints(id: number): ng.IPromise; getRedLineIntersection(id: number): ng.IPromise; getTerProjects(id: number): ng.IPromise; getAttributes(id: number, attributes: IEgipAttribute[]): ng.IPromise; } export declare class EgipRestService implements IEgipRestService { private $http; private $q; private root; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); insert(guid: string, contentType: string, attributes: IEgipAttribute[]): ng.IPromise; update(id: number, guid: string, contentType: string, attributes: IEgipAttribute[]): ng.IPromise; delete(id: string): ng.IPromise; updateAttributes(id: number, attributes: IEgipAttribute[]): ng.IPromise; findObjects(attributes: IEgipAttribute[]): ng.IPromise; findTerrytory(id: number): ng.IPromise; getIntersectionZones(id: number): ng.IPromise; getPoints(id: number): ng.IPromise; getRedLineIntersection(id: number): ng.IPromise; getTerProjects(id: number): ng.IPromise; getAttributes(id: number, attributes: IEgipAttribute[]): ng.IPromise; private egipRequest(object); } /// export interface IGpzuDocumentRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export interface IGpzuDocumentRestService { issuedDocumentsCount(period: string): ng.IPromise; getDocument(id: string): ng.IPromise; saveDocument(id: string, formId: string, data: IPathValuePair[]): ng.IPromise; deleteDocument(id: string): ng.IPromise; planeDate(id: string): ng.IPromise; generateNumber(): ng.IPromise; genetareNumber2017(seqKey: string): ng.IPromise; getDocumentById(id: string): ng.IPromise; getDocumentByPaths(id: string, paths: string[]): ng.IPromise; annulOrder(id: string): ng.IPromise; log(id: string): ng.IPromise; logFull(id: string): ng.IPromise; } export declare class GpzuDocumentRestServiceProvider implements IGpzuDocumentRestServiceProvider { root: string; $get: object; } export declare class GpzuDocumentRestService implements IGpzuDocumentRestService { private $http; private $q; private root; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); issuedDocumentsCount(period: string): ng.IPromise; getDocument(id: string): ng.IPromise; saveDocument(documentId: string, formId: string, data: IPathValuePair[]): ng.IPromise; deleteDocument(id: string): ng.IPromise; planeDate(id: string): ng.IPromise; generateNumber(): ng.IPromise; genetareNumber2017(seqKey: string): ng.IPromise; getDocumentById(id: string): ng.IPromise; getDocumentByPaths(id: string, paths: string[]): ng.IPromise; annulOrder(id: string): ng.IPromise; log(id: string): ng.IPromise; logFull(id: string): ng.IPromise; } /// export interface IGpzuRequestRestService { getRequestById(id: string): ng.IPromise; generateGpzuFromRequest(id: string): ng.IPromise; patchRequest(id: string, data: any[]): ng.IPromise; } export interface IGpzuRequestRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export declare class GpzuRequestRestServiceProvider implements IGpzuRequestRestServiceProvider { root: string; $get: object; } export declare class GpzuRequestRestService implements IGpzuRequestRestService { private $http; private $q; private root; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); getRequestById(id: string): ng.IPromise; generateGpzuFromRequest(id: string): ng.IPromise; patchRequest(id: string, data: any[]): ng.IPromise; } /// export interface IMorpherRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export declare class MorpherRestServiceProvider implements IMorpherRestServiceProvider { root: string; $get: object; } export interface IMorpherRestService { declin(data: IMorpherPostData): ng.IPromise; spellNumberUnit(data: IMorpherSpellNumberUnitPostData): ng.IPromise; } export declare class MorpherRestService implements IMorpherRestService { private $http; private $q; private root; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); declin(data: IMorpherPostData): ng.IPromise; spellNumberUnit(data: IMorpherSpellNumberUnitPostData): ng.IPromise; } /// export interface IOgdRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export declare class OgdRestServiceProvider implements IOgdRestServiceProvider { root: string; $get: object; } export interface IOgdRestService { register(reqNum: string): ng.IPromise; } export declare class OgdRestService implements IOgdRestService { private $http; private $q; private root; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); register(reqNum: string): ng.IPromise; } /// export interface IOrderRestServiceProvider extends ng.IServiceProvider { root: string; rootBus: string; $get: object; } export declare class OrderRestServiceProvider implements IOrderRestServiceProvider { root: string; rootBus: string; $get: object; } export interface IOrderRestService { register(reqNum: string): ng.IPromise; cancel(documentJson: string, documentType: string, systemId: string): ng.IPromise; } export declare class OrderRestService implements IOrderRestService { private $http; private $q; private root; private rootBus; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string, rootBus: string); register(reqNum: string): ng.IPromise; cancel(documentJson: string, documentType: string, systemId: string): ng.IPromise; } /// export interface IShowCaseRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export declare class ShowCaseRestServiceProvider implements IShowCaseRestServiceProvider { root: string; $get: object; } export interface IShowCaseRestService { get(name: string, request: IListRequest): ng.IPromise>; } export declare class ShowCaseRestService implements IShowCaseRestService { private $http; private $q; private root; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); get(name: string, request: IListRequest): ng.IPromise>; } /// export interface ISignRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export declare class SignRestServiceProvider implements ISignRestServiceProvider { root: string; $get: object; } export interface ISignRestService { sign(guid: string): ng.IPromise; } export declare class SignRestService implements ISignRestService { private $http; private $q; private root; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); sign(guid: string): ng.IPromise; } /// export interface ISSMKARestServiceProvider extends ng.IServiceProvider { root: string; rootSSMKA: string; $get: object; } export declare class SSMKARestServiceProvider implements ISSMKARestServiceProvider { root: string; rootSSMKA: string; $get: object; } export interface ISSMKARestService { getQuestionID(reqNum: string): ng.IPromise; sendQuestion(id: string, confirm?: boolean): ng.IPromise; } export declare class SSMKARestService implements ISSMKARestService { private $http; private $q; private root; private rootSSMKA; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string, rootSSMKA: string); getQuestionID(reqNum: string): ng.IPromise; sendQuestion(id: string, confirm?: boolean): ng.IPromise; } /// export interface IUsersRestServiceProvider extends ng.IServiceProvider { root: string; $get: object; } export declare class UsersRestServiceProvider implements IUsersRestServiceProvider { root: string; $get: object; } export interface IUsersRestService { changeOfExecutors(reqNum: string, data: IChangeOfResponsibleExecutorsPostData[]): ng.IPromise; assignExecutorForTheSignLetterTask(reqNum: string, groupName: string, accountName: string): ng.IPromise; getAllExecutors(reqNum: string): ng.IPromise; getApprovalUsers(department: string, isSecret: boolean, isCityOrder: boolean): ng.IPromise; getUser(accountName: string): ng.IPromise; getUsers(data?: IGetUsersPostData): ng.IPromise; getDepartments(): ng.IPromise; } export declare class UsersRestService implements IUsersRestService { private $http; private $q; private root; static $inject: string[]; constructor($http: ng.IHttpService, $q: ng.IQService, root: string); changeOfExecutors(reqNum: string, data: IChangeOfResponsibleExecutorsPostData[]): ng.IPromise; assignExecutorForTheSignLetterTask(reqNum: string, groupName: string, accountName: string): ng.IPromise; getAllExecutors(reqNum: string): ng.IPromise; getApprovalUsers(department: string, isSecret: boolean, isCityOrder: boolean): ng.IPromise; getUser(accountName: string): ng.IPromise; getUsers(data?: IGetUsersPostData): ng.IPromise; getDepartments(): ng.IPromise; } export interface IAuthority { authority: string; } export interface ILoginModel { login: string; password: string; } export interface IPrincipal { authorities: IAuthority[]; } export interface ISession { accountName: string; authenticated: boolean; displayName: string; distinguishedName: string; name: string; photoURL: string; principal: IPrincipal; } export interface IBrRequestModel { codeDoc: string; date: number; params: string; requestId: number; responseDate: number; responseFileType: IFile[]; responseResultCode: string; responseStatusNote: string; typeCode: string; typeName: string; subject: string; statusSend: string; fio: string; fileType: IFile; accountName: string; id: number; } export interface IBrRequestPostData { reqNum: string; requestType: string; accountName: string; fio: string; params: IBrRequestPostDataParam[]; } export interface IBrRequestPostDataParam { code: string; name: string; value: string; type: string; show: number; } export interface IFile { idFile?: string; nameFile?: string; sizeFile?: number; signed?: boolean; dateFile?: number; typeFile?: string; mimeType?: string; } export interface ISendBrRequestResponse { success: boolean; error: string; } export interface IActivityArray { data: T[]; total: number; start: number; sort: string; order: string; size: number; } export interface IActivityFormPropertyEnimValue { id: string; name: string; } export interface IActivityFormProperty { id: string; name: string; type: string; value: string; readable: boolean; writable: boolean; required: boolean; datePattern: string; enumValues: IActivityFormPropertyEnimValue[]; } export interface IActivityFormData { formKey: string; deploymentId: string; processDefinitionId: string; processDefinitionUrl: string; taskId: string; taskUrl: string; formProperties: IActivityFormProperty[]; } export interface IGetFormDataParams { taskId?: string; processDefinitionId?: string; } export interface IGetProcessDefinitionsParams { version?: number; name?: string; nameLike?: string; key?: string; keyLike?: string; resourceName?: string; resourceNameLike?: string; category?: string; categoryLike?: string; categoryNotEquals?: string; deploymentId?: string; startableByUser?: string; latest?: boolean; suspended?: boolean; sort?: string; size?: number; } export interface IGetTasksHistoryPostData { processVariables?: IProcessVariable[]; size?: number; includeProcessVariables?: boolean; taskAssignee?: string; processDefinitionKeyLike?: string; taskDefinitionKeyLike?: string; taskDefinitionKey?: string; processDefinitionKey?: string; } export interface IGetTasksParams { candidateOrAssigned?: string; includeProcessVariables?: boolean; order?: string; processDefinitionKeyLike?: string; size?: number; sort?: string; } export interface IHistoricProcessInstance { businessKey: string; deleteReason: string; durationInMillis: number; endActivityId: string; endTime: string; id: string; processDefinitionId: string; processDefinitionUrl: string; startActivityId: string; startTime: string; startUserId: string; superProcessInstanceId: string; tenantId: string; url: string; variables: IProcessVariable[]; } export interface IProcessDefinition { id: string; url: string; key: string; version: string; name: string; description: string; tenantId: string; deploymentId: string; deploymentUrl: string; resource: string; diagramResource: string; category: string; graphicalNotationDefined: boolean; suspended: boolean; startFormDefined: boolean; } export interface IProcessInitPostData { processDefinitionId: string; variables: ITaskVariable[]; } export interface IProcessInstance { id: string; suspended: boolean; } export interface IProcessVariable { name?: string; value?: string | number | boolean; operation?: string; type?: string; } export interface ITask { assignee: string; createTime: Date; delegationState: string; description: string; dueDate: Date; execution: string; id: string; name: string; owner: string; parentTask: string; priority: number; processDefinition: string; processInstance: string; suspended: boolean; taskDefinitionKey: string; url: string; tenantId: string; formKey: string; variables: ITaskVariable[]; } export interface ITaskCandidate { group: string; type: string; url: string; user: string; } export interface ITaskHistoryVar { name: string; variableScope: string; value: string | number | boolean; } export interface ITaskHistory { id: string; processDefinitionId: string; processDefinitionUrl: string; processInstanceId: string; processInstanceUrl: string; executionId: string; name: string; description: string; deleteReason: string; owner: string; assignee: string; startTime: string; endTime: string; durationInMillis: number; workTimeInMillis: number; claimTime: string; taskDefinitionKey: string; formKey: string; priority: number; dueDate: string; parentTaskId: string; url: string; taskVariables: ITaskHistoryVar[]; processVariables: ITaskHistoryVar[]; tenantId: string; } export interface ITaskVariable { name?: string; value?: string | number | boolean; scope?: string; type?: string; } export interface IUpdateTaskPutData { assignee?: string; delegationState?: string; description?: string; dueDate?: Date; name?: string; owner?: string; parentTaskId?: string; priority?: number; } export interface IConfigOptionsModel { parentFolderGuid: string; gpzuFolderClass: string; sppKoefDefault: number; sppKoefs: ISppKoeff[]; timestampServerAddress: string; } export interface IConfigTaskDescription { description: string; } export interface IConfigVersion { version: string; } export interface ISppKoeff { fno: string; koef: number; } export interface IEgipAttribute { name: string; value?: any; } export interface IGenerateNumberResponse { number: string; } export interface IPathValuePair { path: string; value: any; } export interface IPlaneDateResponse { date: number; } export interface IMorpherPostData { phrase: string; toCase: string; } export interface IMorpherResult { phrase: string; parsed: boolean; } export interface IMorpherSpellNumberUnitPostData { number: string; numberInWords: boolean; toCase: string; unit: string; } export declare class MorpherToCase { static I: string; static R: string; static D: string; static V: string; static T: string; static P: string; } export interface ICreateFolderPostData { folderName: string; parentGuid?: string; folderType: string; folderAttrs: IFolderAttr[]; } export interface ICreateFolderResult { guid: string; } export interface IFileInFolderInfo { dateCreated: number; dateLastModified: number; fileAttrs: IFolderAttr[]; fileName: string; fileSize: number; fileType: string; fileTypeRu: string; folderGuid: string; hasWarnings: boolean; mimeType: string; objectGuid: string; versionSeriesGuid: string; } export interface IFolderAttr { attrName: string; attrNameRu?: string; attrValues: string[]; } export interface IFolderInfo { path: string; name: string; guid: string; attrs: IFolderAttr[]; files: IFileInFolderInfo[]; } export interface IGetFileHashResult { hash: string; } export interface IUpdateFolderPostData { folderGuid: string; folderAttrs?: IFolderAttr[]; folderName?: string; } export interface IUpdateFolderResult { isComplited: boolean; } export interface IUploadFileResult { guid: string; } export interface IVerifyResult { errorMessage: string; signaturesInfo: IVerifySignatureInfo[]; success: boolean; } export interface IVerifySignatureInfo { dateSign: string; algorithm: string; dateFrom: string; dateTo: string; issuer: string; serialNumber: string; subject: string; version: string; } export declare enum ArrayAttr { NotArray = 0, Array = 1, } export declare enum AttrDeleted { NotDeleted = 0, Deleted = 1, } export declare enum AttrRequired { NotRequired = 0, Required = 1, } export declare enum DictDeleted { NotDeleted = 0, Deleted = 1, } export declare enum HierarchyDict { linear = 0, tree = 1, } export interface IDelegatedTask { name: string; delegationRule: IDelegationRule; } export interface IDelegationRule { id: number; fromUser: string; toUser: string; startDate: number; endDate: number; systemPrefix: string; } export interface INSIDict { nick: string; name: string; hierarchyDict: HierarchyDict; deleted: DictDeleted; sysName: string; metaAttributes: INSIMetaAttr[]; elements: INSIElement[]; } export interface INSIDictWrapper { dict: INSIDict; } export interface INSIElement { id: string; dateCreate: string; deleted: AttrDeleted; dateDeleted: number; note: string; sortValue: number; parentId: string; values: INSIValue[]; } export interface INSIMetaAttr { nick: string; name: string; typeAttr: string; nickDictLink: string; arrayAttr: ArrayAttr; required: AttrRequired; deleted: AttrDeleted; note: string; orders: number; } export interface INSIPostData { nickAttr: string; values: string[]; } export declare class NSIPostData implements INSIPostData { nickAttr: string; values: string[]; constructor(nickAttr: string, values: string[]); } export interface INSIValue { id: string; nick: string; valueAttr: string; deleted: AttrDeleted; dateDeleted: number; orders: number; } export interface IRegisterOrderResponse { registered: boolean; } export interface IGenerateGpzuResponse { number: number; } export interface IGetQuestionIDResponse { id: string; } export interface ISendQuestionResponse { sended: boolean; } export interface IColumnData { searchColumn: string; searchType: string; searchValue: string | string[]; } export declare class ColumnData implements IColumnData { searchType: string; searchValue: string | string[]; searchColumn: string; constructor(searchType: string, searchColumn: string, searchValue: string | string[]); } export interface IListRequest { columns: IColumnData[]; order: IOrderData[]; start: number; length: number; } export interface IListResponse { recordsTotal: number; recordsFiltered: number; data: T[]; } export interface IOrderData { column: string; dir: string; } export interface IApprovalItem { onStep: number; loginNames: string[]; approvalTypeCode: string; } export interface IApprovalResponse { approvalsList: IApprovalItem[]; approvalTypeDict: IApprovalType[]; approveeDict: IApprovee[]; } export interface IApprovalType { approvalTypeCode: string; approvalType: string; approvalDuration: string; } export interface IApprovee { loginName: string; fioShort: string; iofShort: string; fioFull: string; posts: string[]; error: string; } export interface IAssignExecutorSignLetterTaskResponse { result: boolean; } export interface IChangeOfResponsibleExecutorsPostData { role: string; changeUserFrom: string; changeUserTo: string; } export interface IDepartment { name: string; description: string; } export interface IGetUsersPostData { department?: string[]; group?: string[]; fio?: string; } export interface IUser { accountName: string; displayName: string; photoURL: string; distinguishedName: string; name: string; authenticated: boolean; principal: string; } export interface IWorker { groupCode: string; assignee: string; } export interface ISaveGpzuDocumentDataBuilder { build(doc: any, elementId: string, pathStart?: RegExp): IPathValuePair[]; } export declare class SaveGpzuDocumentDataBuilder implements ISaveGpzuDocumentDataBuilder { build(doc: any, elementId: string, pathStart?: RegExp): IPathValuePair[]; private getJsonValueByPath(json, path); }