@ai-grator/api 0.1.15 → 0.1.17
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/errors/errors.d.ts +42 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +42 -0
- package/build/feedback/endpoints/commands/create-feedback.command.d.ts +35 -0
- package/build/feedback/endpoints/commands/create-feedback.command.d.ts.map +1 -0
- package/build/feedback/endpoints/commands/create-feedback.command.js +25 -0
- package/build/feedback/endpoints/commands/index.d.ts +3 -0
- package/build/feedback/endpoints/commands/index.d.ts.map +1 -0
- package/build/feedback/endpoints/commands/index.js +18 -0
- package/build/feedback/endpoints/commands/update-feedback-status.command.d.ts +46 -0
- package/build/feedback/endpoints/commands/update-feedback-status.command.d.ts.map +1 -0
- package/build/feedback/endpoints/commands/update-feedback-status.command.js +32 -0
- package/build/feedback/endpoints/feedback.d.ts +11 -0
- package/build/feedback/endpoints/feedback.d.ts.map +1 -0
- package/build/feedback/endpoints/feedback.js +13 -0
- package/build/feedback/endpoints/index.d.ts +4 -0
- package/build/feedback/endpoints/index.d.ts.map +1 -0
- package/build/feedback/endpoints/index.js +19 -0
- package/build/feedback/endpoints/queries/get-feedback-by-id.query.d.ts +38 -0
- package/build/feedback/endpoints/queries/get-feedback-by-id.query.d.ts.map +1 -0
- package/build/feedback/endpoints/queries/get-feedback-by-id.query.js +26 -0
- package/build/feedback/endpoints/queries/get-feedbacks.query.d.ts +47 -0
- package/build/feedback/endpoints/queries/get-feedbacks.query.d.ts.map +1 -0
- package/build/feedback/endpoints/queries/get-feedbacks.query.js +27 -0
- package/build/feedback/endpoints/queries/index.d.ts +3 -0
- package/build/feedback/endpoints/queries/index.d.ts.map +1 -0
- package/build/feedback/endpoints/queries/index.js +18 -0
- package/build/feedback/enums/index.d.ts +2 -0
- package/build/feedback/enums/index.d.ts.map +1 -0
- package/build/feedback/enums/index.js +17 -0
- package/build/feedback/enums/status.enum.d.ts +5 -0
- package/build/feedback/enums/status.enum.d.ts.map +1 -0
- package/build/feedback/enums/status.enum.js +8 -0
- package/build/feedback/index.d.ts +4 -0
- package/build/feedback/index.d.ts.map +1 -0
- package/build/feedback/index.js +19 -0
- package/build/feedback/models/feedback-admin-response.schema.d.ts +11 -0
- package/build/feedback/models/feedback-admin-response.schema.d.ts.map +1 -0
- package/build/feedback/models/feedback-admin-response.schema.js +8 -0
- package/build/feedback/models/feedback-response.schema.d.ts +11 -0
- package/build/feedback/models/feedback-response.schema.d.ts.map +1 -0
- package/build/feedback/models/feedback-response.schema.js +12 -0
- package/build/feedback/models/index.d.ts +3 -0
- package/build/feedback/models/index.d.ts.map +1 -0
- package/build/feedback/models/index.js +18 -0
- package/build/file/enums/file.enum.d.ts.map +1 -1
- package/build/file/enums/file.enum.js +2 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/errors/errors.ts +42 -0
- package/feedback/endpoints/commands/create-feedback.command.ts +25 -0
- package/feedback/endpoints/commands/index.ts +2 -0
- package/feedback/endpoints/commands/update-feedback-status.command.ts +33 -0
- package/feedback/endpoints/feedback.ts +13 -0
- package/feedback/endpoints/index.ts +3 -0
- package/feedback/endpoints/queries/get-feedback-by-id.query.ts +26 -0
- package/feedback/endpoints/queries/get-feedbacks.query.ts +27 -0
- package/feedback/endpoints/queries/index.ts +2 -0
- package/feedback/enums/index.ts +1 -0
- package/feedback/enums/status.enum.ts +4 -0
- package/feedback/index.ts +3 -0
- package/feedback/models/feedback-admin-response.schema.ts +8 -0
- package/feedback/models/feedback-response.schema.ts +12 -0
- package/feedback/models/index.ts +2 -0
- package/file/enums/file.enum.ts +2 -2
- package/package.json +1 -1
package/build/errors/errors.d.ts
CHANGED
|
@@ -164,6 +164,23 @@ export declare const ERRORS: {
|
|
|
164
164
|
readonly message: "Не удалось найти статью";
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
|
+
readonly FEEDBACK: {
|
|
168
|
+
readonly CREATE_ERROR: {
|
|
169
|
+
readonly httpCode: 500;
|
|
170
|
+
readonly code: "FEEDBACK.CREATE_ERROR";
|
|
171
|
+
readonly message: "Не удалось сохранить отзыв";
|
|
172
|
+
};
|
|
173
|
+
readonly FIND_ERROR: {
|
|
174
|
+
readonly httpCode: 500;
|
|
175
|
+
readonly code: "FEEDBACK.FIND_ERROR";
|
|
176
|
+
readonly message: "Не удалось найти отзывы";
|
|
177
|
+
};
|
|
178
|
+
readonly NOT_FOUND: {
|
|
179
|
+
readonly httpCode: 404;
|
|
180
|
+
readonly code: "FEEDBACK.NOT_FOUND";
|
|
181
|
+
readonly message: "Отзыв не найден";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
167
184
|
readonly FEEDBACK_SURVEY: {
|
|
168
185
|
readonly ALREADY_SUBMITTED: {
|
|
169
186
|
readonly httpCode: 409;
|
|
@@ -469,6 +486,21 @@ export declare const ERRORS: {
|
|
|
469
486
|
readonly code: "FILE.EXTRACTION_FAILED";
|
|
470
487
|
readonly message: "Не удалось извлечь текст из документа (файл может быть повреждён, зашифрован или не поддерживается)";
|
|
471
488
|
};
|
|
489
|
+
readonly REQUIRED: {
|
|
490
|
+
readonly httpCode: 400;
|
|
491
|
+
readonly code: "FILE.REQUIRED";
|
|
492
|
+
readonly message: "Необходимо прикрепить файл";
|
|
493
|
+
};
|
|
494
|
+
readonly UNSUPPORTED_TYPE: {
|
|
495
|
+
readonly httpCode: 400;
|
|
496
|
+
readonly code: "FILE.UNSUPPORTED_TYPE";
|
|
497
|
+
readonly message: "Тип файла не поддерживается";
|
|
498
|
+
};
|
|
499
|
+
readonly SIZE_LIMIT_EXCEEDED: {
|
|
500
|
+
readonly httpCode: 400;
|
|
501
|
+
readonly code: "FILE.SIZE_LIMIT_EXCEEDED";
|
|
502
|
+
readonly message: "Размер файла превышает допустимый лимит";
|
|
503
|
+
};
|
|
472
504
|
};
|
|
473
505
|
readonly USER: {
|
|
474
506
|
readonly CONFLICT: {
|
|
@@ -607,6 +639,16 @@ export declare const ERRORS: {
|
|
|
607
639
|
readonly code: "ADMIN.BONUS_OPERATION_ERROR";
|
|
608
640
|
readonly message: "Не удалось создать операцию административного бонуса";
|
|
609
641
|
};
|
|
642
|
+
readonly BONUS_CREDIT_NOT_ALLOWED: {
|
|
643
|
+
readonly httpCode: 400;
|
|
644
|
+
readonly code: "ADMIN.BONUS_CREDIT_NOT_ALLOWED";
|
|
645
|
+
readonly message: "Пополнение бонусного баланса не разрешено";
|
|
646
|
+
};
|
|
647
|
+
readonly CASH_DEBIT_NOT_ALLOWED: {
|
|
648
|
+
readonly httpCode: 400;
|
|
649
|
+
readonly code: "ADMIN.CASH_DEBIT_NOT_ALLOWED";
|
|
650
|
+
readonly message: "Списание основного баланса не разрешено";
|
|
651
|
+
};
|
|
610
652
|
readonly CANNOT_BAN_ADMIN: {
|
|
611
653
|
readonly httpCode: 400;
|
|
612
654
|
readonly code: "ADMIN.CANNOT_BAN_ADMIN";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoxBT,CAAC"}
|
package/build/errors/errors.js
CHANGED
|
@@ -167,6 +167,23 @@ exports.ERRORS = {
|
|
|
167
167
|
message: 'Не удалось найти статью',
|
|
168
168
|
},
|
|
169
169
|
},
|
|
170
|
+
FEEDBACK: {
|
|
171
|
+
CREATE_ERROR: {
|
|
172
|
+
httpCode: 500,
|
|
173
|
+
code: 'FEEDBACK.CREATE_ERROR',
|
|
174
|
+
message: 'Не удалось сохранить отзыв',
|
|
175
|
+
},
|
|
176
|
+
FIND_ERROR: {
|
|
177
|
+
httpCode: 500,
|
|
178
|
+
code: 'FEEDBACK.FIND_ERROR',
|
|
179
|
+
message: 'Не удалось найти отзывы',
|
|
180
|
+
},
|
|
181
|
+
NOT_FOUND: {
|
|
182
|
+
httpCode: 404,
|
|
183
|
+
code: 'FEEDBACK.NOT_FOUND',
|
|
184
|
+
message: 'Отзыв не найден',
|
|
185
|
+
},
|
|
186
|
+
},
|
|
170
187
|
FEEDBACK_SURVEY: {
|
|
171
188
|
ALREADY_SUBMITTED: {
|
|
172
189
|
httpCode: 409,
|
|
@@ -472,6 +489,21 @@ exports.ERRORS = {
|
|
|
472
489
|
code: 'FILE.EXTRACTION_FAILED',
|
|
473
490
|
message: 'Не удалось извлечь текст из документа (файл может быть повреждён, зашифрован или не поддерживается)',
|
|
474
491
|
},
|
|
492
|
+
REQUIRED: {
|
|
493
|
+
httpCode: 400,
|
|
494
|
+
code: 'FILE.REQUIRED',
|
|
495
|
+
message: 'Необходимо прикрепить файл',
|
|
496
|
+
},
|
|
497
|
+
UNSUPPORTED_TYPE: {
|
|
498
|
+
httpCode: 400,
|
|
499
|
+
code: 'FILE.UNSUPPORTED_TYPE',
|
|
500
|
+
message: 'Тип файла не поддерживается',
|
|
501
|
+
},
|
|
502
|
+
SIZE_LIMIT_EXCEEDED: {
|
|
503
|
+
httpCode: 400,
|
|
504
|
+
code: 'FILE.SIZE_LIMIT_EXCEEDED',
|
|
505
|
+
message: 'Размер файла превышает допустимый лимит',
|
|
506
|
+
},
|
|
475
507
|
},
|
|
476
508
|
USER: {
|
|
477
509
|
CONFLICT: {
|
|
@@ -610,6 +642,16 @@ exports.ERRORS = {
|
|
|
610
642
|
code: 'ADMIN.BONUS_OPERATION_ERROR',
|
|
611
643
|
message: 'Не удалось создать операцию административного бонуса',
|
|
612
644
|
},
|
|
645
|
+
BONUS_CREDIT_NOT_ALLOWED: {
|
|
646
|
+
httpCode: 400,
|
|
647
|
+
code: 'ADMIN.BONUS_CREDIT_NOT_ALLOWED',
|
|
648
|
+
message: 'Пополнение бонусного баланса не разрешено',
|
|
649
|
+
},
|
|
650
|
+
CASH_DEBIT_NOT_ALLOWED: {
|
|
651
|
+
httpCode: 400,
|
|
652
|
+
code: 'ADMIN.CASH_DEBIT_NOT_ALLOWED',
|
|
653
|
+
message: 'Списание основного баланса не разрешено',
|
|
654
|
+
},
|
|
613
655
|
CANNOT_BAN_ADMIN: {
|
|
614
656
|
httpCode: 400,
|
|
615
657
|
code: 'ADMIN.CANNOT_BAN_ADMIN',
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const CreateFeedbackCommandBody: z.ZodObject<{
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const CreateFeedbackCommandResponse: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
userId: z.ZodUUID;
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
status: z.ZodEnum<typeof import("../..").FEEDBACK_STATUS>;
|
|
11
|
+
createdAt: z.ZodDate;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const CreateFeedbackCommand: {
|
|
14
|
+
method: HTTP_METHODS.POST;
|
|
15
|
+
path: "";
|
|
16
|
+
summary: string;
|
|
17
|
+
request: {
|
|
18
|
+
body: z.ZodObject<{
|
|
19
|
+
message: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
};
|
|
22
|
+
responses: {
|
|
23
|
+
201: z.ZodObject<{
|
|
24
|
+
uuid: z.ZodUUID;
|
|
25
|
+
userId: z.ZodUUID;
|
|
26
|
+
message: z.ZodString;
|
|
27
|
+
status: z.ZodEnum<typeof import("../..").FEEDBACK_STATUS>;
|
|
28
|
+
createdAt: z.ZodDate;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
31
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
32
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=create-feedback.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-feedback.command.d.ts","sourceRoot":"","sources":["../../../../feedback/endpoints/commands/create-feedback.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;iBAAyB,CAAC;AAEpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;CAahC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateFeedbackCommand = exports.CreateFeedbackCommandResponse = exports.CreateFeedbackCommandBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const feedback_1 = require("../feedback");
|
|
8
|
+
exports.CreateFeedbackCommandBody = zod_1.z.object({
|
|
9
|
+
message: zod_1.z.string().trim().min(1).max(2000),
|
|
10
|
+
});
|
|
11
|
+
exports.CreateFeedbackCommandResponse = models_1.FeedbackResponseSchema;
|
|
12
|
+
exports.CreateFeedbackCommand = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
14
|
+
path: feedback_1.FEEDBACK_ROUTES.CREATE,
|
|
15
|
+
summary: 'Submit user feedback',
|
|
16
|
+
request: {
|
|
17
|
+
body: exports.CreateFeedbackCommandBody,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
201: exports.CreateFeedbackCommandResponse,
|
|
21
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../feedback/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC"}
|
|
@@ -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("./create-feedback.command"), exports);
|
|
18
|
+
__exportStar(require("./update-feedback-status.command"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { FEEDBACK_STATUS } from '../../enums';
|
|
4
|
+
export declare const UpdateFeedbackStatusCommandParams: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodUUID;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const UpdateFeedbackStatusCommandBody: z.ZodObject<{
|
|
8
|
+
status: z.ZodEnum<typeof FEEDBACK_STATUS>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const UpdateFeedbackStatusCommandResponse: z.ZodObject<{
|
|
11
|
+
uuid: z.ZodUUID;
|
|
12
|
+
userId: z.ZodUUID;
|
|
13
|
+
message: z.ZodString;
|
|
14
|
+
status: z.ZodEnum<typeof FEEDBACK_STATUS>;
|
|
15
|
+
createdAt: z.ZodDate;
|
|
16
|
+
email: z.ZodEmail;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const UpdateFeedbackStatusCommand: {
|
|
19
|
+
method: HTTP_METHODS.PATCH;
|
|
20
|
+
path: string;
|
|
21
|
+
summary: string;
|
|
22
|
+
request: {
|
|
23
|
+
params: z.ZodObject<{
|
|
24
|
+
uuid: z.ZodUUID;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
body: z.ZodObject<{
|
|
27
|
+
status: z.ZodEnum<typeof FEEDBACK_STATUS>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
};
|
|
30
|
+
responses: {
|
|
31
|
+
200: z.ZodObject<{
|
|
32
|
+
uuid: z.ZodUUID;
|
|
33
|
+
userId: z.ZodUUID;
|
|
34
|
+
message: z.ZodString;
|
|
35
|
+
status: z.ZodEnum<typeof FEEDBACK_STATUS>;
|
|
36
|
+
createdAt: z.ZodDate;
|
|
37
|
+
email: z.ZodEmail;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
40
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
41
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
42
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
43
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=update-feedback-status.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-feedback-status.command.d.ts","sourceRoot":"","sources":["../../../../feedback/endpoints/commands/update-feedback-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAI9C,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;iBAA8B,CAAC;AAE/E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBtC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateFeedbackStatusCommand = exports.UpdateFeedbackStatusCommandResponse = exports.UpdateFeedbackStatusCommandBody = exports.UpdateFeedbackStatusCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const enums_1 = require("../../enums");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const feedback_1 = require("../feedback");
|
|
9
|
+
exports.UpdateFeedbackStatusCommandParams = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.uuid(),
|
|
11
|
+
});
|
|
12
|
+
exports.UpdateFeedbackStatusCommandBody = zod_1.z.object({
|
|
13
|
+
status: zod_1.z.enum(enums_1.FEEDBACK_STATUS),
|
|
14
|
+
});
|
|
15
|
+
exports.UpdateFeedbackStatusCommandResponse = models_1.FeedbackAdminResponseSchema;
|
|
16
|
+
exports.UpdateFeedbackStatusCommand = (0, _common_1.defineContract)({
|
|
17
|
+
method: _common_1.HTTP_METHODS.PATCH,
|
|
18
|
+
path: feedback_1.ADMIN_FEEDBACK_ROUTES.UPDATE_STATUS(':uuid'),
|
|
19
|
+
summary: 'Update feedback status',
|
|
20
|
+
request: {
|
|
21
|
+
params: exports.UpdateFeedbackStatusCommandParams,
|
|
22
|
+
body: exports.UpdateFeedbackStatusCommandBody,
|
|
23
|
+
},
|
|
24
|
+
responses: {
|
|
25
|
+
200: exports.UpdateFeedbackStatusCommandResponse,
|
|
26
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
27
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
28
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
30
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const FEEDBACK_CONTROLLER: "feedback";
|
|
2
|
+
export declare const FEEDBACK_ROUTES: {
|
|
3
|
+
readonly CREATE: "";
|
|
4
|
+
};
|
|
5
|
+
export declare const ADMIN_FEEDBACK_CONTROLLER: "admin/feedback";
|
|
6
|
+
export declare const ADMIN_FEEDBACK_ROUTES: {
|
|
7
|
+
readonly GET_ALL: "";
|
|
8
|
+
readonly GET_ONE: (uuid: string) => string;
|
|
9
|
+
readonly UPDATE_STATUS: (uuid: string) => string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=feedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../../../feedback/endpoints/feedback.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe;;CAElB,CAAC;AAEX,eAAO,MAAM,yBAAyB,EAAG,gBAAyB,CAAC;AAEnE,eAAO,MAAM,qBAAqB;;6BAEd,MAAM;mCACA,MAAM;CACtB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ADMIN_FEEDBACK_ROUTES = exports.ADMIN_FEEDBACK_CONTROLLER = exports.FEEDBACK_ROUTES = exports.FEEDBACK_CONTROLLER = void 0;
|
|
4
|
+
exports.FEEDBACK_CONTROLLER = 'feedback';
|
|
5
|
+
exports.FEEDBACK_ROUTES = {
|
|
6
|
+
CREATE: '',
|
|
7
|
+
};
|
|
8
|
+
exports.ADMIN_FEEDBACK_CONTROLLER = 'admin/feedback';
|
|
9
|
+
exports.ADMIN_FEEDBACK_ROUTES = {
|
|
10
|
+
GET_ALL: '',
|
|
11
|
+
GET_ONE: (uuid) => `${uuid}`,
|
|
12
|
+
UPDATE_STATUS: (uuid) => `${uuid}/status`,
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../feedback/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./feedback"), exports);
|
|
18
|
+
__exportStar(require("./commands"), exports);
|
|
19
|
+
__exportStar(require("./queries"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const GetFeedbackByIdQueryParams: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const GetFeedbackByIdQueryResponse: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
userId: z.ZodUUID;
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
status: z.ZodEnum<typeof import("../..").FEEDBACK_STATUS>;
|
|
11
|
+
createdAt: z.ZodDate;
|
|
12
|
+
email: z.ZodEmail;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const GetFeedbackByIdQuery: {
|
|
15
|
+
method: HTTP_METHODS.GET;
|
|
16
|
+
path: string;
|
|
17
|
+
summary: string;
|
|
18
|
+
request: {
|
|
19
|
+
params: z.ZodObject<{
|
|
20
|
+
uuid: z.ZodUUID;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
};
|
|
23
|
+
responses: {
|
|
24
|
+
200: z.ZodObject<{
|
|
25
|
+
uuid: z.ZodUUID;
|
|
26
|
+
userId: z.ZodUUID;
|
|
27
|
+
message: z.ZodString;
|
|
28
|
+
status: z.ZodEnum<typeof import("../..").FEEDBACK_STATUS>;
|
|
29
|
+
createdAt: z.ZodDate;
|
|
30
|
+
email: z.ZodEmail;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
33
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
34
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
35
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=get-feedback-by-id.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-feedback-by-id.query.d.ts","sourceRoot":"","sources":["../../../../feedback/endpoints/queries/get-feedback-by-id.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;iBAA8B,CAAC;AAExE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;CAc/B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetFeedbackByIdQuery = exports.GetFeedbackByIdQueryResponse = exports.GetFeedbackByIdQueryParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const feedback_1 = require("../feedback");
|
|
8
|
+
exports.GetFeedbackByIdQueryParams = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
exports.GetFeedbackByIdQueryResponse = models_1.FeedbackAdminResponseSchema;
|
|
12
|
+
exports.GetFeedbackByIdQuery = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
14
|
+
path: feedback_1.ADMIN_FEEDBACK_ROUTES.GET_ONE(':uuid'),
|
|
15
|
+
summary: 'Get feedback by id',
|
|
16
|
+
request: {
|
|
17
|
+
params: exports.GetFeedbackByIdQueryParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: exports.GetFeedbackByIdQueryResponse,
|
|
21
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const GetFeedbacksQueryQuery: z.ZodObject<{
|
|
4
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const GetFeedbacksQueryResponse: z.ZodObject<{
|
|
8
|
+
feedbacks: z.ZodArray<z.ZodObject<{
|
|
9
|
+
uuid: z.ZodUUID;
|
|
10
|
+
userId: z.ZodUUID;
|
|
11
|
+
message: z.ZodString;
|
|
12
|
+
status: z.ZodEnum<typeof import("../..").FEEDBACK_STATUS>;
|
|
13
|
+
createdAt: z.ZodDate;
|
|
14
|
+
email: z.ZodEmail;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
17
|
+
hasMore: z.ZodBoolean;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const GetFeedbacksQuery: {
|
|
20
|
+
method: HTTP_METHODS.GET;
|
|
21
|
+
path: "";
|
|
22
|
+
summary: string;
|
|
23
|
+
request: {
|
|
24
|
+
query: z.ZodObject<{
|
|
25
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
26
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
};
|
|
29
|
+
responses: {
|
|
30
|
+
200: z.ZodObject<{
|
|
31
|
+
feedbacks: z.ZodArray<z.ZodObject<{
|
|
32
|
+
uuid: z.ZodUUID;
|
|
33
|
+
userId: z.ZodUUID;
|
|
34
|
+
message: z.ZodString;
|
|
35
|
+
status: z.ZodEnum<typeof import("../..").FEEDBACK_STATUS>;
|
|
36
|
+
createdAt: z.ZodDate;
|
|
37
|
+
email: z.ZodEmail;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
40
|
+
hasMore: z.ZodBoolean;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
43
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
44
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=get-feedbacks.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-feedbacks.query.d.ts","sourceRoot":"","sources":["../../../../feedback/endpoints/queries/get-feedbacks.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAItH,eAAO,MAAM,sBAAsB;;;iBAAwC,CAAC;AAE5E,eAAO,MAAM,yBAAyB;;;;;;;;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa5B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetFeedbacksQuery = exports.GetFeedbacksQueryResponse = exports.GetFeedbacksQueryQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const feedback_1 = require("../feedback");
|
|
8
|
+
exports.GetFeedbacksQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid());
|
|
9
|
+
exports.GetFeedbacksQueryResponse = zod_1.z.object({
|
|
10
|
+
feedbacks: zod_1.z.array(models_1.FeedbackAdminResponseSchema),
|
|
11
|
+
nextCursor: zod_1.z.uuid().nullable(),
|
|
12
|
+
hasMore: zod_1.z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
exports.GetFeedbacksQuery = (0, _common_1.defineContract)({
|
|
15
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
16
|
+
path: feedback_1.ADMIN_FEEDBACK_ROUTES.GET_ALL,
|
|
17
|
+
summary: 'List feedbacks',
|
|
18
|
+
request: {
|
|
19
|
+
query: exports.GetFeedbacksQueryQuery,
|
|
20
|
+
},
|
|
21
|
+
responses: {
|
|
22
|
+
200: exports.GetFeedbacksQueryResponse,
|
|
23
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../feedback/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC"}
|
|
@@ -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("./get-feedback-by-id.query"), exports);
|
|
18
|
+
__exportStar(require("./get-feedbacks.query"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../feedback/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./status.enum"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.enum.d.ts","sourceRoot":"","sources":["../../../feedback/enums/status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FEEDBACK_STATUS = void 0;
|
|
4
|
+
var FEEDBACK_STATUS;
|
|
5
|
+
(function (FEEDBACK_STATUS) {
|
|
6
|
+
FEEDBACK_STATUS["PENDING"] = "pending";
|
|
7
|
+
FEEDBACK_STATUS["RESOLVED"] = "resolved";
|
|
8
|
+
})(FEEDBACK_STATUS || (exports.FEEDBACK_STATUS = FEEDBACK_STATUS = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../feedback/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./enums"), exports);
|
|
18
|
+
__exportStar(require("./models"), exports);
|
|
19
|
+
__exportStar(require("./endpoints"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FeedbackAdminResponseSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodUUID;
|
|
4
|
+
userId: z.ZodUUID;
|
|
5
|
+
message: z.ZodString;
|
|
6
|
+
status: z.ZodEnum<typeof import("..").FEEDBACK_STATUS>;
|
|
7
|
+
createdAt: z.ZodDate;
|
|
8
|
+
email: z.ZodEmail;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type FeedbackAdminResponseSchemaType = z.infer<typeof FeedbackAdminResponseSchema>;
|
|
11
|
+
//# sourceMappingURL=feedback-admin-response.schema.d.ts.map
|