@veruna/api-contracts 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/controllers/index.d.ts +0 -1
- package/build/controllers/index.js +1 -4
- package/build/controllers/index.js.map +1 -1
- package/build/rest-api.d.ts +0 -9
- package/build/rest-api.js +0 -9
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +0 -1
- package/build/routes/index.js +1 -3
- package/build/routes/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/assistants/admin/commands/create-assistant.command.d.ts +2 -2
- package/build/v1/assistants/admin/commands/update-assistant.command.d.ts +2 -2
- package/build/v1/assistants/admin/queries/get-assistant.query.d.ts +1 -1
- package/build/v1/assistants/admin/queries/get-assistants.query.d.ts +3 -3
- package/build/v1/assistants/catalog/queries/catalog-long-reg.query.d.ts +2 -2
- package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.d.ts +2 -2
- package/build/v1/assistants/catalog/queries/catalog-short-reg.query.d.ts +4 -4
- package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.d.ts +2 -2
- package/build/v1/assistants/schemas/assistant-author.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/assistant-author.schema.js +1 -1
- package/build/v1/assistants/schemas/assistant-author.schema.js.map +1 -1
- package/build/v1/assistants/schemas/assistant-response.schema.d.ts +2 -2
- package/build/v1/assistants/schemas/catalog-long-response.schema.d.ts +12 -12
- package/build/v1/assistants/schemas/catalog-short-response.schema.d.ts +11 -11
- package/build/v1/assistants/schemas/create-assistant-request.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/create-user-assistant-request.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/update-assistant-request.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/update-user-assistant-request.schema.d.ts +2 -1
- package/build/v1/assistants/schemas/update-user-assistant-request.schema.js +6 -0
- package/build/v1/assistants/schemas/update-user-assistant-request.schema.js.map +1 -1
- package/build/v1/assistants/schemas/user-assistant-response.schema.d.ts +1 -1
- package/build/v1/assistants/user/commands/create-user-assistant.command.d.ts +2 -2
- package/build/v1/assistants/user/commands/update-user-assistant.command.d.ts +3 -2
- package/build/v1/assistants/user/queries/get-user-assistant.query.d.ts +1 -1
- package/build/v1/file/index.d.ts +0 -5
- package/build/v1/file/index.js +0 -8
- package/build/v1/file/index.js.map +1 -1
- package/package.json +1 -1
- package/build/controllers/file.controllers.d.ts +0 -1
- package/build/controllers/file.controllers.js +0 -5
- package/build/controllers/file.controllers.js.map +0 -1
- package/build/routes/file.routes.d.ts +0 -9
- package/build/routes/file.routes.js +0 -13
- package/build/routes/file.routes.js.map +0 -1
- package/build/v1/file/commands/delete-file-by-key.command.d.ts +0 -15
- package/build/v1/file/commands/delete-file-by-key.command.js +0 -14
- package/build/v1/file/commands/delete-file-by-key.command.js.map +0 -1
- package/build/v1/file/commands/delete-file.command.d.ts +0 -15
- package/build/v1/file/commands/delete-file.command.js +0 -17
- package/build/v1/file/commands/delete-file.command.js.map +0 -1
- package/build/v1/file/commands/index.d.ts +0 -4
- package/build/v1/file/commands/index.js +0 -21
- package/build/v1/file/commands/index.js.map +0 -1
- package/build/v1/file/commands/upload-file.command.d.ts +0 -16
- package/build/v1/file/commands/upload-file.command.js +0 -14
- package/build/v1/file/commands/upload-file.command.js.map +0 -1
- package/build/v1/file/commands/upload-image.command.d.ts +0 -19
- package/build/v1/file/commands/upload-image.command.js +0 -14
- package/build/v1/file/commands/upload-image.command.js.map +0 -1
- package/build/v1/file/queries/get-file.query.d.ts +0 -33
- package/build/v1/file/queries/get-file.query.js +0 -17
- package/build/v1/file/queries/get-file.query.js.map +0 -1
- package/build/v1/file/queries/index.d.ts +0 -3
- package/build/v1/file/queries/index.js +0 -20
- package/build/v1/file/queries/index.js.map +0 -1
- package/build/v1/file/queries/list-files.query.d.ts +0 -38
- package/build/v1/file/queries/list-files.query.js +0 -14
- package/build/v1/file/queries/list-files.query.js.map +0 -1
- package/build/v1/file/queries/list-folders.query.d.ts +0 -17
- package/build/v1/file/queries/list-folders.query.js +0 -14
- package/build/v1/file/queries/list-folders.query.js.map +0 -1
- package/build/v1/file/schemas/delete-file-by-key-request.schema.d.ts +0 -4
- package/build/v1/file/schemas/delete-file-by-key-request.schema.js +0 -10
- package/build/v1/file/schemas/delete-file-by-key-request.schema.js.map +0 -1
- package/build/v1/file/schemas/delete-file-response.schema.d.ts +0 -9
- package/build/v1/file/schemas/delete-file-response.schema.js +0 -13
- package/build/v1/file/schemas/delete-file-response.schema.js.map +0 -1
- package/build/v1/file/schemas/file-category.enum.d.ts +0 -6
- package/build/v1/file/schemas/file-category.enum.js +0 -11
- package/build/v1/file/schemas/file-category.enum.js.map +0 -1
- package/build/v1/file/schemas/file-response.schema.d.ts +0 -15
- package/build/v1/file/schemas/file-response.schema.js +0 -19
- package/build/v1/file/schemas/file-response.schema.js.map +0 -1
- package/build/v1/file/schemas/file-status.enum.d.ts +0 -7
- package/build/v1/file/schemas/file-status.enum.js +0 -12
- package/build/v1/file/schemas/file-status.enum.js.map +0 -1
- package/build/v1/file/schemas/file-variant-response.schema.d.ts +0 -10
- package/build/v1/file/schemas/file-variant-response.schema.js +0 -14
- package/build/v1/file/schemas/file-variant-response.schema.js.map +0 -1
- package/build/v1/file/schemas/file-with-variants-response.schema.d.ts +0 -23
- package/build/v1/file/schemas/file-with-variants-response.schema.js +0 -11
- package/build/v1/file/schemas/file-with-variants-response.schema.js.map +0 -1
- package/build/v1/file/schemas/folder-response.schema.d.ts +0 -11
- package/build/v1/file/schemas/folder-response.schema.js +0 -12
- package/build/v1/file/schemas/folder-response.schema.js.map +0 -1
- package/build/v1/file/schemas/image-format.enum.d.ts +0 -4
- package/build/v1/file/schemas/image-format.enum.js +0 -9
- package/build/v1/file/schemas/image-format.enum.js.map +0 -1
- package/build/v1/file/schemas/index.d.ts +0 -16
- package/build/v1/file/schemas/index.js +0 -33
- package/build/v1/file/schemas/index.js.map +0 -1
- package/build/v1/file/schemas/list-files-request.schema.d.ts +0 -11
- package/build/v1/file/schemas/list-files-request.schema.js +0 -24
- package/build/v1/file/schemas/list-files-request.schema.js.map +0 -1
- package/build/v1/file/schemas/list-files-response.schema.d.ts +0 -23
- package/build/v1/file/schemas/list-files-response.schema.js +0 -11
- package/build/v1/file/schemas/list-files-response.schema.js.map +0 -1
- package/build/v1/file/schemas/list-folders-request.schema.d.ts +0 -4
- package/build/v1/file/schemas/list-folders-request.schema.js +0 -8
- package/build/v1/file/schemas/list-folders-request.schema.js.map +0 -1
- package/build/v1/file/schemas/upload-file-request.schema.d.ts +0 -4
- package/build/v1/file/schemas/upload-file-request.schema.js +0 -10
- package/build/v1/file/schemas/upload-file-request.schema.js.map +0 -1
- package/build/v1/file/schemas/upload-file-response.schema.d.ts +0 -6
- package/build/v1/file/schemas/upload-file-response.schema.js +0 -10
- package/build/v1/file/schemas/upload-file-response.schema.js.map +0 -1
- package/build/v1/file/schemas/upload-image-request.schema.d.ts +0 -9
- package/build/v1/file/schemas/upload-image-request.schema.js +0 -24
- package/build/v1/file/schemas/upload-image-request.schema.js.map +0 -1
- package/build/v1/file/schemas/upload-image-response.schema.d.ts +0 -7
- package/build/v1/file/schemas/upload-image-response.schema.js +0 -12
- package/build/v1/file/schemas/upload-image-response.schema.js.map +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileDeleteByKeyCommand = void 0;
|
|
4
|
-
const schemas_1 = require("../schemas");
|
|
5
|
-
const rest_api_1 = require("../../../rest-api");
|
|
6
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
-
var FileDeleteByKeyCommand;
|
|
8
|
-
(function (FileDeleteByKeyCommand) {
|
|
9
|
-
FileDeleteByKeyCommand.Request = schemas_1.DeleteFileByKeyQuerySchema;
|
|
10
|
-
FileDeleteByKeyCommand.Response = schemas_1.DeleteFileByKeyResponseSchema;
|
|
11
|
-
FileDeleteByKeyCommand.URL = rest_api_1.REST_API.V1.FILE.DELETE_BY_KEY;
|
|
12
|
-
FileDeleteByKeyCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
13
|
-
})(FileDeleteByKeyCommand || (exports.FileDeleteByKeyCommand = FileDeleteByKeyCommand = {}));
|
|
14
|
-
//# sourceMappingURL=delete-file-by-key.command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-file-by-key.command.js","sourceRoot":"","sources":["../../../../v1/file/commands/delete-file-by-key.command.ts"],"names":[],"mappings":";;;AACA,wCAAuF;AACvF,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,sBAAsB,CAYtC;AAZD,WAAiB,sBAAsB;IAEtB,8BAAO,GAAG,oCAA0B,CAAC;IACrC,+BAAQ,GAAG,uCAA6B,CAAC;IAGzC,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC;IACrC,6BAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAK5C,CAAC,EAZgB,sBAAsB,sCAAtB,sBAAsB,QAYtC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
-
export declare namespace FileDeleteCommand {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
5
|
-
id: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
const Response: z.ZodObject<{
|
|
8
|
-
success: z.ZodBoolean;
|
|
9
|
-
message: z.ZodString;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
const URL: (id: string) => string;
|
|
12
|
-
const METHOD = HttpMethod.DELETE;
|
|
13
|
-
type RequestType = z.infer<typeof Request>;
|
|
14
|
-
type ResponseType = z.infer<typeof Response>;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileDeleteCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../schemas");
|
|
6
|
-
const rest_api_1 = require("../../../rest-api");
|
|
7
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
-
var FileDeleteCommand;
|
|
9
|
-
(function (FileDeleteCommand) {
|
|
10
|
-
FileDeleteCommand.Request = zod_1.z.object({
|
|
11
|
-
id: zod_1.z.string().uuid(),
|
|
12
|
-
});
|
|
13
|
-
FileDeleteCommand.Response = schemas_1.DeleteFileResponseSchema;
|
|
14
|
-
FileDeleteCommand.URL = rest_api_1.REST_API.V1.FILE.DELETE_BY_ID;
|
|
15
|
-
FileDeleteCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
16
|
-
})(FileDeleteCommand || (exports.FileDeleteCommand = FileDeleteCommand = {}));
|
|
17
|
-
//# sourceMappingURL=delete-file.command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-file.command.js","sourceRoot":"","sources":["../../../../v1/file/commands/delete-file.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAsD;AACtD,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,iBAAiB,CAcjC;AAdD,WAAiB,iBAAiB;IAEjB,yBAAO,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;KACxB,CAAC,CAAC;IACU,0BAAQ,GAAG,kCAAwB,CAAC;IAGpC,qBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;IACpC,wBAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAK5C,CAAC,EAdgB,iBAAiB,iCAAjB,iBAAiB,QAcjC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./upload-image.command"), exports);
|
|
18
|
-
__exportStar(require("./upload-file.command"), exports);
|
|
19
|
-
__exportStar(require("./delete-file.command"), exports);
|
|
20
|
-
__exportStar(require("./delete-file-by-key.command"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/file/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,wDAAsC;AACtC,wDAAsC;AACtC,+DAA6C"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
-
export declare namespace FileUploadCommand {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
5
|
-
folder: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
const Response: z.ZodObject<{
|
|
8
|
-
key: z.ZodString;
|
|
9
|
-
cdnUrl: z.ZodString;
|
|
10
|
-
s3Url: z.ZodString;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
const URL: "/file-api/v1/files/upload";
|
|
13
|
-
const METHOD = HttpMethod.PUT;
|
|
14
|
-
type RequestType = z.infer<typeof Request>;
|
|
15
|
-
type ResponseType = z.infer<typeof Response>;
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileUploadCommand = void 0;
|
|
4
|
-
const schemas_1 = require("../schemas");
|
|
5
|
-
const rest_api_1 = require("../../../rest-api");
|
|
6
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
-
var FileUploadCommand;
|
|
8
|
-
(function (FileUploadCommand) {
|
|
9
|
-
FileUploadCommand.Request = schemas_1.UploadFileQuerySchema;
|
|
10
|
-
FileUploadCommand.Response = schemas_1.UploadFileResponseSchema;
|
|
11
|
-
FileUploadCommand.URL = rest_api_1.REST_API.V1.FILE.UPLOAD;
|
|
12
|
-
FileUploadCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
13
|
-
})(FileUploadCommand || (exports.FileUploadCommand = FileUploadCommand = {}));
|
|
14
|
-
//# sourceMappingURL=upload-file.command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.command.js","sourceRoot":"","sources":["../../../../v1/file/commands/upload-file.command.ts"],"names":[],"mappings":";;;AACA,wCAA6E;AAC7E,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,iBAAiB,CAYjC;AAZD,WAAiB,iBAAiB;IAEjB,yBAAO,GAAG,+BAAqB,CAAC;IAChC,0BAAQ,GAAG,kCAAwB,CAAC;IAGpC,qBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;IAC9B,wBAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAKzC,CAAC,EAZgB,iBAAiB,iCAAjB,iBAAiB,QAYjC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
-
export declare namespace FileUploadImageCommand {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
5
|
-
folder: z.ZodString;
|
|
6
|
-
formats: z.ZodString;
|
|
7
|
-
sizes: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
const Response: z.ZodObject<{
|
|
10
|
-
id: z.ZodString;
|
|
11
|
-
variants: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
|
-
cdnUrl: z.ZodString;
|
|
13
|
-
s3Url: z.ZodString;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
const URL: "/file-api/v1/files/upload-image";
|
|
16
|
-
const METHOD = HttpMethod.PUT;
|
|
17
|
-
type RequestType = z.infer<typeof Request>;
|
|
18
|
-
type ResponseType = z.infer<typeof Response>;
|
|
19
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileUploadImageCommand = void 0;
|
|
4
|
-
const schemas_1 = require("../schemas");
|
|
5
|
-
const rest_api_1 = require("../../../rest-api");
|
|
6
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
-
var FileUploadImageCommand;
|
|
8
|
-
(function (FileUploadImageCommand) {
|
|
9
|
-
FileUploadImageCommand.Request = schemas_1.UploadImageQuerySchema;
|
|
10
|
-
FileUploadImageCommand.Response = schemas_1.UploadImageResponseSchema;
|
|
11
|
-
FileUploadImageCommand.URL = rest_api_1.REST_API.V1.FILE.UPLOAD_IMAGE;
|
|
12
|
-
FileUploadImageCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
13
|
-
})(FileUploadImageCommand || (exports.FileUploadImageCommand = FileUploadImageCommand = {}));
|
|
14
|
-
//# sourceMappingURL=upload-image.command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-image.command.js","sourceRoot":"","sources":["../../../../v1/file/commands/upload-image.command.ts"],"names":[],"mappings":";;;AACA,wCAA+E;AAC/E,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,sBAAsB,CAYtC;AAZD,WAAiB,sBAAsB;IAEtB,8BAAO,GAAG,gCAAsB,CAAC;IACjC,+BAAQ,GAAG,mCAAyB,CAAC;IAGrC,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;IACpC,6BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAKzC,CAAC,EAZgB,sBAAsB,sCAAtB,sBAAsB,QAYtC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
-
export declare namespace FileGetByIdQuery {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
5
|
-
id: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
const Response: z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
folder: z.ZodString;
|
|
10
|
-
filename: z.ZodString;
|
|
11
|
-
size: z.ZodNumber;
|
|
12
|
-
contentType: z.ZodString;
|
|
13
|
-
category: z.ZodEnum<typeof import("../schemas").FileCategory>;
|
|
14
|
-
status: z.ZodEnum<typeof import("../schemas").FileStatus>;
|
|
15
|
-
url: z.ZodOptional<z.ZodString>;
|
|
16
|
-
uploadedBy: z.ZodString;
|
|
17
|
-
uploadedAt: z.ZodString;
|
|
18
|
-
updatedAt: z.ZodString;
|
|
19
|
-
variants: z.ZodArray<z.ZodObject<{
|
|
20
|
-
id: z.ZodString;
|
|
21
|
-
sizeName: z.ZodString;
|
|
22
|
-
format: z.ZodString;
|
|
23
|
-
sizeBytes: z.ZodNumber;
|
|
24
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
25
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
url: z.ZodOptional<z.ZodString>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
const URL: (id: string) => string;
|
|
30
|
-
const METHOD = HttpMethod.GET;
|
|
31
|
-
type RequestType = z.infer<typeof Request>;
|
|
32
|
-
type ResponseType = z.infer<typeof Response>;
|
|
33
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileGetByIdQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../schemas");
|
|
6
|
-
const rest_api_1 = require("../../../rest-api");
|
|
7
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
-
var FileGetByIdQuery;
|
|
9
|
-
(function (FileGetByIdQuery) {
|
|
10
|
-
FileGetByIdQuery.Request = zod_1.z.object({
|
|
11
|
-
id: zod_1.z.string().uuid(),
|
|
12
|
-
});
|
|
13
|
-
FileGetByIdQuery.Response = schemas_1.FileWithVariantsResponseSchema;
|
|
14
|
-
FileGetByIdQuery.URL = rest_api_1.REST_API.V1.FILE.GET_BY_ID;
|
|
15
|
-
FileGetByIdQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
16
|
-
})(FileGetByIdQuery || (exports.FileGetByIdQuery = FileGetByIdQuery = {}));
|
|
17
|
-
//# sourceMappingURL=get-file.query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-file.query.js","sourceRoot":"","sources":["../../../../v1/file/queries/get-file.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA4D;AAC5D,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,gBAAgB,CAchC;AAdD,WAAiB,gBAAgB;IAEhB,wBAAO,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;KACxB,CAAC,CAAC;IACU,yBAAQ,GAAG,wCAA8B,CAAC;IAG1C,oBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;IACjC,uBAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAKzC,CAAC,EAdgB,gBAAgB,gCAAhB,gBAAgB,QAchC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./get-file.query"), exports);
|
|
18
|
-
__exportStar(require("./list-files.query"), exports);
|
|
19
|
-
__exportStar(require("./list-folders.query"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/file/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
-
export declare namespace FileListQuery {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
5
|
-
folder: z.ZodOptional<z.ZodString>;
|
|
6
|
-
status: z.ZodOptional<z.ZodEnum<typeof import("../schemas").FileStatus>>;
|
|
7
|
-
category: z.ZodOptional<z.ZodEnum<typeof import("../schemas").FileCategory>>;
|
|
8
|
-
uploadedBy: z.ZodOptional<z.ZodString>;
|
|
9
|
-
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
10
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
const Response: z.ZodObject<{
|
|
13
|
-
data: z.ZodArray<z.ZodObject<{
|
|
14
|
-
id: z.ZodString;
|
|
15
|
-
folder: z.ZodString;
|
|
16
|
-
filename: z.ZodString;
|
|
17
|
-
size: z.ZodNumber;
|
|
18
|
-
contentType: z.ZodString;
|
|
19
|
-
category: z.ZodEnum<typeof import("../schemas").FileCategory>;
|
|
20
|
-
status: z.ZodEnum<typeof import("../schemas").FileStatus>;
|
|
21
|
-
url: z.ZodOptional<z.ZodString>;
|
|
22
|
-
uploadedBy: z.ZodString;
|
|
23
|
-
uploadedAt: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
meta: z.ZodObject<{
|
|
26
|
-
page: z.ZodNumber;
|
|
27
|
-
limit: z.ZodNumber;
|
|
28
|
-
total: z.ZodNumber;
|
|
29
|
-
totalPages: z.ZodNumber;
|
|
30
|
-
hasNext: z.ZodBoolean;
|
|
31
|
-
hasPrev: z.ZodBoolean;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
const URL: "/file-api/v1/files";
|
|
35
|
-
const METHOD = HttpMethod.GET;
|
|
36
|
-
type RequestType = z.infer<typeof Request>;
|
|
37
|
-
type ResponseType = z.infer<typeof Response>;
|
|
38
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileListQuery = void 0;
|
|
4
|
-
const schemas_1 = require("../schemas");
|
|
5
|
-
const rest_api_1 = require("../../../rest-api");
|
|
6
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
-
var FileListQuery;
|
|
8
|
-
(function (FileListQuery) {
|
|
9
|
-
FileListQuery.Request = schemas_1.ListFilesQuerySchema;
|
|
10
|
-
FileListQuery.Response = schemas_1.ListFilesResponseSchema;
|
|
11
|
-
FileListQuery.URL = rest_api_1.REST_API.V1.FILE.LIST;
|
|
12
|
-
FileListQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
13
|
-
})(FileListQuery || (exports.FileListQuery = FileListQuery = {}));
|
|
14
|
-
//# sourceMappingURL=list-files.query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-files.query.js","sourceRoot":"","sources":["../../../../v1/file/queries/list-files.query.ts"],"names":[],"mappings":";;;AACA,wCAA2E;AAC3E,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,aAAa,CAY7B;AAZD,WAAiB,aAAa;IAEb,qBAAO,GAAG,8BAAoB,CAAC;IAC/B,sBAAQ,GAAG,iCAAuB,CAAC;IAGnC,iBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;IAC5B,oBAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAKzC,CAAC,EAZgB,aAAa,6BAAb,aAAa,QAY7B"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
-
export declare namespace FileFoldersListQuery {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
5
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
const Response: z.ZodObject<{
|
|
8
|
-
folders: z.ZodArray<z.ZodObject<{
|
|
9
|
-
path: z.ZodString;
|
|
10
|
-
fileCount: z.ZodNumber;
|
|
11
|
-
}, z.core.$strip>>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
const URL: "/file-api/v1/files/folders";
|
|
14
|
-
const METHOD = HttpMethod.GET;
|
|
15
|
-
type RequestType = z.infer<typeof Request>;
|
|
16
|
-
type ResponseType = z.infer<typeof Response>;
|
|
17
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileFoldersListQuery = void 0;
|
|
4
|
-
const schemas_1 = require("../schemas");
|
|
5
|
-
const rest_api_1 = require("../../../rest-api");
|
|
6
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
-
var FileFoldersListQuery;
|
|
8
|
-
(function (FileFoldersListQuery) {
|
|
9
|
-
FileFoldersListQuery.Request = schemas_1.ListFoldersQuerySchema;
|
|
10
|
-
FileFoldersListQuery.Response = schemas_1.ListFoldersResponseSchema;
|
|
11
|
-
FileFoldersListQuery.URL = rest_api_1.REST_API.V1.FILE.FOLDERS;
|
|
12
|
-
FileFoldersListQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
13
|
-
})(FileFoldersListQuery || (exports.FileFoldersListQuery = FileFoldersListQuery = {}));
|
|
14
|
-
//# sourceMappingURL=list-folders.query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-folders.query.js","sourceRoot":"","sources":["../../../../v1/file/queries/list-folders.query.ts"],"names":[],"mappings":";;;AACA,wCAA+E;AAC/E,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,oBAAoB,CAYpC;AAZD,WAAiB,oBAAoB;IAEpB,4BAAO,GAAG,gCAAsB,CAAC;IACjC,6BAAQ,GAAG,mCAAyB,CAAC;IAGrC,wBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;IAC/B,2BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAKzC,CAAC,EAZgB,oBAAoB,oCAApB,oBAAoB,QAYpC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteFileByKeyQuerySchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.DeleteFileByKeyQuerySchema = zod_1.z.object({
|
|
6
|
-
key: zod_1.z
|
|
7
|
-
.string({ error: 'DeleteFileByKeyQuery.key.required' })
|
|
8
|
-
.min(1, { message: 'DeleteFileByKeyQuery.key.min' }),
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=delete-file-by-key-request.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-file-by-key-request.schema.js","sourceRoot":"","sources":["../../../../v1/file/schemas/delete-file-by-key-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,GAAG,EAAE,OAAC;SACD,MAAM,CAAC,EAAE,KAAK,EAAE,mCAAmC,EAAE,CAAC;SACtD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;CAC3D,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const DeleteFileResponseSchema: z.ZodObject<{
|
|
3
|
-
success: z.ZodBoolean;
|
|
4
|
-
message: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export declare const DeleteFileByKeyResponseSchema: z.ZodObject<{
|
|
7
|
-
message: z.ZodString;
|
|
8
|
-
key: z.ZodString;
|
|
9
|
-
}, z.core.$strip>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteFileByKeyResponseSchema = exports.DeleteFileResponseSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.DeleteFileResponseSchema = zod_1.z.object({
|
|
6
|
-
success: zod_1.z.boolean(),
|
|
7
|
-
message: zod_1.z.string(),
|
|
8
|
-
});
|
|
9
|
-
exports.DeleteFileByKeyResponseSchema = zod_1.z.object({
|
|
10
|
-
message: zod_1.z.string(),
|
|
11
|
-
key: zod_1.z.string(),
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=delete-file-response.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-file-response.schema.js","sourceRoot":"","sources":["../../../../v1/file/schemas/delete-file-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileCategory = void 0;
|
|
4
|
-
var FileCategory;
|
|
5
|
-
(function (FileCategory) {
|
|
6
|
-
FileCategory["IMAGE"] = "image";
|
|
7
|
-
FileCategory["DOCUMENT"] = "document";
|
|
8
|
-
FileCategory["VIDEO"] = "video";
|
|
9
|
-
FileCategory["OTHER"] = "other";
|
|
10
|
-
})(FileCategory || (exports.FileCategory = FileCategory = {}));
|
|
11
|
-
//# sourceMappingURL=file-category.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-category.enum.js","sourceRoot":"","sources":["../../../../v1/file/schemas/file-category.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,+BAAe,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FileStatus } from './file-status.enum';
|
|
3
|
-
import { FileCategory } from './file-category.enum';
|
|
4
|
-
export declare const FileItemResponseSchema: z.ZodObject<{
|
|
5
|
-
id: z.ZodString;
|
|
6
|
-
folder: z.ZodString;
|
|
7
|
-
filename: z.ZodString;
|
|
8
|
-
size: z.ZodNumber;
|
|
9
|
-
contentType: z.ZodString;
|
|
10
|
-
category: z.ZodEnum<typeof FileCategory>;
|
|
11
|
-
status: z.ZodEnum<typeof FileStatus>;
|
|
12
|
-
url: z.ZodOptional<z.ZodString>;
|
|
13
|
-
uploadedBy: z.ZodString;
|
|
14
|
-
uploadedAt: z.ZodString;
|
|
15
|
-
}, z.core.$strip>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileItemResponseSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const file_status_enum_1 = require("./file-status.enum");
|
|
6
|
-
const file_category_enum_1 = require("./file-category.enum");
|
|
7
|
-
exports.FileItemResponseSchema = zod_1.z.object({
|
|
8
|
-
id: zod_1.z.string().uuid(),
|
|
9
|
-
folder: zod_1.z.string(),
|
|
10
|
-
filename: zod_1.z.string(),
|
|
11
|
-
size: zod_1.z.number().int().nonnegative(),
|
|
12
|
-
contentType: zod_1.z.string(),
|
|
13
|
-
category: zod_1.z.enum(file_category_enum_1.FileCategory),
|
|
14
|
-
status: zod_1.z.enum(file_status_enum_1.FileStatus),
|
|
15
|
-
url: zod_1.z.string().optional(),
|
|
16
|
-
uploadedBy: zod_1.z.string(),
|
|
17
|
-
uploadedAt: zod_1.z.string().datetime(),
|
|
18
|
-
});
|
|
19
|
-
//# sourceMappingURL=file-response.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-response.schema.js","sourceRoot":"","sources":["../../../../v1/file/schemas/file-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yDAAgD;AAChD,6DAAoD;AAKvC,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,iCAAY,CAAC;IAC9B,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,6BAAU,CAAC;IAC1B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileStatus = void 0;
|
|
4
|
-
var FileStatus;
|
|
5
|
-
(function (FileStatus) {
|
|
6
|
-
FileStatus["UPLOADING"] = "UPLOADING";
|
|
7
|
-
FileStatus["PROCESSING"] = "PROCESSING";
|
|
8
|
-
FileStatus["READY"] = "READY";
|
|
9
|
-
FileStatus["FAILED"] = "FAILED";
|
|
10
|
-
FileStatus["DELETED"] = "DELETED";
|
|
11
|
-
})(FileStatus || (exports.FileStatus = FileStatus = {}));
|
|
12
|
-
//# sourceMappingURL=file-status.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-status.enum.js","sourceRoot":"","sources":["../../../../v1/file/schemas/file-status.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,qCAAuB,CAAA;IACvB,uCAAyB,CAAA;IACzB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;AACvB,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const FileVariantResponseSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
sizeName: z.ZodString;
|
|
5
|
-
format: z.ZodString;
|
|
6
|
-
sizeBytes: z.ZodNumber;
|
|
7
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
url: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$strip>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileVariantResponseSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.FileVariantResponseSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string().uuid(),
|
|
7
|
-
sizeName: zod_1.z.string(),
|
|
8
|
-
format: zod_1.z.string(),
|
|
9
|
-
sizeBytes: zod_1.z.number().int().nonnegative(),
|
|
10
|
-
width: zod_1.z.number().int().positive().optional(),
|
|
11
|
-
height: zod_1.z.number().int().positive().optional(),
|
|
12
|
-
url: zod_1.z.string().optional(),
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=file-variant-response.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-variant-response.schema.js","sourceRoot":"","sources":["../../../../v1/file/schemas/file-variant-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC9C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const FileWithVariantsResponseSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
folder: z.ZodString;
|
|
5
|
-
filename: z.ZodString;
|
|
6
|
-
size: z.ZodNumber;
|
|
7
|
-
contentType: z.ZodString;
|
|
8
|
-
category: z.ZodEnum<typeof import("./file-category.enum").FileCategory>;
|
|
9
|
-
status: z.ZodEnum<typeof import("./file-status.enum").FileStatus>;
|
|
10
|
-
url: z.ZodOptional<z.ZodString>;
|
|
11
|
-
uploadedBy: z.ZodString;
|
|
12
|
-
uploadedAt: z.ZodString;
|
|
13
|
-
updatedAt: z.ZodString;
|
|
14
|
-
variants: z.ZodArray<z.ZodObject<{
|
|
15
|
-
id: z.ZodString;
|
|
16
|
-
sizeName: z.ZodString;
|
|
17
|
-
format: z.ZodString;
|
|
18
|
-
sizeBytes: z.ZodNumber;
|
|
19
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
21
|
-
url: z.ZodOptional<z.ZodString>;
|
|
22
|
-
}, z.core.$strip>>;
|
|
23
|
-
}, z.core.$strip>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileWithVariantsResponseSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const file_response_schema_1 = require("./file-response.schema");
|
|
6
|
-
const file_variant_response_schema_1 = require("./file-variant-response.schema");
|
|
7
|
-
exports.FileWithVariantsResponseSchema = file_response_schema_1.FileItemResponseSchema.extend({
|
|
8
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
9
|
-
variants: zod_1.z.array(file_variant_response_schema_1.FileVariantResponseSchema),
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=file-with-variants-response.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-with-variants-response.schema.js","sourceRoot":"","sources":["../../../../v1/file/schemas/file-with-variants-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAAgE;AAChE,iFAA2E;AAK9D,QAAA,8BAA8B,GAAG,6CAAsB,CAAC,MAAM,CAAC;IACxE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,wDAAyB,CAAC;CAC/C,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const FolderItemSchema: z.ZodObject<{
|
|
3
|
-
path: z.ZodString;
|
|
4
|
-
fileCount: z.ZodNumber;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export declare const ListFoldersResponseSchema: z.ZodObject<{
|
|
7
|
-
folders: z.ZodArray<z.ZodObject<{
|
|
8
|
-
path: z.ZodString;
|
|
9
|
-
fileCount: z.ZodNumber;
|
|
10
|
-
}, z.core.$strip>>;
|
|
11
|
-
}, z.core.$strip>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListFoldersResponseSchema = exports.FolderItemSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.FolderItemSchema = zod_1.z.object({
|
|
6
|
-
path: zod_1.z.string(),
|
|
7
|
-
fileCount: zod_1.z.number().int().nonnegative(),
|
|
8
|
-
});
|
|
9
|
-
exports.ListFoldersResponseSchema = zod_1.z.object({
|
|
10
|
-
folders: zod_1.z.array(exports.FolderItemSchema),
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=folder-response.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"folder-response.schema.js","sourceRoot":"","sources":["../../../../v1/file/schemas/folder-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKX,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC5C,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImageFormat = void 0;
|
|
4
|
-
var ImageFormat;
|
|
5
|
-
(function (ImageFormat) {
|
|
6
|
-
ImageFormat["WEBP"] = "webp";
|
|
7
|
-
ImageFormat["JPEG"] = "jpeg";
|
|
8
|
-
})(ImageFormat || (exports.ImageFormat = ImageFormat = {}));
|
|
9
|
-
//# sourceMappingURL=image-format.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image-format.enum.js","sourceRoot":"","sources":["../../../../v1/file/schemas/image-format.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,4BAAa,CAAA;AACjB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
|