@escapenavigator/services 1.6.7 → 1.6.9

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.
@@ -10,9 +10,6 @@ import { updateCrossSale } from './cross-sale/update-cross-sale';
10
10
  import { current } from './current/current';
11
11
  import { finalizeCurrent } from './current/finalize-current';
12
12
  import { updateCurrent } from './current/update-current';
13
- import { getCustomization } from './customization/get-customization';
14
- import { initialCustomization } from './customization/initial-customization';
15
- import { updateCustomization } from './customization/update-customization';
16
13
  import { createOtherCrm } from './other-crm/create-other-crm';
17
14
  import { getAllCrm } from './other-crm/get-all-crm';
18
15
  import { getProfileFilters } from './other-crm/get-profile-filters';
@@ -26,6 +23,7 @@ import { paginateBills } from './subscription/paginate-bills';
26
23
  import { create } from './create';
27
24
  import { getBySlugForVerify } from './get-by-slug-for-verify';
28
25
  import { getOne } from './get-one';
26
+ import { initialCustomization } from './initial-customization';
29
27
  import { query } from './query';
30
28
  import { remove } from './remove';
31
29
  import { update } from './update';
@@ -61,8 +59,6 @@ declare type ApiDeclaration = {
61
59
  getOne: typeof getOne;
62
60
  current: typeof current;
63
61
  getBySlugForVerify: typeof getBySlugForVerify;
64
- getCustomization: typeof getCustomization;
65
- updateCustomization: typeof updateCustomization;
66
62
  };
67
63
  export declare const profilesApiDeclaration: ApiDeclaration;
68
64
  export {};
@@ -13,9 +13,6 @@ var update_cross_sale_1 = require("./cross-sale/update-cross-sale");
13
13
  var current_1 = require("./current/current");
14
14
  var finalize_current_1 = require("./current/finalize-current");
15
15
  var update_current_1 = require("./current/update-current");
16
- var get_customization_1 = require("./customization/get-customization");
17
- var initial_customization_1 = require("./customization/initial-customization");
18
- var update_customization_1 = require("./customization/update-customization");
19
16
  var create_other_crm_1 = require("./other-crm/create-other-crm");
20
17
  var get_all_crm_1 = require("./other-crm/get-all-crm");
21
18
  var get_profile_filters_1 = require("./other-crm/get-profile-filters");
@@ -29,6 +26,7 @@ var paginate_bills_1 = require("./subscription/paginate-bills");
29
26
  var create_1 = require("./create");
30
27
  var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
31
28
  var get_one_1 = require("./get-one");
29
+ var initial_customization_1 = require("./initial-customization");
32
30
  var query_1 = require("./query");
33
31
  var remove_1 = require("./remove");
34
32
  var update_1 = require("./update");
@@ -64,6 +62,4 @@ exports.profilesApiDeclaration = {
64
62
  getOne: get_one_1.getOne,
65
63
  current: current_1.current,
66
64
  getBySlugForVerify: get_by_slug_for_verify_1.getBySlugForVerify,
67
- updateCustomization: update_customization_1.updateCustomization,
68
- getCustomization: get_customization_1.getCustomization,
69
65
  };
@@ -1,6 +1,6 @@
1
1
  import { InitialCustomizationDto } from '@escapenavigator/types/dist/profile/initial-cusomization.dto';
2
2
  import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
3
- import { ApiMethodDeclaration } from '../..';
3
+ import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = InitialCustomizationDto;
5
5
  declare type ResponseData = SuccessRO;
6
6
  export declare const initialCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initialCustomization = void 0;
4
4
  var initialCustomization = function (data) { return ({
5
- url: '/customization/initial',
5
+ url: '/profiles/init-customization',
6
6
  method: 'POST',
7
7
  data: data,
8
8
  }); };
@@ -1,18 +1,14 @@
1
1
  import { addOrRemoveBreak } from './add-or-remove-break';
2
2
  import { calendarDay } from './calendar-day';
3
3
  import { create } from './create';
4
- import { daily } from './daily';
4
+ import { oneQuestroomDaySlots } from './one-questroom-day-slots';
5
5
  import { remove } from './remove';
6
6
  import { updateBreaks } from './update-breaks';
7
- import { updateMinHours } from './update-min-hours';
8
- import { weekly } from './weekly';
9
7
  declare type ApiDeclaration = {
10
8
  updateBreaks: typeof updateBreaks;
11
9
  calendarDay: typeof calendarDay;
12
- daily: typeof daily;
13
- updateMinHours: typeof updateMinHours;
10
+ oneQuestroomDaySlots: typeof oneQuestroomDaySlots;
14
11
  addOrRemoveBreak: typeof addOrRemoveBreak;
15
- weekly: typeof weekly;
16
12
  create: typeof create;
17
13
  remove: typeof remove;
18
14
  };
@@ -4,18 +4,14 @@ exports.slotsApiDeclaration = void 0;
4
4
  var add_or_remove_break_1 = require("./add-or-remove-break");
5
5
  var calendar_day_1 = require("./calendar-day");
6
6
  var create_1 = require("./create");
7
- var daily_1 = require("./daily");
7
+ var one_questroom_day_slots_1 = require("./one-questroom-day-slots");
8
8
  var remove_1 = require("./remove");
9
9
  var update_breaks_1 = require("./update-breaks");
10
- var update_min_hours_1 = require("./update-min-hours");
11
- var weekly_1 = require("./weekly");
12
10
  exports.slotsApiDeclaration = {
13
11
  updateBreaks: update_breaks_1.updateBreaks,
14
12
  calendarDay: calendar_day_1.calendarDay,
15
- daily: daily_1.daily,
16
- updateMinHours: update_min_hours_1.updateMinHours,
13
+ oneQuestroomDaySlots: one_questroom_day_slots_1.oneQuestroomDaySlots,
17
14
  addOrRemoveBreak: add_or_remove_break_1.addOrRemoveBreak,
18
- weekly: weekly_1.weekly,
19
15
  create: create_1.create,
20
16
  remove: remove_1.remove,
21
17
  };
@@ -3,5 +3,5 @@ import { SlotRO } from '@escapenavigator/types/dist/slot/slot.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = DailyQueryDto;
5
5
  declare type ResponseData = SlotRO[];
6
- export declare const daily: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export declare const oneQuestroomDaySlots: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.oneQuestroomDaySlots = void 0;
4
+ var oneQuestroomDaySlots = function (params) { return ({
5
+ url: '/slots/questroom-day',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.oneQuestroomDaySlots = oneQuestroomDaySlots;
@@ -1,4 +1,4 @@
1
- import { WidgetOrderRO } from '@escapenavigator/types/dist/widget-orders/widget-order.ro';
1
+ import { WidgetOrderRO } from '@escapenavigator/types/dist/widget-openapi/order-service-order.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = string;
4
4
  declare type ResponseData = WidgetOrderRO;
@@ -1,5 +1,5 @@
1
- import { WidgetOrdersCreateCertificatePaymentDto } from '@escapenavigator/types/dist/widget-orders/widget-orders-create-certificate-payment.dto';
2
- import { WidgetOrdersCreatePaymentRO } from '@escapenavigator/types/dist/widget-orders/widget-orders-create-payment.ro';
1
+ import { WidgetOrdersCreateCertificatePaymentDto } from '@escapenavigator/types/dist/widget-openapi/order-service-create-certificate-payment.dto';
2
+ import { WidgetOrdersCreatePaymentRO } from '@escapenavigator/types/dist/widget-openapi/order-service-create-payment.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = WidgetOrdersCreateCertificatePaymentDto;
5
5
  declare type ResponseData = WidgetOrdersCreatePaymentRO;
@@ -1,4 +1,4 @@
1
- import { WidgetOrdersCertificateRO } from '@escapenavigator/types/dist/widget-orders/widget-orders-certificate.ro';
1
+ import { WidgetOrdersCertificateRO } from '@escapenavigator/types/dist/widget-openapi/order-service-certificate.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = string;
4
4
  declare type ResponseData = WidgetOrdersCertificateRO;
@@ -1,4 +1,4 @@
1
- import { WidgetOrderRO } from '@escapenavigator/types/dist/widget-orders/widget-order.ro';
1
+ import { WidgetOrderRO } from '@escapenavigator/types/dist/widget-openapi/order-service-order.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = string;
4
4
  declare type ResponseData = WidgetOrderRO;
@@ -1,5 +1,5 @@
1
- import { WidgetOrdersCreateOrderPaymentDto } from '@escapenavigator/types/dist/widget-orders/widget-orders-create-order-payment.dto';
2
- import { WidgetOrdersCreatePaymentRO } from '@escapenavigator/types/dist/widget-orders/widget-orders-create-payment.ro';
1
+ import { WidgetOrdersCreateOrderPaymentDto } from '@escapenavigator/types/dist/widget-openapi/order-service-create-order-payment.dto';
2
+ import { WidgetOrdersCreatePaymentRO } from '@escapenavigator/types/dist/widget-openapi/order-service-create-payment.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = WidgetOrdersCreateOrderPaymentDto;
5
5
  declare type ResponseData = WidgetOrdersCreatePaymentRO;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
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": "04821cdb3f99d48acb46e84829b0fcf04c6ec069",
15
+ "gitHead": "a243f0e810fb84d832b19c48f376d6e8c5b1b678",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.6",
18
- "@escapenavigator/utils": "^1.6.6",
17
+ "@escapenavigator/types": "^1.6.8",
18
+ "@escapenavigator/utils": "^1.6.8",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
@@ -1,7 +0,0 @@
1
- import { CustomizationRO } from '@escapenavigator/types/dist/profile/customization/customization.ro';
2
- import { ApiMethodDeclaration } from '../..';
3
- /** ID профиля */
4
- declare type ParamsData = undefined;
5
- declare type ResponseData = CustomizationRO;
6
- export declare const getCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCustomization = void 0;
4
- var getCustomization = function () { return ({
5
- url: '/customization',
6
- method: 'GET',
7
- }); };
8
- exports.getCustomization = getCustomization;
@@ -1,7 +0,0 @@
1
- import { CustomizationRO } from '@escapenavigator/types/dist/profile/customization/customization.ro';
2
- import { UpdateCustomizationDto } from '@escapenavigator/types/dist/profile/customization/update-customization.dto';
3
- import { ApiMethodDeclaration } from '../..';
4
- declare type ParamsData = UpdateCustomizationDto;
5
- declare type ResponseData = CustomizationRO;
6
- export declare const updateCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateCustomization = void 0;
4
- var updateCustomization = function (data) { return ({
5
- url: '/customization',
6
- method: 'PATCH',
7
- data: data,
8
- }); };
9
- exports.updateCustomization = updateCustomization;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.daily = void 0;
4
- var daily = function (params) { return ({
5
- url: '/slots/daily',
6
- method: 'GET',
7
- params: params,
8
- }); };
9
- exports.daily = daily;
@@ -1,9 +0,0 @@
1
- import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
- import { UpdateMinHoursDto } from '@escapenavigator/types/dist/slot/update-min-hours.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- data: UpdateMinHoursDto;
6
- };
7
- declare type ResponseData = SuccessRO;
8
- export declare const updateMinHours: ApiMethodDeclaration<ParamsData, ResponseData>;
9
- export {};
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateMinHours = void 0;
4
- var updateMinHours = function (_a) {
5
- var data = _a.data;
6
- return ({
7
- url: '/slots/update-min-hours',
8
- method: 'PATCH',
9
- data: data,
10
- });
11
- };
12
- exports.updateMinHours = updateMinHours;
@@ -1,7 +0,0 @@
1
- import { SlotRO } from '@escapenavigator/types/dist/slot/slot.ro';
2
- import { WeeklyQueryDto } from '@escapenavigator/types/dist/slot/weekly-query.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = WeeklyQueryDto;
5
- declare type ResponseData = SlotRO[];
6
- export declare const weekly: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.weekly = void 0;
4
- var weekly = function (params) { return ({
5
- url: '/slots/weekly',
6
- method: 'GET',
7
- params: params,
8
- }); };
9
- exports.weekly = weekly;