OBJECT

OpportunityTypeEntity

Opportunity type that classifies opportunities and defines their forms (edit, qualify, won and lost).

link GraphQL Schema definition

  • type OpportunityTypeEntity {
  • # Unique identifier of entity.
  • id: ID!
  • # Specifies if the entity is considered deleted.
  • isDeleted: Boolean
  • # Last modification time.
  • modified: DateTime
  • # Creation time.
  • created: DateTime
  • # Pipeline this opportunity type drives. Each opportunity type maps to exactly one
  • # pipeline.
  • pipeline: PipelineEntity
  • # JSON definition of the form layout used by the UI when creating or editing
  • # opportunities of this type. This payload conforms to the `Form` JSON Schema:
  • # https://api-doc.coevera.com/schemas/Form.json
  • formEdit: JSONString!
  • # JSON definition of the form shown when archiving (losing) an opportunity of this
  • # type. Used to capture reason of close and any required closing fields. This
  • # payload conforms to the `Form` JSON Schema:
  • # https://api-doc.coevera.com/schemas/Form.json
  • formLost: JSONString!
  • # JSON definition of the form shown when qualifying a lead into an opportunity of
  • # this type.
  • formQualify: JSONString!
  • # JSON definition of the form shown when winning an opportunity of this type. Used
  • # to capture won-deal fields.
  • formWon: JSONString!
  • # True when the opportunity type is system-managed and cannot be edited or deleted
  • # by users.
  • isReadonly: Boolean!
  • # Name of the entity and its default text representation.
  • name: String!
  • # Id of the pipeline this opportunity type drives.
  • pipelineId: ID!
  • # Per-type configuration for records of this entity type, e.g. allowed task and
  • # appointment types that may be linked to records of this type. This payload
  • # conforms to the `EntityTypeSettings` JSON Schema:
  • # https://api-doc.coevera.com/schemas/EntityTypeSettings.json
  • settings: EntityTypeSettings!
  • # True when the entity configuration is published; false while it exists only as
  • # an unpublished draft.
  • isPublished: Boolean
  • # Revision when entity was lastly changed.
  • revision: Int
  • # True when the record has unpublished draft changes, including pending
  • # translation changes, that can be published.
  • hasDraft: Boolean
  • # True when the record is protected against deletion because it must always exist
  • # in the space. Deleting a record that is not protected can still fail on other
  • # checks. Read-only.
  • isDeleteProtected: Boolean!
  • # Typed, read-only view of a form layout of this type: formEditApi mirrors the
  • # edit form (formEdit), formLostApi the form shown when archiving as lost
  • # (formLost).
  • formEditApi: Form
  • # False for types whose read-only setting is fixed, such as the recurrent
  • # appointment type; true otherwise.
  • canChangeReadonly: Boolean
  • # Typed, read-only view of a form layout of this type: formEditApi mirrors the
  • # edit form (formEdit), formLostApi the form shown when archiving as lost
  • # (formLost).
  • formLostApi: Form
  • # Ids of the fields shown on the form when a lead is qualified into an opportunity
  • # of this type. Read-only view of `formQualify`.
  • formQualifyApi: [UUID]
  • # Ids of the fields shown on the form when an opportunity of this type is won.
  • # Read-only view of `formWon`.
  • formWonApi: [UUID]
  • # Permissions the current user has on this record, out of the requested ones.
  • #
  • # Arguments
  • # permissions: Permissions to check; the result lists those the
  • # current user has.
  • instancePermissions(permissions: [EntityPermsEnum!]!): [EntityPermsEnum!]!
  • }