Skip to main content

BidCostModelVersion

One version of the organization's Bid Desk cost model: labour rates by skill, overhead, contingency by risk tag, freight, packing, installation, commissioning and travel day rates, warranty and financing. A published version never changes.

type BidCostModelVersion {
body: JSON
currency: String!
id: ID!
modelVersion: Int!
publishedAt: DateTime
publishedBy: ID
rowVersion: Int!
status: BidCostModelStatus!
}

Fields​

BidCostModelVersion.body ● JSON scalar​

The rates and percentages: { labourRates: [{ skillKey, label, ratePerHour }], overheadPct, contingency: [{ riskTag, pct }], freightPct, packingPct, installationRatePerDay, commissioningRatePerDay, travelRatePerDay, warrantyPct, financingPct }, every number an exact decimal string. Null for a caller without permission to view costs.

BidCostModelVersion.currency ● String! non-null scalar​

ISO 4217 code of the organization's base currency when the version was published; the rates are in it. Blank while DRAFT.

BidCostModelVersion.id ● ID! non-null scalar​

The version's id.

BidCostModelVersion.modelVersion ● Int! non-null scalar​

The published version number (1, 2, …) that cost sheets name. 0 while DRAFT.

BidCostModelVersion.publishedAt ● DateTime scalar​

When the version was published. Null while DRAFT.

BidCostModelVersion.publishedBy ● ID scalar​

Who published the version. Null while DRAFT.

BidCostModelVersion.rowVersion ● Int! non-null scalar​

The row's edit counter. Send it as expectedVersion to change the draft or publish it.

BidCostModelVersion.status ● BidCostModelStatus! non-null enum​

DRAFT, PUBLISHED or RETIRED.

Returned By​

bidCostModel query ● bidCostModelVersions query ● publishBidCostModel mutation ● saveBidCostModelDraft mutation