{
  "$schema": "https://nodedc.ru/schemas/foundry-data-product-consumer-policies-v1.json",
  "schemaVersion": "nodedc.foundry.data-product-consumer-policies/v1",
  "policies": [
    {
      "id": "map-moving-object-current-v1",
      "version": "1.0.0",
      "dataProductId": "fleet.positions.current.v1",
      "productVersion": "1.0.0",
      "staleAfterMs": 60000,
      "terminalStatuses": [
        "inactive",
        "no-position",
        "no_position"
      ],
      "removeMode": "canonical-tombstone-or-snapshot-rebase"
    },
    {
      "id": "map-moving-object-current-v2",
      "version": "2.0.0",
      "dataProductId": "fleet.positions.current.v2",
      "productVersion": "2.0.0",
      "staleAfterMs": 60000,
      "terminalStatuses": [
        "inactive",
        "no-position",
        "no_position"
      ],
      "removeMode": "canonical-tombstone-or-snapshot-rebase"
    },
    {
      "id": "map-moving-object-current-v4",
      "version": "4.0.0",
      "dataProductId": "fleet.positions.current.v4",
      "productVersion": "4.0.0",
      "staleAfterMs": null,
      "terminalStatuses": [
        "inactive"
      ],
      "statusContract": {
        "attribute": "signal_state",
        "allowedValues": [
          "active",
          "inactive"
        ],
        "missing": "reject",
        "freshness": "none"
      },
      "removeMode": "canonical-tombstone-or-snapshot-rebase"
    },
    {
      "id": "map-moving-object-current-v5",
      "version": "5.0.0",
      "dataProductId": "fleet.positions.current.v5",
      "productVersion": "5.0.0",
      "staleAfterMs": null,
      "terminalStatuses": [
        "inactive"
      ],
      "statusContract": {
        "attribute": "signal_state",
        "allowedValues": [
          "active",
          "inactive"
        ],
        "missing": "reject",
        "freshness": "none"
      },
      "removeMode": "canonical-tombstone-or-snapshot-rebase"
    },
    {
      "id": "map-zone-current-v1",
      "version": "1.0.0",
      "dataProductId": "map.zones.current.v1",
      "productVersion": "1.0.0",
      "freshness": "none",
      "staleAfterMs": null,
      "terminalStatuses": [],
      "removeMode": "canonical-tombstone-or-snapshot-rebase"
    },
    {
      "id": "map-zone-current-v2",
      "version": "2.0.0",
      "dataProductId": "map.zones.current.v2",
      "productVersion": "2.0.0",
      "freshness": "none",
      "staleAfterMs": null,
      "terminalStatuses": [],
      "consumerContract": {
        "ontologyRevision": "ontology.map.zone.v1",
        "deliveryMode": "snapshot+patch",
        "semanticTypes": [
          "map.zone"
        ],
        "fieldProjection": [
          "display_name",
          "geometry_kind",
          "max_speed_kph",
          "schedule_timezone",
          "applies_to_couriers",
          "applies_to_kicksharing"
        ],
        "fieldTypes": {
          "display_name": "string",
          "geometry_kind": "string",
          "max_speed_kph": "number",
          "schedule_timezone": "string",
          "applies_to_couriers": "boolean",
          "applies_to_kicksharing": "boolean"
        },
        "geometryTypes": [
          "Polygon",
          "MultiPolygon"
        ],
        "subjectIdentity": "semantic-type+source-id",
        "snapshotMode": "atomic-replace",
        "patchMode": "atomic"
      },
      "removeMode": "canonical-tombstone-or-snapshot-rebase"
    }
  ]
}
