@escapenavigator/services 1.6.4 → 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.
|
@@ -28,6 +28,7 @@ import { getOne } from './get-one';
|
|
|
28
28
|
import { query } from './query';
|
|
29
29
|
import { remove } from './remove';
|
|
30
30
|
import { update } from './update';
|
|
31
|
+
import { updateStep } from './update-step';
|
|
31
32
|
declare type ApiDeclaration = {
|
|
32
33
|
removeProfileCrm: typeof removeProfileCrm;
|
|
33
34
|
getAllCrm: typeof getAllCrm;
|
|
@@ -47,6 +48,7 @@ declare type ApiDeclaration = {
|
|
|
47
48
|
getPaymentSettings: typeof getPaymentSettings;
|
|
48
49
|
createPaymentMethodSession: typeof createPaymentMethodSession;
|
|
49
50
|
getProfileInvoices: typeof getProfileInvoices;
|
|
51
|
+
updateStep: typeof updateStep;
|
|
50
52
|
initialCustomization: typeof initialCustomization;
|
|
51
53
|
finalizeCurrent: typeof finalizeCurrent;
|
|
52
54
|
updateCurrent: typeof updateCurrent;
|
|
@@ -31,7 +31,9 @@ var get_one_1 = require("./get-one");
|
|
|
31
31
|
var query_1 = require("./query");
|
|
32
32
|
var remove_1 = require("./remove");
|
|
33
33
|
var update_1 = require("./update");
|
|
34
|
+
var update_step_1 = require("./update-step");
|
|
34
35
|
exports.profilesApiDeclaration = {
|
|
36
|
+
updateStep: update_step_1.updateStep,
|
|
35
37
|
removeProfileCrm: remove_profile_crm_1.removeProfileCrm,
|
|
36
38
|
getAllCrm: get_all_crm_1.getAllCrm,
|
|
37
39
|
createOtherCrm: create_other_crm_1.createOtherCrm,
|
|
@@ -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",
|