refactor: collection constants

This commit is contained in:
Ben Allfree 2023-06-22 03:46:57 -07:00
parent 8aade62c47
commit dc85238a9a
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@ import { BaseFields, RecordId, Seconds, Subdomain, UserId } from './types'
export type VersionId = string
export const INSTANCE_COLLECTION = 'instances'
export enum InstanceStatus {
Unknown = '',
Idle = 'idle',

View File

@ -1,5 +1,7 @@
import { BaseFields, IsoDate, RecordId } from './types'
export const INVOCATION_COLLECTION = 'invocations'
export type InvocationFields = BaseFields & {
instanceId: RecordId
startedAt: IsoDate