{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-potential-projects-with-keys-schema.json",
  "title": "data_potential_projects_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-pc-openapi.yml#/components/schemas/data_potential_projects_withKeys",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "__ryvitKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of key paths that can be used to retrieve this object."
        },
        "__modifiedUTC": {
          "type": "string",
          "description": "UTC timestamp of when this object was last modified in the cache."
        }
      }
    },
    {
      "$ref": "#/$defs/data_potential_projects"
    }
  ],
  "$defs": {
    "data_potential_projects": {
      "required": [
        "KeyID",
        "JCCo",
        "PotentialProject",
        "GoProbPct",
        "AwardProbPct",
        "ProjectedChase",
        "StartDate",
        "CompletionDate",
        "RevenueEst",
        "CostEst",
        "ProfitEst",
        "AllowForecast",
        "Awarded",
        "BidBondReqYN",
        "BidPrequalReqYN"
      ],
      "type": "object",
      "properties": {
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "JCCo": {
          "type": "integer",
          "description": ""
        },
        "PotentialProject": {
          "maxLength": 20,
          "type": "string",
          "description": ""
        },
        "Description": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ProjectMgr": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "GoProbPct": {
          "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
          "type": "string",
          "description": ""
        },
        "AwardProbPct": {
          "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
          "type": "string",
          "description": ""
        },
        "ProjectedChase": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "StartDate": {
          "type": "string",
          "description": "Format: YYYY-MM-DD"
        },
        "CompletionDate": {
          "type": "string",
          "description": "Format: YYYY-MM-DD"
        },
        "RevenueEst": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "CostEst": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ProfitEst": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "AllowForecast": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "Awarded": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "AwardedDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "Contract": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UniqueAttchID": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ProjectDetails": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ProjectType": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ProjectStatus": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JobSiteStreet": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JobSiteCity": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JobSiteState": {
          "maxLength": 4,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JobSiteZip": {
          "maxLength": 12,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JobSiteRegion": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DocURL": {
          "maxLength": 255,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DocOtherPlanLoc": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "VendorGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "ProjectSize": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ProjectSizeUM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "WorkType": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ClientType": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ProjectValue": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PrimeSub": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ContractType": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidResult": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidAwardedDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "Competitor": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CompetitorBid": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JobSiteCountry": {
          "maxLength": 2,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidNumber": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidEstimator": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidBondReqYN": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "BidPrequalReqYN": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "BidDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "BidTime": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "BidStatus": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidStarted": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "BidCompleted": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "BidSubmitted": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "BidPlanOrdered": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "BidPlanReceived": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "BidPlanCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidLaborCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidLaborHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidMaterialCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidEquipCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidSubCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidOtherCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidTotalCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidProfit": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidMarkup": {
          "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidTotalPrice": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidEquipHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidPreMeeting": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "BidPreMeetingTime": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "BidPreMeetingNotes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidJCDept": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BidPreMeetingLoc": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ProjectTeam": {
          "type": "array",
          "items": {
            "required": [
              "Seq",
              "KeyID"
            ],
            "type": "object",
            "properties": {
              "Seq": {
                "type": "integer",
                "description": ""
              },
              "ContactType": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "ContactSource": {
                "maxLength": 20,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "ContactCode": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "ContactName": {
                "maxLength": 30,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "ContactFirmVendor": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "ContactFirmName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Phone": {
                "maxLength": 20,
                "type": [
                  "string",
                  "null"
                ],
                "description": "**[PROTECTED FIELD]** ",
                "x-protectedValue": true
              },
              "Mobile": {
                "maxLength": 20,
                "type": [
                  "string",
                  "null"
                ],
                "description": "**[PROTECTED FIELD]** ",
                "x-protectedValue": true
              },
              "Fax": {
                "maxLength": 20,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Email": {
                "maxLength": 255,
                "type": [
                  "string",
                  "null"
                ],
                "description": "**[PROTECTED FIELD]** ",
                "x-protectedValue": true
              },
              "WebAddress": {
                "maxLength": 60,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "UniqueAttchID": {
                "maxLength": 36,
                "minLength": 36,
                "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "KeyID": {
                "type": "integer",
                "description": ""
              },
              "__custom_fields": {
                "type": "object",
                "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
              }
            }
          },
          "description": ""
        },
        "__custom_fields": {
          "type": "object",
          "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
        }
      }
    }
  }
}