@purpleschool/gptbot-tools 0.0.18 → 0.0.20
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/stt/commands/index.js +1 -0
- package/build/stt/commands/update-stt-job-title.command.js +19 -0
- package/build/stt/routes/stt.amqp.routes.js +1 -0
- package/package.json +1 -1
- package/stt/commands/index.ts +1 -0
- package/stt/commands/update-stt-job-title.command.ts +21 -0
- package/stt/routes/stt.amqp.routes.ts +1 -0
|
@@ -18,3 +18,4 @@ __exportStar(require("./delete-stt-job-by-uuid.command"), exports);
|
|
|
18
18
|
__exportStar(require("./delete-all-stt-jobs.command"), exports);
|
|
19
19
|
__exportStar(require("./set-reaction-to-stt-job.command"), exports);
|
|
20
20
|
__exportStar(require("./stt.command"), exports);
|
|
21
|
+
__exportStar(require("./update-stt-job-title.command"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSTTJobTitleCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const stt_job_schema_1 = require("../models/stt-job.schema");
|
|
7
|
+
var UpdateSTTJobTitleCommand;
|
|
8
|
+
(function (UpdateSTTJobTitleCommand) {
|
|
9
|
+
UpdateSTTJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
+
title: zod_1.z.string().min(1).max(40),
|
|
14
|
+
});
|
|
15
|
+
UpdateSTTJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
16
|
+
uuid: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
UpdateSTTJobTitleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(stt_job_schema_1.STTJobSchema);
|
|
19
|
+
})(UpdateSTTJobTitleCommand || (exports.UpdateSTTJobTitleCommand = UpdateSTTJobTitleCommand = {}));
|
package/package.json
CHANGED
package/stt/commands/index.ts
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { STTJobSchema } from '../models/stt-job.schema';
|
|
4
|
+
|
|
5
|
+
export namespace UpdateSTTJobTitleCommand {
|
|
6
|
+
export const RequestSchema = z.object({
|
|
7
|
+
uuid: z.string().uuid(),
|
|
8
|
+
userId: z.string().uuid().nullable().optional(),
|
|
9
|
+
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
10
|
+
title: z.string().min(1).max(40),
|
|
11
|
+
});
|
|
12
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
13
|
+
|
|
14
|
+
export const RequestParamsSchema = z.object({
|
|
15
|
+
uuid: z.string(),
|
|
16
|
+
});
|
|
17
|
+
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
18
|
+
|
|
19
|
+
export const ResponseSchema = ICommandResponseSchema(STTJobSchema);
|
|
20
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
21
|
+
}
|