{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getcheapgames-com/json-schema/getcheapgames-com-gcg-routers-mailing-giveaways-out-schema.json",
  "title": "GiveawaysOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getcheapgames-com-mailing-api-openapi.yml#/components/schemas/gcg__routers__mailing__GiveawaysOut",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/gcg__routers__mailing__GiveawayOut"
      },
      "type": "array",
      "title": "Items"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "limit": {
      "type": "integer",
      "title": "Limit"
    },
    "offset": {
      "type": "integer",
      "title": "Offset"
    },
    "counts": {
      "$ref": "#/$defs/GiveawayCounts"
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "limit",
    "offset",
    "counts"
  ],
  "$defs": {
    "GiveawayCounts": {
      "properties": {
        "open": {
          "type": "integer",
          "title": "Open"
        },
        "ended": {
          "type": "integer",
          "title": "Ended"
        },
        "all": {
          "type": "integer",
          "title": "All"
        },
        "byPlatform": {
          "$ref": "#/$defs/PlatformCounts"
        }
      },
      "type": "object",
      "required": [
        "open",
        "ended",
        "all",
        "byPlatform"
      ],
      "title": "GiveawayCounts",
      "description": "What each chip would show, for the same search. Each row of chips is\ncounted under the OTHER row's choice: the status chips on the store\nchosen, the store chips in the status chosen; so the chip that is lit\nalways reads the table's `total`."
    },
    "PlatformCounts": {
      "properties": {
        "steam": {
          "type": "integer",
          "title": "Steam"
        },
        "epic": {
          "type": "integer",
          "title": "Epic"
        },
        "gog": {
          "type": "integer",
          "title": "Gog"
        }
      },
      "type": "object",
      "required": [
        "steam",
        "epic",
        "gog"
      ],
      "title": "PlatformCounts"
    },
    "gcg__routers__mailing__GiveawayOut": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "gameId": {
          "type": "integer",
          "title": "Gameid"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "platform": {
          "type": "string",
          "title": "Platform"
        },
        "claimUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Claimurl"
        },
        "startedAt": {
          "type": "string",
          "format": "date-time",
          "title": "Startedat"
        },
        "endsAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Endsat"
        },
        "endedAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Endedat"
        },
        "alertsSent": {
          "type": "integer",
          "title": "Alertssent"
        },
        "sourceId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourceid"
        }
      },
      "type": "object",
      "required": [
        "id",
        "gameId",
        "title",
        "platform",
        "claimUrl",
        "startedAt",
        "endsAt",
        "endedAt",
        "alertsSent",
        "sourceId"
      ],
      "title": "GiveawayOut"
    }
  }
}