2021-05-12 06:35:00 +00:00
|
|
|
import { ValueOf } from 'type-fest';
|
2020-11-10 00:30:27 +00:00
|
|
|
|
|
|
|
export const GrpcRequestEventEnum = {
|
2020-12-17 11:38:21 +00:00
|
|
|
start: 'GRPC_START',
|
2020-11-10 00:30:27 +00:00
|
|
|
sendMessage: 'GRPC_SEND_MESSAGE',
|
|
|
|
commit: 'GRPC_COMMIT',
|
|
|
|
cancel: 'GRPC_CANCEL',
|
2020-11-16 22:01:50 +00:00
|
|
|
cancelMultiple: 'GRPC_CANCEL_MULTIPLE',
|
2021-05-12 06:35:00 +00:00
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type GrpcRequestEvent = ValueOf<typeof GrpcRequestEventEnum>;
|
2020-11-10 00:30:27 +00:00
|
|
|
|
|
|
|
export const GrpcResponseEventEnum = {
|
2020-11-11 22:44:03 +00:00
|
|
|
start: 'GRPC_START',
|
2020-11-10 00:30:27 +00:00
|
|
|
data: 'GRPC_DATA',
|
|
|
|
error: 'GRPC_ERROR',
|
|
|
|
end: 'GRPC_END',
|
2020-11-11 22:44:03 +00:00
|
|
|
status: 'GRPC_STATUS',
|
2021-05-12 06:35:00 +00:00
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type GrpcResponseEvent = ValueOf<typeof GrpcResponseEventEnum>;
|