@escapenavigator/services 1.10.15 → 1.10.17

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,5 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ declare type ParamsData = string;
3
+ declare type ResponseData = number[];
4
+ export declare const calendarDaysWithOrder: ApiMethodDeclaration<ParamsData, ResponseData>;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.calendarDaysWithOrder = void 0;
4
+ var calendarDaysWithOrder = function (date) { return ({
5
+ url: "/slots/calendar-days-with-order/".concat(date),
6
+ method: 'GET',
7
+ }); };
8
+ exports.calendarDaysWithOrder = calendarDaysWithOrder;
@@ -1,6 +1,7 @@
1
1
  import { addOrRemoveBreak } from './add-or-remove-break';
2
2
  import { allDaySlots } from './all-day-slots';
3
3
  import { calendarDay } from './calendar-day';
4
+ import { calendarDaysWithOrder } from './calendar-days-with-orders';
4
5
  import { create } from './create';
5
6
  import { forceRemoveHold } from './force-remove-hold';
6
7
  import { oneQuestroomDaySlots } from './one-questroom-day-slots';
@@ -8,6 +9,7 @@ import { remove } from './remove';
8
9
  import { updateBreaks } from './update-breaks';
9
10
  import { updateSlot } from './update-slot';
10
11
  declare type ApiDeclaration = {
12
+ calendarDaysWithOrder: typeof calendarDaysWithOrder;
11
13
  allDaySlots: typeof allDaySlots;
12
14
  forceRemoveHold: typeof forceRemoveHold;
13
15
  updateBreaks: typeof updateBreaks;
@@ -4,6 +4,7 @@ exports.slotsApiDeclaration = void 0;
4
4
  var add_or_remove_break_1 = require("./add-or-remove-break");
5
5
  var all_day_slots_1 = require("./all-day-slots");
6
6
  var calendar_day_1 = require("./calendar-day");
7
+ var calendar_days_with_orders_1 = require("./calendar-days-with-orders");
7
8
  var create_1 = require("./create");
8
9
  var force_remove_hold_1 = require("./force-remove-hold");
9
10
  var one_questroom_day_slots_1 = require("./one-questroom-day-slots");
@@ -13,6 +14,7 @@ var update_slot_1 = require("./update-slot");
13
14
  exports.slotsApiDeclaration = {
14
15
  allDaySlots: all_day_slots_1.allDaySlots,
15
16
  forceRemoveHold: force_remove_hold_1.forceRemoveHold,
17
+ calendarDaysWithOrder: calendar_days_with_orders_1.calendarDaysWithOrder,
16
18
  updateSlot: update_slot_1.updateSlot,
17
19
  updateBreaks: update_breaks_1.updateBreaks,
18
20
  calendarDay: calendar_day_1.calendarDay,
@@ -3,7 +3,7 @@ import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = {
4
4
  questroomsIds: number[];
5
5
  date: string;
6
- type: 'month' | 'year';
6
+ type: 'month' | 'year' | 'custom';
7
7
  };
8
8
  declare type ResponseData = GeneralStatiscticsRO;
9
9
  export declare const generalStatisctics: ApiMethodDeclaration<ParamsData, ResponseData>;
@@ -2,7 +2,7 @@ import { RevenueStatiscticsRO } from '@escapenavigator/types/dist/statistics/rev
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = {
4
4
  date: string;
5
- type: 'month' | 'year';
5
+ type: 'month' | 'year' | 'custom';
6
6
  };
7
7
  declare type ResponseData = RevenueStatiscticsRO;
8
8
  export declare const revenueStatisctics: ApiMethodDeclaration<ParamsData, ResponseData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.10.15",
3
+ "version": "1.10.17",
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": "8d6bfcd1771195daf3a2bbda28c9a1a81892c290",
15
+ "gitHead": "509bca68aa045bc70231fefa8e3941c2648cd0e0",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.10.15",
18
- "@escapenavigator/utils": "^1.10.15",
17
+ "@escapenavigator/types": "^1.10.17",
18
+ "@escapenavigator/utils": "^1.10.17",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",