@escapenavigator/services 1.6.4 → 1.6.6

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.
@@ -15,6 +15,7 @@ import { initialCustomization } from './customization/initial-customization';
15
15
  import { updateCustomization } from './customization/update-customization';
16
16
  import { createOtherCrm } from './other-crm/create-other-crm';
17
17
  import { getAllCrm } from './other-crm/get-all-crm';
18
+ import { getProfileFilters } from './other-crm/get-profile-filters';
18
19
  import { removeProfileCrm } from './other-crm/remove-profile-crm';
19
20
  import { createPaymentMethodSession } from './subscription/create-payment-method-session';
20
21
  import { createSubscriptionSession } from './subscription/create-subscription-session';
@@ -28,7 +29,9 @@ import { getOne } from './get-one';
28
29
  import { query } from './query';
29
30
  import { remove } from './remove';
30
31
  import { update } from './update';
32
+ import { updateStep } from './update-step';
31
33
  declare type ApiDeclaration = {
34
+ getProfileFilters: typeof getProfileFilters;
32
35
  removeProfileCrm: typeof removeProfileCrm;
33
36
  getAllCrm: typeof getAllCrm;
34
37
  createOtherCrm: typeof createOtherCrm;
@@ -47,6 +50,7 @@ declare type ApiDeclaration = {
47
50
  getPaymentSettings: typeof getPaymentSettings;
48
51
  createPaymentMethodSession: typeof createPaymentMethodSession;
49
52
  getProfileInvoices: typeof getProfileInvoices;
53
+ updateStep: typeof updateStep;
50
54
  initialCustomization: typeof initialCustomization;
51
55
  finalizeCurrent: typeof finalizeCurrent;
52
56
  updateCurrent: typeof updateCurrent;
@@ -18,6 +18,7 @@ var initial_customization_1 = require("./customization/initial-customization");
18
18
  var update_customization_1 = require("./customization/update-customization");
19
19
  var create_other_crm_1 = require("./other-crm/create-other-crm");
20
20
  var get_all_crm_1 = require("./other-crm/get-all-crm");
21
+ var get_profile_filters_1 = require("./other-crm/get-profile-filters");
21
22
  var remove_profile_crm_1 = require("./other-crm/remove-profile-crm");
22
23
  var create_payment_method_session_1 = require("./subscription/create-payment-method-session");
23
24
  var create_subscription_session_1 = require("./subscription/create-subscription-session");
@@ -31,7 +32,10 @@ var get_one_1 = require("./get-one");
31
32
  var query_1 = require("./query");
32
33
  var remove_1 = require("./remove");
33
34
  var update_1 = require("./update");
35
+ var update_step_1 = require("./update-step");
34
36
  exports.profilesApiDeclaration = {
37
+ getProfileFilters: get_profile_filters_1.getProfileFilters,
38
+ updateStep: update_step_1.updateStep,
35
39
  removeProfileCrm: remove_profile_crm_1.removeProfileCrm,
36
40
  getAllCrm: get_all_crm_1.getAllCrm,
37
41
  createOtherCrm: create_other_crm_1.createOtherCrm,
@@ -0,0 +1,8 @@
1
+ import { ApiMethodDeclaration } from '../..';
2
+ declare type ParamsData = undefined;
3
+ declare type ResponseData = {
4
+ steps: Record<string, number>;
5
+ crm: Record<string, number>;
6
+ };
7
+ export declare const getProfileFilters: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProfileFilters = void 0;
4
+ var getProfileFilters = function () { return ({
5
+ url: '/profiles-crm/filters',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getProfileFilters = getProfileFilters;
@@ -0,0 +1,10 @@
1
+ import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
+ import { UpdateProfileStepDto } from '@escapenavigator/types/dist/profile/update-profile-step.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: UpdateProfileStepDto;
7
+ };
8
+ declare type ResponseData = ProfileRO;
9
+ export declare const updateStep: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateStep = void 0;
4
+ var updateStep = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/profiles/step/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateStep = updateStep;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
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": "b8a31f8ddd51456d6fc6eb9d5a59a86fd930c212",
15
+ "gitHead": "b616de37ec3081375474d0594658b870727720bd",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.4",
18
- "@escapenavigator/utils": "^1.6.4",
17
+ "@escapenavigator/types": "^1.6.5",
18
+ "@escapenavigator/utils": "^1.6.5",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",