Interface IFutureContainerModelOptions

eslint-disable-next-line @typescript-eslint/no-empty-interface

interface IFutureContainerModelOptions {
    deleteFuture?: ((groupId) => Promise<undefined | KosServiceResponse<unknown>>);
    addFuture?: ((future) => Promise<undefined | KosServiceResponse<any>>);
}

Hierarchy

  • Partial<IFutureContainerModelOptionsActions>
    • IFutureContainerModelOptions

Service

deleteFuture?: ((groupId) => Promise<undefined | KosServiceResponse<unknown>>)

Service to delete an FutureModel from the backend.

Type declaration

Remarks

it is expected that the response will not provide any additional data and the system should only assume that a successful response means that the request was accepted by the backend. Successful deletion of the model will be broadcast via the appropriate Event Topic.

Returns

  • a Promise that resolves to an empty KosServiceResponse
addFuture?: ((future) => Promise<undefined | KosServiceResponse<any>>)

Service to add an FutureModel to the backend.

Type declaration

Remarks

it is expected that the response will not provide any additional data and the system should only assume that a successful response means that the request was accepted by the backend. Successful addition of the model will be broadcast via the appropriate Event Topic.

Returns

  • a Promise that resolves to an empty KosServiceResponse