@purpleschool/gptbot 0.8.76 → 0.8.77

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.
@@ -22,4 +22,5 @@ export const COMMUNITY_ROUTES_PRIVATE = {
22
22
  export const COMMUNITY_ROUTES_PUBLIC = {
23
23
  GET_ALL: '',
24
24
  GET_BY_UUID: (uuid: string) => `by/uuid/${uuid}`,
25
+ LIKES_COUNT: (userId: string) => `${userId}/likes/count`,
25
26
  } as const;
package/api/routes.ts CHANGED
@@ -890,6 +890,8 @@ export const REST_API = {
890
890
  GET_ALL: `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PUBLIC}/${CONTROLLERS.COMMUNITY_ROUTES_PUBLIC.GET_ALL}`,
891
891
  GET_BY_UUID: (uuid: string) =>
892
892
  `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PUBLIC}/${CONTROLLERS.COMMUNITY_ROUTES_PUBLIC.GET_BY_UUID(uuid)}`,
893
+ LIKES_COUNT: (userId: string) =>
894
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PUBLIC}/${CONTROLLERS.COMMUNITY_ROUTES_PUBLIC.LIKES_COUNT(userId)}`,
893
895
  },
894
896
  USER_PROFILE: {
895
897
  GET_PROFILE_INFO: `${ROOT}/${CONTROLLERS.USER_PROFILE_CONTROLLER}/${CONTROLLERS.USER_PROFILE_ROUTES.GET_PROFILE_INFO}`,
@@ -22,4 +22,5 @@ exports.COMMUNITY_ROUTES_PRIVATE = {
22
22
  exports.COMMUNITY_ROUTES_PUBLIC = {
23
23
  GET_ALL: '',
24
24
  GET_BY_UUID: (uuid) => `by/uuid/${uuid}`,
25
+ LIKES_COUNT: (userId) => `${userId}/likes/count`,
25
26
  };
@@ -685,6 +685,7 @@ exports.REST_API = {
685
685
  COMMUNITY_PUBLIC: {
686
686
  GET_ALL: `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PUBLIC}/${CONTROLLERS.COMMUNITY_ROUTES_PUBLIC.GET_ALL}`,
687
687
  GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PUBLIC}/${CONTROLLERS.COMMUNITY_ROUTES_PUBLIC.GET_BY_UUID(uuid)}`,
688
+ LIKES_COUNT: (userId) => `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PUBLIC}/${CONTROLLERS.COMMUNITY_ROUTES_PUBLIC.LIKES_COUNT(userId)}`,
688
689
  },
689
690
  USER_PROFILE: {
690
691
  GET_PROFILE_INFO: `${exports.ROOT}/${CONTROLLERS.USER_PROFILE_CONTROLLER}/${CONTROLLERS.USER_PROFILE_ROUTES.GET_PROFILE_INFO}`,
@@ -2648,7 +2648,7 @@ exports.ERRORS = {
2648
2648
  httpCode: 400,
2649
2649
  },
2650
2650
  COMMUNITY_POST_TRACK_INDEX_OUT_OF_RANGE: {
2651
- code: 'A560',
2651
+ code: 'A540',
2652
2652
  message: 'Индекс трека выходит за пределы допустимого диапазона',
2653
2653
  httpCode: 400,
2654
2654
  },
@@ -2656,7 +2656,7 @@ export const ERRORS = {
2656
2656
  httpCode: 400,
2657
2657
  },
2658
2658
  COMMUNITY_POST_TRACK_INDEX_OUT_OF_RANGE: {
2659
- code: 'A560',
2659
+ code: 'A540',
2660
2660
  message: 'Индекс трека выходит за пределы допустимого диапазона',
2661
2661
  httpCode: 400,
2662
2662
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.8.76",
3
+ "version": "0.8.77",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",