UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

30 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runtimeFileQuerySchema = exports.runtimeFileSchema = exports.runtimeFileStatus = void 0; /* Custom modules */ const createQuerySchema_1 = require("../../helper/createQuerySchema"); exports.runtimeFileStatus = [ "infected", "scanned", // we have scanned the file and it is not infected ]; exports.runtimeFileSchema = { title: "runtimeFileSchema", type: "object", additionalProperties: false, required: [ "projectId", "organisationId", ], properties: { _id: { type: "string", format: "mongo-id" }, name: { type: "string" }, mimeType: { type: "string" }, size: { type: "number" }, storageConnection: { type: "string", format: "uuid" }, status: { type: "string", enum: [...exports.runtimeFileStatus] }, projectId: { type: "string", format: "mongo-id" }, organisationId: { type: "string", format: "mongo-id" } } }; exports.runtimeFileQuerySchema = (0, createQuerySchema_1.createQuerySchema)("runtimeFileQuerySchema", exports.runtimeFileSchema); //# sourceMappingURL=IRuntimeFile.js.map