@escapenavigator/services 1.4.80 → 1.4.81

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.
@@ -1,10 +1,9 @@
1
- import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
1
  import { CompliteSetupDto } from '@escapenavigator/types/dist/user/complite-setup.dto';
2
+ import { UserRO } from '@escapenavigator/types/dist/user/user.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
- token: string | string[];
6
5
  data: CompliteSetupDto;
7
6
  };
8
- declare type ResponseData = SuccessRO;
7
+ declare type ResponseData = UserRO;
9
8
  export declare const compliteSetup: ApiMethodDeclaration<ParamsData, ResponseData>;
10
9
  export {};
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.compliteSetup = void 0;
4
4
  var compliteSetup = function (_a) {
5
- var token = _a.token, data = _a.data;
5
+ var data = _a.data;
6
6
  return ({
7
- url: "/users/complite-setup/".concat(token),
7
+ url: '/users/complite-setup',
8
8
  method: 'PATCH',
9
9
  data: data,
10
10
  });
@@ -21,6 +21,7 @@ import { reportsExport } from './reports-export';
21
21
  import { sendInvite } from './send-invite';
22
22
  import { sendInviteAfterVerification } from './send-invite-after-verification';
23
23
  import { sendRecoverLink } from './send-recover-link';
24
+ import { setCookie } from './set-cookie';
24
25
  import { startTimer } from './start-timer';
25
26
  import { stopTimer } from './stop-timer';
26
27
  import { update } from './update';
@@ -28,6 +29,7 @@ import { updatePassword } from './update-password';
28
29
  import { updateReport } from './update-report';
29
30
  declare type ApiDeclaration = {
30
31
  sendInviteAfterVerification: typeof sendInviteAfterVerification;
32
+ setCookie: typeof setCookie;
31
33
  reportsExport: typeof reportsExport;
32
34
  currentUpdateNotifications: typeof currentUpdateNotifications;
33
35
  reportsCount: typeof reportsCount;
@@ -24,6 +24,7 @@ var reports_export_1 = require("./reports-export");
24
24
  var send_invite_1 = require("./send-invite");
25
25
  var send_invite_after_verification_1 = require("./send-invite-after-verification");
26
26
  var send_recover_link_1 = require("./send-recover-link");
27
+ var set_cookie_1 = require("./set-cookie");
27
28
  var start_timer_1 = require("./start-timer");
28
29
  var stop_timer_1 = require("./stop-timer");
29
30
  var update_1 = require("./update");
@@ -37,6 +38,7 @@ exports.usersApiDeclaration = {
37
38
  currentUpdateNotifications: current_update_notifications_1.currentUpdateNotifications,
38
39
  create: create_1.create,
39
40
  createReport: create_report_1.createReport,
41
+ setCookie: set_cookie_1.setCookie,
40
42
  updateReport: update_report_1.updateReport,
41
43
  queryDailyReports: query_daily_reports_1.queryDailyReports,
42
44
  compliteSetup: complite_setup_1.compliteSetup,
@@ -0,0 +1,7 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { CheckUserTokendDto } from '@escapenavigator/types/dist/user/check-user-token.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = CheckUserTokendDto;
5
+ declare type ResponseData = SuccessRO;
6
+ export declare const setCookie: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setCookie = void 0;
4
+ var setCookie = function (_a) {
5
+ var token = _a.token;
6
+ return ({
7
+ url: "/users/set-cookie/".concat(token),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.setCookie = setCookie;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.80",
3
+ "version": "1.4.81",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,7 +12,7 @@
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && tsc --project tsconfig.json"
14
14
  },
15
- "gitHead": "b0620c9b57569ed54200f4fdc958b21315602f23",
15
+ "gitHead": "1048f6565f1c1c7f522fe43f6d658cb38c048456",
16
16
  "dependencies": {
17
17
  "@escapenavigator/types": "^1.4.79",
18
18
  "@paypal/react-paypal-js": "^7.8.3",