@escapenavigator/services 1.6.24 → 1.6.26

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.
@@ -1,12 +1,14 @@
1
1
  import { create } from './create';
2
2
  import { getProfileEmails } from './get-profile-emails';
3
3
  import { query } from './query';
4
+ import { resend } from './resend';
4
5
  import { resync } from './resync';
5
6
  declare type ApiDeclaration = {
6
7
  resync: typeof resync;
7
8
  getProfileEmails: typeof getProfileEmails;
8
9
  query: typeof query;
9
10
  create: typeof create;
11
+ resend: typeof resend;
10
12
  };
11
13
  export declare const emailsApiDeclaration: ApiDeclaration;
12
14
  export {};
@@ -4,10 +4,12 @@ exports.emailsApiDeclaration = void 0;
4
4
  var create_1 = require("./create");
5
5
  var get_profile_emails_1 = require("./get-profile-emails");
6
6
  var query_1 = require("./query");
7
+ var resend_1 = require("./resend");
7
8
  var resync_1 = require("./resync");
8
9
  exports.emailsApiDeclaration = {
9
10
  resync: resync_1.resync,
10
11
  getProfileEmails: get_profile_emails_1.getProfileEmails,
11
12
  query: query_1.query,
12
13
  create: create_1.create,
14
+ resend: resend_1.resend,
13
15
  };
@@ -0,0 +1,6 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = string;
4
+ declare type ResponseData = SuccessRO;
5
+ export declare const resend: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resend = void 0;
4
+ var resend = function (identificator) { return ({
5
+ url: "/emails/resend/".concat(identificator),
6
+ method: 'GET',
7
+ }); };
8
+ exports.resend = resend;
@@ -1,6 +1,6 @@
1
- import { EmailRO } from '@escapenavigator/types/dist/emails/email.ro';
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = string;
4
- declare type ResponseData = EmailRO[];
4
+ declare type ResponseData = SuccessRO;
5
5
  export declare const resync: ApiMethodDeclaration<ParamsData, ResponseData>;
6
6
  export {};
@@ -0,0 +1,9 @@
1
+ import { CreateProfileContactDto } from '@escapenavigator/types/dist/profile/contacts/create-profile-contact.dto';
2
+ import { ProfileContctRO } from '@escapenavigator/types/dist/profile/contacts/profile-contact.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ data: CreateProfileContactDto;
6
+ };
7
+ declare type ResponseData = ProfileContctRO;
8
+ export declare const createContact: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createContact = void 0;
4
+ var createContact = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/profile-contacts',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.createContact = createContact;
@@ -0,0 +1,6 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = number;
4
+ declare type ResponseData = SuccessRO;
5
+ export declare const removeContact: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeContact = void 0;
4
+ var removeContact = function (id) { return ({
5
+ url: "/profile-contacts/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeContact = removeContact;
@@ -7,6 +7,8 @@ import { getBookeoInfo } from './bookeo/get-bookeo-info';
7
7
  import { getBookeoIntegrationLink } from './bookeo/get-bookeo-integration-link';
8
8
  import { getBookeoOrders } from './bookeo/get-bookeo-orders';
9
9
  import { resyncBookeo } from './bookeo/resync-bookeo';
10
+ import { createContact } from './contacts/create-contact';
11
+ import { removeContact } from './contacts/remove-contact';
10
12
  import { getCrossSales } from './cross-sale/get-cross-sale';
11
13
  import { updateCrossSale } from './cross-sale/update-cross-sale';
12
14
  import { current } from './current/current';
@@ -37,6 +39,8 @@ import { remove } from './remove';
37
39
  import { update } from './update';
38
40
  import { updateStep } from './update-step';
39
41
  declare type ApiDeclaration = {
42
+ createContact: typeof createContact;
43
+ removeContact: typeof removeContact;
40
44
  createProfileEmail: typeof createProfileEmail;
41
45
  queryEmails: typeof queryEmails;
42
46
  updateEmail: typeof updateEmail;
@@ -10,6 +10,8 @@ var get_bookeo_info_1 = require("./bookeo/get-bookeo-info");
10
10
  var get_bookeo_integration_link_1 = require("./bookeo/get-bookeo-integration-link");
11
11
  var get_bookeo_orders_1 = require("./bookeo/get-bookeo-orders");
12
12
  var resync_bookeo_1 = require("./bookeo/resync-bookeo");
13
+ var create_contact_1 = require("./contacts/create-contact");
14
+ var remove_contact_1 = require("./contacts/remove-contact");
13
15
  var get_cross_sale_1 = require("./cross-sale/get-cross-sale");
14
16
  var update_cross_sale_1 = require("./cross-sale/update-cross-sale");
15
17
  var current_1 = require("./current/current");
@@ -40,6 +42,8 @@ var remove_1 = require("./remove");
40
42
  var update_1 = require("./update");
41
43
  var update_step_1 = require("./update-step");
42
44
  exports.profilesApiDeclaration = {
45
+ createContact: create_contact_1.createContact,
46
+ removeContact: remove_contact_1.removeContact,
43
47
  queryActions: query_actions_1.queryActions,
44
48
  queryEmails: query_emails_1.queryEmails,
45
49
  createSending: create_sending_1.createSending,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.24",
3
+ "version": "1.6.26",
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": "6d0aaab184da832fce61f4f4f2d7e9c50d0dd4c1",
15
+ "gitHead": "b60459411aa66f0cd9d2e5bba0dd1a43af7ae298",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.22",
18
- "@escapenavigator/utils": "^1.6.22",
17
+ "@escapenavigator/types": "^1.6.24",
18
+ "@escapenavigator/utils": "^1.6.24",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",