@escapenavigator/services 2.1.29 → 2.2.0
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/agregator-api/index.d.ts +2 -0
- package/dist/api/agregator-api/index.js +2 -0
- package/dist/api/agregator-api/send-contact.d.ts +18 -0
- package/dist/api/agregator-api/send-contact.js +12 -0
- package/dist/api/salary-api/index.d.ts +1 -0
- package/dist/api/salary-api/index.js +1 -0
- package/dist/api/salary-api/payroll.d.ts +2 -1
- package/dist/api/salary-api/payroll.js +6 -1
- package/package.json +4 -4
|
@@ -50,6 +50,7 @@ import { originalReview } from './reviews/original-review';
|
|
|
50
50
|
import { reviewsCity } from './reviews/reviews-city';
|
|
51
51
|
import { reviewsProfile } from './reviews/reviews-profile';
|
|
52
52
|
import { reviewsQuestroom } from './reviews/reviews-questroom';
|
|
53
|
+
import { sendContact } from './send-contact';
|
|
53
54
|
type ApiDeclaration = {
|
|
54
55
|
createNavigatorCertificate: typeof createNavigatorCertificate;
|
|
55
56
|
getNavigatorCertificateTemplates: typeof getNavigatorCertificateTemplates;
|
|
@@ -102,6 +103,7 @@ type ApiDeclaration = {
|
|
|
102
103
|
findPostBySlug: typeof findPostBySlug;
|
|
103
104
|
findPostForMainPage: typeof findPostForMainPage;
|
|
104
105
|
createIssue: typeof createIssue;
|
|
106
|
+
sendContact: typeof sendContact;
|
|
105
107
|
addLike: typeof addLike;
|
|
106
108
|
};
|
|
107
109
|
export declare const agregatorApiDeclaration: ApiDeclaration;
|
|
@@ -53,6 +53,7 @@ var original_review_1 = require("./reviews/original-review");
|
|
|
53
53
|
var reviews_city_1 = require("./reviews/reviews-city");
|
|
54
54
|
var reviews_profile_1 = require("./reviews/reviews-profile");
|
|
55
55
|
var reviews_questroom_1 = require("./reviews/reviews-questroom");
|
|
56
|
+
var send_contact_1 = require("./send-contact");
|
|
56
57
|
exports.agregatorApiDeclaration = {
|
|
57
58
|
createNavigatorCertificate: create_navigator_certificate_1.createNavigatorCertificate,
|
|
58
59
|
getNavigatorCertificateTemplates: get_navigator_certificate_templates_1.getNavigatorCertificateTemplates,
|
|
@@ -66,6 +67,7 @@ exports.agregatorApiDeclaration = {
|
|
|
66
67
|
getAggregatorFaq: get_aggregator_faq_1.getAggregatorFaq,
|
|
67
68
|
addLike: add_like_1.addLike,
|
|
68
69
|
createIssue: create_issue_1.createIssue,
|
|
70
|
+
sendContact: send_contact_1.sendContact,
|
|
69
71
|
originalReview: original_review_1.originalReview,
|
|
70
72
|
removeFavorite: remove_favorite_1.removeFavorite,
|
|
71
73
|
addFavorite: add_favorite_1.addFavorite,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '..';
|
|
2
|
+
export type AggregatorContactPayload = {
|
|
3
|
+
name: string;
|
|
4
|
+
email: string;
|
|
5
|
+
subject: string;
|
|
6
|
+
message: string;
|
|
7
|
+
locale?: string;
|
|
8
|
+
url?: string;
|
|
9
|
+
trap?: string;
|
|
10
|
+
};
|
|
11
|
+
type ParamsData = {
|
|
12
|
+
data: AggregatorContactPayload;
|
|
13
|
+
};
|
|
14
|
+
type ResponseData = {
|
|
15
|
+
ok: true;
|
|
16
|
+
};
|
|
17
|
+
export declare const sendContact: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendContact = void 0;
|
|
4
|
+
var sendContact = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/agregator/contact',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.sendContact = sendContact;
|
|
@@ -28,6 +28,7 @@ export declare const salaryApiDeclaration: {
|
|
|
28
28
|
}, import("@escapenavigator/types/dist/salary").SalaryAccrualsRunRO>;
|
|
29
29
|
getAccruals: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/salary").QuerySalaryAccrualsDto, import("@escapenavigator/types/dist/salary").SalaryAccrualRO[]>;
|
|
30
30
|
getPayouts: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/salary").QuerySalaryAccrualsDto, import("@escapenavigator/types/dist/salary").SalaryPayoutsRO>;
|
|
31
|
+
getMyDebt: import("..").ApiMethodDeclaration<void, import("@escapenavigator/types/dist/salary").SalaryDebtRO>;
|
|
31
32
|
getMySalary: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/salary").QuerySalaryPeriodDto, import("@escapenavigator/types/dist/salary").SalaryMyRO>;
|
|
32
33
|
getSummary: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/salary").QuerySalarySummaryDto, import("@escapenavigator/types/dist/salary").SalarySummaryRO>;
|
|
33
34
|
createAccrual: import("..").ApiMethodDeclaration<{
|
|
@@ -16,6 +16,7 @@ exports.salaryApiDeclaration = {
|
|
|
16
16
|
runAccruals: payroll_1.runAccruals,
|
|
17
17
|
getAccruals: payroll_1.getAccruals,
|
|
18
18
|
getPayouts: payroll_1.getPayouts,
|
|
19
|
+
getMyDebt: payroll_1.getMyDebt,
|
|
19
20
|
getMySalary: payroll_1.getMySalary,
|
|
20
21
|
getSummary: payroll_1.getSummary,
|
|
21
22
|
createAccrual: payroll_1.createAccrual,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateSalaryAccrualDto, QuerySalaryAccrualsDto, QuerySalaryPeriodDto,
|
|
1
|
+
import { CreateSalaryAccrualDto, QuerySalaryAccrualsDto, QuerySalaryPeriodDto, QuerySalaryPreviewDto, QuerySalarySummaryDto, RunSalaryAccrualsDto, SalaryAccrualOriginEnum, SalaryAccrualRO, SalaryAccrualsRunRO, SalaryDebtRO, SalaryMyRO, SalaryPayoutsRO, SalaryPreviewRO, SalarySummaryRO } from '@escapenavigator/types/dist/salary';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
export declare const getPreview: ApiMethodDeclaration<QuerySalaryPreviewDto, SalaryPreviewRO>;
|
|
4
4
|
export declare const runAccruals: ApiMethodDeclaration<{
|
|
@@ -7,6 +7,7 @@ export declare const runAccruals: ApiMethodDeclaration<{
|
|
|
7
7
|
export declare const getAccruals: ApiMethodDeclaration<QuerySalaryAccrualsDto, SalaryAccrualRO[]>;
|
|
8
8
|
export declare const getPayouts: ApiMethodDeclaration<QuerySalaryAccrualsDto, SalaryPayoutsRO>;
|
|
9
9
|
export declare const getMySalary: ApiMethodDeclaration<QuerySalaryPeriodDto, SalaryMyRO>;
|
|
10
|
+
export declare const getMyDebt: ApiMethodDeclaration<void, SalaryDebtRO>;
|
|
10
11
|
export declare const getSummary: ApiMethodDeclaration<QuerySalarySummaryDto, SalarySummaryRO>;
|
|
11
12
|
export declare const createAccrual: ApiMethodDeclaration<{
|
|
12
13
|
data: CreateSalaryAccrualDto;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeAccrual = exports.createAccrual = exports.getSummary = exports.getMySalary = exports.getPayouts = exports.getAccruals = exports.runAccruals = exports.getPreview = void 0;
|
|
3
|
+
exports.removeAccrual = exports.createAccrual = exports.getSummary = exports.getMyDebt = exports.getMySalary = exports.getPayouts = exports.getAccruals = exports.runAccruals = exports.getPreview = void 0;
|
|
4
4
|
var getPreview = function (params) { return ({
|
|
5
5
|
url: '/salary/preview',
|
|
6
6
|
method: 'GET',
|
|
@@ -34,6 +34,11 @@ var getMySalary = function (params) { return ({
|
|
|
34
34
|
params: params,
|
|
35
35
|
}); };
|
|
36
36
|
exports.getMySalary = getMySalary;
|
|
37
|
+
var getMyDebt = function () { return ({
|
|
38
|
+
url: '/salary/debt/my',
|
|
39
|
+
method: 'GET',
|
|
40
|
+
}); };
|
|
41
|
+
exports.getMyDebt = getMyDebt;
|
|
37
42
|
var getSummary = function (params) { return ({
|
|
38
43
|
url: '/salary/summary',
|
|
39
44
|
method: 'GET',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
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": "63060e4187f812e4c4e86d4211cfcc1b2e117a76",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.
|
|
18
|
-
"@escapenavigator/utils": "^2.
|
|
17
|
+
"@escapenavigator/types": "^2.2.0",
|
|
18
|
+
"@escapenavigator/utils": "^2.2.0",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|