Update types with new statuses
This commit is contained in:
@@ -12,7 +12,7 @@ export enum Collections {
|
|||||||
Otps = "_otps",
|
Otps = "_otps",
|
||||||
Superusers = "_superusers",
|
Superusers = "_superusers",
|
||||||
IndBillitem = "ind_billItem",
|
IndBillitem = "ind_billItem",
|
||||||
IndFacility = "ind_facility",
|
IndChar = "ind_char",
|
||||||
IndJob = "ind_job",
|
IndJob = "ind_job",
|
||||||
IndTransaction = "ind_transaction",
|
IndTransaction = "ind_transaction",
|
||||||
Regionview = "regionview",
|
Regionview = "regionview",
|
||||||
@@ -107,10 +107,9 @@ export type IndBillitemRecord = {
|
|||||||
}
|
}
|
||||||
export type IndBillitemRecordNoId = Omit<IndBillitemRecord, 'id' | 'created' | 'updated'>
|
export type IndBillitemRecordNoId = Omit<IndBillitemRecord, 'id' | 'created' | 'updated'>
|
||||||
|
|
||||||
export type IndFacilityRecord = {
|
export type IndCharRecord = {
|
||||||
created?: IsoDateString
|
created?: IsoDateString
|
||||||
id: string
|
id: string
|
||||||
location: string
|
|
||||||
name: string
|
name: string
|
||||||
updated?: IsoDateString
|
updated?: IsoDateString
|
||||||
}
|
}
|
||||||
@@ -123,9 +122,14 @@ export enum IndJobStatusOptions {
|
|||||||
"Selling" = "Selling",
|
"Selling" = "Selling",
|
||||||
"Closed" = "Closed",
|
"Closed" = "Closed",
|
||||||
"Tracked" = "Tracked",
|
"Tracked" = "Tracked",
|
||||||
|
"Staging" = "Staging",
|
||||||
|
"Inbound" = "Inbound",
|
||||||
|
"Outbound" = "Outbound",
|
||||||
|
"Delivered" = "Delivered",
|
||||||
}
|
}
|
||||||
export type IndJobRecord = {
|
export type IndJobRecord = {
|
||||||
billOfMaterials?: RecordIdString[]
|
billOfMaterials?: RecordIdString[]
|
||||||
|
character?: RecordIdString
|
||||||
consumedMaterials?: RecordIdString[]
|
consumedMaterials?: RecordIdString[]
|
||||||
created?: IsoDateString
|
created?: IsoDateString
|
||||||
expenditures?: RecordIdString[]
|
expenditures?: RecordIdString[]
|
||||||
@@ -138,6 +142,7 @@ export type IndJobRecord = {
|
|||||||
produced?: number
|
produced?: number
|
||||||
projectedCost?: number
|
projectedCost?: number
|
||||||
projectedRevenue?: number
|
projectedRevenue?: number
|
||||||
|
runtime?: number
|
||||||
saleEnd?: IsoDateString
|
saleEnd?: IsoDateString
|
||||||
saleStart?: IsoDateString
|
saleStart?: IsoDateString
|
||||||
status: IndJobStatusOptions
|
status: IndJobStatusOptions
|
||||||
@@ -222,7 +227,7 @@ export type MfasResponse<Texpand = unknown> = Required<MfasRecord> & BaseSystemF
|
|||||||
export type OtpsResponse<Texpand = unknown> = Required<OtpsRecord> & BaseSystemFields<Texpand>
|
export type OtpsResponse<Texpand = unknown> = Required<OtpsRecord> & BaseSystemFields<Texpand>
|
||||||
export type SuperusersResponse<Texpand = unknown> = Required<SuperusersRecord> & AuthSystemFields<Texpand>
|
export type SuperusersResponse<Texpand = unknown> = Required<SuperusersRecord> & AuthSystemFields<Texpand>
|
||||||
export type IndBillitemResponse<Texpand = unknown> = Required<IndBillitemRecord> & BaseSystemFields<Texpand>
|
export type IndBillitemResponse<Texpand = unknown> = Required<IndBillitemRecord> & BaseSystemFields<Texpand>
|
||||||
export type IndFacilityResponse<Texpand = unknown> = Required<IndFacilityRecord> & BaseSystemFields<Texpand>
|
export type IndCharResponse<Texpand = unknown> = Required<IndCharRecord> & BaseSystemFields<Texpand>
|
||||||
export type IndJobResponse<Texpand = unknown> = Required<IndJobRecord> & BaseSystemFields<Texpand>
|
export type IndJobResponse<Texpand = unknown> = Required<IndJobRecord> & BaseSystemFields<Texpand>
|
||||||
export type IndTransactionResponse<Texpand = unknown> = Required<IndTransactionRecord> & BaseSystemFields<Texpand>
|
export type IndTransactionResponse<Texpand = unknown> = Required<IndTransactionRecord> & BaseSystemFields<Texpand>
|
||||||
export type RegionviewResponse<Texpand = unknown> = Required<RegionviewRecord> & BaseSystemFields<Texpand>
|
export type RegionviewResponse<Texpand = unknown> = Required<RegionviewRecord> & BaseSystemFields<Texpand>
|
||||||
@@ -240,7 +245,7 @@ export type CollectionRecords = {
|
|||||||
_otps: OtpsRecord
|
_otps: OtpsRecord
|
||||||
_superusers: SuperusersRecord
|
_superusers: SuperusersRecord
|
||||||
ind_billItem: IndBillitemRecord
|
ind_billItem: IndBillitemRecord
|
||||||
ind_facility: IndFacilityRecord
|
ind_char: IndCharRecord
|
||||||
ind_job: IndJobRecord
|
ind_job: IndJobRecord
|
||||||
ind_transaction: IndTransactionRecord
|
ind_transaction: IndTransactionRecord
|
||||||
regionview: RegionviewRecord
|
regionview: RegionviewRecord
|
||||||
@@ -257,7 +262,7 @@ export type CollectionResponses = {
|
|||||||
_otps: OtpsResponse
|
_otps: OtpsResponse
|
||||||
_superusers: SuperusersResponse
|
_superusers: SuperusersResponse
|
||||||
ind_billItem: IndBillitemResponse
|
ind_billItem: IndBillitemResponse
|
||||||
ind_facility: IndFacilityResponse
|
ind_char: IndCharResponse
|
||||||
ind_job: IndJobResponse
|
ind_job: IndJobResponse
|
||||||
ind_transaction: IndTransactionResponse
|
ind_transaction: IndTransactionResponse
|
||||||
regionview: RegionviewResponse
|
regionview: RegionviewResponse
|
||||||
@@ -277,7 +282,7 @@ export type TypedPocketBase = PocketBase & {
|
|||||||
collection(idOrName: '_otps'): RecordService<OtpsResponse>
|
collection(idOrName: '_otps'): RecordService<OtpsResponse>
|
||||||
collection(idOrName: '_superusers'): RecordService<SuperusersResponse>
|
collection(idOrName: '_superusers'): RecordService<SuperusersResponse>
|
||||||
collection(idOrName: 'ind_billItem'): RecordService<IndBillitemResponse>
|
collection(idOrName: 'ind_billItem'): RecordService<IndBillitemResponse>
|
||||||
collection(idOrName: 'ind_facility'): RecordService<IndFacilityResponse>
|
collection(idOrName: 'ind_char'): RecordService<IndCharResponse>
|
||||||
collection(idOrName: 'ind_job'): RecordService<IndJobResponse>
|
collection(idOrName: 'ind_job'): RecordService<IndJobResponse>
|
||||||
collection(idOrName: 'ind_transaction'): RecordService<IndTransactionResponse>
|
collection(idOrName: 'ind_transaction'): RecordService<IndTransactionResponse>
|
||||||
collection(idOrName: 'regionview'): RecordService<RegionviewResponse>
|
collection(idOrName: 'regionview'): RecordService<RegionviewResponse>
|
||||||
|
Reference in New Issue
Block a user