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(_deviceId: 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
|