@escapenavigator/services 2.0.40 → 2.0.42

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,9 @@
1
+ import { EnrollDeviceDto } from '@escapenavigator/types/dist/user/device/enroll-device.dto';
2
+ import { EnrollDeviceRO } from '@escapenavigator/types/dist/user/device/enroll-device.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ type ParamsData = {
5
+ data: EnrollDeviceDto;
6
+ };
7
+ type ResponseData = EnrollDeviceRO;
8
+ export declare const enrollDevice: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.enrollDevice = void 0;
4
+ var enrollDevice = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/users/device/enroll',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.enrollDevice = enrollDevice;
@@ -0,0 +1,9 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ForgetDeviceDto } from '@escapenavigator/types/dist/user/device/forget-device.dto';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ type ParamsData = {
5
+ data: ForgetDeviceDto;
6
+ };
7
+ type ResponseData = SuccessRO;
8
+ export declare const forgetDevice: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.forgetDevice = void 0;
4
+ var forgetDevice = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/users/device/forget',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.forgetDevice = forgetDevice;
@@ -0,0 +1,9 @@
1
+ import { DeviceRosterDto } from '@escapenavigator/types/dist/user/device/device-roster.dto';
2
+ import { DeviceRosterRO } from '@escapenavigator/types/dist/user/device/device-roster.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ type ParamsData = {
5
+ data: DeviceRosterDto;
6
+ };
7
+ type ResponseData = DeviceRosterRO;
8
+ export declare const getDeviceRoster: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDeviceRoster = void 0;
4
+ var getDeviceRoster = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/users/device/roster',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.getDeviceRoster = getDeviceRoster;
@@ -0,0 +1,5 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ type ResponseData = SuccessRO;
4
+ export declare const lockDevice: ApiMethodDeclaration<undefined, ResponseData>;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lockDevice = void 0;
4
+ var lockDevice = function () { return ({
5
+ url: '/users/lock',
6
+ method: 'POST',
7
+ }); };
8
+ exports.lockDevice = lockDevice;
@@ -0,0 +1,8 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ type ParamsData = {
4
+ id: number;
5
+ };
6
+ type ResponseData = SuccessRO;
7
+ export declare const resetPin: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resetPin = void 0;
4
+ var resetPin = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/users/".concat(id, "/pin-reset"),
8
+ method: 'POST',
9
+ });
10
+ };
11
+ exports.resetPin = resetPin;
@@ -0,0 +1,9 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { SetPinDto } from '@escapenavigator/types/dist/user/device/set-pin.dto';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ type ParamsData = {
5
+ data: SetPinDto;
6
+ };
7
+ type ResponseData = SuccessRO;
8
+ export declare const setPin: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setPin = void 0;
4
+ var setPin = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/current-user/pin',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.setPin = setPin;
@@ -0,0 +1,9 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { UnlockDeviceDto } from '@escapenavigator/types/dist/user/device/unlock-device.dto';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ type ParamsData = {
5
+ data: UnlockDeviceDto;
6
+ };
7
+ type ResponseData = SuccessRO;
8
+ export declare const unlockDevice: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unlockDevice = void 0;
4
+ var unlockDevice = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/users/unlock',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.unlockDevice = unlockDevice;
@@ -11,6 +11,13 @@ import { currentUpdatePreferences } from './current/current-update-preferences';
11
11
  import { getTmpToken } from './current/get-tmp-token';
12
12
  import { me } from './current/me';
13
13
  import { mePing } from './current/me-ping';
14
+ import { enrollDevice } from './device/enroll-device';
15
+ import { forgetDevice } from './device/forget-device';
16
+ import { getDeviceRoster } from './device/get-device-roster';
17
+ import { lockDevice } from './device/lock-device';
18
+ import { resetPin } from './device/reset-pin';
19
+ import { setPin } from './device/set-pin';
20
+ import { unlockDevice } from './device/unlock-device';
14
21
  import { createFine } from './fines/create-fine';
15
22
  import { fastStatFines } from './fines/fast-stat-fines';
16
23
  import { queryFines } from './fines/query-fines';
@@ -73,6 +80,13 @@ type ApiDeclaration = {
73
80
  updatePosition: typeof updatePosition;
74
81
  loginSwitch: typeof loginSwitch;
75
82
  getTmpToken: typeof getTmpToken;
83
+ enrollDevice: typeof enrollDevice;
84
+ getDeviceRoster: typeof getDeviceRoster;
85
+ unlockDevice: typeof unlockDevice;
86
+ lockDevice: typeof lockDevice;
87
+ forgetDevice: typeof forgetDevice;
88
+ setPin: typeof setPin;
89
+ resetPin: typeof resetPin;
76
90
  createSalarySchema: typeof createSalarySchema;
77
91
  updateSalarySchema: typeof updateSalarySchema;
78
92
  removeSalarySchema: typeof removeSalarySchema;
@@ -14,6 +14,13 @@ var current_update_preferences_1 = require("./current/current-update-preferences
14
14
  var get_tmp_token_1 = require("./current/get-tmp-token");
15
15
  var me_1 = require("./current/me");
16
16
  var me_ping_1 = require("./current/me-ping");
17
+ var enroll_device_1 = require("./device/enroll-device");
18
+ var forget_device_1 = require("./device/forget-device");
19
+ var get_device_roster_1 = require("./device/get-device-roster");
20
+ var lock_device_1 = require("./device/lock-device");
21
+ var reset_pin_1 = require("./device/reset-pin");
22
+ var set_pin_1 = require("./device/set-pin");
23
+ var unlock_device_1 = require("./device/unlock-device");
17
24
  var create_fine_1 = require("./fines/create-fine");
18
25
  var fast_stat_fines_1 = require("./fines/fast-stat-fines");
19
26
  var query_fines_1 = require("./fines/query-fines");
@@ -81,6 +88,13 @@ exports.usersApiDeclaration = {
81
88
  removePosition: remove_position_1.removePosition,
82
89
  currentUpdateAvatar: current_update_avatar_1.currentUpdateAvatar,
83
90
  loginSwitch: login_switch_1.loginSwitch,
91
+ enrollDevice: enroll_device_1.enrollDevice,
92
+ getDeviceRoster: get_device_roster_1.getDeviceRoster,
93
+ unlockDevice: unlock_device_1.unlockDevice,
94
+ lockDevice: lock_device_1.lockDevice,
95
+ forgetDevice: forget_device_1.forgetDevice,
96
+ setPin: set_pin_1.setPin,
97
+ resetPin: reset_pin_1.resetPin,
84
98
  currentUpdatePreferences: current_update_preferences_1.currentUpdatePreferences,
85
99
  mePing: me_ping_1.mePing,
86
100
  getCalendarSessions: get_calendar_sessions_1.getCalendarSessions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "2.0.40",
3
+ "version": "2.0.42",
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": "46c94f5f9d49d1c7efb30798d44bc5ed6e2dcc50",
15
+ "gitHead": "34b66fa31af4dab80d055a8a6a046aae3839bf90",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^2.0.38",
18
- "@escapenavigator/utils": "^2.0.40",
17
+ "@escapenavigator/types": "^2.0.40",
18
+ "@escapenavigator/utils": "^2.0.42",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",