@escapenavigator/services 1.6.51 → 1.6.53
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/profiles-api/email/test-email.d.ts +7 -0
- package/dist/api/profiles-api/email/test-email.js +9 -0
- package/dist/api/profiles-api/index.d.ts +2 -10
- package/dist/api/profiles-api/index.js +2 -10
- package/dist/api/statistics-api/general.d.ts +10 -0
- package/dist/api/statistics-api/general.js +9 -0
- package/dist/api/statistics-api/get-monthly-general-statisctics.js +1 -1
- package/dist/api/statistics-api/index.d.ts +2 -0
- package/dist/api/statistics-api/index.js +2 -0
- package/package.json +4 -4
- package/dist/api/profiles-api/email/create-profile-email.d.ts +0 -9
- package/dist/api/profiles-api/email/create-profile-email.js +0 -12
- package/dist/api/profiles-api/email/create-sending.d.ts +0 -7
- package/dist/api/profiles-api/email/create-sending.js +0 -9
- package/dist/api/profiles-api/email/query-emails.d.ts +0 -7
- package/dist/api/profiles-api/email/query-emails.js +0 -8
- package/dist/api/profiles-api/email/query-letters.d.ts +0 -9
- package/dist/api/profiles-api/email/query-letters.js +0 -9
- package/dist/api/profiles-api/email/update-email.d.ts +0 -10
- package/dist/api/profiles-api/email/update-email.js +0 -12
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TestEmailDto } from '@escapenavigator/types/dist/profile/email/test-email.dto';
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = TestEmailDto;
|
|
5
|
+
declare type ResponseData = SuccessRO;
|
|
6
|
+
export declare const testEmail: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -14,11 +14,7 @@ import { updateCrossSale } from './cross-sale/update-cross-sale';
|
|
|
14
14
|
import { current } from './current/current';
|
|
15
15
|
import { finalizeCurrent } from './current/finalize-current';
|
|
16
16
|
import { updateCurrent } from './current/update-current';
|
|
17
|
-
import {
|
|
18
|
-
import { createSending } from './email/create-sending';
|
|
19
|
-
import { queryEmails } from './email/query-emails';
|
|
20
|
-
import { queryLeters } from './email/query-letters';
|
|
21
|
-
import { updateEmail } from './email/update-email';
|
|
17
|
+
import { testEmail } from './email/test-email';
|
|
22
18
|
import { createOtherCrm } from './other-crm/create-other-crm';
|
|
23
19
|
import { getAllCrm } from './other-crm/get-all-crm';
|
|
24
20
|
import { getProfileFilters } from './other-crm/get-profile-filters';
|
|
@@ -43,11 +39,7 @@ import { updateStep } from './update-step';
|
|
|
43
39
|
declare type ApiDeclaration = {
|
|
44
40
|
createContact: typeof createContact;
|
|
45
41
|
removeContact: typeof removeContact;
|
|
46
|
-
|
|
47
|
-
queryEmails: typeof queryEmails;
|
|
48
|
-
updateEmail: typeof updateEmail;
|
|
49
|
-
queryLeters: typeof queryLeters;
|
|
50
|
-
createSending: typeof createSending;
|
|
42
|
+
testEmail: typeof testEmail;
|
|
51
43
|
createAction: typeof createAction;
|
|
52
44
|
queryActions: typeof queryActions;
|
|
53
45
|
getProfileFilters: typeof getProfileFilters;
|
|
@@ -17,11 +17,7 @@ var update_cross_sale_1 = require("./cross-sale/update-cross-sale");
|
|
|
17
17
|
var current_1 = require("./current/current");
|
|
18
18
|
var finalize_current_1 = require("./current/finalize-current");
|
|
19
19
|
var update_current_1 = require("./current/update-current");
|
|
20
|
-
var
|
|
21
|
-
var create_sending_1 = require("./email/create-sending");
|
|
22
|
-
var query_emails_1 = require("./email/query-emails");
|
|
23
|
-
var query_letters_1 = require("./email/query-letters");
|
|
24
|
-
var update_email_1 = require("./email/update-email");
|
|
20
|
+
var test_email_1 = require("./email/test-email");
|
|
25
21
|
var create_other_crm_1 = require("./other-crm/create-other-crm");
|
|
26
22
|
var get_all_crm_1 = require("./other-crm/get-all-crm");
|
|
27
23
|
var get_profile_filters_1 = require("./other-crm/get-profile-filters");
|
|
@@ -52,11 +48,7 @@ exports.profilesApiDeclaration = {
|
|
|
52
48
|
updateCrmVerification: update_crm_verification_1.updateCrmVerification,
|
|
53
49
|
updatePartnerProgram: update_partner_program_1.updatePartnerProgram,
|
|
54
50
|
queryActions: query_actions_1.queryActions,
|
|
55
|
-
|
|
56
|
-
createSending: create_sending_1.createSending,
|
|
57
|
-
updateEmail: update_email_1.updateEmail,
|
|
58
|
-
queryLeters: query_letters_1.queryLeters,
|
|
59
|
-
createProfileEmail: create_profile_email_1.createProfileEmail,
|
|
51
|
+
testEmail: test_email_1.testEmail,
|
|
60
52
|
createAction: create_action_1.createAction,
|
|
61
53
|
getProfileFilters: get_profile_filters_1.getProfileFilters,
|
|
62
54
|
updateStep: update_step_1.updateStep,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GeneralStatiscticsRO } from '@escapenavigator/types/dist/statistics/general';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
questroomsIds: number[];
|
|
5
|
+
date: string;
|
|
6
|
+
type: 'month' | 'year';
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = GeneralStatiscticsRO;
|
|
9
|
+
export declare const generalStatisctics: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generalStatisctics = void 0;
|
|
4
|
+
var generalStatisctics = function (params) { return ({
|
|
5
|
+
url: '/statistics/general',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.generalStatisctics = generalStatisctics;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMonthlyGeneralStatisctics = void 0;
|
|
4
4
|
var getMonthlyGeneralStatisctics = function (month) { return ({
|
|
5
|
-
url: "/
|
|
5
|
+
url: "/statistics/monthly/".concat(month),
|
|
6
6
|
method: 'GET',
|
|
7
7
|
}); };
|
|
8
8
|
exports.getMonthlyGeneralStatisctics = getMonthlyGeneralStatisctics;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { generalStatisctics } from './general';
|
|
1
2
|
import { getMonthlyGeneralStatisctics } from './get-monthly-general-statisctics';
|
|
2
3
|
declare type ApiDeclaration = {
|
|
4
|
+
generalStatisctics: typeof generalStatisctics;
|
|
3
5
|
getMonthlyGeneralStatisctics: typeof getMonthlyGeneralStatisctics;
|
|
4
6
|
};
|
|
5
7
|
export declare const statisticsApiDeclaration: ApiDeclaration;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.statisticsApiDeclaration = void 0;
|
|
4
|
+
var general_1 = require("./general");
|
|
4
5
|
var get_monthly_general_statisctics_1 = require("./get-monthly-general-statisctics");
|
|
5
6
|
exports.statisticsApiDeclaration = {
|
|
6
7
|
getMonthlyGeneralStatisctics: get_monthly_general_statisctics_1.getMonthlyGeneralStatisctics,
|
|
8
|
+
generalStatisctics: general_1.generalStatisctics,
|
|
7
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.53",
|
|
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": "c7be6b2fd4ffb8a584ef0cde6dccdbb2bb12189b",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.50",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.51",
|
|
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
|
-
import { CreateProfileEmailDto } from '@escapenavigator/types/dist/profile/email/create-profile-email.dto';
|
|
2
|
-
import { ProfileEmailRO } from '@escapenavigator/types/dist/profile/email/profile-email.ro';
|
|
3
|
-
import { ApiMethodDeclaration } from '../..';
|
|
4
|
-
declare type ParamsData = {
|
|
5
|
-
data: CreateProfileEmailDto;
|
|
6
|
-
};
|
|
7
|
-
declare type ResponseData = ProfileEmailRO;
|
|
8
|
-
export declare const createProfileEmail: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createProfileEmail = void 0;
|
|
4
|
-
var createProfileEmail = function (_a) {
|
|
5
|
-
var data = _a.data;
|
|
6
|
-
return ({
|
|
7
|
-
url: '/profile-emails',
|
|
8
|
-
method: 'POST',
|
|
9
|
-
data: data,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.createProfileEmail = createProfileEmail;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CreateProfileSendingDto } from '@escapenavigator/types/dist/profile/email/create-profile-sending.dto';
|
|
2
|
-
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
|
-
import { ApiMethodDeclaration } from '../..';
|
|
4
|
-
declare type ParamsData = CreateProfileSendingDto;
|
|
5
|
-
declare type ResponseData = SuccessRO;
|
|
6
|
-
export declare const createSending: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createSending = void 0;
|
|
4
|
-
var createSending = function (data) { return ({
|
|
5
|
-
url: '/profiles/create-sending',
|
|
6
|
-
method: 'POST',
|
|
7
|
-
data: data,
|
|
8
|
-
}); };
|
|
9
|
-
exports.createSending = createSending;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ProfileEmailRO } from '@escapenavigator/types/dist/profile/email/profile-email.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '../..';
|
|
3
|
-
/** Поиск по названию организации и контактному телефону */
|
|
4
|
-
declare type ParamsData = undefined;
|
|
5
|
-
declare type ResponseData = ProfileEmailRO[];
|
|
6
|
-
export declare const queryEmails: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ProfileLetterRO } from '@escapenavigator/types/dist/profile/email/profile-letter.ro';
|
|
2
|
-
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
|
-
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
|
-
import { ApiMethodDeclaration } from '../..';
|
|
5
|
-
/** Поиск по названию организации и контактному телефону */
|
|
6
|
-
declare type ParamsData = QueryDto;
|
|
7
|
-
declare type ResponseData = QueryRO<ProfileLetterRO>;
|
|
8
|
-
export declare const queryLeters: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.queryLeters = void 0;
|
|
4
|
-
var queryLeters = function (params) { return ({
|
|
5
|
-
url: '/profile-emails/letters',
|
|
6
|
-
method: 'GET',
|
|
7
|
-
params: params,
|
|
8
|
-
}); };
|
|
9
|
-
exports.queryLeters = queryLeters;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CreateProfileEmailDto } from '@escapenavigator/types/dist/profile/email/create-profile-email.dto';
|
|
2
|
-
import { ProfileEmailRO } from '@escapenavigator/types/dist/profile/email/profile-email.ro';
|
|
3
|
-
import { ApiMethodDeclaration } from '../..';
|
|
4
|
-
declare type ParamsData = {
|
|
5
|
-
id: number;
|
|
6
|
-
data: CreateProfileEmailDto;
|
|
7
|
-
};
|
|
8
|
-
declare type ResponseData = ProfileEmailRO;
|
|
9
|
-
export declare const updateEmail: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateEmail = void 0;
|
|
4
|
-
var updateEmail = function (_a) {
|
|
5
|
-
var id = _a.id, data = _a.data;
|
|
6
|
-
return ({
|
|
7
|
-
url: "/profile-emails/".concat(id),
|
|
8
|
-
method: 'PATCH',
|
|
9
|
-
data: data,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.updateEmail = updateEmail;
|