{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://investmoz.tempo.co.mz/schemas/opportunity-modular.json", "title": "InvestMozOpportunity", "$defs": { "localizedPublication": { "type": "object", "additionalProperties": false, "properties": { "opportunity_id": { "type": "string", "format": "uuid", "readOnly": true }, "language_code": { "type": "string" }, "title": { "type": "string" }, "summary": { "type": "string" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "opportunity_id", "language_code", "title", "summary", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "location": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "country_code": { "type": "string", "pattern": "^[A-Z]{2}$" }, "province_id": { "type": "string", "format": "uuid" }, "district_id": { "type": "string", "format": "uuid" }, "administrative_post_id": { "type": ["string", "null"], "format": "uuid" }, "locality_id": { "type": ["string", "null"], "format": "uuid" }, "geometry": { "type": ["object", "null"], "description": "GeoJSON Geometry in EPSG:4326" }, "area_value": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "area_unit": { "type": ["string", "null"], "enum": ["sqm", "ha", null] }, "allocation_percentage": { "type": ["number", "null"], "minimum": 0, "maximum": 100 }, "address": { "type": ["string", "null"], "maxLength": 300 }, "role": { "type": "string", "minLength": 1, "maxLength": 30 }, "role_other": { "type": ["string", "null"], "maxLength": 150 }, "is_primary": { "type": "boolean" }, "active": { "type": "boolean", "default": true } }, "required": ["province_id", "district_id", "role", "is_primary"] }, "product": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "name": { "type": "string", "minLength": 1 }, "code": { "type": "string", "minLength": 1 }, "category": { "type": "string", "minLength": 1 }, "quantity": { "type": "number" }, "unit": { "type": "string", "minLength": 1 } }, "required": ["id", "version", "is_deleted", "name", "category"] }, "asset": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "name": { "type": "string", "minLength": 1 }, "asset_type": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "value": { "type": "number", "minimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" } }, "required": ["id", "version", "is_deleted", "name", "asset_type"] }, "employment": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "employment_type": { "type": "string", "minLength": 1 }, "direct_jobs": { "type": "integer", "minimum": 0 }, "indirect_jobs": { "type": "integer", "minimum": 0 }, "female_percentage": { "type": "number", "minimum": 0, "maximum": 100 }, "youth_percentage": { "type": "number", "minimum": 0, "maximum": 100 } }, "required": [ "id", "version", "is_deleted", "employment_type", "direct_jobs" ] }, "impact": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "impact_type": { "type": "string", "minLength": 1 }, "description": { "type": "string", "minLength": 1 }, "indicator": { "type": "string", "minLength": 1 }, "target": { "type": "number" }, "unit": { "type": "string", "minLength": 1 } }, "required": [ "id", "version", "is_deleted", "impact_type", "description" ] }, "moneyItem": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "label": { "type": "string", "minLength": 1 }, "amount": { "type": "number", "minimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "year": { "type": "integer", "minimum": 1900 } }, "required": [ "id", "version", "is_deleted", "label", "amount", "currency" ] }, "evidence": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "title": { "type": "string", "minLength": 1 }, "evidence_type": { "type": "string", "minLength": 1 }, "document_id": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "verified": { "type": "boolean" }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "id", "version", "is_deleted", "title", "evidence_type", "created_by", "created_at", "updated_by", "updated_at" ] }, "document": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "title": { "type": "string", "minLength": 1 }, "mime_type": { "type": "string", "minLength": 1 }, "url": { "type": "string", "format": "uri" }, "confidential": { "type": "boolean" }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "category": { "type": "string", "minLength": 1 }, "original_name": { "type": "string", "minLength": 1 } }, "required": [ "id", "version", "is_deleted", "title", "category", "original_name", "created_by", "created_at", "updated_by", "updated_at" ] }, "image": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "title": { "type": "string", "minLength": 1 }, "url": { "type": "string", "format": "uri" }, "alt_text": { "type": "string", "minLength": 1 }, "is_cover": { "type": "boolean" }, "sort_order": { "type": "integer", "minimum": 0 }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "id", "version", "is_deleted", "url", "alt_text", "created_by", "created_at", "updated_by", "updated_at" ] }, "realEstate": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "transaction_type": { "enum": [ "sale", "lease", "investment", "development", "partnership" ] }, "property_type": { "enum": [ "house", "apartment", "office", "retail", "warehouse", "hospitality", "industrial", "mixed_use", "development", "other" ] }, "construction_status": { "enum": [ "planned", "under_construction", "completed", "occupied", "renovation" ] }, "property_condition": { "type": ["string", "null"], "enum": ["new", "good", "fair", "poor", "derelict", null] }, "land_area": { "type": "number", "exclusiveMinimum": 0 }, "built_area": { "type": "number", "exclusiveMinimum": 0 }, "area_unit": { "enum": ["sqm", "ha"] }, "units": { "type": ["integer", "null"], "minimum": 0 }, "rooms": { "type": ["integer", "null"], "minimum": 0 }, "floors": { "type": ["integer", "null"], "minimum": 0 }, "amenities": { "type": "array", "items": { "type": "string" } }, "utilities": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "occupancy_status": { "enum": [ "vacant", "owner_occupied", "tenant_occupied", "partially_occupied" ] }, "title_type": { "type": "string", "minLength": 1 }, "registration_number": { "type": "string", "minLength": 1 }, "encumbrances": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "price": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "rent": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "rent_periodicity": { "type": ["string", "null"], "enum": [ "monthly", "quarterly", "semiannual", "annual", "other", null ] }, "deposit": { "type": ["number", "null"], "minimum": 0 }, "valuation": { "type": "object" }, "viewing": { "type": ["object", "null"] }, "planning_permit_document_id": { "type": ["string", "null"], "format": "uuid" }, "use_license_document_id": { "type": ["string", "null"], "format": "uuid" } }, "required": [ "transaction_type", "property_type", "construction_status", "land_area", "built_area", "area_unit", "utilities", "occupancy_status", "title_type", "registration_number", "encumbrances", "valuation" ], "allOf": [ { "if": { "properties": { "transaction_type": { "const": "sale" } }, "required": ["transaction_type"] }, "then": { "required": ["price"] } }, { "if": { "properties": { "transaction_type": { "const": "lease" } }, "required": ["transaction_type"] }, "then": { "required": ["rent", "rent_periodicity"] } }, { "if": { "properties": { "construction_status": { "enum": ["completed", "occupied", "renovation"] } }, "required": ["construction_status"] }, "then": { "required": ["property_condition"] } } ] }, "landRights": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "operation_type": { "enum": [ "investment_with_duat", "transfer_of_improvements", "assignment_subject_to_authorization", "lease_of_improvements", "operating_partnership", "other_legal" ] }, "duat_status": { "enum": [ "none", "application", "provisional", "definitive", "occupancy_recognition", "community_right" ] }, "duat_number": { "type": ["string", "null"], "maxLength": 120 }, "holder_id": { "type": ["string", "null"], "format": "uuid" }, "holder_name": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuing_authority_id": { "type": ["string", "null"], "format": "uuid" }, "issue_date": { "type": ["string", "null"], "format": "date" }, "expiry_date": { "type": ["string", "null"], "format": "date" }, "authorized_purpose": { "type": "string", "minLength": 1 }, "exploitation_plan_document_id": { "type": ["string", "null"], "format": "uuid" }, "parcels": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/parcel" } }, "improvements": { "type": "array", "items": { "$ref": "#/$defs/improvement" } }, "communities": { "type": "array", "items": { "$ref": "#/$defs/community" } }, "community_consultation": { "type": ["object", "null"] }, "overlaps_conflicts": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "required_authorizations": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "consideration": { "type": ["object", "null"] } }, "required": [ "operation_type", "duat_status", "holder_name", "authorized_purpose", "parcels", "overlaps_conflicts", "required_authorizations" ], "allOf": [ { "if": { "properties": { "duat_status": { "enum": ["provisional", "definitive"] } }, "required": ["duat_status"] }, "then": { "required": ["duat_number", "issuing_authority_id"] } }, { "if": { "properties": { "operation_type": { "enum": [ "transfer_of_improvements", "lease_of_improvements" ] } }, "required": ["operation_type"] }, "then": { "properties": { "improvements": { "minItems": 1 } }, "required": ["improvements", "consideration"] } }, { "if": { "properties": { "operation_type": { "const": "operating_partnership" } }, "required": ["operation_type"] }, "then": { "required": ["consideration"] } } ] }, "businessTransaction": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "transaction_type": { "enum": [ "full_sale", "partial_sale", "partnership", "joint_venture", "franchise", "succession", "financing" ] }, "legal_entity_id": { "type": "string", "format": "uuid" }, "legal_form": { "type": "string", "minLength": 1 }, "percentage_offered": { "type": ["number", "null"], "exclusiveMinimum": 0, "maximum": 100 }, "asking_price": { "type": "number", "exclusiveMinimum": 0 }, "valuation": { "type": "object" }, "financial_periods": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "assets_liabilities": { "type": "object" }, "employees": { "type": "object" }, "contracts_licenses": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "litigation_contingencies": { "type": "array", "items": { "type": "object" } }, "reason_for_transaction": { "type": "string", "minLength": 50, "maxLength": 1000 }, "partner_contribution": { "type": ["object", "null"] }, "governance_rights": { "type": ["object", "null"] }, "franchise_terms": { "type": ["object", "null"] }, "confidentiality_level": { "enum": ["teaser", "nda_required", "restricted"] }, "due_diligence_status": { "enum": [ "not_started", "data_room_ready", "in_progress", "completed", "exceptions" ] } }, "required": [ "transaction_type", "legal_entity_id", "legal_form", "asking_price", "valuation", "financial_periods", "assets_liabilities", "employees", "contracts_licenses", "litigation_contingencies", "reason_for_transaction", "confidentiality_level", "due_diligence_status" ], "allOf": [ { "if": { "properties": { "transaction_type": { "const": "full_sale" } }, "required": ["transaction_type"] }, "then": { "properties": { "percentage_offered": { "const": 100 } }, "required": ["percentage_offered", "governance_rights"] } }, { "if": { "properties": { "transaction_type": { "enum": [ "partial_sale", "partnership", "joint_venture" ] } }, "required": ["transaction_type"] }, "then": { "required": ["percentage_offered", "governance_rights"] } }, { "if": { "properties": { "transaction_type": { "enum": ["partnership", "joint_venture"] } }, "required": ["transaction_type"] }, "then": { "required": ["partner_contribution"] } }, { "if": { "properties": { "transaction_type": { "const": "franchise" } }, "required": ["transaction_type"] }, "then": { "required": ["franchise_terms"] } } ] }, "item": { "oneOf": [ { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "product" }, "payload": { "$ref": "#/$defs/product" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "asset" }, "payload": { "$ref": "#/$defs/asset" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "input" }, "payload": { "$ref": "#/$defs/input" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "market" }, "payload": { "$ref": "#/$defs/market" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "impact" }, "payload": { "$ref": "#/$defs/impact" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "investment" }, "payload": { "$ref": "#/$defs/moneyItem" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "financing" }, "payload": { "$ref": "#/$defs/moneyItem" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "milestone" }, "payload": { "$ref": "#/$defs/milestone" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "license" }, "payload": { "$ref": "#/$defs/license" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "risk" }, "payload": { "$ref": "#/$defs/risk" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "relation" }, "payload": { "$ref": "#/$defs/relation" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "employment" }, "payload": { "$ref": "#/$defs/employment" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "environmental_social" }, "payload": { "$ref": "#/$defs/environmentalSocial" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] } ] }, "parcel": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "opportunity_id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "active": { "type": "boolean", "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "cadastral_number": { "type": ["string", "null"], "maxLength": 120 }, "location_id": { "type": "string", "format": "uuid" }, "area": { "type": "number", "exclusiveMinimum": 0 }, "geometry": { "type": "object", "additionalProperties": false, "properties": { "type": { "const": "MultiPolygon" }, "coordinates": { "type": "array" } }, "required": ["type", "coordinates"] }, "overlap_status": { "type": "string", "maxLength": 30 } }, "required": [ "id", "opportunity_id", "location_id", "area", "geometry", "overlap_status", "version", "active", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "improvement": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "opportunity_id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "active": { "type": "boolean", "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "improvement_type": { "type": "string", "maxLength": 60 }, "owner_name": { "type": "string", "maxLength": 200 }, "assessed_value": { "type": ["number", "null"], "minimum": 0 }, "currency": { "type": ["string", "null"], "pattern": "^[A-Z]{3}$" }, "valuation_date": { "type": ["string", "null"], "format": "date" }, "document_id": { "type": ["string", "null"], "format": "uuid" }, "image_id": { "type": ["string", "null"], "format": "uuid" } }, "required": [ "id", "opportunity_id", "improvement_type", "owner_name", "version", "active", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "community": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "opportunity_id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "active": { "type": "boolean", "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "name": { "type": "string", "maxLength": 200 }, "location_id": { "type": ["string", "null"], "format": "uuid" }, "consultation_status": { "type": "string", "maxLength": 30 }, "consultation_date": { "type": ["string", "null"], "format": "date" }, "representative_name": { "type": ["string", "null"], "maxLength": 200 }, "notes": { "type": ["string", "null"] } }, "required": [ "id", "opportunity_id", "name", "consultation_status", "version", "active", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "mutationContext": { "type": "object", "additionalProperties": false, "properties": { "operation": { "type": "string", "enum": ["create", "update", "delete", "restore"] }, "actor_id": { "type": "string", "minLength": 1 }, "reason": { "type": "string", "minLength": 20, "maxLength": 1000 }, "if_match": { "type": "string", "minLength": 1 }, "requested_at": { "type": "string", "format": "date-time" } }, "required": ["operation", "actor_id"], "allOf": [ { "if": { "properties": { "operation": { "enum": ["update", "delete", "restore"] } }, "required": ["operation"] }, "then": { "required": ["if_match"] } }, { "if": { "properties": { "operation": { "const": "delete" } }, "required": ["operation"] }, "then": { "required": ["reason"] } } ] }, "apiEnvelope": { "type": "object", "additionalProperties": false, "properties": { "data": { "oneOf": [ { "$ref": "#/$defs/opportunityResponse" }, { "$ref": "#/$defs/locationResponse" }, { "$ref": "#/$defs/itemResponse" }, { "$ref": "#/$defs/documentResponse" }, { "$ref": "#/$defs/evidenceResponse" }, { "$ref": "#/$defs/imageResponse" }, { "$ref": "#/$defs/localizedPublicationResponse" }, { "$ref": "#/$defs/realEstateResponse" }, { "$ref": "#/$defs/landRightsResponse" }, { "$ref": "#/$defs/businessTransactionResponse" }, { "$ref": "#/$defs/parcelResponse" }, { "$ref": "#/$defs/improvementResponse" }, { "$ref": "#/$defs/communityResponse" }, { "$ref": "#/$defs/catalogDefinitionResponse" }, { "$ref": "#/$defs/catalogOptionResponse" }, { "$ref": "#/$defs/catalogTranslationResponse" }, { "$ref": "#/$defs/geoLayerResponse" }, { "$ref": "#/$defs/geoFeatureResponse" } ] }, "meta": { "type": "object", "additionalProperties": false, "properties": { "request_id": { "type": "string", "minLength": 1 }, "timestamp": { "type": "string", "format": "date-time" } }, "required": ["request_id", "timestamp"] } }, "required": ["data", "meta"] }, "pagedResponse": { "type": "object", "additionalProperties": false, "properties": { "data": { "type": "array", "items": { "oneOf": [ { "$ref": "#/$defs/opportunityResponse" }, { "$ref": "#/$defs/locationResponse" }, { "$ref": "#/$defs/itemResponse" }, { "$ref": "#/$defs/documentResponse" }, { "$ref": "#/$defs/evidenceResponse" }, { "$ref": "#/$defs/imageResponse" }, { "$ref": "#/$defs/localizedPublicationResponse" }, { "$ref": "#/$defs/realEstateResponse" }, { "$ref": "#/$defs/landRightsResponse" }, { "$ref": "#/$defs/businessTransactionResponse" }, { "$ref": "#/$defs/parcelResponse" }, { "$ref": "#/$defs/improvementResponse" }, { "$ref": "#/$defs/communityResponse" }, { "$ref": "#/$defs/catalogDefinitionResponse" }, { "$ref": "#/$defs/catalogOptionResponse" }, { "$ref": "#/$defs/catalogTranslationResponse" }, { "$ref": "#/$defs/geoLayerResponse" }, { "$ref": "#/$defs/geoFeatureResponse" } ] } }, "page": { "type": "integer", "minimum": 1 }, "page_size": { "type": "integer", "minimum": 1 }, "total": { "type": "integer", "minimum": 0 } }, "required": ["data", "page", "page_size", "total"] }, "errorResponse": { "type": "object", "additionalProperties": false, "properties": { "error": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "string", "minLength": 1 }, "message": { "type": "string", "minLength": 1 }, "details": { "type": "array", "items": { "type": "object", "additionalProperties": false, "properties": { "field": { "type": "string" }, "message": { "type": "string", "minLength": 1 } }, "required": ["message"] } } }, "required": ["code", "message"] }, "request_id": { "type": "string", "minLength": 1 } }, "required": ["error", "request_id"] }, "createRequest": { "type": "object", "additionalProperties": false, "properties": { "mutation_context": { "$ref": "#/$defs/mutationContext" }, "item": { "$ref": "#/$defs/item" } }, "required": ["mutation_context", "item"] }, "updateRequest": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "mutation_context": { "$ref": "#/$defs/mutationContext" }, "changes": { "type": "object", "minProperties": 1 } }, "required": ["id", "version", "mutation_context", "changes"] }, "deleteRequest": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "mutation_context": { "$ref": "#/$defs/mutationContext" } }, "required": ["id", "version", "mutation_context"] }, "restoreRequest": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "mutation_context": { "$ref": "#/$defs/mutationContext" } }, "required": ["id", "version", "mutation_context"] }, "input": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "name": { "type": "string", "minLength": 1 }, "input_type": { "type": "string", "minLength": 1 }, "quantity": { "type": "number" }, "unit": { "type": "string", "minLength": 1 }, "source_country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": ["id", "version", "is_deleted", "name", "input_type"] }, "market": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "name": { "type": "string", "minLength": 1 }, "market_type": { "type": "string", "minLength": 1 }, "country_code": { "type": "string", "pattern": "^[A-Z]{2}$" }, "share_percentage": { "type": "number", "minimum": 0, "maximum": 100 } }, "required": ["id", "version", "is_deleted", "name", "market_type"] }, "milestone": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "title": { "type": "string", "minLength": 1 }, "due_date": { "type": "string", "format": "date" }, "status": { "type": "string", "minLength": 1 }, "completion_percentage": { "type": "number", "minimum": 0, "maximum": 100 } }, "required": [ "id", "version", "is_deleted", "title", "due_date", "status" ] }, "license": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "name": { "type": "string", "minLength": 1 }, "authority": { "type": "string", "minLength": 1 }, "status": { "type": "string", "minLength": 1 }, "number": { "type": "string" }, "issued_at": { "type": "string", "format": "date" }, "expires_at": { "type": ["string", "null"], "format": "date" } }, "required": [ "id", "version", "is_deleted", "name", "authority", "status" ] }, "risk": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "title": { "type": "string", "minLength": 1 }, "category": { "type": "string", "minLength": 1 }, "likelihood": { "type": "integer", "minimum": 1, "maximum": 5 }, "severity": { "type": "integer", "minimum": 1, "maximum": 5 }, "mitigation": { "type": "string", "minLength": 1 } }, "required": [ "id", "version", "is_deleted", "title", "category", "likelihood", "severity" ] }, "relation": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "related_id": { "type": "string", "minLength": 1 }, "relation_type": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "evidence_ids": { "type": "array", "items": { "$ref": "#/$defs/evidence" } } }, "required": [ "id", "version", "is_deleted", "related_id", "relation_type" ] }, "environmentalSocial": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "assessment_status": { "type": "string", "minLength": 1 }, "environmental_category": { "type": "string", "minLength": 1 }, "social_risks": { "type": "array", "items": { "type": "string" } }, "mitigation_plan": { "type": "string" } }, "required": [ "id", "version", "is_deleted", "assessment_status", "environmental_category" ] }, "financialIndicators": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1 }, "is_deleted": { "type": "boolean", "default": false }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "capex": { "type": "number", "minimum": 0 }, "opex": { "type": "number", "minimum": 0 }, "revenue": { "type": "number", "minimum": 0 }, "irr_percentage": { "type": "number" }, "npv": { "type": "number" } }, "required": ["id", "version", "is_deleted", "currency"] }, "opportunity": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "opportunity_code": { "type": "string", "pattern": "^INV-MZ-[A-Z0-9]{2,10}-[0-9]{3,}$", "readOnly": true }, "opportunity_category": { "enum": [ "investment_project", "real_estate", "land_rights", "business_sale", "business_partnership", "franchise", "concession", "financing", "supply", "other" ] }, "official_title": { "type": "string", "minLength": 10, "maxLength": 150 }, "alternative_name": { "type": ["string", "null"], "maxLength": 120 }, "promoter_id": { "type": "string", "format": "uuid" }, "promoter_type": { "enum": [ "public", "private", "ppp", "cooperative", "association", "community", "other" ] }, "internal_contact_id": { "type": "string", "format": "uuid" }, "publish_contact": { "type": "boolean", "default": false }, "public_contact_id": { "type": ["string", "null"], "format": "uuid" }, "sector_id": { "type": "string", "format": "uuid" }, "subsector_id": { "type": "string", "format": "uuid" }, "economic_activity_id": { "type": "string", "format": "uuid" }, "location_mode": { "enum": ["single", "multiple"] }, "geographic_scope": { "enum": [ "local", "district", "multi_district", "provincial", "interprovincial", "national", "cross_border" ] }, "multi_district_rationale": { "type": ["string", "null"], "minLength": 50, "maxLength": 1000 }, "locations": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "$ref": "#/$defs/location" } }, "executive_summary": { "type": "string", "minLength": 300, "maxLength": 1500 }, "demand_statement": { "type": "string", "minLength": 100, "maxLength": 2000 }, "opportunity_type": { "type": ["string", "null"] }, "maturity_stage": { "type": ["string", "null"] }, "investment_modalities": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }, "investor_profiles": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }, "products": { "type": "array", "items": { "$ref": "#/$defs/product" } }, "assets": { "type": "array", "items": { "$ref": "#/$defs/asset" } }, "inputs": { "type": "array", "items": { "$ref": "#/$defs/input" } }, "markets": { "type": "array", "items": { "type": "object" } }, "competitive_advantage": { "type": ["string", "null"], "minLength": 100, "maxLength": 1500 }, "employment": { "$ref": "#/$defs/employment" }, "impact_indicators": { "type": "array", "items": { "$ref": "#/$defs/impact" } }, "total_investment": { "type": ["number", "null"], "exclusiveMinimum": 0, "multipleOf": 0.01 }, "currency": { "type": ["string", "null"], "pattern": "^[A-Z]{3}$" }, "investment_breakdown": { "type": "array", "items": { "$ref": "#/$defs/moneyItem" } }, "secured_financing": { "type": "array", "items": { "$ref": "#/$defs/moneyItem" } }, "funding_sought": { "type": ["number", "null"], "minimum": 0, "multipleOf": 0.01 }, "financial_indicators": { "type": ["object", "null"] }, "milestones": { "type": "array", "items": { "type": "object" } }, "licenses": { "type": "array", "items": { "type": "object" } }, "environmental_social": { "type": ["object", "null"] }, "risks": { "type": "array", "items": { "type": "object" } }, "relations": { "type": "array", "items": { "type": "object" } }, "documents": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/document" } }, "evidences": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/evidence" } }, "images": { "type": "array", "maxItems": 20, "items": { "$ref": "#/$defs/image" } }, "publication_languages": { "type": "array", "minItems": 1, "uniqueItems": false, "items": { "$ref": "#/$defs/localizedPublication" }, "contains": { "properties": { "language_code": { "const": "pt-MZ" } }, "required": ["language_code"] } }, "visibility": { "enum": ["internal", "authenticated", "public"] }, "review_due_date": { "type": ["string", "null"], "format": "date" }, "truth_declaration": { "const": true }, "real_estate": { "$ref": "#/$defs/realEstate" }, "land_rights": { "$ref": "#/$defs/landRights" }, "business_transaction": { "$ref": "#/$defs/businessTransaction" }, "module_profile_version": { "type": ["string", "null"] }, "completion_percentage": { "type": "number", "minimum": 0, "maximum": 100, "readOnly": true }, "validation_result": { "type": "object", "readOnly": true }, "status": { "enum": [ "draft", "submitted", "auto_validation_failed", "technical_review", "legal_territorial_review", "returned", "approval_pending", "approved", "publication_pending", "published", "suspended", "archived", "rejected" ], "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "submitted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "submitted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "approved_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "approved_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "published_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "published_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "archived_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "archived_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "mutation_context": { "$ref": "#/$defs/mutationContext" }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true } }, "required": [ "opportunity_category", "official_title", "promoter_id", "promoter_type", "internal_contact_id", "sector_id", "subsector_id", "economic_activity_id", "location_mode", "geographic_scope", "locations", "executive_summary", "demand_statement", "documents", "evidences", "publication_languages", "visibility", "truth_declaration" ], "allOf": [ { "if": { "properties": { "location_mode": { "const": "multiple" } }, "required": ["location_mode"] }, "then": { "properties": { "locations": { "minItems": 2 } } } }, { "if": { "properties": { "geographic_scope": { "enum": ["multi_district", "interprovincial"] } }, "required": ["geographic_scope"] }, "then": { "required": ["multi_district_rationale"] } }, { "if": { "properties": { "publish_contact": { "const": true } }, "required": ["publish_contact"] }, "then": { "required": ["public_contact_id"], "properties": { "public_contact_id": { "type": "string", "format": "uuid" } } } }, { "if": { "properties": { "visibility": { "const": "public" } }, "required": ["visibility"] }, "then": { "required": ["images", "review_due_date"], "properties": { "images": { "minItems": 1 }, "review_due_date": { "type": "string", "format": "date" } } } }, { "if": { "properties": { "opportunity_category": { "const": "investment_project" } }, "required": ["opportunity_category"] }, "then": { "required": [ "opportunity_type", "maturity_stage", "investment_modalities", "investor_profiles", "products", "assets", "markets", "competitive_advantage", "employment", "impact_indicators", "total_investment", "currency", "investment_breakdown", "secured_financing", "funding_sought", "milestones", "licenses", "environmental_social", "risks" ], "properties": { "products": { "minItems": 1 }, "assets": { "minItems": 1 }, "markets": { "minItems": 1 }, "employment": { "type": "object" }, "impact_indicators": { "minItems": 1 }, "total_investment": { "type": "number", "exclusiveMinimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "investment_breakdown": { "minItems": 1 }, "funding_sought": { "type": "number", "minimum": 0 }, "milestones": { "minItems": 2 }, "licenses": { "minItems": 1 }, "environmental_social": { "type": "object" }, "risks": { "minItems": 1 } } } }, { "if": { "properties": { "opportunity_category": { "const": "real_estate" } }, "required": ["opportunity_category"] }, "then": { "required": ["real_estate"] } }, { "if": { "properties": { "opportunity_category": { "const": "land_rights" } }, "required": ["opportunity_category"] }, "then": { "required": ["land_rights"] } }, { "if": { "properties": { "opportunity_category": { "const": "business_sale" } }, "required": ["opportunity_category"] }, "then": { "required": ["business_transaction"], "properties": { "business_transaction": { "properties": { "transaction_type": { "enum": [ "full_sale", "partial_sale", "succession" ] } }, "required": ["transaction_type"] } } } }, { "if": { "properties": { "opportunity_category": { "const": "business_partnership" } }, "required": ["opportunity_category"] }, "then": { "required": ["business_transaction"], "properties": { "business_transaction": { "properties": { "transaction_type": { "enum": ["partnership", "joint_venture"] } }, "required": ["transaction_type"] } } } }, { "if": { "properties": { "opportunity_category": { "const": "franchise" } }, "required": ["opportunity_category"] }, "then": { "required": ["business_transaction"], "properties": { "business_transaction": { "properties": { "transaction_type": { "const": "franchise" } }, "required": ["transaction_type"] } } } }, { "if": { "properties": { "opportunity_category": { "enum": [ "concession", "financing", "supply", "other" ] } }, "required": ["opportunity_category"] }, "then": { "required": ["module_profile_version"] } } ] }, "createOpportunityRequest": { "type": "object", "additionalProperties": false, "properties": { "data": { "$ref": "#/$defs/opportunityCreate" } }, "required": ["data"] }, "updateOpportunityRequest": { "type": "object", "additionalProperties": false, "properties": { "mutation_context": { "$ref": "#/$defs/mutationContext" }, "changes": { "$ref": "#/$defs/opportunityPatch" } }, "required": ["mutation_context", "changes"] }, "createResourceRequest": { "type": "object", "properties": { "resource_type": { "enum": [ "location", "item", "document", "evidence", "image", "localizedPublication", "realEstate", "landRights", "businessTransaction", "parcel", "improvement", "community", "catalogDefinition", "catalogOption", "catalogTranslation", "geoLayer", "geoFeature" ] }, "data": {} }, "required": ["resource_type", "data"], "allOf": [ { "oneOf": [ { "properties": { "resource_type": { "const": "location" }, "data": { "$ref": "#/$defs/locationCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "item" }, "data": { "$ref": "#/$defs/itemCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "document" }, "data": { "$ref": "#/$defs/documentCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "evidence" }, "data": { "$ref": "#/$defs/evidenceCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "image" }, "data": { "$ref": "#/$defs/imageCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "localizedPublication" }, "data": { "$ref": "#/$defs/localizedPublicationCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "realEstate" }, "data": { "$ref": "#/$defs/realEstateCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "landRights" }, "data": { "$ref": "#/$defs/landRightsCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "businessTransaction" }, "data": { "$ref": "#/$defs/businessTransactionCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "parcel" }, "data": { "$ref": "#/$defs/parcelCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "improvement" }, "data": { "$ref": "#/$defs/improvementCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "community" }, "data": { "$ref": "#/$defs/communityCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "catalogDefinition" }, "data": { "$ref": "#/$defs/catalogDefinitionCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "catalogOption" }, "data": { "$ref": "#/$defs/catalogOptionCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "catalogTranslation" }, "data": { "$ref": "#/$defs/catalogTranslationCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "geoLayer" }, "data": { "$ref": "#/$defs/geoLayerCreate" } }, "required": ["resource_type", "data"] }, { "properties": { "resource_type": { "const": "geoFeature" }, "data": { "$ref": "#/$defs/geoFeatureCreate" } }, "required": ["resource_type", "data"] } ] } ] }, "updateResourceRequest": { "type": "object", "properties": { "mutation_context": { "$ref": "#/$defs/mutationContext" }, "resource_type": { "enum": [ "location", "item", "document", "evidence", "image", "localizedPublication", "realEstate", "landRights", "businessTransaction", "parcel", "improvement", "community", "catalogDefinition", "catalogOption", "catalogTranslation", "geoLayer", "geoFeature" ] }, "changes": { "type": "object", "minProperties": 1 } }, "required": ["mutation_context", "resource_type", "changes"], "allOf": [ { "oneOf": [ { "properties": { "resource_type": { "const": "location" }, "changes": { "$ref": "#/$defs/locationPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "item" }, "changes": { "$ref": "#/$defs/itemPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "document" }, "changes": { "$ref": "#/$defs/documentPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "evidence" }, "changes": { "$ref": "#/$defs/evidencePatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "image" }, "changes": { "$ref": "#/$defs/imagePatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "localizedPublication" }, "changes": { "$ref": "#/$defs/localizedPublicationPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "realEstate" }, "changes": { "$ref": "#/$defs/realEstatePatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "landRights" }, "changes": { "$ref": "#/$defs/landRightsPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "businessTransaction" }, "changes": { "$ref": "#/$defs/businessTransactionPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "parcel" }, "changes": { "$ref": "#/$defs/parcelPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "improvement" }, "changes": { "$ref": "#/$defs/improvementPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "community" }, "changes": { "$ref": "#/$defs/communityPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "catalogDefinition" }, "changes": { "$ref": "#/$defs/catalogDefinitionPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "catalogOption" }, "changes": { "$ref": "#/$defs/catalogOptionPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "catalogTranslation" }, "changes": { "$ref": "#/$defs/catalogTranslationPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "geoLayer" }, "changes": { "$ref": "#/$defs/geoLayerPatch" } }, "required": ["resource_type", "changes"] }, { "properties": { "resource_type": { "const": "geoFeature" }, "changes": { "$ref": "#/$defs/geoFeaturePatch" } }, "required": ["resource_type", "changes"] } ] } ] }, "catalogDefinition": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "code": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "description": { "type": ["string", "null"] }, "is_hierarchical": { "type": "boolean" }, "active": { "type": "boolean", "readOnly": true } }, "required": [ "code", "name", "is_hierarchical", "active", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "catalogOption": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "code": { "type": "string", "minLength": 1 }, "label": { "type": "string", "minLength": 1 }, "sort_order": { "type": "integer", "minimum": 0 }, "active": { "type": "boolean", "readOnly": true }, "catalog_id": { "type": "string", "format": "uuid" }, "parent_option_id": { "type": ["string", "null"], "format": "uuid" } }, "required": [ "catalog_id", "code", "label", "active", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "catalogTranslation": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "catalog_option_id": { "type": "string", "format": "uuid" }, "language_code": { "type": "string", "pattern": "^[a-z]{2}(-[A-Z]{2})?$" }, "label": { "type": "string", "minLength": 1 }, "description": { "type": ["string", "null"] } }, "required": [ "catalog_option_id", "language_code", "label", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "geoLayer": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "code": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "srid": { "type": "integer", "const": 4326 }, "version_label": { "type": ["string", "null"] }, "active": { "type": "boolean", "readOnly": true }, "feature_type": { "enum": [ "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon", "GeometryCollection" ] } }, "required": [ "code", "name", "feature_type", "srid", "active", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "geoFeature": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "layer_id": { "type": "string", "format": "uuid" }, "parent_id": { "type": ["string", "null"], "format": "uuid" }, "name": { "type": "string", "minLength": 1 }, "geometry": { "type": "object" }, "properties": { "type": "object" }, "active": { "type": "boolean", "readOnly": true }, "official_code": { "type": "string", "minLength": 1 } }, "required": [ "layer_id", "official_code", "name", "geometry", "active", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "geoValidationRequest": { "type": "object", "additionalProperties": false, "properties": { "geometry": { "type": "object" }, "srid": { "type": "integer", "const": 4326 }, "layer": { "type": ["string", "null"] }, "parent_id": { "type": ["string", "null"], "format": "uuid" }, "checks": { "type": "array", "uniqueItems": true, "items": { "enum": [ "validity", "containment", "intersection", "overlap", "territory" ] } } }, "required": ["geometry"] }, "opportunityPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "opportunity_category": { "enum": [ "investment_project", "real_estate", "land_rights", "business_sale", "business_partnership", "franchise", "concession", "financing", "supply", "other" ] }, "official_title": { "type": "string", "minLength": 10, "maxLength": 150 }, "alternative_name": { "type": ["string", "null"], "maxLength": 120 }, "promoter_id": { "type": "string", "format": "uuid" }, "promoter_type": { "enum": [ "public", "private", "ppp", "cooperative", "association", "community", "other" ] }, "internal_contact_id": { "type": "string", "format": "uuid" }, "publish_contact": { "type": "boolean" }, "public_contact_id": { "type": ["string", "null"], "format": "uuid" }, "sector_id": { "type": "string", "format": "uuid" }, "subsector_id": { "type": "string", "format": "uuid" }, "economic_activity_id": { "type": "string", "format": "uuid" }, "location_mode": { "enum": ["single", "multiple"] }, "geographic_scope": { "enum": [ "local", "district", "multi_district", "provincial", "interprovincial", "national", "cross_border" ] }, "multi_district_rationale": { "type": ["string", "null"], "minLength": 50, "maxLength": 1000 }, "locations": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "$ref": "#/$defs/location" } }, "executive_summary": { "type": "string", "minLength": 300, "maxLength": 1500 }, "demand_statement": { "type": "string", "minLength": 100, "maxLength": 2000 }, "opportunity_type": { "type": ["string", "null"] }, "maturity_stage": { "type": ["string", "null"] }, "investment_modalities": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }, "investor_profiles": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }, "products": { "type": "array", "items": { "$ref": "#/$defs/product" } }, "assets": { "type": "array", "items": { "$ref": "#/$defs/asset" } }, "inputs": { "type": "array", "items": { "$ref": "#/$defs/input" } }, "markets": { "type": "array", "items": { "type": "object" } }, "competitive_advantage": { "type": ["string", "null"], "minLength": 100, "maxLength": 1500 }, "employment": { "$ref": "#/$defs/employment" }, "impact_indicators": { "type": "array", "items": { "$ref": "#/$defs/impact" } }, "total_investment": { "type": ["number", "null"], "exclusiveMinimum": 0, "multipleOf": 0.01 }, "currency": { "type": ["string", "null"], "pattern": "^[A-Z]{3}$" }, "investment_breakdown": { "type": "array", "items": { "$ref": "#/$defs/moneyItem" } }, "secured_financing": { "type": "array", "items": { "$ref": "#/$defs/moneyItem" } }, "funding_sought": { "type": ["number", "null"], "minimum": 0, "multipleOf": 0.01 }, "financial_indicators": { "type": ["object", "null"] }, "milestones": { "type": "array", "items": { "type": "object" } }, "licenses": { "type": "array", "items": { "type": "object" } }, "environmental_social": { "type": ["object", "null"] }, "risks": { "type": "array", "items": { "type": "object" } }, "relations": { "type": "array", "items": { "type": "object" } }, "documents": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/document" } }, "evidences": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/evidence" } }, "images": { "type": "array", "maxItems": 20, "items": { "$ref": "#/$defs/image" } }, "publication_languages": { "type": "array", "minItems": 1, "uniqueItems": false, "items": { "$ref": "#/$defs/localizedPublication" }, "contains": { "properties": { "language_code": { "const": "pt-MZ" } }, "required": ["language_code"] } }, "visibility": { "enum": ["internal", "authenticated", "public"] }, "review_due_date": { "type": ["string", "null"], "format": "date" }, "truth_declaration": { "const": true }, "real_estate": { "$ref": "#/$defs/realEstate" }, "land_rights": { "$ref": "#/$defs/landRights" }, "business_transaction": { "$ref": "#/$defs/businessTransaction" }, "module_profile_version": { "type": ["string", "null"] }, "mutation_context": { "$ref": "#/$defs/mutationContext" } } }, "opportunityCreate": { "type": "object", "additionalProperties": false, "properties": { "opportunity_category": { "enum": [ "investment_project", "real_estate", "land_rights", "business_sale", "business_partnership", "franchise", "concession", "financing", "supply", "other" ] }, "official_title": { "type": "string", "minLength": 10, "maxLength": 150 }, "alternative_name": { "type": ["string", "null"], "maxLength": 120 }, "promoter_id": { "type": "string", "format": "uuid" }, "promoter_type": { "enum": [ "public", "private", "ppp", "cooperative", "association", "community", "other" ] }, "internal_contact_id": { "type": "string", "format": "uuid" }, "publish_contact": { "type": "boolean" }, "public_contact_id": { "type": ["string", "null"], "format": "uuid" }, "sector_id": { "type": "string", "format": "uuid" }, "subsector_id": { "type": "string", "format": "uuid" }, "economic_activity_id": { "type": "string", "format": "uuid" }, "location_mode": { "enum": ["single", "multiple"] }, "geographic_scope": { "enum": [ "local", "district", "multi_district", "provincial", "interprovincial", "national", "cross_border" ] }, "multi_district_rationale": { "type": ["string", "null"], "minLength": 50, "maxLength": 1000 }, "locations": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "$ref": "#/$defs/location" } }, "executive_summary": { "type": "string", "minLength": 300, "maxLength": 1500 }, "demand_statement": { "type": "string", "minLength": 100, "maxLength": 2000 }, "opportunity_type": { "type": ["string", "null"] }, "maturity_stage": { "type": ["string", "null"] }, "investment_modalities": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }, "investor_profiles": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }, "products": { "type": "array", "items": { "$ref": "#/$defs/product" } }, "assets": { "type": "array", "items": { "$ref": "#/$defs/asset" } }, "inputs": { "type": "array", "items": { "$ref": "#/$defs/input" } }, "markets": { "type": "array", "items": { "type": "object" } }, "competitive_advantage": { "type": ["string", "null"], "minLength": 100, "maxLength": 1500 }, "employment": { "$ref": "#/$defs/employment" }, "impact_indicators": { "type": "array", "items": { "$ref": "#/$defs/impact" } }, "total_investment": { "type": ["number", "null"], "exclusiveMinimum": 0, "multipleOf": 0.01 }, "currency": { "type": ["string", "null"], "pattern": "^[A-Z]{3}$" }, "investment_breakdown": { "type": "array", "items": { "$ref": "#/$defs/moneyItem" } }, "secured_financing": { "type": "array", "items": { "$ref": "#/$defs/moneyItem" } }, "funding_sought": { "type": ["number", "null"], "minimum": 0, "multipleOf": 0.01 }, "financial_indicators": { "type": ["object", "null"] }, "milestones": { "type": "array", "items": { "type": "object" } }, "licenses": { "type": "array", "items": { "type": "object" } }, "environmental_social": { "type": ["object", "null"] }, "risks": { "type": "array", "items": { "type": "object" } }, "relations": { "type": "array", "items": { "type": "object" } }, "documents": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/document" } }, "evidences": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/evidence" } }, "images": { "type": "array", "maxItems": 20, "items": { "$ref": "#/$defs/image" } }, "publication_languages": { "type": "array", "minItems": 1, "uniqueItems": false, "items": { "$ref": "#/$defs/localizedPublication" }, "contains": { "properties": { "language_code": { "const": "pt-MZ" } }, "required": ["language_code"] } }, "visibility": { "enum": ["internal", "authenticated", "public"] }, "review_due_date": { "type": ["string", "null"], "format": "date" }, "truth_declaration": { "const": true }, "real_estate": { "$ref": "#/$defs/realEstate" }, "land_rights": { "$ref": "#/$defs/landRights" }, "business_transaction": { "$ref": "#/$defs/businessTransaction" }, "module_profile_version": { "type": ["string", "null"] }, "mutation_context": { "$ref": "#/$defs/mutationContext" } }, "required": [ "opportunity_category", "official_title", "promoter_id", "promoter_type", "internal_contact_id", "sector_id", "subsector_id", "economic_activity_id", "location_mode", "geographic_scope", "locations", "executive_summary", "demand_statement", "documents", "evidences", "publication_languages", "visibility", "truth_declaration" ] }, "opportunityResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "opportunity_code": { "type": "string", "pattern": "^INV-MZ-[A-Z0-9]{2,10}-[0-9]{3,}$", "readOnly": true }, "opportunity_category": { "enum": [ "investment_project", "real_estate", "land_rights", "business_sale", "business_partnership", "franchise", "concession", "financing", "supply", "other" ] }, "official_title": { "type": "string", "minLength": 10, "maxLength": 150 }, "alternative_name": { "type": ["string", "null"], "maxLength": 120 }, "promoter_id": { "type": "string", "format": "uuid" }, "promoter_type": { "enum": [ "public", "private", "ppp", "cooperative", "association", "community", "other" ] }, "internal_contact_id": { "type": "string", "format": "uuid" }, "publish_contact": { "type": "boolean", "default": false }, "public_contact_id": { "type": ["string", "null"], "format": "uuid" }, "sector_id": { "type": "string", "format": "uuid" }, "subsector_id": { "type": "string", "format": "uuid" }, "economic_activity_id": { "type": "string", "format": "uuid" }, "location_mode": { "enum": ["single", "multiple"] }, "geographic_scope": { "enum": [ "local", "district", "multi_district", "provincial", "interprovincial", "national", "cross_border" ] }, "multi_district_rationale": { "type": ["string", "null"], "minLength": 50, "maxLength": 1000 }, "locations": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "$ref": "#/$defs/location" } }, "executive_summary": { "type": "string", "minLength": 300, "maxLength": 1500 }, "demand_statement": { "type": "string", "minLength": 100, "maxLength": 2000 }, "opportunity_type": { "type": ["string", "null"] }, "maturity_stage": { "type": ["string", "null"] }, "investment_modalities": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }, "investor_profiles": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }, "products": { "type": "array", "items": { "$ref": "#/$defs/product" } }, "assets": { "type": "array", "items": { "$ref": "#/$defs/asset" } }, "inputs": { "type": "array", "items": { "$ref": "#/$defs/input" } }, "markets": { "type": "array", "items": { "type": "object" } }, "competitive_advantage": { "type": ["string", "null"], "minLength": 100, "maxLength": 1500 }, "employment": { "$ref": "#/$defs/employment" }, "impact_indicators": { "type": "array", "items": { "$ref": "#/$defs/impact" } }, "total_investment": { "type": ["number", "null"], "exclusiveMinimum": 0, "multipleOf": 0.01 }, "currency": { "type": ["string", "null"], "pattern": "^[A-Z]{3}$" }, "investment_breakdown": { "type": "array", "items": { "$ref": "#/$defs/moneyItem" } }, "secured_financing": { "type": "array", "items": { "$ref": "#/$defs/moneyItem" } }, "funding_sought": { "type": ["number", "null"], "minimum": 0, "multipleOf": 0.01 }, "financial_indicators": { "type": ["object", "null"] }, "milestones": { "type": "array", "items": { "type": "object" } }, "licenses": { "type": "array", "items": { "type": "object" } }, "environmental_social": { "type": ["object", "null"] }, "risks": { "type": "array", "items": { "type": "object" } }, "relations": { "type": "array", "items": { "type": "object" } }, "documents": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/document" } }, "evidences": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/evidence" } }, "images": { "type": "array", "maxItems": 20, "items": { "$ref": "#/$defs/image" } }, "publication_languages": { "type": "array", "minItems": 1, "uniqueItems": false, "items": { "$ref": "#/$defs/localizedPublication" }, "contains": { "properties": { "language_code": { "const": "pt-MZ" } }, "required": ["language_code"] } }, "visibility": { "enum": ["internal", "authenticated", "public"] }, "review_due_date": { "type": ["string", "null"], "format": "date" }, "truth_declaration": { "const": true }, "real_estate": { "$ref": "#/$defs/realEstate" }, "land_rights": { "$ref": "#/$defs/landRights" }, "business_transaction": { "$ref": "#/$defs/businessTransaction" }, "module_profile_version": { "type": ["string", "null"] }, "completion_percentage": { "type": "number", "minimum": 0, "maximum": 100, "readOnly": true }, "validation_result": { "type": "object", "readOnly": true }, "status": { "enum": [ "draft", "submitted", "auto_validation_failed", "technical_review", "legal_territorial_review", "returned", "approval_pending", "approved", "publication_pending", "published", "suspended", "archived", "rejected" ], "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "submitted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "submitted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "approved_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "approved_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "published_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "published_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "archived_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "archived_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "mutation_context": { "$ref": "#/$defs/mutationContext" }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true } }, "required": [ "opportunity_category", "official_title", "promoter_id", "promoter_type", "internal_contact_id", "sector_id", "subsector_id", "economic_activity_id", "location_mode", "geographic_scope", "locations", "executive_summary", "demand_statement", "documents", "evidences", "publication_languages", "visibility", "truth_declaration" ], "allOf": [ { "if": { "properties": { "location_mode": { "const": "multiple" } }, "required": ["location_mode"] }, "then": { "properties": { "locations": { "minItems": 2 } } } }, { "if": { "properties": { "geographic_scope": { "enum": ["multi_district", "interprovincial"] } }, "required": ["geographic_scope"] }, "then": { "required": ["multi_district_rationale"] } }, { "if": { "properties": { "publish_contact": { "const": true } }, "required": ["publish_contact"] }, "then": { "required": ["public_contact_id"], "properties": { "public_contact_id": { "type": "string", "format": "uuid" } } } }, { "if": { "properties": { "visibility": { "const": "public" } }, "required": ["visibility"] }, "then": { "required": ["images", "review_due_date"], "properties": { "images": { "minItems": 1 }, "review_due_date": { "type": "string", "format": "date" } } } }, { "if": { "properties": { "opportunity_category": { "const": "investment_project" } }, "required": ["opportunity_category"] }, "then": { "required": [ "opportunity_type", "maturity_stage", "investment_modalities", "investor_profiles", "products", "assets", "markets", "competitive_advantage", "employment", "impact_indicators", "total_investment", "currency", "investment_breakdown", "secured_financing", "funding_sought", "milestones", "licenses", "environmental_social", "risks" ], "properties": { "products": { "minItems": 1 }, "assets": { "minItems": 1 }, "markets": { "minItems": 1 }, "employment": { "type": "object" }, "impact_indicators": { "minItems": 1 }, "total_investment": { "type": "number", "exclusiveMinimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "investment_breakdown": { "minItems": 1 }, "funding_sought": { "type": "number", "minimum": 0 }, "milestones": { "minItems": 2 }, "licenses": { "minItems": 1 }, "environmental_social": { "type": "object" }, "risks": { "minItems": 1 } } } }, { "if": { "properties": { "opportunity_category": { "const": "real_estate" } }, "required": ["opportunity_category"] }, "then": { "required": ["real_estate"] } }, { "if": { "properties": { "opportunity_category": { "const": "land_rights" } }, "required": ["opportunity_category"] }, "then": { "required": ["land_rights"] } }, { "if": { "properties": { "opportunity_category": { "const": "business_sale" } }, "required": ["opportunity_category"] }, "then": { "required": ["business_transaction"], "properties": { "business_transaction": { "properties": { "transaction_type": { "enum": [ "full_sale", "partial_sale", "succession" ] } }, "required": ["transaction_type"] } } } }, { "if": { "properties": { "opportunity_category": { "const": "business_partnership" } }, "required": ["opportunity_category"] }, "then": { "required": ["business_transaction"], "properties": { "business_transaction": { "properties": { "transaction_type": { "enum": ["partnership", "joint_venture"] } }, "required": ["transaction_type"] } } } }, { "if": { "properties": { "opportunity_category": { "const": "franchise" } }, "required": ["opportunity_category"] }, "then": { "required": ["business_transaction"], "properties": { "business_transaction": { "properties": { "transaction_type": { "const": "franchise" } }, "required": ["transaction_type"] } } } }, { "if": { "properties": { "opportunity_category": { "enum": [ "concession", "financing", "supply", "other" ] } }, "required": ["opportunity_category"] }, "then": { "required": ["module_profile_version"] } } ] }, "locationCreate": { "type": "object", "additionalProperties": false, "properties": { "country_code": { "type": "string", "pattern": "^[A-Z]{2}$" }, "province_id": { "type": "string", "format": "uuid" }, "district_id": { "type": "string", "format": "uuid" }, "administrative_post_id": { "type": ["string", "null"], "format": "uuid" }, "locality_id": { "type": ["string", "null"], "format": "uuid" }, "geometry": { "type": ["object", "null"], "description": "GeoJSON Geometry in EPSG:4326" }, "area_value": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "area_unit": { "type": ["string", "null"], "enum": ["sqm", "ha", null] }, "allocation_percentage": { "type": ["number", "null"], "minimum": 0, "maximum": 100 }, "address": { "type": ["string", "null"], "maxLength": 300 }, "role": { "type": "string", "minLength": 1, "maxLength": 30 }, "role_other": { "type": ["string", "null"], "maxLength": 150 }, "is_primary": { "type": "boolean" } }, "required": ["province_id", "district_id", "role", "is_primary"] }, "locationPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "country_code": { "type": "string", "pattern": "^[A-Z]{2}$" }, "province_id": { "type": "string", "format": "uuid" }, "district_id": { "type": "string", "format": "uuid" }, "administrative_post_id": { "type": ["string", "null"], "format": "uuid" }, "locality_id": { "type": ["string", "null"], "format": "uuid" }, "geometry": { "type": ["object", "null"], "description": "GeoJSON Geometry in EPSG:4326" }, "area_value": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "area_unit": { "type": ["string", "null"], "enum": ["sqm", "ha", null] }, "allocation_percentage": { "type": ["number", "null"], "minimum": 0, "maximum": 100 }, "address": { "type": ["string", "null"], "maxLength": 300 }, "role": { "type": "string", "minLength": 1, "maxLength": 30 }, "role_other": { "type": ["string", "null"], "maxLength": 150 }, "is_primary": { "type": "boolean" } } }, "locationResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "country_code": { "type": "string", "pattern": "^[A-Z]{2}$" }, "province_id": { "type": "string", "format": "uuid" }, "district_id": { "type": "string", "format": "uuid" }, "administrative_post_id": { "type": ["string", "null"], "format": "uuid" }, "locality_id": { "type": ["string", "null"], "format": "uuid" }, "geometry": { "type": ["object", "null"], "description": "GeoJSON Geometry in EPSG:4326" }, "area_value": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "area_unit": { "type": ["string", "null"], "enum": ["sqm", "ha", null] }, "allocation_percentage": { "type": ["number", "null"], "minimum": 0, "maximum": 100 }, "address": { "type": ["string", "null"], "maxLength": 300 }, "role": { "type": "string", "minLength": 1, "maxLength": 30 }, "role_other": { "type": ["string", "null"], "maxLength": 150 }, "is_primary": { "type": "boolean" }, "active": { "type": "boolean", "default": true } }, "required": ["province_id", "district_id", "role", "is_primary"] }, "itemCreate": { "oneOf": [ { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "product" }, "payload": { "$ref": "#/$defs/productCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "asset" }, "payload": { "$ref": "#/$defs/assetCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "input" }, "payload": { "$ref": "#/$defs/inputCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "market" }, "payload": { "$ref": "#/$defs/marketCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "impact" }, "payload": { "$ref": "#/$defs/impactCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "investment" }, "payload": { "$ref": "#/$defs/moneyItemCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "financing" }, "payload": { "$ref": "#/$defs/moneyItemCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "milestone" }, "payload": { "$ref": "#/$defs/milestoneCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "license" }, "payload": { "$ref": "#/$defs/licenseCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "risk" }, "payload": { "$ref": "#/$defs/riskCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "relation" }, "payload": { "$ref": "#/$defs/relationCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "employment" }, "payload": { "$ref": "#/$defs/employmentCreate" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "environmental_social" }, "payload": { "$ref": "#/$defs/environmentalSocialCreate" } }, "required": ["item_type", "payload"] } ] }, "itemPatch": { "allOf": [ { "oneOf": [ { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "product" }, "payload": { "$ref": "#/$defs/product" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "asset" }, "payload": { "$ref": "#/$defs/asset" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "input" }, "payload": { "$ref": "#/$defs/input" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "market" }, "payload": { "$ref": "#/$defs/market" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "impact" }, "payload": { "$ref": "#/$defs/impact" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "investment" }, "payload": { "$ref": "#/$defs/moneyItem" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "financing" }, "payload": { "$ref": "#/$defs/moneyItem" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "milestone" }, "payload": { "$ref": "#/$defs/milestone" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "license" }, "payload": { "$ref": "#/$defs/license" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "risk" }, "payload": { "$ref": "#/$defs/risk" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "relation" }, "payload": { "$ref": "#/$defs/relation" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "employment" }, "payload": { "$ref": "#/$defs/employment" } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "environmental_social" }, "payload": { "$ref": "#/$defs/environmentalSocial" } }, "required": ["item_type", "payload"] } ] } ], "minProperties": 1 }, "itemResponse": { "oneOf": [ { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "product" }, "payload": { "$ref": "#/$defs/product" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "asset" }, "payload": { "$ref": "#/$defs/asset" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "input" }, "payload": { "$ref": "#/$defs/input" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "market" }, "payload": { "$ref": "#/$defs/market" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "impact" }, "payload": { "$ref": "#/$defs/impact" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "investment" }, "payload": { "$ref": "#/$defs/moneyItem" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "financing" }, "payload": { "$ref": "#/$defs/moneyItem" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "milestone" }, "payload": { "$ref": "#/$defs/milestone" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "license" }, "payload": { "$ref": "#/$defs/license" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "risk" }, "payload": { "$ref": "#/$defs/risk" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "relation" }, "payload": { "$ref": "#/$defs/relation" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "employment" }, "payload": { "$ref": "#/$defs/employment" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] }, { "type": "object", "additionalProperties": false, "properties": { "item_type": { "const": "environmental_social" }, "payload": { "$ref": "#/$defs/environmentalSocial" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 } }, "required": ["item_type", "payload"] } ] }, "documentCreate": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string", "minLength": 1 }, "mime_type": { "type": "string", "minLength": 1 }, "url": { "type": "string", "format": "uri" }, "confidential": { "type": "boolean" }, "category": { "type": "string", "minLength": 1 }, "original_name": { "type": "string", "minLength": 1 } }, "required": ["title", "category", "original_name"] }, "documentPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "title": { "type": "string", "minLength": 1 }, "mime_type": { "type": "string", "minLength": 1 }, "url": { "type": "string", "format": "uri" }, "confidential": { "type": "boolean" }, "category": { "type": "string", "minLength": 1 }, "original_name": { "type": "string", "minLength": 1 } } }, "documentResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "title": { "type": "string", "minLength": 1 }, "mime_type": { "type": "string", "minLength": 1 }, "url": { "type": "string", "format": "uri" }, "confidential": { "type": "boolean" }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "category": { "type": "string", "minLength": 1 }, "original_name": { "type": "string", "minLength": 1 } }, "required": [ "id", "version", "is_deleted", "title", "category", "original_name", "created_by", "created_at", "updated_by", "updated_at" ] }, "evidenceCreate": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string", "minLength": 1 }, "evidence_type": { "type": "string", "minLength": 1 }, "document_id": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "verified": { "type": "boolean" } }, "required": ["title", "evidence_type"] }, "evidencePatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "title": { "type": "string", "minLength": 1 }, "evidence_type": { "type": "string", "minLength": 1 }, "document_id": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "verified": { "type": "boolean" } } }, "evidenceResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "title": { "type": "string", "minLength": 1 }, "evidence_type": { "type": "string", "minLength": 1 }, "document_id": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "verified": { "type": "boolean" }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "id", "version", "is_deleted", "title", "evidence_type", "created_by", "created_at", "updated_by", "updated_at" ] }, "imageCreate": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string", "minLength": 1 }, "url": { "type": "string", "format": "uri" }, "alt_text": { "type": "string", "minLength": 1 }, "is_cover": { "type": "boolean" }, "sort_order": { "type": "integer", "minimum": 0 } }, "required": ["url", "alt_text"] }, "imagePatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "title": { "type": "string", "minLength": 1 }, "url": { "type": "string", "format": "uri" }, "alt_text": { "type": "string", "minLength": 1 }, "is_cover": { "type": "boolean" }, "sort_order": { "type": "integer", "minimum": 0 } } }, "imageResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "title": { "type": "string", "minLength": 1 }, "url": { "type": "string", "format": "uri" }, "alt_text": { "type": "string", "minLength": 1 }, "is_cover": { "type": "boolean" }, "sort_order": { "type": "integer", "minimum": 0 }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "id", "version", "is_deleted", "url", "alt_text", "created_by", "created_at", "updated_by", "updated_at" ] }, "localizedPublicationCreate": { "type": "object", "additionalProperties": false, "properties": { "language_code": { "type": "string" }, "title": { "type": "string" }, "summary": { "type": "string" } }, "required": ["language_code", "title", "summary"] }, "localizedPublicationPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "language_code": { "type": "string" }, "title": { "type": "string" }, "summary": { "type": "string" } } }, "localizedPublicationResponse": { "type": "object", "additionalProperties": false, "properties": { "opportunity_id": { "type": "string", "format": "uuid", "readOnly": true }, "language_code": { "type": "string" }, "title": { "type": "string" }, "summary": { "type": "string" }, "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "opportunity_id", "language_code", "title", "summary", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "realEstateCreate": { "type": "object", "additionalProperties": false, "properties": { "transaction_type": { "enum": [ "sale", "lease", "investment", "development", "partnership" ] }, "property_type": { "enum": [ "house", "apartment", "office", "retail", "warehouse", "hospitality", "industrial", "mixed_use", "development", "other" ] }, "construction_status": { "enum": [ "planned", "under_construction", "completed", "occupied", "renovation" ] }, "property_condition": { "type": ["string", "null"], "enum": ["new", "good", "fair", "poor", "derelict", null] }, "land_area": { "type": "number", "exclusiveMinimum": 0 }, "built_area": { "type": "number", "exclusiveMinimum": 0 }, "area_unit": { "enum": ["sqm", "ha"] }, "units": { "type": ["integer", "null"], "minimum": 0 }, "rooms": { "type": ["integer", "null"], "minimum": 0 }, "floors": { "type": ["integer", "null"], "minimum": 0 }, "amenities": { "type": "array", "items": { "type": "string" } }, "utilities": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "occupancy_status": { "enum": [ "vacant", "owner_occupied", "tenant_occupied", "partially_occupied" ] }, "title_type": { "type": "string", "minLength": 1 }, "registration_number": { "type": "string", "minLength": 1 }, "encumbrances": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "price": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "rent": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "rent_periodicity": { "type": ["string", "null"], "enum": [ "monthly", "quarterly", "semiannual", "annual", "other", null ] }, "deposit": { "type": ["number", "null"], "minimum": 0 }, "valuation": { "type": "object" }, "viewing": { "type": ["object", "null"] }, "planning_permit_document_id": { "type": ["string", "null"], "format": "uuid" }, "use_license_document_id": { "type": ["string", "null"], "format": "uuid" } }, "required": [ "transaction_type", "property_type", "construction_status", "land_area", "built_area", "area_unit", "utilities", "occupancy_status", "title_type", "registration_number", "encumbrances", "valuation" ] }, "realEstatePatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "transaction_type": { "enum": [ "sale", "lease", "investment", "development", "partnership" ] }, "property_type": { "enum": [ "house", "apartment", "office", "retail", "warehouse", "hospitality", "industrial", "mixed_use", "development", "other" ] }, "construction_status": { "enum": [ "planned", "under_construction", "completed", "occupied", "renovation" ] }, "property_condition": { "type": ["string", "null"], "enum": ["new", "good", "fair", "poor", "derelict", null] }, "land_area": { "type": "number", "exclusiveMinimum": 0 }, "built_area": { "type": "number", "exclusiveMinimum": 0 }, "area_unit": { "enum": ["sqm", "ha"] }, "units": { "type": ["integer", "null"], "minimum": 0 }, "rooms": { "type": ["integer", "null"], "minimum": 0 }, "floors": { "type": ["integer", "null"], "minimum": 0 }, "amenities": { "type": "array", "items": { "type": "string" } }, "utilities": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "occupancy_status": { "enum": [ "vacant", "owner_occupied", "tenant_occupied", "partially_occupied" ] }, "title_type": { "type": "string", "minLength": 1 }, "registration_number": { "type": "string", "minLength": 1 }, "encumbrances": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "price": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "rent": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "rent_periodicity": { "type": ["string", "null"], "enum": [ "monthly", "quarterly", "semiannual", "annual", "other", null ] }, "deposit": { "type": ["number", "null"], "minimum": 0 }, "valuation": { "type": "object" }, "viewing": { "type": ["object", "null"] }, "planning_permit_document_id": { "type": ["string", "null"], "format": "uuid" }, "use_license_document_id": { "type": ["string", "null"], "format": "uuid" } } }, "realEstateResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "transaction_type": { "enum": [ "sale", "lease", "investment", "development", "partnership" ] }, "property_type": { "enum": [ "house", "apartment", "office", "retail", "warehouse", "hospitality", "industrial", "mixed_use", "development", "other" ] }, "construction_status": { "enum": [ "planned", "under_construction", "completed", "occupied", "renovation" ] }, "property_condition": { "type": ["string", "null"], "enum": ["new", "good", "fair", "poor", "derelict", null] }, "land_area": { "type": "number", "exclusiveMinimum": 0 }, "built_area": { "type": "number", "exclusiveMinimum": 0 }, "area_unit": { "enum": ["sqm", "ha"] }, "units": { "type": ["integer", "null"], "minimum": 0 }, "rooms": { "type": ["integer", "null"], "minimum": 0 }, "floors": { "type": ["integer", "null"], "minimum": 0 }, "amenities": { "type": "array", "items": { "type": "string" } }, "utilities": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "occupancy_status": { "enum": [ "vacant", "owner_occupied", "tenant_occupied", "partially_occupied" ] }, "title_type": { "type": "string", "minLength": 1 }, "registration_number": { "type": "string", "minLength": 1 }, "encumbrances": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "price": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "rent": { "type": ["number", "null"], "exclusiveMinimum": 0 }, "rent_periodicity": { "type": ["string", "null"], "enum": [ "monthly", "quarterly", "semiannual", "annual", "other", null ] }, "deposit": { "type": ["number", "null"], "minimum": 0 }, "valuation": { "type": "object" }, "viewing": { "type": ["object", "null"] }, "planning_permit_document_id": { "type": ["string", "null"], "format": "uuid" }, "use_license_document_id": { "type": ["string", "null"], "format": "uuid" } }, "required": [ "transaction_type", "property_type", "construction_status", "land_area", "built_area", "area_unit", "utilities", "occupancy_status", "title_type", "registration_number", "encumbrances", "valuation" ], "allOf": [ { "if": { "properties": { "transaction_type": { "const": "sale" } }, "required": ["transaction_type"] }, "then": { "required": ["price"] } }, { "if": { "properties": { "transaction_type": { "const": "lease" } }, "required": ["transaction_type"] }, "then": { "required": ["rent", "rent_periodicity"] } }, { "if": { "properties": { "construction_status": { "enum": ["completed", "occupied", "renovation"] } }, "required": ["construction_status"] }, "then": { "required": ["property_condition"] } } ] }, "landRightsCreate": { "type": "object", "additionalProperties": false, "properties": { "operation_type": { "enum": [ "investment_with_duat", "transfer_of_improvements", "assignment_subject_to_authorization", "lease_of_improvements", "operating_partnership", "other_legal" ] }, "duat_status": { "enum": [ "none", "application", "provisional", "definitive", "occupancy_recognition", "community_right" ] }, "duat_number": { "type": ["string", "null"], "maxLength": 120 }, "holder_id": { "type": ["string", "null"], "format": "uuid" }, "holder_name": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuing_authority_id": { "type": ["string", "null"], "format": "uuid" }, "issue_date": { "type": ["string", "null"], "format": "date" }, "expiry_date": { "type": ["string", "null"], "format": "date" }, "authorized_purpose": { "type": "string", "minLength": 1 }, "exploitation_plan_document_id": { "type": ["string", "null"], "format": "uuid" }, "parcels": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/parcelCreate" } }, "improvements": { "type": "array", "items": { "$ref": "#/$defs/improvementCreate" } }, "communities": { "type": "array", "items": { "$ref": "#/$defs/communityCreate" } }, "community_consultation": { "type": ["object", "null"] }, "overlaps_conflicts": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "required_authorizations": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "consideration": { "type": ["object", "null"] } }, "required": [ "operation_type", "duat_status", "holder_name", "authorized_purpose", "parcels", "overlaps_conflicts", "required_authorizations" ] }, "landRightsPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "operation_type": { "enum": [ "investment_with_duat", "transfer_of_improvements", "assignment_subject_to_authorization", "lease_of_improvements", "operating_partnership", "other_legal" ] }, "duat_status": { "enum": [ "none", "application", "provisional", "definitive", "occupancy_recognition", "community_right" ] }, "duat_number": { "type": ["string", "null"], "maxLength": 120 }, "holder_id": { "type": ["string", "null"], "format": "uuid" }, "holder_name": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuing_authority_id": { "type": ["string", "null"], "format": "uuid" }, "issue_date": { "type": ["string", "null"], "format": "date" }, "expiry_date": { "type": ["string", "null"], "format": "date" }, "authorized_purpose": { "type": "string", "minLength": 1 }, "exploitation_plan_document_id": { "type": ["string", "null"], "format": "uuid" }, "parcels": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/parcelCreate" } }, "improvements": { "type": "array", "items": { "$ref": "#/$defs/improvementCreate" } }, "communities": { "type": "array", "items": { "$ref": "#/$defs/communityCreate" } }, "community_consultation": { "type": ["object", "null"] }, "overlaps_conflicts": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "required_authorizations": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "consideration": { "type": ["object", "null"] } } }, "landRightsResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "operation_type": { "enum": [ "investment_with_duat", "transfer_of_improvements", "assignment_subject_to_authorization", "lease_of_improvements", "operating_partnership", "other_legal" ] }, "duat_status": { "enum": [ "none", "application", "provisional", "definitive", "occupancy_recognition", "community_right" ] }, "duat_number": { "type": ["string", "null"], "maxLength": 120 }, "holder_id": { "type": ["string", "null"], "format": "uuid" }, "holder_name": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuing_authority_id": { "type": ["string", "null"], "format": "uuid" }, "issue_date": { "type": ["string", "null"], "format": "date" }, "expiry_date": { "type": ["string", "null"], "format": "date" }, "authorized_purpose": { "type": "string", "minLength": 1 }, "exploitation_plan_document_id": { "type": ["string", "null"], "format": "uuid" }, "parcels": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/parcelResponse" } }, "improvements": { "type": "array", "items": { "$ref": "#/$defs/improvementResponse" } }, "communities": { "type": "array", "items": { "$ref": "#/$defs/communityResponse" } }, "community_consultation": { "type": ["object", "null"] }, "overlaps_conflicts": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "required_authorizations": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "consideration": { "type": ["object", "null"] } }, "required": [ "operation_type", "duat_status", "holder_name", "authorized_purpose", "parcels", "overlaps_conflicts", "required_authorizations" ], "allOf": [ { "if": { "properties": { "duat_status": { "enum": ["provisional", "definitive"] } }, "required": ["duat_status"] }, "then": { "required": ["duat_number", "issuing_authority_id"] } }, { "if": { "properties": { "operation_type": { "enum": [ "transfer_of_improvements", "lease_of_improvements" ] } }, "required": ["operation_type"] }, "then": { "properties": { "improvements": { "minItems": 1 } }, "required": ["improvements", "consideration"] } }, { "if": { "properties": { "operation_type": { "const": "operating_partnership" } }, "required": ["operation_type"] }, "then": { "required": ["consideration"] } } ] }, "businessTransactionCreate": { "type": "object", "additionalProperties": false, "properties": { "transaction_type": { "enum": [ "full_sale", "partial_sale", "partnership", "joint_venture", "franchise", "succession", "financing" ] }, "legal_entity_id": { "type": "string", "format": "uuid" }, "legal_form": { "type": "string", "minLength": 1 }, "percentage_offered": { "type": ["number", "null"], "exclusiveMinimum": 0, "maximum": 100 }, "asking_price": { "type": "number", "exclusiveMinimum": 0 }, "valuation": { "type": "object" }, "financial_periods": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "assets_liabilities": { "type": "object" }, "employees": { "type": "object" }, "contracts_licenses": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "litigation_contingencies": { "type": "array", "items": { "type": "object" } }, "reason_for_transaction": { "type": "string", "minLength": 50, "maxLength": 1000 }, "partner_contribution": { "type": ["object", "null"] }, "governance_rights": { "type": ["object", "null"] }, "franchise_terms": { "type": ["object", "null"] }, "confidentiality_level": { "enum": ["teaser", "nda_required", "restricted"] }, "due_diligence_status": { "enum": [ "not_started", "data_room_ready", "in_progress", "completed", "exceptions" ] } }, "required": [ "transaction_type", "legal_entity_id", "legal_form", "asking_price", "valuation", "financial_periods", "assets_liabilities", "employees", "contracts_licenses", "litigation_contingencies", "reason_for_transaction", "confidentiality_level", "due_diligence_status" ] }, "businessTransactionPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "transaction_type": { "enum": [ "full_sale", "partial_sale", "partnership", "joint_venture", "franchise", "succession", "financing" ] }, "legal_entity_id": { "type": "string", "format": "uuid" }, "legal_form": { "type": "string", "minLength": 1 }, "percentage_offered": { "type": ["number", "null"], "exclusiveMinimum": 0, "maximum": 100 }, "asking_price": { "type": "number", "exclusiveMinimum": 0 }, "valuation": { "type": "object" }, "financial_periods": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "assets_liabilities": { "type": "object" }, "employees": { "type": "object" }, "contracts_licenses": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "litigation_contingencies": { "type": "array", "items": { "type": "object" } }, "reason_for_transaction": { "type": "string", "minLength": 50, "maxLength": 1000 }, "partner_contribution": { "type": ["object", "null"] }, "governance_rights": { "type": ["object", "null"] }, "franchise_terms": { "type": ["object", "null"] }, "confidentiality_level": { "enum": ["teaser", "nda_required", "restricted"] }, "due_diligence_status": { "enum": [ "not_started", "data_room_ready", "in_progress", "completed", "exceptions" ] } } }, "businessTransactionResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "default": false, "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000 }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "transaction_type": { "enum": [ "full_sale", "partial_sale", "partnership", "joint_venture", "franchise", "succession", "financing" ] }, "legal_entity_id": { "type": "string", "format": "uuid" }, "legal_form": { "type": "string", "minLength": 1 }, "percentage_offered": { "type": ["number", "null"], "exclusiveMinimum": 0, "maximum": 100 }, "asking_price": { "type": "number", "exclusiveMinimum": 0 }, "valuation": { "type": "object" }, "financial_periods": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "assets_liabilities": { "type": "object" }, "employees": { "type": "object" }, "contracts_licenses": { "type": "array", "minItems": 1, "items": { "type": "object" } }, "litigation_contingencies": { "type": "array", "items": { "type": "object" } }, "reason_for_transaction": { "type": "string", "minLength": 50, "maxLength": 1000 }, "partner_contribution": { "type": ["object", "null"] }, "governance_rights": { "type": ["object", "null"] }, "franchise_terms": { "type": ["object", "null"] }, "confidentiality_level": { "enum": ["teaser", "nda_required", "restricted"] }, "due_diligence_status": { "enum": [ "not_started", "data_room_ready", "in_progress", "completed", "exceptions" ] } }, "required": [ "transaction_type", "legal_entity_id", "legal_form", "asking_price", "valuation", "financial_periods", "assets_liabilities", "employees", "contracts_licenses", "litigation_contingencies", "reason_for_transaction", "confidentiality_level", "due_diligence_status" ], "allOf": [ { "if": { "properties": { "transaction_type": { "const": "full_sale" } }, "required": ["transaction_type"] }, "then": { "properties": { "percentage_offered": { "const": 100 } }, "required": ["percentage_offered", "governance_rights"] } }, { "if": { "properties": { "transaction_type": { "enum": [ "partial_sale", "partnership", "joint_venture" ] } }, "required": ["transaction_type"] }, "then": { "required": ["percentage_offered", "governance_rights"] } }, { "if": { "properties": { "transaction_type": { "enum": ["partnership", "joint_venture"] } }, "required": ["transaction_type"] }, "then": { "required": ["partner_contribution"] } }, { "if": { "properties": { "transaction_type": { "const": "franchise" } }, "required": ["transaction_type"] }, "then": { "required": ["franchise_terms"] } } ] }, "parcelCreate": { "type": "object", "additionalProperties": false, "properties": { "cadastral_number": { "type": ["string", "null"], "maxLength": 120 }, "location_id": { "type": "string", "format": "uuid" }, "area": { "type": "number", "exclusiveMinimum": 0 }, "geometry": { "type": "object", "additionalProperties": false, "properties": { "type": { "const": "MultiPolygon" }, "coordinates": { "type": "array" } }, "required": ["type", "coordinates"] }, "overlap_status": { "type": "string", "maxLength": 30 } }, "required": ["location_id", "area", "geometry", "overlap_status"] }, "parcelPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "cadastral_number": { "type": ["string", "null"], "maxLength": 120 }, "location_id": { "type": "string", "format": "uuid" }, "area": { "type": "number", "exclusiveMinimum": 0 }, "geometry": { "type": "object", "additionalProperties": false, "properties": { "type": { "const": "MultiPolygon" }, "coordinates": { "type": "array" } }, "required": ["type", "coordinates"] }, "overlap_status": { "type": "string", "maxLength": 30 } } }, "parcelResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "opportunity_id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "active": { "type": "boolean", "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "cadastral_number": { "type": ["string", "null"], "maxLength": 120 }, "location_id": { "type": "string", "format": "uuid" }, "area": { "type": "number", "exclusiveMinimum": 0 }, "geometry": { "type": "object", "additionalProperties": false, "properties": { "type": { "const": "MultiPolygon" }, "coordinates": { "type": "array" } }, "required": ["type", "coordinates"] }, "overlap_status": { "type": "string", "maxLength": 30 } }, "required": [ "id", "opportunity_id", "location_id", "area", "geometry", "overlap_status", "version", "active", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "improvementCreate": { "type": "object", "additionalProperties": false, "properties": { "improvement_type": { "type": "string", "maxLength": 60 }, "owner_name": { "type": "string", "maxLength": 200 }, "assessed_value": { "type": ["number", "null"], "minimum": 0 }, "currency": { "type": ["string", "null"], "pattern": "^[A-Z]{3}$" }, "valuation_date": { "type": ["string", "null"], "format": "date" }, "document_id": { "type": ["string", "null"], "format": "uuid" }, "image_id": { "type": ["string", "null"], "format": "uuid" } }, "required": ["improvement_type", "owner_name"] }, "improvementPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "improvement_type": { "type": "string", "maxLength": 60 }, "owner_name": { "type": "string", "maxLength": 200 }, "assessed_value": { "type": ["number", "null"], "minimum": 0 }, "currency": { "type": ["string", "null"], "pattern": "^[A-Z]{3}$" }, "valuation_date": { "type": ["string", "null"], "format": "date" }, "document_id": { "type": ["string", "null"], "format": "uuid" }, "image_id": { "type": ["string", "null"], "format": "uuid" } } }, "improvementResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "opportunity_id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "active": { "type": "boolean", "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "improvement_type": { "type": "string", "maxLength": 60 }, "owner_name": { "type": "string", "maxLength": 200 }, "assessed_value": { "type": ["number", "null"], "minimum": 0 }, "currency": { "type": ["string", "null"], "pattern": "^[A-Z]{3}$" }, "valuation_date": { "type": ["string", "null"], "format": "date" }, "document_id": { "type": ["string", "null"], "format": "uuid" }, "image_id": { "type": ["string", "null"], "format": "uuid" } }, "required": [ "id", "opportunity_id", "improvement_type", "owner_name", "version", "active", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "communityCreate": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "maxLength": 200 }, "location_id": { "type": ["string", "null"], "format": "uuid" }, "consultation_status": { "type": "string", "maxLength": 30 }, "consultation_date": { "type": ["string", "null"], "format": "date" }, "representative_name": { "type": ["string", "null"], "maxLength": 200 }, "notes": { "type": ["string", "null"] } }, "required": ["name", "consultation_status"] }, "communityPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "name": { "type": "string", "maxLength": 200 }, "location_id": { "type": ["string", "null"], "format": "uuid" }, "consultation_status": { "type": "string", "maxLength": 30 }, "consultation_date": { "type": ["string", "null"], "format": "date" }, "representative_name": { "type": ["string", "null"], "maxLength": 200 }, "notes": { "type": ["string", "null"] } } }, "communityResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "opportunity_id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "active": { "type": "boolean", "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "name": { "type": "string", "maxLength": 200 }, "location_id": { "type": ["string", "null"], "format": "uuid" }, "consultation_status": { "type": "string", "maxLength": 30 }, "consultation_date": { "type": ["string", "null"], "format": "date" }, "representative_name": { "type": ["string", "null"], "maxLength": 200 }, "notes": { "type": ["string", "null"] } }, "required": [ "id", "opportunity_id", "name", "consultation_status", "version", "active", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "catalogDefinitionCreate": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "description": { "type": ["string", "null"] }, "is_hierarchical": { "type": "boolean" } }, "required": ["code", "name", "is_hierarchical"] }, "catalogDefinitionPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "code": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "description": { "type": ["string", "null"] }, "is_hierarchical": { "type": "boolean" } } }, "catalogDefinitionResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "code": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "description": { "type": ["string", "null"] }, "is_hierarchical": { "type": "boolean" }, "active": { "type": "boolean", "readOnly": true } }, "required": [ "code", "name", "is_hierarchical", "active", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "catalogOptionCreate": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "string", "minLength": 1 }, "label": { "type": "string", "minLength": 1 }, "sort_order": { "type": "integer", "minimum": 0 }, "catalog_id": { "type": "string", "format": "uuid" }, "parent_option_id": { "type": ["string", "null"], "format": "uuid" } }, "required": ["catalog_id", "code", "label"] }, "catalogOptionPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "code": { "type": "string", "minLength": 1 }, "label": { "type": "string", "minLength": 1 }, "sort_order": { "type": "integer", "minimum": 0 }, "catalog_id": { "type": "string", "format": "uuid" }, "parent_option_id": { "type": ["string", "null"], "format": "uuid" } } }, "catalogOptionResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "code": { "type": "string", "minLength": 1 }, "label": { "type": "string", "minLength": 1 }, "sort_order": { "type": "integer", "minimum": 0 }, "active": { "type": "boolean", "readOnly": true }, "catalog_id": { "type": "string", "format": "uuid" }, "parent_option_id": { "type": ["string", "null"], "format": "uuid" } }, "required": [ "catalog_id", "code", "label", "active", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "catalogTranslationCreate": { "type": "object", "additionalProperties": false, "properties": { "catalog_option_id": { "type": "string", "format": "uuid" }, "language_code": { "type": "string", "pattern": "^[a-z]{2}(-[A-Z]{2})?$" }, "label": { "type": "string", "minLength": 1 }, "description": { "type": ["string", "null"] } }, "required": ["catalog_option_id", "language_code", "label"] }, "catalogTranslationPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "catalog_option_id": { "type": "string", "format": "uuid" }, "language_code": { "type": "string", "pattern": "^[a-z]{2}(-[A-Z]{2})?$" }, "label": { "type": "string", "minLength": 1 }, "description": { "type": ["string", "null"] } } }, "catalogTranslationResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "catalog_option_id": { "type": "string", "format": "uuid" }, "language_code": { "type": "string", "pattern": "^[a-z]{2}(-[A-Z]{2})?$" }, "label": { "type": "string", "minLength": 1 }, "description": { "type": ["string", "null"] } }, "required": [ "catalog_option_id", "language_code", "label", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "geoLayerCreate": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "srid": { "type": "integer", "const": 4326 }, "version_label": { "type": ["string", "null"] }, "feature_type": { "enum": [ "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon", "GeometryCollection" ] } }, "required": ["code", "name", "feature_type", "srid"] }, "geoLayerPatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "code": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "srid": { "type": "integer", "const": 4326 }, "version_label": { "type": ["string", "null"] }, "feature_type": { "enum": [ "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon", "GeometryCollection" ] } } }, "geoLayerResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "code": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "srid": { "type": "integer", "const": 4326 }, "version_label": { "type": ["string", "null"] }, "active": { "type": "boolean", "readOnly": true }, "feature_type": { "enum": [ "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon", "GeometryCollection" ] } }, "required": [ "code", "name", "feature_type", "srid", "active", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "geoFeatureCreate": { "type": "object", "additionalProperties": false, "properties": { "layer_id": { "type": "string", "format": "uuid" }, "parent_id": { "type": ["string", "null"], "format": "uuid" }, "name": { "type": "string", "minLength": 1 }, "geometry": { "type": "object" }, "properties": { "type": "object" }, "official_code": { "type": "string", "minLength": 1 } }, "required": ["layer_id", "official_code", "name", "geometry"] }, "geoFeaturePatch": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "layer_id": { "type": "string", "format": "uuid" }, "parent_id": { "type": ["string", "null"], "format": "uuid" }, "name": { "type": "string", "minLength": 1 }, "geometry": { "type": "object" }, "properties": { "type": "object" }, "official_code": { "type": "string", "minLength": 1 } } }, "geoFeatureResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "version": { "type": "integer", "minimum": 1, "readOnly": true }, "is_deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": ["string", "null"], "format": "date-time", "readOnly": true }, "deleted_by": { "type": ["string", "null"], "format": "uuid", "readOnly": true }, "delete_reason": { "type": ["string", "null"], "minLength": 20, "maxLength": 1000, "readOnly": true }, "created_by": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_by": { "type": "string", "format": "uuid", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "layer_id": { "type": "string", "format": "uuid" }, "parent_id": { "type": ["string", "null"], "format": "uuid" }, "name": { "type": "string", "minLength": 1 }, "geometry": { "type": "object" }, "properties": { "type": "object" }, "active": { "type": "boolean", "readOnly": true }, "official_code": { "type": "string", "minLength": 1 } }, "required": [ "layer_id", "official_code", "name", "geometry", "active", "id", "version", "is_deleted", "created_by", "created_at", "updated_by", "updated_at" ] }, "productCreate": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1 }, "code": { "type": "string", "minLength": 1 }, "category": { "type": "string", "minLength": 1 }, "quantity": { "type": "number" }, "unit": { "type": "string", "minLength": 1 } }, "required": ["name", "category"] }, "assetCreate": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1 }, "asset_type": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "value": { "type": "number", "minimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" } }, "required": ["name", "asset_type"] }, "inputCreate": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1 }, "input_type": { "type": "string", "minLength": 1 }, "quantity": { "type": "number" }, "unit": { "type": "string", "minLength": 1 }, "source_country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": ["name", "input_type"] }, "marketCreate": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1 }, "market_type": { "type": "string", "minLength": 1 }, "country_code": { "type": "string", "pattern": "^[A-Z]{2}$" }, "share_percentage": { "type": "number", "minimum": 0, "maximum": 100 } }, "required": ["name", "market_type"] }, "impactCreate": { "type": "object", "additionalProperties": false, "properties": { "impact_type": { "type": "string", "minLength": 1 }, "description": { "type": "string", "minLength": 1 }, "indicator": { "type": "string", "minLength": 1 }, "target": { "type": "number" }, "unit": { "type": "string", "minLength": 1 } }, "required": ["impact_type", "description"] }, "moneyItemCreate": { "type": "object", "additionalProperties": false, "properties": { "label": { "type": "string", "minLength": 1 }, "amount": { "type": "number", "minimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "year": { "type": "integer", "minimum": 1900 } }, "required": ["label", "amount", "currency"] }, "milestoneCreate": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string", "minLength": 1 }, "due_date": { "type": "string", "format": "date" }, "status": { "type": "string", "minLength": 1 }, "completion_percentage": { "type": "number", "minimum": 0, "maximum": 100 } }, "required": ["title", "due_date", "status"] }, "licenseCreate": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1 }, "authority": { "type": "string", "minLength": 1 }, "status": { "type": "string", "minLength": 1 }, "number": { "type": "string" }, "issued_at": { "type": "string", "format": "date" }, "expires_at": { "type": ["string", "null"], "format": "date" } }, "required": ["name", "authority", "status"] }, "riskCreate": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string", "minLength": 1 }, "category": { "type": "string", "minLength": 1 }, "likelihood": { "type": "integer", "minimum": 1, "maximum": 5 }, "severity": { "type": "integer", "minimum": 1, "maximum": 5 }, "mitigation": { "type": "string", "minLength": 1 } }, "required": ["title", "category", "likelihood", "severity"] }, "relationCreate": { "type": "object", "additionalProperties": false, "properties": { "related_id": { "type": "string", "minLength": 1 }, "relation_type": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "evidence_ids": { "type": "array", "items": { "$ref": "#/$defs/evidence" } } }, "required": ["related_id", "relation_type"] }, "employmentCreate": { "type": "object", "additionalProperties": false, "properties": { "employment_type": { "type": "string", "minLength": 1 }, "direct_jobs": { "type": "integer", "minimum": 0 }, "indirect_jobs": { "type": "integer", "minimum": 0 }, "female_percentage": { "type": "number", "minimum": 0, "maximum": 100 }, "youth_percentage": { "type": "number", "minimum": 0, "maximum": 100 } }, "required": ["employment_type", "direct_jobs"] }, "environmentalSocialCreate": { "type": "object", "additionalProperties": false, "properties": { "assessment_status": { "type": "string", "minLength": 1 }, "environmental_category": { "type": "string", "minLength": 1 }, "social_risks": { "type": "array", "items": { "type": "string" } }, "mitigation_plan": { "type": "string" } }, "required": ["assessment_status", "environmental_category"] } }, "$ref": "#/$defs/opportunityResponse" }