Skip to main content

ConfigModelVersion

One numbered version of a configuration model: one validated definition built on a released bill-of-materials version. Only a DRAFT can be changed; RELEASED and OBSOLETE versions are fixed.

type ConfigModelVersion {
baseBomVersionId: ID!
createdAt: DateTime!
definition: JSON!
definitionHash: String!
id: ID!
modelId: ID!
obsoletedAt: DateTime
releasedAt: DateTime
schemaVersion: Int!
status: ConfigModelVersionStatus!
updatedAt: DateTime!
version: Int!
versionNo: Int!
}

Fields​

ConfigModelVersion.baseBomVersionId ● ID! non-null scalar​

The released bill-of-materials version of the same assembly whose lines and option groups the definition refers to.

ConfigModelVersion.createdAt ● DateTime! non-null scalar​

When the version was created.

ConfigModelVersion.definition ● JSON! non-null scalar​

The whole definition (parameters, steps, rules, sizing tables, quantity rules, limits, test cases), as stored after validation.

ConfigModelVersion.definitionHash ● String! non-null scalar​

SHA-256 hex of the definition in canonical form (keys sorted at every depth). Equal definitions have equal hashes.

ConfigModelVersion.id ● ID! non-null scalar​

The version's id.

ConfigModelVersion.modelId ● ID! non-null scalar​

The configuration model it belongs to.

ConfigModelVersion.obsoletedAt ● DateTime scalar​

When the version became obsolete. Null until then.

ConfigModelVersion.releasedAt ● DateTime scalar​

When the version was released. Null until then.

ConfigModelVersion.schemaVersion ● Int! non-null scalar​

The definition's schema version.

ConfigModelVersion.status ● ConfigModelVersionStatus! non-null enum​

The version's state.

ConfigModelVersion.updatedAt ● DateTime! non-null scalar​

When the version last changed.

ConfigModelVersion.version ● Int! non-null scalar​

The edit counter. Send it back as expectedVersion on the next save; a stale one is refused.

ConfigModelVersion.versionNo ● Int! non-null scalar​

The version number, counting from 1 per model.

Returned By​

configModelVersion query ● createConfigModelDraft mutation ● saveConfigModelDraft mutation

Member Of​

ConfigModel object