ContractSchemeService

Hierarchy

  • ContractSchemeService

Methods

get

  • get(namespace: string, code: string): Promise<ContractScheme | undefined>
  • Retrieve contract information by code and workspace.

    Parameters

    • namespace: string
    • code: string

    Returns Promise<ContractScheme | undefined>

    Object with contract information.

    const appScheme = await  System.scheme.contract.get('crm', 'deals');
    

list

  • list(namespace: string): Promise<readonly BaseContractScheme[]>
  • Get list of contracts in workspace.

    Parameters

    • namespace: string

    Returns Promise<readonly BaseContractScheme[]>

    Array of objects containing contract information.

    const apps  = await System.scheme.contract.list('crm');