@escapenavigator/services 1.6.3 → 1.6.5
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.
- package/dist/api/profiles-api/index.d.ts +8 -0
- package/dist/api/profiles-api/index.js +8 -0
- package/dist/api/profiles-api/other-crm/create-other-crm.d.ts +10 -0
- package/dist/api/profiles-api/other-crm/create-other-crm.js +12 -0
- package/dist/api/profiles-api/other-crm/get-all-crm.d.ts +6 -0
- package/dist/api/profiles-api/other-crm/get-all-crm.js +8 -0
- package/dist/api/profiles-api/other-crm/remove-profile-crm.d.ts +6 -0
- package/dist/api/profiles-api/other-crm/remove-profile-crm.js +8 -0
- package/dist/api/profiles-api/update-step.d.ts +10 -0
- package/dist/api/profiles-api/update-step.js +12 -0
- package/package.json +4 -4
|
@@ -13,6 +13,9 @@ import { updateCurrent } from './current/update-current';
|
|
|
13
13
|
import { getCustomization } from './customization/get-customization';
|
|
14
14
|
import { initialCustomization } from './customization/initial-customization';
|
|
15
15
|
import { updateCustomization } from './customization/update-customization';
|
|
16
|
+
import { createOtherCrm } from './other-crm/create-other-crm';
|
|
17
|
+
import { getAllCrm } from './other-crm/get-all-crm';
|
|
18
|
+
import { removeProfileCrm } from './other-crm/remove-profile-crm';
|
|
16
19
|
import { createPaymentMethodSession } from './subscription/create-payment-method-session';
|
|
17
20
|
import { createSubscriptionSession } from './subscription/create-subscription-session';
|
|
18
21
|
import { getPaymentSettings } from './subscription/get-payment-settings';
|
|
@@ -25,7 +28,11 @@ import { getOne } from './get-one';
|
|
|
25
28
|
import { query } from './query';
|
|
26
29
|
import { remove } from './remove';
|
|
27
30
|
import { update } from './update';
|
|
31
|
+
import { updateStep } from './update-step';
|
|
28
32
|
declare type ApiDeclaration = {
|
|
33
|
+
removeProfileCrm: typeof removeProfileCrm;
|
|
34
|
+
getAllCrm: typeof getAllCrm;
|
|
35
|
+
createOtherCrm: typeof createOtherCrm;
|
|
29
36
|
resyncBookeo: typeof resyncBookeo;
|
|
30
37
|
getBookeoInfo: typeof getBookeoInfo;
|
|
31
38
|
getBookeoIntegrationLink: typeof getBookeoIntegrationLink;
|
|
@@ -41,6 +48,7 @@ declare type ApiDeclaration = {
|
|
|
41
48
|
getPaymentSettings: typeof getPaymentSettings;
|
|
42
49
|
createPaymentMethodSession: typeof createPaymentMethodSession;
|
|
43
50
|
getProfileInvoices: typeof getProfileInvoices;
|
|
51
|
+
updateStep: typeof updateStep;
|
|
44
52
|
initialCustomization: typeof initialCustomization;
|
|
45
53
|
finalizeCurrent: typeof finalizeCurrent;
|
|
46
54
|
updateCurrent: typeof updateCurrent;
|
|
@@ -16,6 +16,9 @@ var update_current_1 = require("./current/update-current");
|
|
|
16
16
|
var get_customization_1 = require("./customization/get-customization");
|
|
17
17
|
var initial_customization_1 = require("./customization/initial-customization");
|
|
18
18
|
var update_customization_1 = require("./customization/update-customization");
|
|
19
|
+
var create_other_crm_1 = require("./other-crm/create-other-crm");
|
|
20
|
+
var get_all_crm_1 = require("./other-crm/get-all-crm");
|
|
21
|
+
var remove_profile_crm_1 = require("./other-crm/remove-profile-crm");
|
|
19
22
|
var create_payment_method_session_1 = require("./subscription/create-payment-method-session");
|
|
20
23
|
var create_subscription_session_1 = require("./subscription/create-subscription-session");
|
|
21
24
|
var get_payment_settings_1 = require("./subscription/get-payment-settings");
|
|
@@ -28,7 +31,12 @@ var get_one_1 = require("./get-one");
|
|
|
28
31
|
var query_1 = require("./query");
|
|
29
32
|
var remove_1 = require("./remove");
|
|
30
33
|
var update_1 = require("./update");
|
|
34
|
+
var update_step_1 = require("./update-step");
|
|
31
35
|
exports.profilesApiDeclaration = {
|
|
36
|
+
updateStep: update_step_1.updateStep,
|
|
37
|
+
removeProfileCrm: remove_profile_crm_1.removeProfileCrm,
|
|
38
|
+
getAllCrm: get_all_crm_1.getAllCrm,
|
|
39
|
+
createOtherCrm: create_other_crm_1.createOtherCrm,
|
|
32
40
|
getProfileAgbForOrderService: get_profile_agb_for_order_service_1.getProfileAgbForOrderService,
|
|
33
41
|
getCrossSales: get_cross_sale_1.getCrossSales,
|
|
34
42
|
updateCrossSale: update_cross_sale_1.updateCrossSale,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProfileCrmRO } from '@escapenavigator/types/dist/profile/profile-crm/profile-crm.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
data: {
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = ProfileCrmRO;
|
|
9
|
+
export declare const createOtherCrm: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOtherCrm = void 0;
|
|
4
|
+
var createOtherCrm = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/profiles-crm',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createOtherCrm = createOtherCrm;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProfileCrmRO } from '@escapenavigator/types/dist/profile/profile-crm/profile-crm.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = ProfileCrmRO[];
|
|
5
|
+
export declare const getAllCrm: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProfileCrmRO } from '@escapenavigator/types/dist/profile/profile-crm/profile-crm.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = number;
|
|
4
|
+
declare type ResponseData = ProfileCrmRO;
|
|
5
|
+
export declare const removeProfileCrm: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeProfileCrm = void 0;
|
|
4
|
+
var removeProfileCrm = function (id) { return ({
|
|
5
|
+
url: "/profiles-crm/".concat(id),
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
}); };
|
|
8
|
+
exports.removeProfileCrm = removeProfileCrm;
|
|
@@ -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.
|
|
3
|
+
"version": "1.6.5",
|
|
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": "
|
|
15
|
+
"gitHead": "75d59d21976ed812bdb4ae5e6953d13e1647057c",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
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",
|