@escapenavigator/services 1.6.51 → 1.6.52

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,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 {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testEmail = void 0;
4
+ var testEmail = function (data) { return ({
5
+ url: '/profiles/test-email',
6
+ method: 'POST',
7
+ data: data,
8
+ }); };
9
+ exports.testEmail = testEmail;
@@ -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 { createProfileEmail } from './email/create-profile-email';
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
- createProfileEmail: typeof createProfileEmail;
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 create_profile_email_1 = require("./email/create-profile-email");
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
- queryEmails: query_emails_1.queryEmails,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.51",
3
+ "version": "1.6.52",
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": "fe6bb5f2556fb920c2d1ba1a7ac733c0bec24ce7",
15
+ "gitHead": "673a0fa9a87f422ac895b59933717048178c52af",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.48",
18
- "@escapenavigator/utils": "^1.6.49",
17
+ "@escapenavigator/types": "^1.6.49",
18
+ "@escapenavigator/utils": "^1.6.50",
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,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.queryEmails = void 0;
4
- var queryEmails = function () { return ({
5
- url: '/profile-emails',
6
- method: 'GET',
7
- }); };
8
- exports.queryEmails = queryEmails;
@@ -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;