@escapenavigator/services 1.6.6 → 1.6.8

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,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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
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": "b616de37ec3081375474d0594658b870727720bd",
15
+ "gitHead": "6ecad8dc957cb83e22ac09ddd9e7015a4a8db2f5",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.5",
18
- "@escapenavigator/utils": "^1.6.5",
17
+ "@escapenavigator/types": "^1.6.7",
18
+ "@escapenavigator/utils": "^1.6.7",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
@@ -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;