schemas/dataExport.json in losant_rest-1.17.4 vs schemas/dataExport.json in losant_rest-1.17.5

- old
+ new

@@ -38,37 +38,1495 @@ "additionalProperties": false }, "maxItems": 100 }, "deviceQuery": { - "title": "Advanced Query", - "description": "Schema for advanced filters and queries", + "title": "Advanced Device Query", + "description": "Schema for advanced device queries", "type": "object", "properties": { "$and": { "type": "array", "items": { - "$ref": "#/definitions/advancedQuery" + "$ref": "#/definitions/advancedDeviceQuery" }, "maxItems": 100 }, "$or": { "type": "array", "items": { - "$ref": "#/definitions/advancedQuery" + "$ref": "#/definitions/advancedDeviceQuery" }, "maxItems": 100 }, "$nor": { "type": "array", "items": { - "$ref": "#/definitions/advancedQuery" + "$ref": "#/definitions/advancedDeviceQuery" }, "maxItems": 100 - } - }, - "patternProperties": { - "^[0-9a-zA-Z_-]{1,255}$": { + }, + "id": { + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$ne": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + } + }, + "additionalProperties": false, + "minProperties": 1, + "maxProperties": 1 + } + ] + }, + "creationDate": { + "oneOf": [ + { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$ne": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$startsWith": { + "type": "string", + "minLength": 1 + }, + "$endsWith": { + "type": "string", + "minLength": 1 + }, + "$contains": { + "type": "string", + "minLength": 1 + }, + "$ci": { + "type": "boolean" + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + } + }, + "additionalProperties": false + } + ] + }, + "lastUpdated": { + "oneOf": [ + { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$ne": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$startsWith": { + "type": "string", + "minLength": 1 + }, + "$endsWith": { + "type": "string", + "minLength": 1 + }, + "$contains": { + "type": "string", + "minLength": 1 + }, + "$ci": { + "type": "boolean" + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + } + }, + "additionalProperties": false + } + ] + }, + "name": { + "oneOf": [ + { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$ne": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$startsWith": { + "type": "string", + "minLength": 1 + }, + "$endsWith": { + "type": "string", + "minLength": 1 + }, + "$contains": { + "type": "string", + "minLength": 1 + }, + "$ci": { + "type": "boolean" + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + } + }, + "additionalProperties": false + } + ] + }, + "deviceClass": { + "oneOf": [ + { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$ne": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$startsWith": { + "type": "string", + "minLength": 1 + }, + "$endsWith": { + "type": "string", + "minLength": 1 + }, + "$contains": { + "type": "string", + "minLength": 1 + }, + "$ci": { + "type": "boolean" + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + } + }, + "additionalProperties": false + } + ] + }, + "gatewayId": { + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$ne": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + } + }, + "additionalProperties": false, + "minProperties": 1, + "maxProperties": 1 + } + ] + }, + "parentId": { + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$ne": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + } + }, + "additionalProperties": false, + "minProperties": 1, + "maxProperties": 1 + } + ] + }, + "ancestorId": { + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$ne": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + } + }, + "additionalProperties": false, + "minProperties": 1, + "maxProperties": 1 + } + ] + }, + "attributeName": { + "oneOf": [ + { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$ne": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$startsWith": { + "type": "string", + "minLength": 1 + }, + "$endsWith": { + "type": "string", + "minLength": 1 + }, + "$contains": { + "type": "string", + "minLength": 1 + }, + "$ci": { + "type": "boolean" + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + } + }, + "additionalProperties": false + } + ] + }, + "experienceUserId": { + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$ne": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + } + }, + "additionalProperties": false, + "minProperties": 1, + "maxProperties": 1 + } + ] + }, + "experienceGroupId": { + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$ne": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lt": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$gte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$lte": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + }, + { + "type": "null" + } + ] + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string", + "pattern": "^[A-Fa-f\\d]{24}$" + } + } + }, + "additionalProperties": false, + "minProperties": 1, + "maxProperties": 1 + } + ] + }, + "tags": { + "oneOf": [ + { + "oneOf": [ + { + "type": "object", + "properties": { + "$tagKey": { + "type": "string", + "maxLength": 255 + }, + "$tagValue": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + { + "type": "object", + "patternProperties": { + "^[0-9a-zA-Z_-]{1,255}": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false + } + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "oneOf": [ + { + "type": "object", + "properties": { + "$tagKey": { + "type": "string", + "maxLength": 255 + }, + "$tagValue": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + { + "type": "object", + "patternProperties": { + "^[0-9a-zA-Z_-]{1,255}": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false + } + ] + } + }, + "required": [ + "$eq" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "$ne": { + "oneOf": [ + { + "type": "object", + "properties": { + "$tagKey": { + "type": "string", + "maxLength": 255 + }, + "$tagValue": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + { + "type": "object", + "patternProperties": { + "^[0-9a-zA-Z_-]{1,255}": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false + } + ] + } + }, + "required": [ + "$ne" + ], + "additionalProperties": false + } + ] + }, + "disconnectedAt": { + "oneOf": [ + { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$ne": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$startsWith": { + "type": "string", + "minLength": 1 + }, + "$endsWith": { + "type": "string", + "minLength": 1 + }, + "$contains": { + "type": "string", + "minLength": 1 + }, + "$ci": { + "type": "boolean" + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + } + }, + "additionalProperties": false + } + ] + }, + "connectedAt": { + "oneOf": [ + { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + { + "type": "object", + "properties": { + "$eq": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$ne": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lt": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$gte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$lte": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "$startsWith": { + "type": "string", + "minLength": 1 + }, + "$endsWith": { + "type": "string", + "minLength": 1 + }, + "$contains": { + "type": "string", + "minLength": 1 + }, + "$ci": { + "type": "boolean" + }, + "$in": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + }, + "$nin": { + "type": "array", + "maxItems": 100, + "items": { + "type": [ + "string", + "number", + "boolean" + ] + } + } + }, + "additionalProperties": false + } + ] + }, + "connectionStatus": { "oneOf": [ { "type": [ "string", "number", \ No newline at end of file