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[]>;
}

Type declaration

  • createServiceExportTemplate:function
  • deleteFullService:function
    • Deletes the specified service

      Parameters

      • serviceId: string

        The service to delete

      • Optional globalConfig: boolean

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

      Returns Promise<AmServiceSkeleton>

  • deleteFullServices:function
    • Deletes all services

      Parameters

      • Optional globalConfig: boolean

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

      Returns Promise<AmServiceSkeleton[]>

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

      Parameters

      • serviceId: string

        service id/name

      • Optional globalConfig: 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.

  • exportServices:function
  • getFullServices:function
    • Get all services including their descendents.

      Parameters

      • Optional globalConfig: 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

  • getListOfServices:function
    • Get list of services

      Parameters

      • Optional globalConfig: boolean

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

      Returns Promise<AmServiceSkeleton[]>

  • importService:function
  • importServices:function