@purpleschool/gptbot 0.8.50 → 0.8.51

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.
@@ -16,6 +16,7 @@ export const COMMUNITY_ROUTES_PRIVATE = {
16
16
  FAVORITE: (uuid: string) => `${uuid}/favorite`,
17
17
 
18
18
  REPORT: (uuid: string) => `report/${uuid}`,
19
+ LIKES_COUNT: 'my/count',
19
20
  } as const;
20
21
 
21
22
  export const COMMUNITY_ROUTES_PUBLIC = {
@@ -17,6 +17,7 @@ exports.COMMUNITY_ROUTES_PRIVATE = {
17
17
  LIKE: (uuid) => `${uuid}/like`,
18
18
  FAVORITE: (uuid) => `${uuid}/favorite`,
19
19
  REPORT: (uuid) => `report/${uuid}`,
20
+ LIKES_COUNT: 'my/count',
20
21
  };
21
22
  exports.COMMUNITY_ROUTES_PUBLIC = {
22
23
  GET_ALL: '',
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetCountOfLikesOnMyPostsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var GetCountOfLikesOnMyPostsCommand;
6
+ (function (GetCountOfLikesOnMyPostsCommand) {
7
+ GetCountOfLikesOnMyPostsCommand.ResponseSchema = zod_1.z.object({
8
+ data: zod_1.z.number(),
9
+ });
10
+ })(GetCountOfLikesOnMyPostsCommand || (exports.GetCountOfLikesOnMyPostsCommand = GetCountOfLikesOnMyPostsCommand = {}));
@@ -26,3 +26,4 @@ __exportStar(require("./share-my-community-post.command"), exports);
26
26
  __exportStar(require("./get-my-likes-community-posts.command"), exports);
27
27
  __exportStar(require("./get-my-favorite-community-posts.command"), exports);
28
28
  __exportStar(require("./send-report-to-community-post.command"), exports);
29
+ __exportStar(require("./get-count-of-likes-on-my-posts.command"), exports);
@@ -5,7 +5,6 @@ const zod_1 = require("zod");
5
5
  const models_1 = require("../../models");
6
6
  var UploadAvatarCommand;
7
7
  (function (UploadAvatarCommand) {
8
- UploadAvatarCommand.RequestSchema = zod_1.z.object({});
9
8
  UploadAvatarCommand.ResponseSchema = zod_1.z.object({
10
9
  data: models_1.UserProfileResponseSchema,
11
10
  });
@@ -2597,8 +2597,13 @@ exports.ERRORS = {
2597
2597
  message: 'Нельзя провести возврат платежа за покупку пакета',
2598
2598
  httpCode: 400,
2599
2599
  },
2600
- PRESENTATION_SET_REACTION_ERROR: {
2600
+ COMMUNITY_POST_LIKES_COUNT_ERROR: {
2601
2601
  code: 'A530',
2602
+ message: 'Произошла ошибка при получении количества лайков на моих постах в сообществе',
2603
+ httpCode: 500,
2604
+ },
2605
+ PRESENTATION_SET_REACTION_ERROR: {
2606
+ code: 'A531',
2602
2607
  message: 'Произошла ошибка при установке оценки презентации',
2603
2608
  httpCode: 500,
2604
2609
  },
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace GetCountOfLikesOnMyPostsCommand {
4
+ export const ResponseSchema = z.object({
5
+ data: z.number(),
6
+ });
7
+
8
+ export type Response = z.infer<typeof ResponseSchema>;
9
+ }
@@ -10,3 +10,4 @@ export * from './share-my-community-post.command';
10
10
  export * from './get-my-likes-community-posts.command';
11
11
  export * from './get-my-favorite-community-posts.command';
12
12
  export * from './send-report-to-community-post.command';
13
+ export * from './get-count-of-likes-on-my-posts.command';
@@ -2,10 +2,6 @@ import { z } from 'zod';
2
2
  import { UserProfileResponseSchema } from '../../models';
3
3
 
4
4
  export namespace UploadAvatarCommand {
5
- export const RequestSchema = z.object({});
6
-
7
- export type Request = z.infer<typeof RequestSchema>;
8
-
9
5
  export const ResponseSchema = z.object({
10
6
  data: UserProfileResponseSchema,
11
7
  });
@@ -2606,8 +2606,13 @@ export const ERRORS = {
2606
2606
  message: 'Нельзя провести возврат платежа за покупку пакета',
2607
2607
  httpCode: 400,
2608
2608
  },
2609
- PRESENTATION_SET_REACTION_ERROR: {
2609
+ COMMUNITY_POST_LIKES_COUNT_ERROR: {
2610
2610
  code: 'A530',
2611
+ message: 'Произошла ошибка при получении количества лайков на моих постах в сообществе',
2612
+ httpCode: 500,
2613
+ },
2614
+ PRESENTATION_SET_REACTION_ERROR: {
2615
+ code: 'A531',
2611
2616
  message: 'Произошла ошибка при установке оценки презентации',
2612
2617
  httpCode: 500,
2613
2618
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.8.50",
3
+ "version": "0.8.51",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",