Class Elements

Constructors

  • Parameters

    Returns Elements

Properties

api: Api

Methods

  • Parameters

    • type: string
    • hash: string

    Returns Promise<void>

  • Parameters

    • type: string
    • hash: string
    • organization: string
    • attribute: string
    • fileHash: string
    • Optionalmethod: "delete" | "post"

    Returns Promise<void>

  • Parameters

    • root: string
    • organization: string
    • OptionalnewParent: string
    • OptionalcloneConfig: CloneConfig
    • OptionalmaxDepth: number

    Returns Promise<ApiResponse<void, void>>

  • Parameters

    • newParentType: string
    • newParentHash: string
    • copiedHash: string

    Returns Promise<
        ApiResponse<
            { element: { hash: string }; links: RestApiLink[] },
            { element: { hash: string }; links: RestApiLink[] },
        >,
    >

  • Parameters

    • type: string
    • operations: Operation[]
    • organization: string
    • Optionalparent: string
    • OptionalqueryParams: Record<string, unknown>

    Returns Promise<
        ApiResponse<
            { element: { hash: string } },
            { element: { hash: string } },
        >,
    >

  • Parameters

    • url: string

    Returns Promise<undefined | null | string>

  • Parameters

    • organization: string
    • right: string = 'read'
    • page: number = 1

    Returns Promise<undefined | ElementTypePrivilegesList>

  • Parameters

    • organizationId: string
    • page: number = 1

    Returns Promise<ElementType[]>

  • Parameters

    • organization: string
    • type: string

    Returns Promise<ApiResponse<ElementPrivilegesResponse, ElementPrivilegesResponse>>

  • Parameters

    • hash: string
    • type: string = '_TYPE_PLACEHOLDER'
    • OptionaluseCache: boolean
    • Optionalparams: Record<string, unknown>

    Returns Promise<undefined | { element: ElementData }>

  • Parameters

    • elementHash: string
    • organizationId: string
    • Optionalurl: string

    Returns Promise<ApiResponse<void>>

  • Parameters

    • type: string
    • hash: string
    • operations: Operation[]
    • organization: string
    • OptionalqueryParams: Record<string, unknown>

    Returns Promise<ApiResponse<void>>

  • Parameters

    • type: string
    • hash: string
    • parentHash: string

    Returns Promise<ApiResponse<void>>

  • Parameters

    • type: string
    • hash: string

    Returns Promise<void>