Interface to perform SETUP Rest API operations.

interface DominoSetupRestSession {
    createUpdateListView: (
        dataSource: string,
        listView: ListViewBody,
        designName: string,
        options?: DesignOptions,
    ) => Promise<CreateUpdateListResponse>;
    createUpdateScope: (
        scope: ScopeJSON | DominoRestScope,
    ) => Promise<DominoScope>;
    deleteScope: (scopeName: string) => Promise<DominoScope>;
    dominoAccess: DominoRestAccess;
    dominoConnector: DominoRestConnector;
    getListView: (
        dataSource: string,
        designName: string,
        options?: DesignOptions,
    ) => Promise<GetListViewDesignJSON>;
    getScope: (scopeName: string) => Promise<DominoScope>;
    getScopes: () => Promise<DominoScope[]>;
}

Implemented by

Properties

createUpdateListView: (
    dataSource: string,
    listView: ListViewBody,
    designName: string,
    options?: DesignOptions,
) => Promise<CreateUpdateListResponse>

Create or update Domino design view based on simplified JSON.

Type declaration

an error if given scope name is empty.

an error if given design name is empty.

createUpdateScope: (scope: ScopeJSON | DominoRestScope) => Promise<DominoScope>

Create a scope on the server, otherwise, update it if it already exists.

Type declaration

deleteScope: (scopeName: string) => Promise<DominoScope>

Delete a scope on the server.

Type declaration

    • (scopeName: string): Promise<DominoScope>
    • Parameters

      • scopeName: string

        the name of scope to be deleted

      Returns Promise<DominoScope>

      A promise that resolves to the deleted scope.

an error if given scope name is empty.

dominoAccess: DominoRestAccess

Provides access to Domino REST API server.

dominoConnector: DominoRestConnector

Provides accessible operations and its required parameters.

getListView: (
    dataSource: string,
    designName: string,
    options?: DesignOptions,
) => Promise<GetListViewDesignJSON>

Retrieve individual design element (view) for a database.

Type declaration

an error if given scope name is empty.

an error if given design name is empty.

getScope: (scopeName: string) => Promise<DominoScope>

Retrieves rest configuration from the server.

Type declaration

    • (scopeName: string): Promise<DominoScope>
    • Parameters

      • scopeName: string

        the name of scope to be retrieved

      Returns Promise<DominoScope>

      a promise that resolves to the fetched scope.

an error if given scope name is empty.

getScopes: () => Promise<DominoScope[]>

Get all of the scopes on the server.

Type declaration

    • (): Promise<DominoScope[]>
    • Returns Promise<DominoScope[]>

      a promise that resolves to an array of domino scopes.