From d4d17ae987f6734ba1db30c4f17669bf9f70f162 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Thu, 10 Jul 2025 00:43:33 +0200 Subject: [PATCH] Update types with new statuses --- src/lib/pbtypes.ts | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/lib/pbtypes.ts b/src/lib/pbtypes.ts index 5351954..58e5ba2 100644 --- a/src/lib/pbtypes.ts +++ b/src/lib/pbtypes.ts @@ -12,7 +12,7 @@ export enum Collections { Otps = "_otps", Superusers = "_superusers", IndBillitem = "ind_billItem", - IndFacility = "ind_facility", + IndChar = "ind_char", IndJob = "ind_job", IndTransaction = "ind_transaction", Regionview = "regionview", @@ -107,10 +107,9 @@ export type IndBillitemRecord = { } export type IndBillitemRecordNoId = Omit -export type IndFacilityRecord = { +export type IndCharRecord = { created?: IsoDateString id: string - location: string name: string updated?: IsoDateString } @@ -123,9 +122,14 @@ export enum IndJobStatusOptions { "Selling" = "Selling", "Closed" = "Closed", "Tracked" = "Tracked", + "Staging" = "Staging", + "Inbound" = "Inbound", + "Outbound" = "Outbound", + "Delivered" = "Delivered", } export type IndJobRecord = { billOfMaterials?: RecordIdString[] + character?: RecordIdString consumedMaterials?: RecordIdString[] created?: IsoDateString expenditures?: RecordIdString[] @@ -138,6 +142,7 @@ export type IndJobRecord = { produced?: number projectedCost?: number projectedRevenue?: number + runtime?: number saleEnd?: IsoDateString saleStart?: IsoDateString status: IndJobStatusOptions @@ -222,7 +227,7 @@ export type MfasResponse = Required & BaseSystemF export type OtpsResponse = Required & BaseSystemFields export type SuperusersResponse = Required & AuthSystemFields export type IndBillitemResponse = Required & BaseSystemFields -export type IndFacilityResponse = Required & BaseSystemFields +export type IndCharResponse = Required & BaseSystemFields export type IndJobResponse = Required & BaseSystemFields export type IndTransactionResponse = Required & BaseSystemFields export type RegionviewResponse = Required & BaseSystemFields @@ -240,7 +245,7 @@ export type CollectionRecords = { _otps: OtpsRecord _superusers: SuperusersRecord ind_billItem: IndBillitemRecord - ind_facility: IndFacilityRecord + ind_char: IndCharRecord ind_job: IndJobRecord ind_transaction: IndTransactionRecord regionview: RegionviewRecord @@ -257,7 +262,7 @@ export type CollectionResponses = { _otps: OtpsResponse _superusers: SuperusersResponse ind_billItem: IndBillitemResponse - ind_facility: IndFacilityResponse + ind_char: IndCharResponse ind_job: IndJobResponse ind_transaction: IndTransactionResponse regionview: RegionviewResponse @@ -277,7 +282,7 @@ export type TypedPocketBase = PocketBase & { collection(idOrName: '_otps'): RecordService collection(idOrName: '_superusers'): RecordService collection(idOrName: 'ind_billItem'): RecordService - collection(idOrName: 'ind_facility'): RecordService + collection(idOrName: 'ind_char'): RecordService collection(idOrName: 'ind_job'): RecordService collection(idOrName: 'ind_transaction'): RecordService collection(idOrName: 'regionview'): RecordService