@escapenavigator/services 1.6.72 → 1.6.73

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.
@@ -30,6 +30,7 @@ var find_questrooms_with_certificates_1 = require("./find-questrooms-with-certif
30
30
  var find_similar_questrooms_near_1 = require("./find-similar-questrooms-near");
31
31
  exports.agregatorApiDeclaration = {
32
32
  findPopularCitiesAndQuestrooms: find_popular_cities_and_questrooms_1.findPopularCitiesAndQuestrooms,
33
+ createReview: create_review_1.createReview,
33
34
  currentPlayer: current_1.current,
34
35
  login: login_1.login,
35
36
  logout: logout_1.logout,
@@ -50,7 +51,6 @@ exports.agregatorApiDeclaration = {
50
51
  findQuestroomsByOrganizationId: find_questrooms_by_organization_id_1.findQuestroomsByOrganizationId,
51
52
  findQuestroomsByTag: find_questrooms_by_tag_1.findQuestroomsByTag,
52
53
  findQuestroomsByTitle: find_questrooms_by_title_1.findQuestroomsByTitle,
53
- createReview: create_review_1.createReview,
54
54
  findSimilaQuestroomsNear: find_similar_questrooms_near_1.findSimilaQuestroomsNear,
55
55
  findPosts: find_posts_1.findPosts,
56
56
  findPostBySlug: find_post_by_slug_1.findPostBySlug,
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.logout = void 0;
4
4
  var logout = function () { return ({
5
5
  url: '/players/logout',
6
- method: 'POST',
6
+ method: 'GET',
7
7
  }); };
8
8
  exports.logout = logout;
@@ -1,6 +1,9 @@
1
+ import { SendCodeDto } from '@escapenavigator/types/dist/player/send-code.dto';
1
2
  import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
3
  import { ApiMethodDeclaration } from '../..';
3
- declare type ParamsData = string;
4
+ declare type ParamsData = {
5
+ data: SendCodeDto;
6
+ };
4
7
  declare type ResponseData = SuccessRO;
5
8
  export declare const sendCode: ApiMethodDeclaration<ParamsData, ResponseData>;
6
9
  export {};
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sendCode = void 0;
4
- var sendCode = function (email) { return ({
5
- url: "/players/send-code/".concat(email),
6
- method: 'GET',
7
- }); };
4
+ var sendCode = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/players/send-code',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
8
12
  exports.sendCode = sendCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.72",
3
+ "version": "1.6.73",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,10 +12,10 @@
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && tsc --project tsconfig.json"
14
14
  },
15
- "gitHead": "d0601f32456516d9379c8cdbd307b3711cfe1e1e",
15
+ "gitHead": "987dbb362a0cc5d84bf429a409321084cebc49d6",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.67",
18
- "@escapenavigator/utils": "^1.6.69",
17
+ "@escapenavigator/types": "^1.6.68",
18
+ "@escapenavigator/utils": "^1.6.70",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",