@escapenavigator/services 1.10.40 → 1.10.41

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,5 +1,5 @@
1
1
  import { CreateProfileActionRO } from '@escapenavigator/types/dist/profile/action/create-profile-action.dto';
2
- import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.dto';
2
+ import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.ro';
3
3
  import { ApiMethodDeclaration } from '../..';
4
4
  type ParamsData = {
5
5
  data: CreateProfileActionRO;
@@ -0,0 +1,8 @@
1
+ import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ type ParamsData = {
4
+ id: number;
5
+ };
6
+ type ResponseData = ProfileActionRO;
7
+ export declare const deleteAction: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteAction = void 0;
4
+ var deleteAction = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/profile-actions/".concat(id),
8
+ method: 'DELETE',
9
+ });
10
+ };
11
+ exports.deleteAction = deleteAction;
@@ -1,4 +1,4 @@
1
- import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.dto';
1
+ import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.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 '../..';
@@ -1,9 +1,7 @@
1
- import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.dto';
2
- import { UpdateProfileActionRO } from '@escapenavigator/types/dist/profile/action/update-profile-action.dto';
1
+ import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.ro';
3
2
  import { ApiMethodDeclaration } from '../..';
4
3
  type ParamsData = {
5
4
  id: number;
6
- data: UpdateProfileActionRO;
7
5
  };
8
6
  type ResponseData = ProfileActionRO;
9
7
  export declare const updateAction: ApiMethodDeclaration<ParamsData, ResponseData>;
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateAction = void 0;
4
4
  var updateAction = function (_a) {
5
- var id = _a.id, data = _a.data;
5
+ var id = _a.id;
6
6
  return ({
7
- url: "/profile-actions/".concat(id),
7
+ url: "/profile-actions/done/".concat(id),
8
8
  method: 'PATCH',
9
- data: data,
10
9
  });
11
10
  };
12
11
  exports.updateAction = updateAction;
@@ -1,4 +1,5 @@
1
1
  import { createAction } from './actions/create-action';
2
+ import { deleteAction } from './actions/delete-action';
2
3
  import { queryActions } from './actions/query-actions';
3
4
  import { updateAction } from './actions/update-action';
4
5
  import { createActivity } from './activity/create';
@@ -69,6 +70,7 @@ import { updateCrmVerification } from './update-crm-verification';
69
70
  import { updatePartnerProgram } from './update-partner-program';
70
71
  import { updateStep } from './update-step';
71
72
  type ApiDeclaration = {
73
+ deleteAction: typeof deleteAction;
72
74
  queryCalls: typeof queryCalls;
73
75
  adjustBalance: typeof adjustBalance;
74
76
  queryBalanceItems: typeof queryBalanceItems;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.profilesApiDeclaration = void 0;
4
4
  var create_action_1 = require("./actions/create-action");
5
+ var delete_action_1 = require("./actions/delete-action");
5
6
  var query_actions_1 = require("./actions/query-actions");
6
7
  var update_action_1 = require("./actions/update-action");
7
8
  var create_1 = require("./activity/create");
@@ -73,6 +74,7 @@ var update_partner_program_1 = require("./update-partner-program");
73
74
  var update_step_1 = require("./update-step");
74
75
  exports.profilesApiDeclaration = {
75
76
  updateNotificationChanel: update_1.updateNotificationChanel,
77
+ deleteAction: delete_action_1.deleteAction,
76
78
  queryCalls: query_1.queryCalls,
77
79
  createNotificationChanel: create_2.createNotificationChanel,
78
80
  removeNotificationChanel: remove_1.removeNotificationChanel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.10.40",
3
+ "version": "1.10.41",
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": "cbe185b5195f29cb156e5d6b6b9c4623fb78431a",
15
+ "gitHead": "bc0479991406fe83b190ad92f55db32be530a033",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.10.35",
18
- "@escapenavigator/utils": "^1.10.39",
17
+ "@escapenavigator/types": "^1.10.36",
18
+ "@escapenavigator/utils": "^1.10.40",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",