Frodo Library - v4.0.0-10
    Preparing search index...

    Type Alias Service

    type Service = {
        createServiceExportTemplate(): ServiceExportInterface;
        deleteFullService(
            serviceId: string,
            globalConfig?: boolean,
        ): Promise<AmServiceSkeleton>;
        deleteFullServices(globalConfig?: boolean): Promise<AmServiceSkeleton[]>;
        exportService(
            serviceId: string,
            globalConfig?: boolean,
        ): Promise<ServiceExportInterface>;
        exportServices(globalConfig?: boolean): Promise<ServiceExportInterface>;
        getFullServices(globalConfig?: boolean): Promise<FullService[]>;
        getListOfServices(globalConfig?: boolean): Promise<AmServiceSkeleton[]>;
        importService(
            serviceId: string,
            importData: ServiceExportInterface,
            options: ServiceImportOptions,
        ): Promise<AmServiceSkeleton>;
        importServices(
            importData: ServiceExportInterface,
            options: ServiceImportOptions,
        ): Promise<AmServiceSkeleton[]>;
    }
    Index

    Methods

    • Deletes the specified service

      Parameters

      • serviceId: string

        The service to delete

      • OptionalglobalConfig: boolean

        true if the global service is the target of the operation, false otherwise. Default: false.

      Returns Promise<AmServiceSkeleton>

    • Deletes all services

      Parameters

      • OptionalglobalConfig: boolean

        true if the global service is the target of the operation, false otherwise. Default: false.

      Returns Promise<AmServiceSkeleton[]>

    • Export service. The response can be saved to file as is.

      Parameters

      • serviceId: string

        service id/name

      • OptionalglobalConfig: boolean

        true if the global service is the target of the operation, false otherwise. Default: false.

      Returns Promise<ServiceExportInterface>

      Promise resolving to a ServiceExportInterface object.

    • Get all services including their descendents.

      Parameters

      • OptionalglobalConfig: boolean

        true if the global service is the target of the operation, false otherwise. Default: false.

      Returns Promise<FullService[]>

      Promise resolving to an array of services with their descendants

    • Get list of services

      Parameters

      • OptionalglobalConfig: boolean

        true if the list of global services is requested, false otherwise. Default: false.

      Returns Promise<AmServiceSkeleton[]>