@escapenavigator/services 1.4.79 → 1.4.80

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.
@@ -0,0 +1,7 @@
1
+ import { ProfileForVerificationDto } from '@escapenavigator/types/dist/profile/profile-for-verification.dto';
2
+ import { ProfileForVerificationRO } from '@escapenavigator/types/dist/profile/profile-for-verification.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = ProfileForVerificationDto;
5
+ declare type ResponseData = ProfileForVerificationRO;
6
+ export declare const getBySlugForVerify: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBySlugForVerify = void 0;
4
+ var getBySlugForVerify = function (params) { return ({
5
+ url: '/profiles/verify/slug',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.getBySlugForVerify = getBySlugForVerify;
@@ -1,7 +1,7 @@
1
1
  import { create } from './create';
2
2
  import { current } from './current';
3
3
  import { getAllDailyReports } from './get-all-daily-reports';
4
- import { getBySlug } from './get-by-slug';
4
+ import { getBySlugForVerify } from './get-by-slug-for-verify';
5
5
  import { getOne } from './get-one';
6
6
  import { getPaymentSettings } from './get-payment-settings';
7
7
  import { getProfileInvoices } from './get-profile-invoices';
@@ -26,7 +26,7 @@ declare type ApiDeclaration = {
26
26
  query: typeof query;
27
27
  getOne: typeof getOne;
28
28
  current: typeof current;
29
- getBySlug: typeof getBySlug;
29
+ getBySlugForVerify: typeof getBySlugForVerify;
30
30
  };
31
31
  export declare const profilesApiDeclaration: ApiDeclaration;
32
32
  export {};
@@ -4,7 +4,7 @@ exports.profilesApiDeclaration = void 0;
4
4
  var create_1 = require("./create");
5
5
  var current_1 = require("./current");
6
6
  var get_all_daily_reports_1 = require("./get-all-daily-reports");
7
- var get_by_slug_1 = require("./get-by-slug");
7
+ var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
8
8
  var get_one_1 = require("./get-one");
9
9
  var get_payment_settings_1 = require("./get-payment-settings");
10
10
  var get_profile_invoices_1 = require("./get-profile-invoices");
@@ -29,5 +29,5 @@ exports.profilesApiDeclaration = {
29
29
  query: query_1.query,
30
30
  getOne: get_one_1.getOne,
31
31
  current: current_1.current,
32
- getBySlug: get_by_slug_1.getBySlug,
32
+ getBySlugForVerify: get_by_slug_for_verify_1.getBySlugForVerify,
33
33
  };
@@ -1,7 +1,8 @@
1
- import { AgregatorQuestroomResponseObject } from '@escapenavigator/types/dist/questroom/agregator-questroom.ro';
1
+ import { QuestroomByTitleDto } from '@escapenavigator/types/dist/questroom/questroom-by-title.dto';
2
+ import { QuestroomByTitleRO } from '@escapenavigator/types/dist/questroom/questroom-by-title.ro';
2
3
  import { ApiMethodDeclaration } from '..';
3
4
  /** Название */
4
- declare type ParamsData = string;
5
- declare type ResponseData = AgregatorQuestroomResponseObject[];
5
+ declare type ParamsData = QuestroomByTitleDto;
6
+ declare type ResponseData = QuestroomByTitleRO[];
6
7
  export declare const getByTitle: ApiMethodDeclaration<ParamsData, ResponseData>;
7
8
  export {};
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getByTitle = void 0;
4
- var getByTitle = function (title) { return ({
5
- url: "/questrooms/title/".concat(title),
4
+ var getByTitle = function (params) { return ({
5
+ url: '/questrooms/title',
6
6
  method: 'GET',
7
+ params: params,
7
8
  }); };
8
9
  exports.getByTitle = getByTitle;
@@ -2,6 +2,7 @@ import { create } from './create';
2
2
  import { getByCoordinates } from './get-by-coordinates';
3
3
  import { getByLocation } from './get-by-location';
4
4
  import { getBySlug } from './get-by-slug';
5
+ import { getByTitle } from './get-by-title';
5
6
  import { getOne } from './get-one';
6
7
  import { paginate } from './paginate';
7
8
  import { query } from './query';
@@ -9,6 +10,7 @@ import { recover } from './recover';
9
10
  import { remove } from './remove';
10
11
  import { update } from './update';
11
12
  declare type ApiDeclaration = {
13
+ getByTitle: typeof getByTitle;
12
14
  create: typeof create;
13
15
  paginate: typeof paginate;
14
16
  remove: typeof remove;
@@ -5,6 +5,7 @@ var create_1 = require("./create");
5
5
  var get_by_coordinates_1 = require("./get-by-coordinates");
6
6
  var get_by_location_1 = require("./get-by-location");
7
7
  var get_by_slug_1 = require("./get-by-slug");
8
+ var get_by_title_1 = require("./get-by-title");
8
9
  var get_one_1 = require("./get-one");
9
10
  var paginate_1 = require("./paginate");
10
11
  var query_1 = require("./query");
@@ -12,6 +13,7 @@ var recover_1 = require("./recover");
12
13
  var remove_1 = require("./remove");
13
14
  var update_1 = require("./update");
14
15
  exports.questroomsApiDeclaration = {
16
+ getByTitle: get_by_title_1.getByTitle,
15
17
  create: create_1.create,
16
18
  paginate: paginate_1.paginate,
17
19
  remove: remove_1.remove,
@@ -19,6 +19,7 @@ import { removeReport } from './remove-report';
19
19
  import { reportsCount } from './reports-count';
20
20
  import { reportsExport } from './reports-export';
21
21
  import { sendInvite } from './send-invite';
22
+ import { sendInviteAfterVerification } from './send-invite-after-verification';
22
23
  import { sendRecoverLink } from './send-recover-link';
23
24
  import { startTimer } from './start-timer';
24
25
  import { stopTimer } from './stop-timer';
@@ -26,6 +27,7 @@ import { update } from './update';
26
27
  import { updatePassword } from './update-password';
27
28
  import { updateReport } from './update-report';
28
29
  declare type ApiDeclaration = {
30
+ sendInviteAfterVerification: typeof sendInviteAfterVerification;
29
31
  reportsExport: typeof reportsExport;
30
32
  currentUpdateNotifications: typeof currentUpdateNotifications;
31
33
  reportsCount: typeof reportsCount;
@@ -22,6 +22,7 @@ var remove_report_1 = require("./remove-report");
22
22
  var reports_count_1 = require("./reports-count");
23
23
  var reports_export_1 = require("./reports-export");
24
24
  var send_invite_1 = require("./send-invite");
25
+ var send_invite_after_verification_1 = require("./send-invite-after-verification");
25
26
  var send_recover_link_1 = require("./send-recover-link");
26
27
  var start_timer_1 = require("./start-timer");
27
28
  var stop_timer_1 = require("./stop-timer");
@@ -29,6 +30,7 @@ var update_1 = require("./update");
29
30
  var update_password_1 = require("./update-password");
30
31
  var update_report_1 = require("./update-report");
31
32
  exports.usersApiDeclaration = {
33
+ sendInviteAfterVerification: send_invite_after_verification_1.sendInviteAfterVerification,
32
34
  reportsExport: reports_export_1.reportsExport,
33
35
  reportsCount: reports_count_1.reportsCount,
34
36
  removeReport: remove_report_1.removeReport,
@@ -0,0 +1,7 @@
1
+ import { InviteAfterVerificationDto } from '@escapenavigator/types/dist/profile/invite-after-verification.dto';
2
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = InviteAfterVerificationDto;
5
+ declare type ResponseData = SuccessRO;
6
+ export declare const sendInviteAfterVerification: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendInviteAfterVerification = void 0;
4
+ var sendInviteAfterVerification = function (params) { return ({
5
+ url: '/users/verify/invite',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.sendInviteAfterVerification = sendInviteAfterVerification;
@@ -24,7 +24,7 @@ exports.serializeSlotOrderData = serializeSlotOrderData;
24
24
  var serializeSlot = function (_a) {
25
25
  var _b;
26
26
  var slot = _a.slot, order = _a.order;
27
- var rule = slot.rule || defailt_rule_1.defaultRule;
27
+ var _c = slot.rule || defailt_rule_1.defaultRule, prepayment = _c.prepayment, prepaymentType = _c.prepaymentType, title = _c.title, minHoursForBooking = _c.minHoursForBooking, minHoursForFreeCanceling = _c.minHoursForFreeCanceling, cancelationRule = _c.cancelationRule;
28
28
  return {
29
29
  id: slot.id,
30
30
  questroomId: slot.questroomId,
@@ -35,11 +35,12 @@ var serializeSlot = function (_a) {
35
35
  breakReason: slot.breakReason,
36
36
  customMinHours: slot.customMinHours,
37
37
  rule: {
38
- prepayment: rule.prepayment,
39
- prepaymentType: rule.prepaymentType,
40
- minHoursForBooking: rule.minHoursForBooking,
41
- cancelationRule: rule.cancelationRule,
42
- minHoursForFreeCanceling: rule.minHoursForFreeCanceling,
38
+ prepayment: prepayment,
39
+ prepaymentType: prepaymentType,
40
+ title: title,
41
+ minHoursForBooking: minHoursForBooking,
42
+ minHoursForFreeCanceling: minHoursForFreeCanceling,
43
+ cancelationRule: cancelationRule,
43
44
  },
44
45
  order: (0, exports.serializeSlotOrderData)(order),
45
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.79",
3
+ "version": "1.4.80",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,9 +12,9 @@
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && tsc --project tsconfig.json"
14
14
  },
15
- "gitHead": "27eaf80713f5cddf2e2eab2319bde5fada63f8bb",
15
+ "gitHead": "b0620c9b57569ed54200f4fdc958b21315602f23",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.78",
17
+ "@escapenavigator/types": "^1.4.79",
18
18
  "@paypal/react-paypal-js": "^7.8.3",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",