@purpleschool/gptbot 0.2.9 → 0.3.1

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,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetUserToSubscriptionsCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const user_to_subscription_schema_1 = require("../../models/user-to-subscription.schema");
5
+ const models_1 = require("../../models");
6
6
  var GetUserToSubscriptionsCommand;
7
7
  (function (GetUserToSubscriptionsCommand) {
8
8
  GetUserToSubscriptionsCommand.ResponseSchema = zod_1.z.object({
9
- data: zod_1.z.array(user_to_subscription_schema_1.UserToSubscriptionSchema),
9
+ data: zod_1.z.array(models_1.UserToSubscriptionSchema),
10
10
  });
11
11
  })(GetUserToSubscriptionsCommand || (exports.GetUserToSubscriptionsCommand = GetUserToSubscriptionsCommand = {}));
@@ -9,6 +9,7 @@ exports.SubscriptionSchema = zod_1.z.object({
9
9
  requests: zod_1.z.number(),
10
10
  price: zod_1.z.number(),
11
11
  features: zod_1.z.array(product_schema_1.FeaturesSchema),
12
+ lengthInDays: zod_1.z.number(),
12
13
  createdAt: zod_1.z.date(),
13
14
  updatedAt: zod_1.z.date(),
14
15
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { UserToSubscriptionSchema } from '../../models/user-to-subscription.schema';
2
+ import { UserToSubscriptionSchema } from '../../models';
3
3
 
4
4
  export namespace GetUserToSubscriptionsCommand {
5
5
  export const ResponseSchema = z.object({
@@ -7,4 +7,4 @@ export namespace GetUserToSubscriptionsCommand {
7
7
  });
8
8
 
9
9
  export type Response = z.infer<typeof ResponseSchema>;
10
- }
10
+ }
@@ -1 +1 @@
1
- export * from './get-user-to-subscriptions.command';
1
+ export * from './get-user-to-subscriptions.command';
@@ -5,4 +5,3 @@ export const FORMATS = {
5
5
  } as const;
6
6
 
7
7
  export const CLOUD_PAYMENTS_CANCEL = 'https://api.cloudpayments.ru/subscriptions/cancel';
8
-
@@ -7,6 +7,7 @@ export const SubscriptionSchema = z.object({
7
7
  requests: z.number(),
8
8
  price: z.number(),
9
9
  features: z.array(FeaturesSchema),
10
+ lengthInDays: z.number(),
10
11
  createdAt: z.date(),
11
12
  updatedAt: z.date(),
12
13
  });
@@ -9,7 +9,6 @@ export const UserToSubscriptionSchema = z.object({
9
9
  tokenBalance: z.number(),
10
10
  status: z.string(),
11
11
  endDate: z.date().nullable(),
12
-
13
12
  createdAt: z.date(),
14
13
  updatedAt: z.date(),
15
- });
14
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.2.9",
3
+ "version": "0.3.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {