@edraj/tsdmart 2.7.0 → 2.7.1
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/dmart.service.ts +16 -16
- package/package.json +1 -1
package/dmart.service.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {AxiosInstance} from "axios";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
ActionRequest, ActionRequestRecord,
|
|
4
|
+
ActionResponse,
|
|
5
|
+
ApiQueryResponse,
|
|
6
|
+
ApiResponse,
|
|
7
|
+
ContentType,
|
|
8
|
+
headers,
|
|
9
|
+
LoginResponse,
|
|
10
|
+
ProfileResponse,
|
|
11
|
+
QueryRequest,
|
|
12
|
+
QueryType,
|
|
13
|
+
ResourceType,
|
|
14
|
+
ResponseEntry,
|
|
15
|
+
SortyType,
|
|
16
|
+
Status,
|
|
17
17
|
} from "./dmart.model";
|
|
18
18
|
|
|
19
19
|
|
|
@@ -100,7 +100,7 @@ export class Dmart {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
public static async create_user(request:
|
|
103
|
+
public static async create_user(request: ActionRequestRecord) {
|
|
104
104
|
try {
|
|
105
105
|
const { data } = await Dmart.axiosDmartInstance.post<ActionResponse>(
|
|
106
106
|
`user/create`,
|
|
@@ -113,7 +113,7 @@ export class Dmart {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
public static async update_user(request:
|
|
116
|
+
public static async update_user(request: ActionRequestRecord) {
|
|
117
117
|
try {
|
|
118
118
|
const { data } = await Dmart.axiosDmartInstance.post<ActionResponse>(
|
|
119
119
|
`user/profile`,
|