{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keenethics-labs-com/json-schema/keenethics-labs-com-search-entry-schema.json",
  "title": "SearchEntry",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keenethics-entertainment-hub-openapi.yaml#/components/schemas/SearchEntry",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "organization": {
      "$ref": "#/$defs/Organization"
    },
    "organizationId": {
      "type": "string",
      "format": "uuid"
    },
    "specialist": {
      "$ref": "#/$defs/Specialist"
    },
    "specialistId": {
      "type": "string",
      "format": "uuid"
    }
  },
  "$defs": {
    "ActivityType": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "individual",
            "family",
            "group",
            "business",
            "pair",
            "kids"
          ]
        },
        "description": {
          "type": "string"
        },
        "imagePath": {
          "type": "string"
        },
        "isActive": {
          "type": "boolean"
        },
        "priority": {
          "type": "integer"
        }
      }
    },
    "Addresses": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "fullAddress": {
            "type": "string"
          },
          "districtId": {
            "type": "string",
            "format": "uuid"
          },
          "isPrimary": {
            "type": "boolean"
          },
          "longitude": {
            "type": "number"
          },
          "latitude": {
            "type": "number"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      }
    },
    "ClientCategory": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    },
    "Method": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "simpleId": {
          "type": "integer"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "Organization": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "name": {
          "type": "string"
        },
        "expertSpecializations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Specialization"
          }
        },
        "specializationMethods": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Method"
          }
        },
        "organizationType": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid"
            },
            "name": {
              "type": "string"
            },
            "createdAt": {
              "type": "string",
              "format": "datetime"
            }
          }
        },
        "ownershipType": {
          "type": "string",
          "enum": [
            "PRIVATE",
            "GOVERNMENT"
          ]
        },
        "isInclusiveSpace": {
          "type": "boolean"
        },
        "description": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "phone": {
          "type": "string",
          "format": "phone"
        },
        "facebook": {
          "type": "string",
          "format": "url"
        },
        "instagram": {
          "type": "string",
          "format": "url"
        },
        "linkedin": {
          "type": "string",
          "format": "url"
        },
        "telegram": {
          "type": "string",
          "format": "url"
        },
        "tiktok": {
          "type": "string",
          "format": "url"
        },
        "viber": {
          "type": "string",
          "format": "url"
        },
        "website": {
          "type": "string",
          "format": "url"
        },
        "youtube": {
          "type": "string",
          "format": "url"
        },
        "formatOfWork": {
          "type": "string",
          "enum": [
            "OFFLINE",
            "ONLINE",
            "BOTH"
          ]
        },
        "isActive": {
          "type": "boolean"
        },
        "isFreeReception": {
          "type": "boolean"
        },
        "yearsOnMarket": {
          "type": "integer"
        },
        "addresses": {
          "$ref": "#/$defs/Addresses"
        },
        "workTime": {
          "$ref": "#/$defs/Worktime"
        },
        "supportFocuses": {
          "$ref": "#/$defs/SupportFocus"
        },
        "clientsWorkingWith": {
          "$ref": "#/$defs/ClientCategory"
        },
        "clientsNotWorkingWith": {
          "$ref": "#/$defs/ClientCategory"
        }
      }
    },
    "Request": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "simpleId": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    },
    "Specialist": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "surname": {
          "type": "string"
        },
        "specializations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Specialization"
          }
        },
        "specializationMethods": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Method"
          }
        },
        "gender": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "phone": {
          "type": "string",
          "format": "phone"
        },
        "facebook": {
          "type": "string",
          "format": "url"
        },
        "instagram": {
          "type": "string",
          "format": "url"
        },
        "linkedin": {
          "type": "string",
          "format": "url"
        },
        "telegram": {
          "type": "string",
          "format": "url"
        },
        "tiktok": {
          "type": "string",
          "format": "url"
        },
        "viber": {
          "type": "string",
          "format": "url"
        },
        "website": {
          "type": "string",
          "format": "url"
        },
        "youtube": {
          "type": "string",
          "format": "url"
        },
        "formatOfWork": {
          "type": "string",
          "enum": [
            "OFFLINE",
            "ONLINE",
            "BOTH"
          ]
        },
        "isActive": {
          "type": "boolean"
        },
        "isFreeReception": {
          "type": "boolean"
        },
        "yearsOfExperience": {
          "type": "integer"
        },
        "addresses": {
          "$ref": "#/$defs/Addresses"
        },
        "workTime": {
          "$ref": "#/$defs/Worktime"
        },
        "supportFocuses": {
          "$ref": "#/$defs/SupportFocus"
        },
        "clientsWorkingWith": {
          "$ref": "#/$defs/ClientCategory"
        },
        "clientsNotWorkingWith": {
          "$ref": "#/$defs/ClientCategory"
        }
      }
    },
    "Specialization": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "SupportFocus": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "price": {
          "type": "integer"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "activity": {
          "$ref": "#/$defs/ActivityType"
        },
        "requests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Request"
          }
        }
      }
    },
    "Worktime": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "isDayOff": {
            "type": "boolean"
          },
          "time": {
            "type": "string"
          },
          "weekDay": {
            "type": "string",
            "enum": [
              "MON",
              "TUE",
              "WED",
              "THU",
              "FRI",
              "SAT",
              "SUN"
            ]
          }
        }
      }
    }
  }
}