@escapenavigator/services 1.7.20 → 1.7.22

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,6 +1,7 @@
1
1
  import { create } from './create';
2
2
  import { getProfileEmails } from './get-profile-emails';
3
3
  import { query } from './query';
4
+ import { remove } from './remove';
4
5
  import { resend } from './resend';
5
6
  import { resync } from './resync';
6
7
  declare type ApiDeclaration = {
@@ -8,6 +9,7 @@ declare type ApiDeclaration = {
8
9
  getProfileEmails: typeof getProfileEmails;
9
10
  query: typeof query;
10
11
  create: typeof create;
12
+ remove: typeof remove;
11
13
  resend: typeof resend;
12
14
  };
13
15
  export declare const emailsApiDeclaration: ApiDeclaration;
@@ -4,6 +4,7 @@ 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 remove_1 = require("./remove");
7
8
  var resend_1 = require("./resend");
8
9
  var resync_1 = require("./resync");
9
10
  exports.emailsApiDeclaration = {
@@ -12,4 +13,5 @@ exports.emailsApiDeclaration = {
12
13
  query: query_1.query,
13
14
  create: create_1.create,
14
15
  resend: resend_1.resend,
16
+ remove: remove_1.remove,
15
17
  };
@@ -0,0 +1,8 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = {
4
+ identificator: string;
5
+ };
6
+ declare type ResponseData = SuccessRO;
7
+ export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.remove = void 0;
4
+ var remove = function (_a) {
5
+ var identificator = _a.identificator;
6
+ return ({
7
+ url: "/emails/".concat(identificator),
8
+ method: 'DELETE',
9
+ });
10
+ };
11
+ exports.remove = remove;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.7.20",
3
+ "version": "1.7.22",
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": "46d15c310b9e8d5d05c88e633cd93caa7e2819b7",
15
+ "gitHead": "646a143369fd058d0de637790debcbcd913eaeca",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.7.20",
18
- "@escapenavigator/utils": "^1.7.20",
17
+ "@escapenavigator/types": "^1.7.21",
18
+ "@escapenavigator/utils": "^1.7.21",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",