@veruna/api-contracts 1.1.13 → 1.1.14

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.
Files changed (102) hide show
  1. package/build/controllers/index.d.ts +0 -1
  2. package/build/controllers/index.js +1 -4
  3. package/build/controllers/index.js.map +1 -1
  4. package/build/rest-api.d.ts +0 -9
  5. package/build/rest-api.js +0 -9
  6. package/build/rest-api.js.map +1 -1
  7. package/build/routes/index.d.ts +0 -1
  8. package/build/routes/index.js +1 -3
  9. package/build/routes/index.js.map +1 -1
  10. package/build/tsconfig.tsbuildinfo +1 -1
  11. package/build/v1/assistants/schemas/update-user-assistant-request.schema.d.ts +1 -0
  12. package/build/v1/assistants/schemas/update-user-assistant-request.schema.js +6 -0
  13. package/build/v1/assistants/schemas/update-user-assistant-request.schema.js.map +1 -1
  14. package/build/v1/assistants/user/commands/update-user-assistant.command.d.ts +1 -0
  15. package/build/v1/file/index.d.ts +0 -5
  16. package/build/v1/file/index.js +0 -8
  17. package/build/v1/file/index.js.map +1 -1
  18. package/package.json +1 -1
  19. package/build/controllers/file.controllers.d.ts +0 -1
  20. package/build/controllers/file.controllers.js +0 -5
  21. package/build/controllers/file.controllers.js.map +0 -1
  22. package/build/routes/file.routes.d.ts +0 -9
  23. package/build/routes/file.routes.js +0 -13
  24. package/build/routes/file.routes.js.map +0 -1
  25. package/build/v1/file/commands/delete-file-by-key.command.d.ts +0 -15
  26. package/build/v1/file/commands/delete-file-by-key.command.js +0 -14
  27. package/build/v1/file/commands/delete-file-by-key.command.js.map +0 -1
  28. package/build/v1/file/commands/delete-file.command.d.ts +0 -15
  29. package/build/v1/file/commands/delete-file.command.js +0 -17
  30. package/build/v1/file/commands/delete-file.command.js.map +0 -1
  31. package/build/v1/file/commands/index.d.ts +0 -4
  32. package/build/v1/file/commands/index.js +0 -21
  33. package/build/v1/file/commands/index.js.map +0 -1
  34. package/build/v1/file/commands/upload-file.command.d.ts +0 -16
  35. package/build/v1/file/commands/upload-file.command.js +0 -14
  36. package/build/v1/file/commands/upload-file.command.js.map +0 -1
  37. package/build/v1/file/commands/upload-image.command.d.ts +0 -19
  38. package/build/v1/file/commands/upload-image.command.js +0 -14
  39. package/build/v1/file/commands/upload-image.command.js.map +0 -1
  40. package/build/v1/file/queries/get-file.query.d.ts +0 -33
  41. package/build/v1/file/queries/get-file.query.js +0 -17
  42. package/build/v1/file/queries/get-file.query.js.map +0 -1
  43. package/build/v1/file/queries/index.d.ts +0 -3
  44. package/build/v1/file/queries/index.js +0 -20
  45. package/build/v1/file/queries/index.js.map +0 -1
  46. package/build/v1/file/queries/list-files.query.d.ts +0 -38
  47. package/build/v1/file/queries/list-files.query.js +0 -14
  48. package/build/v1/file/queries/list-files.query.js.map +0 -1
  49. package/build/v1/file/queries/list-folders.query.d.ts +0 -17
  50. package/build/v1/file/queries/list-folders.query.js +0 -14
  51. package/build/v1/file/queries/list-folders.query.js.map +0 -1
  52. package/build/v1/file/schemas/delete-file-by-key-request.schema.d.ts +0 -4
  53. package/build/v1/file/schemas/delete-file-by-key-request.schema.js +0 -10
  54. package/build/v1/file/schemas/delete-file-by-key-request.schema.js.map +0 -1
  55. package/build/v1/file/schemas/delete-file-response.schema.d.ts +0 -9
  56. package/build/v1/file/schemas/delete-file-response.schema.js +0 -13
  57. package/build/v1/file/schemas/delete-file-response.schema.js.map +0 -1
  58. package/build/v1/file/schemas/file-category.enum.d.ts +0 -6
  59. package/build/v1/file/schemas/file-category.enum.js +0 -11
  60. package/build/v1/file/schemas/file-category.enum.js.map +0 -1
  61. package/build/v1/file/schemas/file-response.schema.d.ts +0 -15
  62. package/build/v1/file/schemas/file-response.schema.js +0 -19
  63. package/build/v1/file/schemas/file-response.schema.js.map +0 -1
  64. package/build/v1/file/schemas/file-status.enum.d.ts +0 -7
  65. package/build/v1/file/schemas/file-status.enum.js +0 -12
  66. package/build/v1/file/schemas/file-status.enum.js.map +0 -1
  67. package/build/v1/file/schemas/file-variant-response.schema.d.ts +0 -10
  68. package/build/v1/file/schemas/file-variant-response.schema.js +0 -14
  69. package/build/v1/file/schemas/file-variant-response.schema.js.map +0 -1
  70. package/build/v1/file/schemas/file-with-variants-response.schema.d.ts +0 -23
  71. package/build/v1/file/schemas/file-with-variants-response.schema.js +0 -11
  72. package/build/v1/file/schemas/file-with-variants-response.schema.js.map +0 -1
  73. package/build/v1/file/schemas/folder-response.schema.d.ts +0 -11
  74. package/build/v1/file/schemas/folder-response.schema.js +0 -12
  75. package/build/v1/file/schemas/folder-response.schema.js.map +0 -1
  76. package/build/v1/file/schemas/image-format.enum.d.ts +0 -4
  77. package/build/v1/file/schemas/image-format.enum.js +0 -9
  78. package/build/v1/file/schemas/image-format.enum.js.map +0 -1
  79. package/build/v1/file/schemas/index.d.ts +0 -16
  80. package/build/v1/file/schemas/index.js +0 -33
  81. package/build/v1/file/schemas/index.js.map +0 -1
  82. package/build/v1/file/schemas/list-files-request.schema.d.ts +0 -11
  83. package/build/v1/file/schemas/list-files-request.schema.js +0 -24
  84. package/build/v1/file/schemas/list-files-request.schema.js.map +0 -1
  85. package/build/v1/file/schemas/list-files-response.schema.d.ts +0 -23
  86. package/build/v1/file/schemas/list-files-response.schema.js +0 -11
  87. package/build/v1/file/schemas/list-files-response.schema.js.map +0 -1
  88. package/build/v1/file/schemas/list-folders-request.schema.d.ts +0 -4
  89. package/build/v1/file/schemas/list-folders-request.schema.js +0 -8
  90. package/build/v1/file/schemas/list-folders-request.schema.js.map +0 -1
  91. package/build/v1/file/schemas/upload-file-request.schema.d.ts +0 -4
  92. package/build/v1/file/schemas/upload-file-request.schema.js +0 -10
  93. package/build/v1/file/schemas/upload-file-request.schema.js.map +0 -1
  94. package/build/v1/file/schemas/upload-file-response.schema.d.ts +0 -6
  95. package/build/v1/file/schemas/upload-file-response.schema.js +0 -10
  96. package/build/v1/file/schemas/upload-file-response.schema.js.map +0 -1
  97. package/build/v1/file/schemas/upload-image-request.schema.d.ts +0 -9
  98. package/build/v1/file/schemas/upload-image-request.schema.js +0 -24
  99. package/build/v1/file/schemas/upload-image-request.schema.js.map +0 -1
  100. package/build/v1/file/schemas/upload-image-response.schema.d.ts +0 -7
  101. package/build/v1/file/schemas/upload-image-response.schema.js +0 -12
  102. package/build/v1/file/schemas/upload-image-response.schema.js.map +0 -1
@@ -3,6 +3,7 @@ export declare const UpdateUserAssistantRequestSchema: z.ZodObject<{
3
3
  title: z.ZodOptional<z.ZodString>;
4
4
  description: z.ZodOptional<z.ZodString>;
5
5
  placeholder: z.ZodOptional<z.ZodString>;
6
+ image: z.ZodOptional<z.ZodString>;
6
7
  prompt: z.ZodOptional<z.ZodString>;
7
8
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
9
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -19,6 +19,12 @@ exports.UpdateUserAssistantRequestSchema = zod_1.z.object({
19
19
  .min(1, { message: 'UpdateUserAssistantRequest.placeholder.min' })
20
20
  .max(500, { message: 'UpdateUserAssistantRequest.placeholder.max' })
21
21
  .optional(),
22
+ image: zod_1.z
23
+ .string()
24
+ .trim()
25
+ .min(1, { message: 'UpdateUserAssistantRequest.image.min' })
26
+ .max(100, { message: 'UpdateUserAssistantRequest.image.max' })
27
+ .optional(),
22
28
  prompt: zod_1.z
23
29
  .string()
24
30
  .min(1, { message: 'UpdateUserAssistantRequest.prompt.min' })
@@ -1 +1 @@
1
- {"version":3,"file":"update-user-assistant-request.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/update-user-assistant-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uEAAkE;AAErD,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SAC3D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SAC7D,QAAQ,EAAE;IACf,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;SACjE,GAAG,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;SACpE,QAAQ,EAAE;IACf,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;SACjE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;SACnE,QAAQ,EAAE;IACf,MAAM,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAC5D,GAAG,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAChE,QAAQ,EAAE;IACf,IAAI,EAAE,OAAC;SACF,KAAK,CACF,OAAC,CAAC,MAAM,EAAE;SACL,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;SAC9D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;SAChE,IAAI,EAAE,CACd;SACA,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,qCAAqC,EAAE,CAAC;SAC3D,QAAQ,EAAE;IACf,MAAM,EAAE,+CAAqB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC"}
1
+ {"version":3,"file":"update-user-assistant-request.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/update-user-assistant-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uEAAkE;AAErD,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SAC3D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SAC7D,QAAQ,EAAE;IACf,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;SACjE,GAAG,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;SACpE,QAAQ,EAAE;IACf,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;SACjE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;SACnE,QAAQ,EAAE;IACf,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SAC3D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SAC7D,QAAQ,EAAE;IACf,MAAM,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAC5D,GAAG,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAChE,QAAQ,EAAE;IACf,IAAI,EAAE,OAAC;SACF,KAAK,CACF,OAAC,CAAC,MAAM,EAAE;SACL,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;SAC9D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;SAChE,IAAI,EAAE,CACd;SACA,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,qCAAqC,EAAE,CAAC;SAC3D,QAAQ,EAAE;IACf,MAAM,EAAE,+CAAqB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC"}
@@ -5,6 +5,7 @@ export declare namespace UserAssistantUpdateCommand {
5
5
  title: z.ZodOptional<z.ZodString>;
6
6
  description: z.ZodOptional<z.ZodString>;
7
7
  placeholder: z.ZodOptional<z.ZodString>;
8
+ image: z.ZodOptional<z.ZodString>;
8
9
  prompt: z.ZodOptional<z.ZodString>;
9
10
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
11
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -1,6 +1 @@
1
- export * from './schemas';
2
1
  export * from './file.errors';
3
- export * from './commands';
4
- export * from './queries';
5
- export { FILE_CONTROLLER } from '../../controllers';
6
- export { FILE_ROUTES } from '../../routes';
@@ -14,13 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.FILE_ROUTES = exports.FILE_CONTROLLER = void 0;
18
- __exportStar(require("./schemas"), exports);
19
17
  __exportStar(require("./file.errors"), exports);
20
- __exportStar(require("./commands"), exports);
21
- __exportStar(require("./queries"), exports);
22
- var controllers_1 = require("../../controllers");
23
- Object.defineProperty(exports, "FILE_CONTROLLER", { enumerable: true, get: function () { return controllers_1.FILE_CONTROLLER; } });
24
- var routes_1 = require("../../routes");
25
- Object.defineProperty(exports, "FILE_ROUTES", { enumerable: true, get: function () { return routes_1.FILE_ROUTES; } });
26
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,6CAA2B;AAC3B,4CAA0B;AAE1B,iDAAoD;AAA3C,8GAAA,eAAe,OAAA;AACxB,uCAA2C;AAAlC,qGAAA,WAAW,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veruna/api-contracts",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "API contracts for Veruna project - Zod schemas, types, and paths",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1 +0,0 @@
1
- export declare const FILE_CONTROLLER: "v1/files";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FILE_CONTROLLER = void 0;
4
- exports.FILE_CONTROLLER = 'v1/files';
5
- //# sourceMappingURL=file.controllers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.controllers.js","sourceRoot":"","sources":["../../controllers/file.controllers.ts"],"names":[],"mappings":";;;AAIa,QAAA,eAAe,GAAG,UAAmB,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const FILE_ROUTES: {
2
- readonly UPLOAD_IMAGE: "upload-image";
3
- readonly UPLOAD: "upload";
4
- readonly LIST: "";
5
- readonly GET_BY_ID: ":id";
6
- readonly DELETE_BY_ID: ":id";
7
- readonly DELETE_BY_KEY: "by-key";
8
- readonly FOLDERS: "folders";
9
- };
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FILE_ROUTES = void 0;
4
- exports.FILE_ROUTES = {
5
- UPLOAD_IMAGE: 'upload-image',
6
- UPLOAD: 'upload',
7
- LIST: '',
8
- GET_BY_ID: ':id',
9
- DELETE_BY_ID: ':id',
10
- DELETE_BY_KEY: 'by-key',
11
- FOLDERS: 'folders',
12
- };
13
- //# sourceMappingURL=file.routes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.routes.js","sourceRoot":"","sources":["../../routes/file.routes.ts"],"names":[],"mappings":";;;AAKa,QAAA,WAAW,GAAG;IAEvB,YAAY,EAAE,cAAc;IAG5B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,EAAE;IACR,SAAS,EAAE,KAAK;IAChB,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE,QAAQ;IAGvB,OAAO,EAAE,SAAS;CACZ,CAAC"}
@@ -1,15 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../shared/http-method';
3
- export declare namespace FileDeleteByKeyCommand {
4
- const Request: z.ZodObject<{
5
- key: z.ZodString;
6
- }, z.core.$strip>;
7
- const Response: z.ZodObject<{
8
- message: z.ZodString;
9
- key: z.ZodString;
10
- }, z.core.$strip>;
11
- const URL: "/file-api/v1/files/by-key";
12
- const METHOD = HttpMethod.DELETE;
13
- type RequestType = z.infer<typeof Request>;
14
- type ResponseType = z.infer<typeof Response>;
15
- }
@@ -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,4 +0,0 @@
1
- export * from './upload-image.command';
2
- export * from './upload-file.command';
3
- export * from './delete-file.command';
4
- export * from './delete-file-by-key.command';
@@ -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,3 +0,0 @@
1
- export * from './get-file.query';
2
- export * from './list-files.query';
3
- export * from './list-folders.query';
@@ -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,4 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const DeleteFileByKeyQuerySchema: z.ZodObject<{
3
- key: z.ZodString;
4
- }, z.core.$strip>;
@@ -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,6 +0,0 @@
1
- export declare enum FileCategory {
2
- IMAGE = "image",
3
- DOCUMENT = "document",
4
- VIDEO = "video",
5
- OTHER = "other"
6
- }
@@ -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,7 +0,0 @@
1
- export declare enum FileStatus {
2
- UPLOADING = "UPLOADING",
3
- PROCESSING = "PROCESSING",
4
- READY = "READY",
5
- FAILED = "FAILED",
6
- DELETED = "DELETED"
7
- }