@escapenavigator/services 1.4.78 → 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.
Files changed (29) hide show
  1. package/dist/api/profiles-api/get-by-slug-for-verify.d.ts +7 -0
  2. package/dist/api/profiles-api/get-by-slug-for-verify.js +9 -0
  3. package/dist/api/profiles-api/index.d.ts +2 -2
  4. package/dist/api/profiles-api/index.js +2 -2
  5. package/dist/api/questrooms-api/get-by-title.d.ts +4 -3
  6. package/dist/api/questrooms-api/get-by-title.js +3 -2
  7. package/dist/api/questrooms-api/index.d.ts +2 -0
  8. package/dist/api/questrooms-api/index.js +2 -0
  9. package/dist/api/slot-templates-api/get-all.d.ts +6 -0
  10. package/dist/api/slot-templates-api/get-all.js +8 -0
  11. package/dist/api/slot-templates-api/{get.d.ts → get-one.d.ts} +1 -1
  12. package/dist/api/slot-templates-api/get-one.js +8 -0
  13. package/dist/api/slot-templates-api/index.d.ts +4 -2
  14. package/dist/api/slot-templates-api/index.js +4 -2
  15. package/dist/api/slot-templates-api/update.d.ts +0 -1
  16. package/dist/api/slot-templates-api/update.js +1 -1
  17. package/dist/api/slots-api/index.d.ts +0 -2
  18. package/dist/api/slots-api/index.js +0 -2
  19. package/dist/api/users-api/index.d.ts +2 -0
  20. package/dist/api/users-api/index.js +2 -0
  21. package/dist/api/users-api/send-invite-after-verification.d.ts +7 -0
  22. package/dist/api/users-api/send-invite-after-verification.js +9 -0
  23. package/dist/utils/serialize-slot.js +7 -6
  24. package/package.json +3 -3
  25. package/dist/api/slot-templates-api/get.js +0 -8
  26. package/dist/api/slots-api/conflicts.d.ts +0 -6
  27. package/dist/api/slots-api/conflicts.js +0 -8
  28. /package/dist/api/profiles-api/{get-by-slug.d.ts → _get-by-slug.d.ts} +0 -0
  29. /package/dist/api/profiles-api/{get-by-slug.js → _get-by-slug.js} +0 -0
@@ -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,
@@ -0,0 +1,6 @@
1
+ import { SlotTemplateResponseObject } from '@escapenavigator/types/dist/slot-template/slot-template.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = SlotTemplateResponseObject[];
5
+ export declare const getAll: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAll = void 0;
4
+ var getAll = function () { return ({
5
+ url: '/slot-templates',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getAll = getAll;
@@ -4,5 +4,5 @@ import { ApiMethodDeclaration } from '..';
4
4
  /** ID квеста */
5
5
  declare type ParamsData = ResponseObject['id'];
6
6
  declare type ResponseData = SlotTemplateResponseObject;
7
- export declare const get: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
8
8
  export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOne = void 0;
4
+ var getOne = function (questroomId) { return ({
5
+ url: "/slot-templates/".concat(questroomId),
6
+ method: 'GET',
7
+ }); };
8
+ exports.getOne = getOne;
@@ -1,8 +1,10 @@
1
1
  import { copy } from './copy';
2
- import { get } from './get';
2
+ import { getAll } from './get-all';
3
+ import { getOne } from './get-one';
3
4
  import { update } from './update';
4
5
  declare type ApiDeclaration = {
5
- get: typeof get;
6
+ getAll: typeof getAll;
7
+ getOne: typeof getOne;
6
8
  update: typeof update;
7
9
  copy: typeof copy;
8
10
  };
@@ -2,10 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.slotTemplatesApiDeclaration = void 0;
4
4
  var copy_1 = require("./copy");
5
- var get_1 = require("./get");
5
+ var get_all_1 = require("./get-all");
6
+ var get_one_1 = require("./get-one");
6
7
  var update_1 = require("./update");
7
8
  exports.slotTemplatesApiDeclaration = {
8
- get: get_1.get,
9
+ getAll: get_all_1.getAll,
10
+ getOne: get_one_1.getOne,
9
11
  copy: copy_1.copy,
10
12
  update: update_1.update,
11
13
  };
@@ -1,7 +1,6 @@
1
1
  import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
2
  import { UpdateSlotTemplateDto } from '@escapenavigator/types/dist/slot-template/update-slot-template.dto';
3
3
  import { ApiMethodDeclaration } from '..';
4
- /** ID квеста */
5
4
  declare type ParamsData = {
6
5
  data: UpdateSlotTemplateDto;
7
6
  };
@@ -4,7 +4,7 @@ exports.update = void 0;
4
4
  var update = function (_a) {
5
5
  var data = _a.data;
6
6
  return ({
7
- url: '/slot-templates/update/',
7
+ url: '/slot-templates',
8
8
  method: 'PATCH',
9
9
  data: data,
10
10
  });
@@ -1,6 +1,5 @@
1
1
  import { addOrRemoveBreak } from './add-or-remove-break';
2
2
  import { calendar } from './calendar';
3
- import { conflicts } from './conflicts';
4
3
  import { create } from './create';
5
4
  import { daily } from './daily';
6
5
  import { remove } from './remove';
@@ -9,7 +8,6 @@ import { updateMinHours } from './update-min-hours';
9
8
  import { weekly } from './weekly';
10
9
  declare type ApiDeclaration = {
11
10
  updateBreaks: typeof updateBreaks;
12
- conflicts: typeof conflicts;
13
11
  calendar: typeof calendar;
14
12
  daily: typeof daily;
15
13
  updateMinHours: typeof updateMinHours;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.slotsApiDeclaration = void 0;
4
4
  var add_or_remove_break_1 = require("./add-or-remove-break");
5
5
  var calendar_1 = require("./calendar");
6
- var conflicts_1 = require("./conflicts");
7
6
  var create_1 = require("./create");
8
7
  var daily_1 = require("./daily");
9
8
  var remove_1 = require("./remove");
@@ -12,7 +11,6 @@ var update_min_hours_1 = require("./update-min-hours");
12
11
  var weekly_1 = require("./weekly");
13
12
  exports.slotsApiDeclaration = {
14
13
  updateBreaks: update_breaks_1.updateBreaks,
15
- conflicts: conflicts_1.conflicts,
16
14
  calendar: calendar_1.calendar,
17
15
  daily: daily_1.daily,
18
16
  updateMinHours: update_min_hours_1.updateMinHours,
@@ -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.78",
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": "e1c5007ba511d24483a44cf6a117edacda83c4ef",
15
+ "gitHead": "b0620c9b57569ed54200f4fdc958b21315602f23",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.77",
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",
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.get = void 0;
4
- var get = function (questroomId) { return ({
5
- url: "/slot-templates/questroom/".concat(questroomId),
6
- method: 'GET',
7
- }); };
8
- exports.get = get;
@@ -1,6 +0,0 @@
1
- import { SlotRO } from '@escapenavigator/types/dist/slot/slot.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = undefined;
4
- declare type ResponseData = SlotRO[];
5
- export declare const conflicts: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.conflicts = void 0;
4
- var conflicts = function () { return ({
5
- url: '/slots/conflicts',
6
- method: 'GET',
7
- }); };
8
- exports.conflicts = conflicts;