Hierarchy

  • EntityFactory

Implemented by

Properties

Readonly Global

Global: Company<any, any>

Readonly System

System: SystemCollections<any>

Readonly adaptor

adaptor: Adaptor

Methods

ApplicationItem

ApplicationRef

  • Type parameters

    Parameters

    • ns: string
    • code: string
    • id: string

    Returns ApplicationItemRef<T, P>

CategoryRef

  • CategoryRef<C>(ns: string, code: string, field: string, id: string): CategoryItemRef<C>
  • Type parameters

    Parameters

    • ns: string
    • code: string
    • field: string
    • id: string

    Returns CategoryItemRef<C>

CurrentUser

FileRef

  • Parameters

    • id: string

    Returns FileItemRef

ImageRef

  • Parameters

    • id: string

    Returns ImageItemRef

OrganisationStructureItem

OrganisationStructureItemRef

ParamsItem

  • ParamsItem<T>(ns: string, code: string): ParamsItem<T>
  • Type parameters

    Parameters

    • ns: string
    • code: string

    Returns ParamsItem<T>

RefItem

  • RefItem(ns: string, code: string, id: string): RefItem
  • Parameters

    • ns: string
    • code: string
    • id: string

    Returns RefItem

ReplacementItem

TableItem

  • TableItem<T, C>(ns: string, code: string, field: Field<Type>, value: any): TTable<T, C>
  • Type parameters

    Parameters

    • ns: string
    • code: string
    • field: Field<Type>
    • value: any

    Returns TTable<T, C>

User

  • Parameters

    Returns UserItem

UserGroupItem

  • Parameters

    Returns UserGroupItem

UserGroupRef

  • Parameters

    • id: string

    Returns UserGroupItemRef

UserRef

  • Parameters

    • id: string

    Returns UserItemRef

addUserWithoutConfirmation

  • addUserWithoutConfirmation(namespace: string, user: any, auth: any): Promise<void>
  • Parameters

    • namespace: string
    • user: any
    • auth: any

    Returns Promise<void>

addVersion

  • addVersion(id: string, name: string, body: ArrayBuffer): Promise<void>
  • Parameters

    • id: string
    • name: string
    • body: ArrayBuffer

    Returns Promise<void>

addVersionFromLink

  • addVersionFromLink(id: string, name: string, url: string): Promise<void>
  • Parameters

    • id: string
    • name: string
    • url: string

    Returns Promise<void>

countItemsFilter

  • countItemsFilter(ns: string, code: string, filter: Filter): Promise<number>
  • Parameters

    • ns: string
    • code: string
    • filter: Filter

    Returns Promise<number>

createApplicationItem

  • createApplicationItem<T>(ns: string, code: string, data: T): Promise<T>
  • Type parameters

    • T

    Parameters

    • ns: string
    • code: string
    • data: T

    Returns Promise<T>

createFile

  • createFile(name: string, body: ArrayBuffer, persist?: undefined | false | true): Promise<FileItem>
  • Parameters

    • name: string
    • body: ArrayBuffer
    • Optional persist: undefined | false | true

    Returns Promise<FileItem>

createFromLink

  • createFromLink(name: string, url: string): Promise<FileItem>
  • Parameters

    • name: string
    • url: string

    Returns Promise<FileItem>

createImage

  • createImage(name: string, body: ArrayBuffer): Promise<ImageItem>
  • Parameters

    • name: string
    • body: ArrayBuffer

    Returns Promise<ImageItem>

createImageFromLink

  • createImageFromLink(name: string, url: string): Promise<ImageItem>
  • Parameters

    • name: string
    • url: string

    Returns Promise<ImageItem>

createReplacement

  • Parameters

    Returns Promise<void>

createUserGroupItem

deleteApplicationItem

  • deleteApplicationItem<T>(ns: string, code: string, id: string): Promise<T>
  • Type parameters

    • T

    Parameters

    • ns: string
    • code: string
    • id: string

    Returns Promise<T>

deleteRegisterApplicationItem

  • deleteRegisterApplicationItem(namespace: string, code: string, id: string, nomenclatureID: string): Promise<boolean>
  • Parameters

    • namespace: string
    • code: string
    • id: string
    • nomenclatureID: string

    Returns Promise<boolean>

deleteUserGroupItem

  • Parameters

    • id: string

    Returns Promise<UserGroupData>

getApplicationFields

  • getApplicationFields<T>(ns: string, code: string, fields: readonly Readonly<Field<any>>[]): object
  • Type parameters

    Parameters

    • ns: string
    • code: string
    • fields: readonly Readonly<Field<any>>[]

    Returns object

getApplicationItemPermissions

  • getApplicationItemPermissions(namespace: string, code: string, id: string, fields: object): Promise<TPermissions>
  • Parameters

    • namespace: string
    • code: string
    • id: string
    • fields: object
      • [code: string]: FieldType<any>

    Returns Promise<TPermissions>

getApplicationItemRegistrations

  • Parameters

    • namespace: string
    • code: string
    • id: string

    Returns Promise<ApplicationItemRegistration[]>

getApplicationItemSubscribers

  • getApplicationItemSubscribers(namespace: string, code: string, id: string): Promise<string[]>
  • Parameters

    • namespace: string
    • code: string
    • id: string

    Returns Promise<string[]>

getApplicationNomenclaturesWithDirName

  • getApplicationNomenclaturesWithDirName(ids: string[]): Promise<TNomenclature[]>
  • Parameters

    • ids: string[]

    Returns Promise<TNomenclature[]>

getApplicationPermissions

  • getApplicationPermissions(namespace: string, code: string, fields: object): Promise<TPermissionsSettings>
  • Parameters

    • namespace: string
    • code: string
    • fields: object
      • [code: string]: StaticFieldType<any>

    Returns Promise<TPermissionsSettings>

getApplicationSettings

  • getApplicationSettings(namespace: string, code: string): Promise<TSettings>
  • Parameters

    • namespace: string
    • code: string

    Returns Promise<TSettings>

getApprovalLists

  • getApprovalLists(namespace: string, code: string, id: string): Promise<BaseListData[]>
  • Parameters

    • namespace: string
    • code: string
    • id: string

    Returns Promise<BaseListData[]>

getCompanyTimezone

  • getCompanyTimezone(): TimezoneNames
  • Returns TimezoneNames

getDataSigns

  • getDataSigns(namespace: string, code: string, id: string): Promise<SignData[]>
  • Parameters

    • namespace: string
    • code: string
    • id: string

    Returns Promise<SignData[]>

getFakeFileItem

  • Parameters

    • id: string

    Returns FileItem

getFileItemPermissions

  • Parameters

    • id: string

    Returns Promise<TPermissions>

getInformLists

  • getInformLists(namespace: string, code: string, id: string): Promise<BaseListData[]>
  • Parameters

    • namespace: string
    • code: string
    • id: string

    Returns Promise<BaseListData[]>

getProductionScheduleGeneralSettings

getProductionScheduleSpecialDays

getProductionScheduleWorkingTime

getSignHistory

  • getSignHistory(namespace: string, code: string, id: string): Promise<EntityVersion[]>
  • Parameters

    • namespace: string
    • code: string
    • id: string

    Returns Promise<EntityVersion[]>

interruptProcessInstance

  • interruptProcessInstance(instanceId: string, comment: string): Promise<void>
  • Parameters

    • instanceId: string
    • comment: string

    Returns Promise<void>

productionScheduleCalcDateFromInterval

  • productionScheduleCalcDateFromInterval(from: TDatetime, minutes: number): Promise<TDatetime>
  • Parameters

    Returns Promise<TDatetime>

queryApplicationItemsByIDs

  • queryApplicationItemsByIDs<T, P>(ns: string, code: string, ids: string[], active: boolean): Promise<ApplicationItem<T, P>[]>
  • Type parameters

    Parameters

    • ns: string
    • code: string
    • ids: string[]
    • active: boolean

    Returns Promise<ApplicationItem<T, P>[]>

queryApplicationItemsFilter

  • queryApplicationItemsFilter<T, P>(ns: string, code: string, query: Query<T>): Promise<ApplicationItem<T, P>[]>
  • Type parameters

    Parameters

    • ns: string
    • code: string
    • query: Query<T>

    Returns Promise<ApplicationItem<T, P>[]>

queryCategoryItemsByIDs

  • queryCategoryItemsByIDs<C>(ns: string, code: string, field: string, ids: string[], active: boolean): Promise<CategoryItem<C>[]>
  • Type parameters

    Parameters

    • ns: string
    • code: string
    • field: string
    • ids: string[]
    • active: boolean

    Returns Promise<CategoryItem<C>[]>

queryFileItemsByIDs

  • queryFileItemsByIDs(ids: string[], active: boolean): Promise<FileItem[]>
  • Parameters

    • ids: string[]
    • active: boolean

    Returns Promise<FileItem[]>

queryFileItemsFilter

  • Parameters

    Returns Promise<FileItem[]>

queryImageItemsByIDs

  • queryImageItemsByIDs(ids: string[], active: boolean): Promise<ImageItem[]>
  • Parameters

    • ids: string[]
    • active: boolean

    Returns Promise<ImageItem[]>

queryOrganisationStructureItemsByIDs

  • Parameters

    • ids: string[]
    • active: boolean

    Returns Promise<OrganisationStructureItem[]>

queryOrganisationStructureItemsFilter

queryProcessInstanceItemsByIDs

  • queryProcessInstanceItemsByIDs(ns: string, code: string, active: boolean, ids: string[]): Promise<ProcessInstanceItem[]>
  • Parameters

    • ns: string
    • code: string
    • active: boolean
    • ids: string[]

    Returns Promise<ProcessInstanceItem[]>

queryProcessInstanceItemsFilter

queryProcessTaskItemsFilter

queryProcessesByIDs

  • queryProcessesByIDs(ids: string[]): Promise<Process[]>
  • Parameters

    • ids: string[]

    Returns Promise<Process[]>

queryStatusHistoryFilter

queryUserGroupItemsByIDs

  • queryUserGroupItemsByIDs(ids: string[], active: boolean): Promise<UserGroupItem[]>
  • Parameters

    • ids: string[]
    • active: boolean

    Returns Promise<UserGroupItem[]>

queryUserGroupItemsFilter

queryUserGroupParentsByID

  • queryUserGroupParentsByID(id: string): Promise<UserGroupItem[]>
  • Parameters

    • id: string

    Returns Promise<UserGroupItem[]>

queryUserItemsByIDs

  • queryUserItemsByIDs(ids: string[], active: boolean): Promise<UserItem[]>
  • Parameters

    • ids: string[]
    • active: boolean

    Returns Promise<UserItem[]>

queryUserItemsFilter

  • Parameters

    Returns Promise<UserItem[]>

registerApplicationItem

  • registerApplicationItem(namespace: string, code: string, id: string, nomenclatureID: string, nameReg: string): Promise<boolean>
  • Parameters

    • namespace: string
    • code: string
    • id: string
    • nomenclatureID: string
    • nameReg: string

    Returns Promise<boolean>

sendApplicationFeedMessage

  • sendApplicationFeedMessage(namespace: string, code: string, id: string, title: string, message: string): Promise<void>
  • Parameters

    • namespace: string
    • code: string
    • id: string
    • title: string
    • message: string

    Returns Promise<void>

setAccessToPortal

  • Parameters

    Returns Promise<void>

setApplicationItemPermissions

  • setApplicationItemPermissions(namespace: string, code: string, id: string, permissions: TPermissions): Promise<void>
  • Parameters

    • namespace: string
    • code: string
    • id: string
    • permissions: TPermissions

    Returns Promise<void>

setApplicationItemStatus

  • setApplicationItemStatus(namespace: string, code: string, id: string, status: any): Promise<any>
  • Parameters

    • namespace: string
    • code: string
    • id: string
    • status: any

    Returns Promise<any>

setApplicationItemSubscriber

  • setApplicationItemSubscriber(namespace: string, code: string, id: string, userID: string, type: "subscribe" | "unsubscribe"): Promise<void>
  • Parameters

    • namespace: string
    • code: string
    • id: string
    • userID: string
    • type: "subscribe" | "unsubscribe"

    Returns Promise<void>

setApplicationPermissions

  • setApplicationPermissions(namespace: string, code: string, permissions: TPermissionsSettings): Promise<void>
  • Parameters

    Returns Promise<void>

setFileItemSubscriber

  • setFileItemSubscriber(hash: string, userIds: string[], type: "subscribe" | "unsubscribe"): Promise<void>
  • Parameters

    • hash: string
    • userIds: string[]
    • type: "subscribe" | "unsubscribe"

    Returns Promise<void>

updateApplicationItem

  • updateApplicationItem<T>(ns: string, code: string, id: string, data: T): Promise<T>
  • Type parameters

    • T

    Parameters

    • ns: string
    • code: string
    • id: string
    • data: T

    Returns Promise<T>

updateOrganisationStructure

updateProcessInstanceResponsible

  • updateProcessInstanceResponsible(InstanceId: string, UserId: string, comment?: undefined | string): Promise<void>
  • Parameters

    • InstanceId: string
    • UserId: string
    • Optional comment: undefined | string

    Returns Promise<void>

updateUserGroupItem

uploadSign

  • uploadSign(namespace: string, code: string, id: string, updatedAt: TDatetime, sign: NewSign): Promise<boolean>
  • Parameters

    Returns Promise<boolean>

validateOrganisationStructure