@escapenavigator/services 1.6.11 → 1.6.13
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/create.d.ts +2 -2
- package/dist/api/profiles-api/email/create-profile-email.d.ts +9 -0
- package/dist/api/profiles-api/email/create-profile-email.js +12 -0
- package/dist/api/profiles-api/email/create-sending.d.ts +7 -0
- package/dist/api/profiles-api/email/create-sending.js +9 -0
- package/dist/api/profiles-api/email/query-emails.d.ts +7 -0
- package/dist/api/profiles-api/email/query-emails.js +8 -0
- package/dist/api/profiles-api/email/query-letters.d.ts +9 -0
- package/dist/api/profiles-api/email/query-letters.js +9 -0
- package/dist/api/profiles-api/email/update-email.d.ts +10 -0
- package/dist/api/profiles-api/email/update-email.js +12 -0
- package/dist/api/profiles-api/get-one.d.ts +2 -2
- package/dist/api/profiles-api/index.d.ts +14 -0
- package/dist/api/profiles-api/index.js +14 -0
- package/dist/api/profiles-api/messages/create-message.d.ts +9 -0
- package/dist/api/profiles-api/messages/create-message.js +12 -0
- package/dist/api/profiles-api/query.d.ts +2 -2
- package/dist/api/profiles-api/remove.d.ts +2 -2
- package/dist/api/profiles-api/subscription/get-subscription-info.d.ts +6 -0
- package/dist/api/profiles-api/subscription/get-subscription-info.js +8 -0
- package/dist/api/profiles-api/update.d.ts +2 -2
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { AdminProfileRO } from '@escapenavigator/types/dist/profile/admin-profile.ro';
|
|
1
2
|
import { CreateProfileDto } from '@escapenavigator/types/dist/profile/create-profile.dto';
|
|
2
|
-
import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateProfileDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = AdminProfileRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminProfileRO } from '@escapenavigator/types/dist/profile/admin-profile.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID профиля */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = AdminProfileRO;
|
|
6
6
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -10,6 +10,12 @@ import { updateCrossSale } from './cross-sale/update-cross-sale';
|
|
|
10
10
|
import { current } from './current/current';
|
|
11
11
|
import { finalizeCurrent } from './current/finalize-current';
|
|
12
12
|
import { updateCurrent } from './current/update-current';
|
|
13
|
+
import { createProfileEmail } from './email/create-profile-email';
|
|
14
|
+
import { createSending } from './email/create-sending';
|
|
15
|
+
import { queryEmails } from './email/query-emails';
|
|
16
|
+
import { queryLeters } from './email/query-letters';
|
|
17
|
+
import { updateEmail } from './email/update-email';
|
|
18
|
+
import { createMessage } from './messages/create-message';
|
|
13
19
|
import { createOtherCrm } from './other-crm/create-other-crm';
|
|
14
20
|
import { getAllCrm } from './other-crm/get-all-crm';
|
|
15
21
|
import { getProfileFilters } from './other-crm/get-profile-filters';
|
|
@@ -19,6 +25,7 @@ import { createSubscriptionSession } from './subscription/create-subscription-se
|
|
|
19
25
|
import { getPaymentSettings } from './subscription/get-payment-settings';
|
|
20
26
|
import { getPrices } from './subscription/get-prices';
|
|
21
27
|
import { getProfileInvoices } from './subscription/get-profile-invoices';
|
|
28
|
+
import { getSubscriptionInfo } from './subscription/get-subscription-info';
|
|
22
29
|
import { paginateBills } from './subscription/paginate-bills';
|
|
23
30
|
import { create } from './create';
|
|
24
31
|
import { getBySlugForVerify } from './get-by-slug-for-verify';
|
|
@@ -29,6 +36,12 @@ import { remove } from './remove';
|
|
|
29
36
|
import { update } from './update';
|
|
30
37
|
import { updateStep } from './update-step';
|
|
31
38
|
declare type ApiDeclaration = {
|
|
39
|
+
createProfileEmail: typeof createProfileEmail;
|
|
40
|
+
queryEmails: typeof queryEmails;
|
|
41
|
+
updateEmail: typeof updateEmail;
|
|
42
|
+
queryLeters: typeof queryLeters;
|
|
43
|
+
createSending: typeof createSending;
|
|
44
|
+
createMessage: typeof createMessage;
|
|
32
45
|
getProfileFilters: typeof getProfileFilters;
|
|
33
46
|
removeProfileCrm: typeof removeProfileCrm;
|
|
34
47
|
getAllCrm: typeof getAllCrm;
|
|
@@ -42,6 +55,7 @@ declare type ApiDeclaration = {
|
|
|
42
55
|
getProfileAgb: typeof getProfileAgb;
|
|
43
56
|
getProfileAgbForOrderService: typeof getProfileAgbForOrderService;
|
|
44
57
|
updateProfileAgb: typeof updateProfileAgb;
|
|
58
|
+
getSubscriptionInfo: typeof getSubscriptionInfo;
|
|
45
59
|
paginateBills: typeof paginateBills;
|
|
46
60
|
getPrices: typeof getPrices;
|
|
47
61
|
createSubscriptionSession: typeof createSubscriptionSession;
|
|
@@ -13,6 +13,12 @@ var update_cross_sale_1 = require("./cross-sale/update-cross-sale");
|
|
|
13
13
|
var current_1 = require("./current/current");
|
|
14
14
|
var finalize_current_1 = require("./current/finalize-current");
|
|
15
15
|
var update_current_1 = require("./current/update-current");
|
|
16
|
+
var create_profile_email_1 = require("./email/create-profile-email");
|
|
17
|
+
var create_sending_1 = require("./email/create-sending");
|
|
18
|
+
var query_emails_1 = require("./email/query-emails");
|
|
19
|
+
var query_letters_1 = require("./email/query-letters");
|
|
20
|
+
var update_email_1 = require("./email/update-email");
|
|
21
|
+
var create_message_1 = require("./messages/create-message");
|
|
16
22
|
var create_other_crm_1 = require("./other-crm/create-other-crm");
|
|
17
23
|
var get_all_crm_1 = require("./other-crm/get-all-crm");
|
|
18
24
|
var get_profile_filters_1 = require("./other-crm/get-profile-filters");
|
|
@@ -22,6 +28,7 @@ var create_subscription_session_1 = require("./subscription/create-subscription-
|
|
|
22
28
|
var get_payment_settings_1 = require("./subscription/get-payment-settings");
|
|
23
29
|
var get_prices_1 = require("./subscription/get-prices");
|
|
24
30
|
var get_profile_invoices_1 = require("./subscription/get-profile-invoices");
|
|
31
|
+
var get_subscription_info_1 = require("./subscription/get-subscription-info");
|
|
25
32
|
var paginate_bills_1 = require("./subscription/paginate-bills");
|
|
26
33
|
var create_1 = require("./create");
|
|
27
34
|
var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
|
|
@@ -32,6 +39,12 @@ var remove_1 = require("./remove");
|
|
|
32
39
|
var update_1 = require("./update");
|
|
33
40
|
var update_step_1 = require("./update-step");
|
|
34
41
|
exports.profilesApiDeclaration = {
|
|
42
|
+
queryEmails: query_emails_1.queryEmails,
|
|
43
|
+
createSending: create_sending_1.createSending,
|
|
44
|
+
updateEmail: update_email_1.updateEmail,
|
|
45
|
+
queryLeters: query_letters_1.queryLeters,
|
|
46
|
+
createProfileEmail: create_profile_email_1.createProfileEmail,
|
|
47
|
+
createMessage: create_message_1.createMessage,
|
|
35
48
|
getProfileFilters: get_profile_filters_1.getProfileFilters,
|
|
36
49
|
updateStep: update_step_1.updateStep,
|
|
37
50
|
removeProfileCrm: remove_profile_crm_1.removeProfileCrm,
|
|
@@ -43,6 +56,7 @@ exports.profilesApiDeclaration = {
|
|
|
43
56
|
getProfileAgb: get_profile_agb_1.getProfileAgb,
|
|
44
57
|
updateProfileAgb: update_profile_agb_1.updateProfileAgb,
|
|
45
58
|
createSubscriptionSession: create_subscription_session_1.createSubscriptionSession,
|
|
59
|
+
getSubscriptionInfo: get_subscription_info_1.getSubscriptionInfo,
|
|
46
60
|
getPrices: get_prices_1.getPrices,
|
|
47
61
|
updateCurrent: update_current_1.updateCurrent,
|
|
48
62
|
getPaymentSettings: get_payment_settings_1.getPaymentSettings,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AdminProfileRO } from '@escapenavigator/types/dist/profile/admin-profile.ro';
|
|
2
|
+
import { CreateProfileMessageDto } from '@escapenavigator/types/dist/profile/create-profile-message.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateProfileMessageDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = AdminProfileRO;
|
|
8
|
+
export declare const createMessage: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createMessage = void 0;
|
|
4
|
+
var createMessage = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/profile-messages',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createMessage = createMessage;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminProfileRO } from '@escapenavigator/types/dist/profile/admin-profile.ro';
|
|
2
2
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
3
|
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
4
|
import { ApiMethodDeclaration } from '..';
|
|
5
5
|
/** Поиск по названию организации и контактному телефону */
|
|
6
6
|
declare type ParamsData = QueryDto;
|
|
7
|
-
declare type ResponseData = QueryRO<
|
|
7
|
+
declare type ResponseData = QueryRO<AdminProfileRO>;
|
|
8
8
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminProfileRO } from '@escapenavigator/types/dist/profile/admin-profile.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID профиля */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = AdminProfileRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProfileSubscripton } from '@escapenavigator/types/dist/profile/profile-subscription.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = ProfileSubscripton;
|
|
5
|
+
export declare const getSubscriptionInfo: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSubscriptionInfo = void 0;
|
|
4
|
+
var getSubscriptionInfo = function () { return ({
|
|
5
|
+
url: '/subscription/info',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getSubscriptionInfo = getSubscriptionInfo;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { AdminProfileRO } from '@escapenavigator/types/dist/profile/admin-profile.ro';
|
|
1
2
|
import { CreateProfileDto } from '@escapenavigator/types/dist/profile/create-profile.dto';
|
|
2
|
-
import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: CreateProfileDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = AdminProfileRO;
|
|
9
9
|
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.13",
|
|
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": "86b47a2038bd93a941b7fef7cd854090b1d6acda",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.12",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.12",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1",
|