@purpleschool/gptbot 0.3.2 → 0.3.4

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.
@@ -2,12 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResetPasswordCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
5
  var ResetPasswordCommand;
7
6
  (function (ResetPasswordCommand) {
8
- ResetPasswordCommand.RequestSchema = models_1.UserSchema.pick({
9
- restoreTokenHash: true,
10
- }).extend({
7
+ ResetPasswordCommand.RequestSchema = zod_1.z.object({
8
+ restoreToken: zod_1.z.string(),
11
9
  newPassword: zod_1.z.string(),
12
10
  userId: zod_1.z.string(),
13
11
  });
@@ -44,5 +44,6 @@ var BuyProductCommand;
44
44
  BuyProductCommand.ResponseFastSchema = zod_1.z.object({
45
45
  data: BuyProductCommand.ResponseSchema,
46
46
  restoreToken: zod_1.z.string(),
47
+ userUUID: zod_1.z.string(),
47
48
  });
48
49
  })(BuyProductCommand || (exports.BuyProductCommand = BuyProductCommand = {}));
@@ -49,5 +49,6 @@ var BuySubscriptionCommand;
49
49
  BuySubscriptionCommand.ResponseFastSchema = zod_1.z.object({
50
50
  data: BuySubscriptionCommand.ResponseSchema,
51
51
  restoreToken: zod_1.z.string(),
52
+ userUUID: zod_1.z.string(),
52
53
  });
53
54
  })(BuySubscriptionCommand || (exports.BuySubscriptionCommand = BuySubscriptionCommand = {}));
@@ -2,9 +2,8 @@ import { z } from 'zod';
2
2
  import { UserSchema } from '../../models';
3
3
 
4
4
  export namespace ResetPasswordCommand {
5
- export const RequestSchema = UserSchema.pick({
6
- restoreTokenHash: true,
7
- }).extend({
5
+ export const RequestSchema = z.object({
6
+ restoreToken: z.string(),
8
7
  newPassword: z.string(),
9
8
  userId: z.string(),
10
9
  });
@@ -52,7 +52,8 @@ export namespace BuyProductCommand {
52
52
  export const ResponseFastSchema = z.object({
53
53
  data: ResponseSchema,
54
54
  restoreToken: z.string(),
55
+ userUUID: z.string(),
55
56
  });
56
57
 
57
58
  export type ResponseFast = z.infer<typeof ResponseFastSchema>;
58
- }
59
+ }
@@ -58,6 +58,7 @@ export namespace BuySubscriptionCommand {
58
58
  export const ResponseFastSchema = z.object({
59
59
  data: ResponseSchema,
60
60
  restoreToken: z.string(),
61
+ userUUID: z.string(),
61
62
  });
62
63
 
63
64
  export type ResponseFast = z.infer<typeof ResponseFastSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {