{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/opportunities/v2.json",
  "title": "opportunities contract v2",
  "type": "object",
  "required": [
    "amount",
    "as_at",
    "currency",
    "opportunity_number",
    "status",
    "title",
    "value_basis"
  ],
  "properties": {
    "as_at": {
      "type": "string",
      "description": "When this record was observed/written — the validity anchor of a `state`-shaped fact.",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "UTC",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "title": {
      "type": "string",
      "description": "The opportunity's human label — canonical spelling of BC `Description` / `description`.",
      "x-demiton-requiredness": "required"
    },
    "amount": {
      "type": "number",
      "description": "The estimated pipeline value — canonical spelling of BC `Estimated_Value_LCY` / `estimatedValue` (LCY = the BC base currency).",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "`currency`"
    },
    "closed": {
      "type": "boolean",
      "description": "The source's own closed flag — canonical spelling of BC `Closed` / `closed`.",
      "x-demiton-requiredness": "optional"
    },
    "status": {
      "type": "string",
      "description": "The source's own pipeline status — canonical spelling of BC `Status` / `status`.",
      "x-demiton-requiredness": "required"
    },
    "summary": {
      "type": "string",
      "description": "A Demiton-composed one-line rendering.",
      "x-demiton-requiredness": "optional"
    },
    "currency": {
      "type": "currency",
      "description": "The denomination of `amount`.",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "ISO 4217"
    },
    "description": {
      "type": "string",
      "description": "Longer free text, if distinct from `title` — BC `Description` where `title` is not used as the label.",
      "x-demiton-requiredness": "optional"
    },
    "salesperson": {
      "type": "string",
      "description": "The owner — canonical spelling of BC `Salesperson_Name` / `salespersonCode`.",
      "x-demiton-requiredness": "optional"
    },
    "value_basis": {
      "type": "string",
      "description": "What `amount` measures — R3's `estimated` / `awarded` / `maximum` / `paid` / `mechanism-only`.",
      "x-demiton-requiredness": "required"
    },
    "contact_name": {
      "type": "string",
      "description": "The customer-side contact person — BC `Contact_Name` / `contactName`.",
      "x-demiton-requiredness": "optional"
    },
    "created_date": {
      "type": "string",
      "description": "The opportunity's creation date — BC `Creation_Date` / `creationDate`.",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "customer_name": {
      "type": "string",
      "description": "The prospective customer's name — BC `Contact_Company_Name` / `contactCompanyName`.",
      "x-demiton-requiredness": "optional"
    },
    "last_modified_at": {
      "type": "string",
      "description": "Source last-modified timestamp — BC `lastModifiedDateTime`, present only in Shape B.",
      "x-demiton-requiredness": "optional",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "sales_cycle_code": {
      "type": "string",
      "description": "The source's sales-cycle stage code — BC `Sales_Cycle_Code`.",
      "x-demiton-requiredness": "optional"
    },
    "actual_close_date": {
      "type": "string",
      "description": "Actual close — BC `Date_Closed` / `dateClosed`.",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "jurisdiction_code": {
      "type": "jurisdiction",
      "description": "The place of performance derived from the description text.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "ISO 3166-2 subdivision (AU state)"
    },
    "opportunity_number": {
      "type": "string",
      "description": "The source system's natural key for the opportunity — canonical spelling of BC `No` / `No_` / `number`; today the entity canonical key.",
      "x-demiton-requiredness": "required"
    },
    "expected_close_date": {
      "type": "string",
      "description": "Expected close — BC `Estimated_Closing_Date` / `estimatedClosingDate`.",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    }
  },
  "x-demiton-register-type": "opportunities",
  "x-demiton-contract-version": "2.0.2",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "ABN",
        "title": "Australian Business Number - Australian Business Register (ABN Lookup)",
        "access": "public_summary",
        "region": "Australia",
        "edition": "current register",
        "checked_on": "2026-09-14"
      },
      {
        "code": "CPRs",
        "title": "Commonwealth Procurement Rules",
        "access": "public_summary",
        "region": "Australia",
        "edition": "17 November 2025",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Privacy Act 1988 (Cth)",
        "title": "Privacy Act 1988 and the Australian Privacy Principles",
        "access": "public_summary",
        "region": "Australia",
        "edition": "No. 119, 1988 (as amended)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "OCDS",
        "title": "Open Contracting Data Standard",
        "access": "full_text_verified",
        "region": "International",
        "edition": "1.1 (documentation release 1.1.5)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Privacy Act 2020 (NZ)",
        "title": "Privacy Act 2020 and the information privacy principles",
        "access": "public_summary",
        "region": "New Zealand",
        "edition": "2020",
        "checked_on": "2026-09-14"
      },
      {
        "code": "FAR",
        "title": "Federal Acquisition Regulation (48 CFR Chapter 1)",
        "access": "full_text_verified",
        "clause": "5.201",
        "region": "United States",
        "edition": "current through FAC 2026-01 (eff. 13 Mar 2026)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "SAM UEI",
        "title": "System for Award Management registration and Unique Entity Identifier (FAR 52.204-7)",
        "access": "full_text_verified",
        "region": "United States",
        "edition": "52.204-7 (Nov 2024)",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Your commercial pipeline: won, lost and in-flight opportunities from CRM or ERP.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/opportunities/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}