File

operations/bulk-operations-service/bulk-operations-service.mock.ts

Index

Properties
Methods

Methods

createBulkOperation
createBulkOperation(bulkOperation: Partial)
Parameters :
Name Type Optional
bulkOperation Partial<IOperationBulk> No
Returns : any
createSingleOperation
createSingleOperation(operationToCreate)
Parameters :
Name Optional
operationToCreate No
Returns : {}
deleteBulkOperation
deleteBulkOperation(id: number)
Parameters :
Name Type Optional
id number No
Returns : any
getBulkOperationById
getBulkOperationById(id)
Parameters :
Name Optional
id No
Returns : any
getBulkOperations
getBulkOperations()
Returns : any
getBulkOperationTypeName
getBulkOperationTypeName(bulkOperation: Partial)
Parameters :
Name Type Optional
bulkOperation Partial<IOperationBulk> No
Returns : string
getBulkTypes
getBulkTypes()
Returns : {}
getManagedObject
getManagedObject(deeviceId: IdReference)
Parameters :
Name Type Optional
deeviceId IdReference No
Returns : any
getSingleOperationsByStatus
getSingleOperationsByStatus(status, bulkOperationId)
Parameters :
Name Optional
status No
bulkOperationId No
Returns : {}
hideNewBulkOperationModal
hideNewBulkOperationModal()
Returns : void
showNewBulkOperationModal
showNewBulkOperationModal()
Returns : void
updateBulkOperation
updateBulkOperation(bulkOperation: Partial)
Parameters :
Name Type Optional
bulkOperation Partial<IOperationBulk> No
Returns : any

Properties

mockBulkOperation
Type : IOperationBulk
Default value : ({ id: 138, operationPrototype: { c8y_SoftwareList: {} } } as unknown) as IOperationBulk
mockBulkOperations
Type : IResultList<IOperationBulk>
Default value : { data: [{}, {}] } as IResultList<IOperationBulk>
mockManagedObject
Type : IResult<IManagedObject>
Default value : ({ data: { id: '49803' } } as unknown) as IResult<IManagedObject>
mockOneBulkOperation
Type : IResult<IOperationBulk>
Default value : { data: this.mockBulkOperation, res: undefined }
mockOneSingleOperation
Type : IOperation
Default value : ({ id: '51134' } as unknown) as IOperation

results matching ""

    No results matching ""