@veruna/api-contracts 1.0.67 → 1.0.69
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/admin-file.controllers.d.ts +1 -0
- package/build/controllers/admin-file.controllers.js +5 -0
- package/build/controllers/admin-file.controllers.js.map +1 -0
- package/build/controllers/client-file.controllers.d.ts +1 -0
- package/build/controllers/client-file.controllers.js +5 -0
- package/build/controllers/client-file.controllers.js.map +1 -0
- package/build/controllers/index.d.ts +2 -0
- package/build/controllers/index.js +5 -1
- package/build/controllers/index.js.map +1 -1
- package/build/locales/validation.d.ts +76 -0
- package/build/locales/validation.js +76 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +14 -0
- package/build/rest-api.js +14 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/admin-file.routes.d.ts +4 -0
- package/build/routes/admin-file.routes.js +8 -0
- package/build/routes/admin-file.routes.js.map +1 -0
- package/build/routes/chat-project.routes.d.ts +1 -0
- package/build/routes/chat-project.routes.js +1 -0
- package/build/routes/chat-project.routes.js.map +1 -1
- package/build/routes/client-file.routes.d.ts +6 -0
- package/build/routes/client-file.routes.js +10 -0
- package/build/routes/client-file.routes.js.map +1 -0
- package/build/routes/index.d.ts +2 -0
- package/build/routes/index.js +5 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/s2s.routes.d.ts +1 -0
- package/build/routes/s2s.routes.js +1 -0
- package/build/routes/s2s.routes.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/admin-file/commands/admin-file-delete-by-key.command.d.ts +15 -0
- package/build/v1/admin-file/commands/admin-file-delete-by-key.command.js +14 -0
- package/build/v1/admin-file/commands/admin-file-delete-by-key.command.js.map +1 -0
- package/build/v1/admin-file/commands/admin-file-upload.command.d.ts +18 -0
- package/build/v1/admin-file/commands/admin-file-upload.command.js +14 -0
- package/build/v1/admin-file/commands/admin-file-upload.command.js.map +1 -0
- package/build/v1/admin-file/commands/index.d.ts +2 -0
- package/build/v1/admin-file/commands/index.js +19 -0
- package/build/v1/admin-file/commands/index.js.map +1 -0
- package/build/v1/admin-file/index.d.ts +5 -0
- package/build/v1/admin-file/index.js +25 -0
- package/build/v1/admin-file/index.js.map +1 -0
- package/build/v1/admin-file/queries/admin-file-get-by-key.query.d.ts +19 -0
- package/build/v1/admin-file/queries/admin-file-get-by-key.query.js +14 -0
- package/build/v1/admin-file/queries/admin-file-get-by-key.query.js.map +1 -0
- package/build/v1/admin-file/queries/admin-file-list.query.d.ts +29 -0
- package/build/v1/admin-file/queries/admin-file-list.query.js +14 -0
- package/build/v1/admin-file/queries/admin-file-list.query.js.map +1 -0
- package/build/v1/admin-file/queries/index.d.ts +2 -0
- package/build/v1/admin-file/queries/index.js +19 -0
- package/build/v1/admin-file/queries/index.js.map +1 -0
- package/build/v1/admin-file/schemas/admin-file-by-key-request.schema.d.ts +4 -0
- package/build/v1/admin-file/schemas/admin-file-by-key-request.schema.js +10 -0
- package/build/v1/admin-file/schemas/admin-file-by-key-request.schema.js.map +1 -0
- package/build/v1/admin-file/schemas/admin-file-delete-by-key-response.schema.d.ts +5 -0
- package/build/v1/admin-file/schemas/admin-file-delete-by-key-response.schema.js +9 -0
- package/build/v1/admin-file/schemas/admin-file-delete-by-key-response.schema.js.map +1 -0
- package/build/v1/admin-file/schemas/admin-file-folder-response.schema.d.ts +4 -0
- package/build/v1/admin-file/schemas/admin-file-folder-response.schema.js +8 -0
- package/build/v1/admin-file/schemas/admin-file-folder-response.schema.js.map +1 -0
- package/build/v1/admin-file/schemas/admin-file-item-response.schema.d.ts +10 -0
- package/build/v1/admin-file/schemas/admin-file-item-response.schema.js +14 -0
- package/build/v1/admin-file/schemas/admin-file-item-response.schema.js.map +1 -0
- package/build/v1/admin-file/schemas/admin-file-list-request.schema.d.ts +9 -0
- package/build/v1/admin-file/schemas/admin-file-list-request.schema.js +18 -0
- package/build/v1/admin-file/schemas/admin-file-list-request.schema.js.map +1 -0
- package/build/v1/admin-file/schemas/admin-file-list-response.schema.d.ts +15 -0
- package/build/v1/admin-file/schemas/admin-file-list-response.schema.js +12 -0
- package/build/v1/admin-file/schemas/admin-file-list-response.schema.js.map +1 -0
- package/build/v1/admin-file/schemas/admin-file-type.enum.d.ts +6 -0
- package/build/v1/admin-file/schemas/admin-file-type.enum.js +11 -0
- package/build/v1/admin-file/schemas/admin-file-type.enum.js.map +1 -0
- package/build/v1/admin-file/schemas/admin-file-upload-request.schema.d.ts +4 -0
- package/build/v1/admin-file/schemas/admin-file-upload-request.schema.js +10 -0
- package/build/v1/admin-file/schemas/admin-file-upload-request.schema.js.map +1 -0
- package/build/v1/admin-file/schemas/admin-file-upload-response.schema.d.ts +9 -0
- package/build/v1/admin-file/schemas/admin-file-upload-response.schema.js +13 -0
- package/build/v1/admin-file/schemas/admin-file-upload-response.schema.js.map +1 -0
- package/build/v1/admin-file/schemas/index.d.ts +9 -0
- package/build/v1/admin-file/schemas/index.js +26 -0
- package/build/v1/admin-file/schemas/index.js.map +1 -0
- package/build/v1/ai-model/admin/commands/create-model.command.d.ts +12 -0
- package/build/v1/ai-model/admin/commands/update-model.command.d.ts +12 -0
- package/build/v1/ai-model/admin/queries/get-model.query.d.ts +6 -0
- package/build/v1/ai-model/admin/queries/get-models.query.d.ts +6 -0
- package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +6 -0
- package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +12 -0
- package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +6 -0
- package/build/v1/ai-model/schemas/model-response.schema.d.ts +18 -0
- package/build/v1/ai-model/schemas/model-settings.schema.d.ts +19 -0
- package/build/v1/ai-model/schemas/model-settings.schema.js +9 -1
- package/build/v1/ai-model/schemas/model-settings.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +36 -0
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +36 -0
- package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +6 -0
- package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +12 -0
- package/build/v1/chat-project/chat-project.errors.d.ts +5 -1
- package/build/v1/chat-project/chat-project.errors.js +20 -0
- package/build/v1/chat-project/chat-project.errors.js.map +1 -1
- package/build/v1/chat-project/commands/index.d.ts +1 -0
- package/build/v1/chat-project/commands/index.js +1 -0
- package/build/v1/chat-project/commands/index.js.map +1 -1
- package/build/v1/chat-project/commands/organize.command.d.ts +21 -0
- package/build/v1/chat-project/commands/organize.command.js +15 -0
- package/build/v1/chat-project/commands/organize.command.js.map +1 -0
- package/build/v1/chat-project/schemas/index.d.ts +1 -0
- package/build/v1/chat-project/schemas/index.js +1 -0
- package/build/v1/chat-project/schemas/index.js.map +1 -1
- package/build/v1/chat-project/schemas/organize-response.schema.d.ts +20 -0
- package/build/v1/chat-project/schemas/organize-response.schema.js +18 -0
- package/build/v1/chat-project/schemas/organize-response.schema.js.map +1 -0
- package/build/v1/client-file/commands/client-file-attach.command.d.ts +31 -0
- package/build/v1/client-file/commands/client-file-attach.command.js +15 -0
- package/build/v1/client-file/commands/client-file-attach.command.js.map +1 -0
- package/build/v1/client-file/commands/client-file-delete.command.d.ts +16 -0
- package/build/v1/client-file/commands/client-file-delete.command.js +14 -0
- package/build/v1/client-file/commands/client-file-delete.command.js.map +1 -0
- package/build/v1/client-file/commands/client-file-upload.command.d.ts +22 -0
- package/build/v1/client-file/commands/client-file-upload.command.js +14 -0
- package/build/v1/client-file/commands/client-file-upload.command.js.map +1 -0
- package/build/v1/client-file/commands/index.d.ts +3 -0
- package/build/v1/client-file/commands/index.js +20 -0
- package/build/v1/client-file/commands/index.js.map +1 -0
- package/build/v1/client-file/index.d.ts +3 -0
- package/build/v1/client-file/index.js +20 -0
- package/build/v1/client-file/index.js.map +1 -0
- package/build/v1/client-file/queries/client-file-list.query.d.ts +24 -0
- package/build/v1/client-file/queries/client-file-list.query.js +14 -0
- package/build/v1/client-file/queries/client-file-list.query.js.map +1 -0
- package/build/v1/client-file/queries/index.d.ts +1 -0
- package/build/v1/client-file/queries/index.js +18 -0
- package/build/v1/client-file/queries/index.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-attach-request.schema.d.ts +6 -0
- package/build/v1/client-file/schemas/client-file-attach-request.schema.js +15 -0
- package/build/v1/client-file/schemas/client-file-attach-request.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-attach-response.schema.d.ts +29 -0
- package/build/v1/client-file/schemas/client-file-attach-response.schema.js +22 -0
- package/build/v1/client-file/schemas/client-file-attach-response.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-by-id-params.schema.d.ts +7 -0
- package/build/v1/client-file/schemas/client-file-by-id-params.schema.js +7 -0
- package/build/v1/client-file/schemas/client-file-by-id-params.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-chat-params.schema.d.ts +6 -0
- package/build/v1/client-file/schemas/client-file-chat-params.schema.js +6 -0
- package/build/v1/client-file/schemas/client-file-chat-params.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-delete-response.schema.d.ts +5 -0
- package/build/v1/client-file/schemas/client-file-delete-response.schema.js +9 -0
- package/build/v1/client-file/schemas/client-file-delete-response.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-id-param.schema.d.ts +5 -0
- package/build/v1/client-file/schemas/client-file-id-param.schema.js +10 -0
- package/build/v1/client-file/schemas/client-file-id-param.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-item-response.schema.d.ts +13 -0
- package/build/v1/client-file/schemas/client-file-item-response.schema.js +17 -0
- package/build/v1/client-file/schemas/client-file-item-response.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-list-response.schema.d.ts +14 -0
- package/build/v1/client-file/schemas/client-file-list-response.schema.js +9 -0
- package/build/v1/client-file/schemas/client-file-list-response.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-mime-types.d.ts +4 -0
- package/build/v1/client-file/schemas/client-file-mime-types.js +49 -0
- package/build/v1/client-file/schemas/client-file-mime-types.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-type.enum.d.ts +4 -0
- package/build/v1/client-file/schemas/client-file-type.enum.js +9 -0
- package/build/v1/client-file/schemas/client-file-type.enum.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-upload-response.schema.d.ts +10 -0
- package/build/v1/client-file/schemas/client-file-upload-response.schema.js +6 -0
- package/build/v1/client-file/schemas/client-file-upload-response.schema.js.map +1 -0
- package/build/v1/client-file/schemas/index.d.ts +11 -0
- package/build/v1/client-file/schemas/index.js +28 -0
- package/build/v1/client-file/schemas/index.js.map +1 -0
- package/build/v1/index.d.ts +3 -0
- package/build/v1/index.js +3 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/message/commands/create-message.command.d.ts +1 -0
- package/build/v1/message/message.errors.d.ts +4 -1
- package/build/v1/message/message.errors.js +15 -0
- package/build/v1/message/message.errors.js.map +1 -1
- package/build/v1/message/schemas/create-message-request.schema.d.ts +1 -0
- package/build/v1/message/schemas/create-message-request.schema.js +3 -0
- package/build/v1/message/schemas/create-message-request.schema.js.map +1 -1
- package/build/v1/s2s/queries/get-chat-by-id.query.d.ts +18 -0
- package/build/v1/s2s/queries/get-chat-by-id.query.js +15 -0
- package/build/v1/s2s/queries/get-chat-by-id.query.js.map +1 -0
- package/build/v1/s2s/queries/get-user-by-session.query.d.ts +1 -1
- package/build/v1/s2s/queries/index.d.ts +1 -0
- package/build/v1/s2s/queries/index.js +1 -0
- package/build/v1/s2s/queries/index.js.map +1 -1
- package/build/v1/s2s/schemas/index.d.ts +1 -0
- package/build/v1/s2s/schemas/index.js +1 -0
- package/build/v1/s2s/schemas/index.js.map +1 -1
- package/build/v1/s2s/schemas/s2s-chat-response.schema.d.ts +9 -0
- package/build/v1/s2s/schemas/s2s-chat-response.schema.js +13 -0
- package/build/v1/s2s/schemas/s2s-chat-response.schema.js.map +1 -0
- package/build/v1/s2s/schemas/s2s-user-response.schema.d.ts +2 -1
- package/build/v1/s2s/schemas/s2s-user-response.schema.js +2 -1
- package/build/v1/s2s/schemas/s2s-user-response.schema.js.map +1 -1
- package/build/v1/seo-pages/public/queries/get-page-by-alias.query.d.ts +8 -9
- package/build/v1/seo-pages/schemas/page-response.schema.d.ts +8 -9
- package/build/v1/seo-pages/schemas/page-response.schema.js +1 -1
- package/build/v1/seo-pages/schemas/page-response.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileDeleteCommand = 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 ClientFileDeleteCommand;
|
|
8
|
+
(function (ClientFileDeleteCommand) {
|
|
9
|
+
ClientFileDeleteCommand.Params = schemas_1.ClientFileByIdParamsSchema;
|
|
10
|
+
ClientFileDeleteCommand.Response = schemas_1.ClientFileDeleteResponseSchema;
|
|
11
|
+
ClientFileDeleteCommand.URL = (pageId, chatId, fileId) => rest_api_1.REST_API.V1.CLIENT_FILE.DELETE(pageId, chatId, fileId);
|
|
12
|
+
ClientFileDeleteCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
13
|
+
})(ClientFileDeleteCommand || (exports.ClientFileDeleteCommand = ClientFileDeleteCommand = {}));
|
|
14
|
+
//# sourceMappingURL=client-file-delete.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-delete.command.js","sourceRoot":"","sources":["../../../../v1/client-file/commands/client-file-delete.command.ts"],"names":[],"mappings":";;;AACA,wCAAwF;AACxF,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,uBAAuB,CASvC;AATD,WAAiB,uBAAuB;IACvB,8BAAM,GAAG,oCAA0B,CAAC;IACpC,gCAAQ,GAAG,wCAA8B,CAAC;IAC1C,2BAAG,GAAG,CAAC,MAAc,EAAE,MAAc,EAAE,MAAc,EAAE,EAAE,CAClE,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,8BAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAI5C,CAAC,EATgB,uBAAuB,uCAAvB,uBAAuB,QASvC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace ClientFileUploadCommand {
|
|
4
|
+
const Params: z.ZodObject<{
|
|
5
|
+
pageId: z.ZodString;
|
|
6
|
+
chatId: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const Response: z.ZodObject<{
|
|
9
|
+
uuid: z.ZodString;
|
|
10
|
+
type: z.ZodEnum<typeof import("../schemas").ClientFileType>;
|
|
11
|
+
s3Url: z.ZodString;
|
|
12
|
+
contentType: z.ZodString;
|
|
13
|
+
size: z.ZodNumber;
|
|
14
|
+
originalSize: z.ZodNumber;
|
|
15
|
+
originalFilename: z.ZodString;
|
|
16
|
+
originalContentType: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
const URL: (pageId: string, chatId: string) => string;
|
|
19
|
+
const METHOD = HttpMethod.PUT;
|
|
20
|
+
type ParamsType = z.infer<typeof Params>;
|
|
21
|
+
type ResponseType = z.infer<typeof Response>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileUploadCommand = 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 ClientFileUploadCommand;
|
|
8
|
+
(function (ClientFileUploadCommand) {
|
|
9
|
+
ClientFileUploadCommand.Params = schemas_1.ClientFileChatParamsSchema;
|
|
10
|
+
ClientFileUploadCommand.Response = schemas_1.ClientFileUploadResponseSchema;
|
|
11
|
+
ClientFileUploadCommand.URL = (pageId, chatId) => rest_api_1.REST_API.V1.CLIENT_FILE.UPLOAD(pageId, chatId);
|
|
12
|
+
ClientFileUploadCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
13
|
+
})(ClientFileUploadCommand || (exports.ClientFileUploadCommand = ClientFileUploadCommand = {}));
|
|
14
|
+
//# sourceMappingURL=client-file-upload.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-upload.command.js","sourceRoot":"","sources":["../../../../v1/client-file/commands/client-file-upload.command.ts"],"names":[],"mappings":";;;AACA,wCAGoB;AACpB,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,uBAAuB,CASvC;AATD,WAAiB,uBAAuB;IACvB,8BAAM,GAAG,oCAA0B,CAAC;IACpC,gCAAQ,GAAG,wCAA8B,CAAC;IAC1C,2BAAG,GAAG,CAAC,MAAc,EAAE,MAAc,EAAE,EAAE,CAClD,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,8BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,uBAAuB,uCAAvB,uBAAuB,QASvC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./client-file-upload.command"), exports);
|
|
18
|
+
__exportStar(require("./client-file-delete.command"), exports);
|
|
19
|
+
__exportStar(require("./client-file-attach.command"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/client-file/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./schemas"), exports);
|
|
18
|
+
__exportStar(require("./commands"), exports);
|
|
19
|
+
__exportStar(require("./queries"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/client-file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace ClientFileListQuery {
|
|
4
|
+
const Params: z.ZodObject<{
|
|
5
|
+
pageId: z.ZodString;
|
|
6
|
+
chatId: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const Response: z.ZodObject<{
|
|
9
|
+
files: z.ZodArray<z.ZodObject<{
|
|
10
|
+
uuid: z.ZodString;
|
|
11
|
+
type: z.ZodEnum<typeof import("../schemas").ClientFileType>;
|
|
12
|
+
s3Url: z.ZodString;
|
|
13
|
+
contentType: z.ZodString;
|
|
14
|
+
size: z.ZodNumber;
|
|
15
|
+
originalSize: z.ZodNumber;
|
|
16
|
+
originalFilename: z.ZodString;
|
|
17
|
+
originalContentType: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
const URL: (pageId: string, chatId: string) => string;
|
|
21
|
+
const METHOD = HttpMethod.GET;
|
|
22
|
+
type ParamsType = z.infer<typeof Params>;
|
|
23
|
+
type ResponseType = z.infer<typeof Response>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileListQuery = 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 ClientFileListQuery;
|
|
8
|
+
(function (ClientFileListQuery) {
|
|
9
|
+
ClientFileListQuery.Params = schemas_1.ClientFileChatParamsSchema;
|
|
10
|
+
ClientFileListQuery.Response = schemas_1.ClientFileListResponseSchema;
|
|
11
|
+
ClientFileListQuery.URL = (pageId, chatId) => rest_api_1.REST_API.V1.CLIENT_FILE.LIST(pageId, chatId);
|
|
12
|
+
ClientFileListQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
13
|
+
})(ClientFileListQuery || (exports.ClientFileListQuery = ClientFileListQuery = {}));
|
|
14
|
+
//# sourceMappingURL=client-file-list.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-list.query.js","sourceRoot":"","sources":["../../../../v1/client-file/queries/client-file-list.query.ts"],"names":[],"mappings":";;;AACA,wCAAsF;AACtF,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,mBAAmB,CASnC;AATD,WAAiB,mBAAmB;IACnB,0BAAM,GAAG,oCAA0B,CAAC;IACpC,4BAAQ,GAAG,sCAA4B,CAAC;IACxC,uBAAG,GAAG,CAAC,MAAc,EAAE,MAAc,EAAE,EAAE,CAClD,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,0BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,mBAAmB,mCAAnB,mBAAmB,QASnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './client-file-list.query';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./client-file-list.query"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/client-file/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileAttachRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ClientFileAttachRequestSchema = zod_1.z.object({
|
|
6
|
+
uuids: zod_1.z
|
|
7
|
+
.array(zod_1.z
|
|
8
|
+
.string({ error: 'ClientFileAttachRequest.uuids.required' })
|
|
9
|
+
.uuid({ error: 'ClientFileAttachRequest.uuids.invalid' }))
|
|
10
|
+
.min(1, { error: 'ClientFileAttachRequest.uuids.min' }),
|
|
11
|
+
messageId: zod_1.z
|
|
12
|
+
.string({ error: 'ClientFileAttachRequest.messageId.required' })
|
|
13
|
+
.uuid({ error: 'ClientFileAttachRequest.messageId.invalid' }),
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=client-file-attach-request.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-attach-request.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-attach-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,KAAK,EAAE,OAAC;SACH,KAAK,CACF,OAAC;SACI,MAAM,CAAC,EAAE,KAAK,EAAE,wCAAwC,EAAE,CAAC;SAC3D,IAAI,CAAC,EAAE,KAAK,EAAE,uCAAuC,EAAE,CAAC,CAChE;SACA,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,mCAAmC,EAAE,CAAC;IAC3D,SAAS,EAAE,OAAC;SACP,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,IAAI,CAAC,EAAE,KAAK,EAAE,2CAA2C,EAAE,CAAC;CACpE,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ClientFileType } from './client-file-type.enum';
|
|
3
|
+
export declare const ClientFileAttachmentItemSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
type: z.ZodEnum<typeof ClientFileType>;
|
|
6
|
+
s3Url: z.ZodString;
|
|
7
|
+
bucket: z.ZodString;
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
contentType: z.ZodString;
|
|
10
|
+
size: z.ZodNumber;
|
|
11
|
+
originalFilename: z.ZodString;
|
|
12
|
+
originalContentType: z.ZodString;
|
|
13
|
+
originalSize: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const ClientFileAttachResponseSchema: z.ZodObject<{
|
|
16
|
+
items: z.ZodArray<z.ZodObject<{
|
|
17
|
+
uuid: z.ZodString;
|
|
18
|
+
type: z.ZodEnum<typeof ClientFileType>;
|
|
19
|
+
s3Url: z.ZodString;
|
|
20
|
+
bucket: z.ZodString;
|
|
21
|
+
key: z.ZodString;
|
|
22
|
+
contentType: z.ZodString;
|
|
23
|
+
size: z.ZodNumber;
|
|
24
|
+
originalFilename: z.ZodString;
|
|
25
|
+
originalContentType: z.ZodString;
|
|
26
|
+
originalSize: z.ZodNumber;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type ClientFileAttachResponseDto = z.infer<typeof ClientFileAttachResponseSchema>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileAttachResponseSchema = exports.ClientFileAttachmentItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../shared");
|
|
6
|
+
const client_file_type_enum_1 = require("./client-file-type.enum");
|
|
7
|
+
exports.ClientFileAttachmentItemSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
9
|
+
type: zod_1.z.nativeEnum(client_file_type_enum_1.ClientFileType),
|
|
10
|
+
s3Url: zod_1.z.string().url(),
|
|
11
|
+
bucket: zod_1.z.string().min(1),
|
|
12
|
+
key: zod_1.z.string().min(1),
|
|
13
|
+
contentType: zod_1.z.string().min(1),
|
|
14
|
+
size: zod_1.z.number().int().nonnegative(),
|
|
15
|
+
originalFilename: zod_1.z.string().min(1),
|
|
16
|
+
originalContentType: zod_1.z.string().min(1),
|
|
17
|
+
originalSize: zod_1.z.number().int().nonnegative(),
|
|
18
|
+
});
|
|
19
|
+
exports.ClientFileAttachResponseSchema = zod_1.z.object({
|
|
20
|
+
items: zod_1.z.array(exports.ClientFileAttachmentItemSchema),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=client-file-attach-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-attach-response.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-attach-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAC7C,mEAAyD;AAE5C,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,sCAAc,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC/C,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC;CACjD,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileByIdParamsSchema = void 0;
|
|
4
|
+
const client_file_chat_params_schema_1 = require("./client-file-chat-params.schema");
|
|
5
|
+
const client_file_id_param_schema_1 = require("./client-file-id-param.schema");
|
|
6
|
+
exports.ClientFileByIdParamsSchema = client_file_chat_params_schema_1.ClientFileChatParamsSchema.merge(client_file_id_param_schema_1.ClientFileIdParamSchema);
|
|
7
|
+
//# sourceMappingURL=client-file-by-id-params.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-by-id-params.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-by-id-params.schema.ts"],"names":[],"mappings":";;;AACA,qFAA8E;AAC9E,+EAAwE;AAE3D,QAAA,0BAA0B,GAAG,2DAA0B,CAAC,KAAK,CACtE,qDAAuB,CAC1B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileChatParamsSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../chat/schemas");
|
|
5
|
+
exports.ClientFileChatParamsSchema = schemas_1.PageIdParamSchema.merge(schemas_1.ChatIdParamSchema);
|
|
6
|
+
//# sourceMappingURL=client-file-chat-params.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-chat-params.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-chat-params.schema.ts"],"names":[],"mappings":";;;AACA,gDAA0E;AAK7D,QAAA,0BAA0B,GAAG,2BAAiB,CAAC,KAAK,CAAC,2BAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileDeleteResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../shared");
|
|
6
|
+
exports.ClientFileDeleteResponseSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=client-file-delete-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-delete-response.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-delete-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileIdParamSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ClientFileIdParamSchema = zod_1.z.object({
|
|
6
|
+
fileId: zod_1.z
|
|
7
|
+
.string({ error: 'ClientFileIdParam.fileId.required' })
|
|
8
|
+
.uuid({ error: 'ClientFileIdParam.fileId.invalid' }),
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=client-file-id-param.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-id-param.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-id-param.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,OAAC;SACJ,MAAM,CAAC,EAAE,KAAK,EAAE,mCAAmC,EAAE,CAAC;SACtD,IAAI,CAAC,EAAE,KAAK,EAAE,kCAAkC,EAAE,CAAC;CAC3D,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ClientFileType } from './client-file-type.enum';
|
|
3
|
+
export declare const ClientFileItemResponseSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
type: z.ZodEnum<typeof ClientFileType>;
|
|
6
|
+
s3Url: z.ZodString;
|
|
7
|
+
contentType: z.ZodString;
|
|
8
|
+
size: z.ZodNumber;
|
|
9
|
+
originalSize: z.ZodNumber;
|
|
10
|
+
originalFilename: z.ZodString;
|
|
11
|
+
originalContentType: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type ClientFileItemResponseDto = z.infer<typeof ClientFileItemResponseSchema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileItemResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../shared");
|
|
6
|
+
const client_file_type_enum_1 = require("./client-file-type.enum");
|
|
7
|
+
exports.ClientFileItemResponseSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
9
|
+
type: zod_1.z.nativeEnum(client_file_type_enum_1.ClientFileType),
|
|
10
|
+
s3Url: zod_1.z.string().url(),
|
|
11
|
+
contentType: zod_1.z.string().min(1),
|
|
12
|
+
size: zod_1.z.number().int().nonnegative(),
|
|
13
|
+
originalSize: zod_1.z.number().int().nonnegative(),
|
|
14
|
+
originalFilename: zod_1.z.string().min(1),
|
|
15
|
+
originalContentType: zod_1.z.string().min(1),
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=client-file-item-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-item-response.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-item-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAC7C,mEAAyD;AAE5C,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,sCAAc,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC5C,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACzC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ClientFileListResponseSchema: z.ZodObject<{
|
|
3
|
+
files: z.ZodArray<z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
type: z.ZodEnum<typeof import("./client-file-type.enum").ClientFileType>;
|
|
6
|
+
s3Url: z.ZodString;
|
|
7
|
+
contentType: z.ZodString;
|
|
8
|
+
size: z.ZodNumber;
|
|
9
|
+
originalSize: z.ZodNumber;
|
|
10
|
+
originalFilename: z.ZodString;
|
|
11
|
+
originalContentType: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type ClientFileListResponseDto = z.infer<typeof ClientFileListResponseSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileListResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_file_item_response_schema_1 = require("./client-file-item-response.schema");
|
|
6
|
+
exports.ClientFileListResponseSchema = zod_1.z.object({
|
|
7
|
+
files: zod_1.z.array(client_file_item_response_schema_1.ClientFileItemResponseSchema),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=client-file-list-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-list-response.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-list-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yFAAkF;AAErE,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,+DAA4B,CAAC;CAC/C,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CLIENT_FILE_IMAGE_MIME_TYPES: readonly ["image/jpeg", "image/png", "image/webp"];
|
|
2
|
+
export declare const CLIENT_FILE_DOC_MIME_TYPES: readonly ["application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "text/plain", "text/markdown", "text/csv", "text/html", "text/css", "text/xml", "application/json", "application/xml", "text/yaml", "application/x-yaml", "text/javascript", "application/javascript", "text/x-python", "application/x-python-code", "text/x-java-source", "text/x-c", "text/x-c++src", "text/x-csharp", "text/x-go", "text/x-rust", "text/x-ruby", "text/x-php", "application/x-php", "text/x-swift", "text/x-kotlin", "text/x-scala", "text/x-sql", "text/x-shellscript", "application/x-sh", "text/x-typescript", "application/typescript"];
|
|
3
|
+
export type ClientFileImageMimeType = (typeof CLIENT_FILE_IMAGE_MIME_TYPES)[number];
|
|
4
|
+
export type ClientFileDocMimeType = (typeof CLIENT_FILE_DOC_MIME_TYPES)[number];
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIENT_FILE_DOC_MIME_TYPES = exports.CLIENT_FILE_IMAGE_MIME_TYPES = void 0;
|
|
4
|
+
exports.CLIENT_FILE_IMAGE_MIME_TYPES = [
|
|
5
|
+
'image/jpeg',
|
|
6
|
+
'image/png',
|
|
7
|
+
'image/webp',
|
|
8
|
+
];
|
|
9
|
+
exports.CLIENT_FILE_DOC_MIME_TYPES = [
|
|
10
|
+
'application/pdf',
|
|
11
|
+
'application/msword',
|
|
12
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
13
|
+
'application/vnd.ms-excel',
|
|
14
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
15
|
+
'application/vnd.ms-powerpoint',
|
|
16
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
17
|
+
'text/plain',
|
|
18
|
+
'text/markdown',
|
|
19
|
+
'text/csv',
|
|
20
|
+
'text/html',
|
|
21
|
+
'text/css',
|
|
22
|
+
'text/xml',
|
|
23
|
+
'application/json',
|
|
24
|
+
'application/xml',
|
|
25
|
+
'text/yaml',
|
|
26
|
+
'application/x-yaml',
|
|
27
|
+
'text/javascript',
|
|
28
|
+
'application/javascript',
|
|
29
|
+
'text/x-python',
|
|
30
|
+
'application/x-python-code',
|
|
31
|
+
'text/x-java-source',
|
|
32
|
+
'text/x-c',
|
|
33
|
+
'text/x-c++src',
|
|
34
|
+
'text/x-csharp',
|
|
35
|
+
'text/x-go',
|
|
36
|
+
'text/x-rust',
|
|
37
|
+
'text/x-ruby',
|
|
38
|
+
'text/x-php',
|
|
39
|
+
'application/x-php',
|
|
40
|
+
'text/x-swift',
|
|
41
|
+
'text/x-kotlin',
|
|
42
|
+
'text/x-scala',
|
|
43
|
+
'text/x-sql',
|
|
44
|
+
'text/x-shellscript',
|
|
45
|
+
'application/x-sh',
|
|
46
|
+
'text/x-typescript',
|
|
47
|
+
'application/typescript',
|
|
48
|
+
];
|
|
49
|
+
//# sourceMappingURL=client-file-mime-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-mime-types.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-mime-types.ts"],"names":[],"mappings":";;;AACa,QAAA,4BAA4B,GAAG;IACxC,YAAY;IACZ,WAAW;IACX,YAAY;CACN,CAAC;AAGE,QAAA,0BAA0B,GAAG;IAEtC,iBAAiB;IACjB,oBAAoB;IACpB,yEAAyE;IACzE,0BAA0B;IAC1B,mEAAmE;IACnE,+BAA+B;IAC/B,2EAA2E;IAE3E,YAAY;IACZ,eAAe;IACf,UAAU;IACV,WAAW;IACX,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,iBAAiB;IACjB,WAAW;IACX,oBAAoB;IAEpB,iBAAiB;IACjB,wBAAwB;IACxB,eAAe;IACf,2BAA2B;IAC3B,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,eAAe;IACf,WAAW;IACX,aAAa;IACb,aAAa;IACb,YAAY;IACZ,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,YAAY;IACZ,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,wBAAwB;CAClB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileType = void 0;
|
|
4
|
+
var ClientFileType;
|
|
5
|
+
(function (ClientFileType) {
|
|
6
|
+
ClientFileType["IMAGE"] = "image";
|
|
7
|
+
ClientFileType["DOC"] = "doc";
|
|
8
|
+
})(ClientFileType || (exports.ClientFileType = ClientFileType = {}));
|
|
9
|
+
//# sourceMappingURL=client-file-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-type.enum.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,iCAAe,CAAA;IACf,6BAAW,CAAA;AACf,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const ClientFileUploadResponseSchema: import("zod").ZodObject<{
|
|
2
|
+
uuid: import("zod").ZodString;
|
|
3
|
+
type: import("zod").ZodEnum<typeof import("./client-file-type.enum").ClientFileType>;
|
|
4
|
+
s3Url: import("zod").ZodString;
|
|
5
|
+
contentType: import("zod").ZodString;
|
|
6
|
+
size: import("zod").ZodNumber;
|
|
7
|
+
originalSize: import("zod").ZodNumber;
|
|
8
|
+
originalFilename: import("zod").ZodString;
|
|
9
|
+
originalContentType: import("zod").ZodString;
|
|
10
|
+
}, import("zod/v4/core").$strip>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileUploadResponseSchema = void 0;
|
|
4
|
+
const client_file_item_response_schema_1 = require("./client-file-item-response.schema");
|
|
5
|
+
exports.ClientFileUploadResponseSchema = client_file_item_response_schema_1.ClientFileItemResponseSchema;
|
|
6
|
+
//# sourceMappingURL=client-file-upload-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-upload-response.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-upload-response.schema.ts"],"names":[],"mappings":";;;AAAA,yFAAkF;AAErE,QAAA,8BAA8B,GAAG,+DAA4B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './client-file-type.enum';
|
|
2
|
+
export * from './client-file-id-param.schema';
|
|
3
|
+
export * from './client-file-chat-params.schema';
|
|
4
|
+
export * from './client-file-by-id-params.schema';
|
|
5
|
+
export * from './client-file-item-response.schema';
|
|
6
|
+
export * from './client-file-list-response.schema';
|
|
7
|
+
export * from './client-file-upload-response.schema';
|
|
8
|
+
export * from './client-file-delete-response.schema';
|
|
9
|
+
export * from './client-file-attach-request.schema';
|
|
10
|
+
export * from './client-file-attach-response.schema';
|
|
11
|
+
export * from './client-file-mime-types';
|
|
@@ -0,0 +1,28 @@
|
|
|
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("./client-file-type.enum"), exports);
|
|
18
|
+
__exportStar(require("./client-file-id-param.schema"), exports);
|
|
19
|
+
__exportStar(require("./client-file-chat-params.schema"), exports);
|
|
20
|
+
__exportStar(require("./client-file-by-id-params.schema"), exports);
|
|
21
|
+
__exportStar(require("./client-file-item-response.schema"), exports);
|
|
22
|
+
__exportStar(require("./client-file-list-response.schema"), exports);
|
|
23
|
+
__exportStar(require("./client-file-upload-response.schema"), exports);
|
|
24
|
+
__exportStar(require("./client-file-delete-response.schema"), exports);
|
|
25
|
+
__exportStar(require("./client-file-attach-request.schema"), exports);
|
|
26
|
+
__exportStar(require("./client-file-attach-response.schema"), exports);
|
|
27
|
+
__exportStar(require("./client-file-mime-types"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,gEAA8C;AAC9C,mEAAiD;AACjD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AACnD,uEAAqD;AACrD,uEAAqD;AACrD,sEAAoD;AACpD,uEAAqD;AACrD,2DAAyC"}
|
package/build/v1/index.d.ts
CHANGED
package/build/v1/index.js
CHANGED
|
@@ -37,5 +37,8 @@ __exportStar(require("./s3"), exports);
|
|
|
37
37
|
__exportStar(require("./s2s"), exports);
|
|
38
38
|
__exportStar(require("./telegram-auth"), exports);
|
|
39
39
|
__exportStar(require("./telegram-profile"), exports);
|
|
40
|
+
__exportStar(require("./admin-file"), exports);
|
|
41
|
+
__exportStar(require("./client-file"), exports);
|
|
42
|
+
__exportStar(require("./file"), exports);
|
|
40
43
|
__exportStar(require("./forms"), exports);
|
|
41
44
|
//# sourceMappingURL=index.js.map
|
package/build/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,2DAAyC;AACzC,+CAA6B;AAC7B,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,2DAAyC;AACzC,+CAA6B;AAC7B,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB"}
|