operations/bulk-operations-service/bulk-operations-service.mock.ts
Properties |
Methods |
createBulkOperation | ||||||
createBulkOperation(bulkOperation: Partial
|
||||||
Parameters :
Returns :
any
|
createSingleOperation | ||||
createSingleOperation(operationToCreate)
|
||||
Parameters :
Returns :
{}
|
deleteBulkOperation | ||||||
deleteBulkOperation(id: number)
|
||||||
Parameters :
Returns :
any
|
getBulkOperationById | ||||
getBulkOperationById(id)
|
||||
Parameters :
Returns :
any
|
getBulkOperations |
getBulkOperations()
|
Returns :
any
|
getBulkOperationTypeName | ||||||
getBulkOperationTypeName(bulkOperation: Partial
|
||||||
Parameters :
Returns :
string
|
getBulkTypes |
getBulkTypes()
|
Returns :
{}
|
getManagedObject | ||||||
getManagedObject(deeviceId: IdReference)
|
||||||
Parameters :
Returns :
any
|
getSingleOperationsByStatus | ||||||
getSingleOperationsByStatus(status, bulkOperationId)
|
||||||
Parameters :
Returns :
{}
|
hideNewBulkOperationModal |
hideNewBulkOperationModal()
|
Returns :
void
|
showNewBulkOperationModal |
showNewBulkOperationModal()
|
Returns :
void
|
updateBulkOperation | ||||||
updateBulkOperation(bulkOperation: Partial
|
||||||
Parameters :
Returns :
any
|
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
|