backend/lib/seed/services/change-stream/change-stream.components.ts
2025-05-14 21:45:16 +02:00

67 lines
3.2 KiB
TypeScript

import { ObjectType, Field } from 'type-graphql';
import { registerEnumType } from 'type-graphql';
/*
███████╗███╗ ██╗██╗ ██╗███╗ ███╗
██╔════╝████╗ ██║██║ ██║████╗ ████║
█████╗ ██╔██╗ ██║██║ ██║██╔████╔██║
██╔══╝ ██║╚██╗██║██║ ██║██║╚██╔╝██║
███████╗██║ ╚████║╚██████╔╝██║ ╚═╝ ██║
╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝
*/
export enum StreamOperationType {
insert = 'insert',
delete = 'delete',
replace = 'replace',
update = 'update',
hook = 'hook',
}
registerEnumType(StreamOperationType, {
name: 'StreamOperationType',
});
export enum PostHookStatus {
new = 'new',
inProcess = 'inProcess',
completed = 'completed',
error = 'error',
noAction = 'noAction',
}
registerEnumType(PostHookStatus, {
name: 'PostHookStatus',
});
/*
██████╗ ██████╗ ███╗ ███╗██████╗ ██████╗ ███╗ ██╗███████╗███╗ ██╗████████╗███████╗
██╔════╝██╔═══██╗████╗ ████║██╔══██╗██╔═══██╗████╗ ██║██╔════╝████╗ ██║╚══██╔══╝██╔════╝
██║ ██║ ██║██╔████╔██║██████╔╝██║ ██║██╔██╗ ██║█████╗ ██╔██╗ ██║ ██║ ███████╗
██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║ ██║██║╚██╗██║██╔══╝ ██║╚██╗██║ ██║ ╚════██║
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ╚██████╔╝██║ ╚████║███████╗██║ ╚████║ ██║ ███████║
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚══════╝
*/
/*
* AUTH
*
*/
// @ObjectType()
// export class PostHookStatus {
// @Field()
// localId: string;
// @Field({ nullable: true })
// email?: string;
// @Field({ nullable: true })
// displayName?: string;
// @Field()
// idToken: string;
// @Field({ nullable: true })
// registered?: boolean;
// @Field()
// refreshToken: string;
// @Field()
// expiresIn: string;
// }