@purpleschool/gptbot 0.3.9 → 0.4.0
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/commands/subscription/cancel-subscription.command.js +16 -0
- package/build/commands/subscription/index.js +1 -0
- package/build/constants/errors/errors.js +5 -0
- package/commands/subscription/cancel-subscription.command.ts +21 -0
- package/commands/subscription/index.ts +1 -0
- package/constants/errors/errors.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancelSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var CancelSubscriptionCommand;
|
|
6
|
+
(function (CancelSubscriptionCommand) {
|
|
7
|
+
CancelSubscriptionCommand.RequestParamSchema = zod_1.z.object({
|
|
8
|
+
uuidSiteUserToSubscription: zod_1.z.string(),
|
|
9
|
+
});
|
|
10
|
+
CancelSubscriptionCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
text: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
CancelSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
isSuccess: zod_1.z.boolean(),
|
|
15
|
+
});
|
|
16
|
+
})(CancelSubscriptionCommand || (exports.CancelSubscriptionCommand = CancelSubscriptionCommand = {}));
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./update-subscription.command"), exports);
|
|
|
18
18
|
__exportStar(require("./delete-subscription.command"), exports);
|
|
19
19
|
__exportStar(require("./create-subscription.command"), exports);
|
|
20
20
|
__exportStar(require("./find-subscription.command"), exports);
|
|
21
|
+
__exportStar(require("./cancel-subscription.command"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export namespace CancelSubscriptionCommand {
|
|
4
|
+
export const RequestParamSchema = z.object({
|
|
5
|
+
uuidSiteUserToSubscription: z.string(),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
9
|
+
|
|
10
|
+
export const RequestSchema = z.object({
|
|
11
|
+
text: z.string(),
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
15
|
+
|
|
16
|
+
export const ResponseSchema = z.object({
|
|
17
|
+
isSuccess: z.boolean(),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
21
|
+
}
|