@escapenavigator/services 1.10.94 → 1.10.96
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.
- package/dist/api/admins-api/get-all-admins-activity-stats.js +6 -2
- package/dist/api/clients-api/create-complaint.d.ts +11 -0
- package/dist/api/clients-api/create-complaint.js +12 -0
- package/dist/api/clients-api/get-complaints.d.ts +9 -0
- package/dist/api/clients-api/get-complaints.js +8 -0
- package/dist/api/clients-api/index.d.ts +4 -0
- package/dist/api/clients-api/index.js +4 -0
- package/dist/api/users-api/fines/fast-stat-fines.d.ts +9 -0
- package/dist/api/users-api/fines/fast-stat-fines.js +9 -0
- package/dist/api/users-api/index.d.ts +2 -0
- package/dist/api/users-api/index.js +2 -0
- package/dist/api/users-api/sessions/export-sessions.d.ts +2 -2
- package/package.json +4 -4
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllAdminsActivityStats = void 0;
|
|
4
4
|
var getAllAdminsActivityStats = function (params) { return ({
|
|
5
|
-
url:
|
|
5
|
+
url: '/admins/activity/all/stats',
|
|
6
6
|
method: 'GET',
|
|
7
|
-
params:
|
|
7
|
+
params: {
|
|
8
|
+
adminEmail: params.adminEmail || 'all',
|
|
9
|
+
startDate: params.startDate,
|
|
10
|
+
endDate: params.endDate,
|
|
11
|
+
},
|
|
8
12
|
}); };
|
|
9
13
|
exports.getAllAdminsActivityStats = getAllAdminsActivityStats;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '..';
|
|
2
|
+
type ParamsData = {
|
|
3
|
+
data: {
|
|
4
|
+
clientId: number;
|
|
5
|
+
reason: string;
|
|
6
|
+
blockClient?: boolean;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
type ResponseData = void;
|
|
10
|
+
export declare const createComplaint: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createComplaint = void 0;
|
|
4
|
+
var createComplaint = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/clients/complaint',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createComplaint = createComplaint;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '..';
|
|
2
|
+
export type ClientComplaintItemRO = {
|
|
3
|
+
reason: string;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
};
|
|
6
|
+
type ParamsData = number;
|
|
7
|
+
type ResponseData = ClientComplaintItemRO[];
|
|
8
|
+
export declare const getComplaints: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getComplaints = void 0;
|
|
4
|
+
var getComplaints = function (clientId) { return ({
|
|
5
|
+
url: "/clients/".concat(clientId, "/complaints"),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getComplaints = getComplaints;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { count } from './count';
|
|
2
2
|
import { create } from './create';
|
|
3
|
+
import { createComplaint } from './create-complaint';
|
|
3
4
|
import { exportClients } from './export';
|
|
4
5
|
import { getAll } from './get-all';
|
|
6
|
+
import { getComplaints } from './get-complaints';
|
|
5
7
|
import { getOne } from './get-one';
|
|
6
8
|
import { query } from './query';
|
|
7
9
|
import { toggleBlock } from './tobble-block';
|
|
@@ -10,6 +12,8 @@ type ApiDeclaration = {
|
|
|
10
12
|
count: typeof count;
|
|
11
13
|
exportClients: typeof exportClients;
|
|
12
14
|
create: typeof create;
|
|
15
|
+
createComplaint: typeof createComplaint;
|
|
16
|
+
getComplaints: typeof getComplaints;
|
|
13
17
|
toggleBlock: typeof toggleBlock;
|
|
14
18
|
update: typeof update;
|
|
15
19
|
query: typeof query;
|
|
@@ -3,16 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.clientsApiDeclaration = void 0;
|
|
4
4
|
var count_1 = require("./count");
|
|
5
5
|
var create_1 = require("./create");
|
|
6
|
+
var create_complaint_1 = require("./create-complaint");
|
|
6
7
|
var export_1 = require("./export");
|
|
7
8
|
var get_all_1 = require("./get-all");
|
|
9
|
+
var get_complaints_1 = require("./get-complaints");
|
|
8
10
|
var get_one_1 = require("./get-one");
|
|
9
11
|
var query_1 = require("./query");
|
|
10
12
|
var tobble_block_1 = require("./tobble-block");
|
|
11
13
|
var update_1 = require("./update");
|
|
12
14
|
exports.clientsApiDeclaration = {
|
|
13
15
|
create: create_1.create,
|
|
16
|
+
createComplaint: create_complaint_1.createComplaint,
|
|
14
17
|
exportClients: export_1.exportClients,
|
|
15
18
|
count: count_1.count,
|
|
19
|
+
getComplaints: get_complaints_1.getComplaints,
|
|
16
20
|
toggleBlock: tobble_block_1.toggleBlock,
|
|
17
21
|
update: update_1.update,
|
|
18
22
|
query: query_1.query,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = QueryDto;
|
|
4
|
+
type ResponseData = {
|
|
5
|
+
bonusesSum: number;
|
|
6
|
+
penaltiesSum: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const fastStatFines: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fastStatFines = void 0;
|
|
4
|
+
var fastStatFines = function (params) { return ({
|
|
5
|
+
url: '/user-fines/fast-stat',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.fastStatFines = fastStatFines;
|
|
@@ -8,6 +8,7 @@ import { getTmpToken } from './current/get-tmp-token';
|
|
|
8
8
|
import { me } from './current/me';
|
|
9
9
|
import { mePing } from './current/me-ping';
|
|
10
10
|
import { createFine } from './fines/create-fine';
|
|
11
|
+
import { fastStatFines } from './fines/fast-stat-fines';
|
|
11
12
|
import { queryFines } from './fines/query-fines';
|
|
12
13
|
import { removeFine } from './fines/remove-fine';
|
|
13
14
|
import { updateFine } from './fines/update-fine';
|
|
@@ -76,6 +77,7 @@ type ApiDeclaration = {
|
|
|
76
77
|
updateFine: typeof updateFine;
|
|
77
78
|
removeFine: typeof removeFine;
|
|
78
79
|
queryFines: typeof queryFines;
|
|
80
|
+
fastStatFines: typeof fastStatFines;
|
|
79
81
|
currentUpdateDashboard: typeof currentUpdateDashboard;
|
|
80
82
|
currentUpdateAvatar: typeof currentUpdateAvatar;
|
|
81
83
|
currentUpdatePreferences: typeof currentUpdatePreferences;
|
|
@@ -11,6 +11,7 @@ var get_tmp_token_1 = require("./current/get-tmp-token");
|
|
|
11
11
|
var me_1 = require("./current/me");
|
|
12
12
|
var me_ping_1 = require("./current/me-ping");
|
|
13
13
|
var create_fine_1 = require("./fines/create-fine");
|
|
14
|
+
var fast_stat_fines_1 = require("./fines/fast-stat-fines");
|
|
14
15
|
var query_fines_1 = require("./fines/query-fines");
|
|
15
16
|
var remove_fine_1 = require("./fines/remove-fine");
|
|
16
17
|
var update_fine_1 = require("./fines/update-fine");
|
|
@@ -86,6 +87,7 @@ exports.usersApiDeclaration = {
|
|
|
86
87
|
updateFine: update_fine_1.updateFine,
|
|
87
88
|
removeFine: remove_fine_1.removeFine,
|
|
88
89
|
queryFines: query_fines_1.queryFines,
|
|
90
|
+
fastStatFines: fast_stat_fines_1.fastStatFines,
|
|
89
91
|
getSession: get_session_1.getSession,
|
|
90
92
|
removeSession: remove_session_1.removeSession,
|
|
91
93
|
createSession: create_session_1.createSession,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuerySessionDto } from '@escapenavigator/types/dist/user/sessions/query-session.dto';
|
|
2
2
|
import { ApiMethodDeclaration } from '../..';
|
|
3
|
-
type ParamsData =
|
|
3
|
+
type ParamsData = QuerySessionDto;
|
|
4
4
|
type ResponseData = true;
|
|
5
5
|
export declare const exportSession: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.96",
|
|
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": "
|
|
15
|
+
"gitHead": "fd7baa4ffbe73414029614e379de7986dc4044db",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.88",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.92",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|