b5-api-client 0.0.34 → 0.0.35
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.
|
@@ -20,7 +20,7 @@ declare class P2PMarketplaceAPIClient {
|
|
|
20
20
|
getOrderById(id: string, headers?: Record<string, string>): Promise<OrderResponse>;
|
|
21
21
|
createOrder(order: CreateOrderRequest, headers?: Record<string, string>): Promise<OrderResponse>;
|
|
22
22
|
takeOrder(order: TakeOrderRequest, headers?: Record<string, string>): Promise<OrderResponse>;
|
|
23
|
-
updateOrder(updateRequest: UpdateOrderRequest, headers?: Record<string, string>): Promise<
|
|
23
|
+
updateOrder(updateRequest: UpdateOrderRequest, headers?: Record<string, string>): Promise<OrderResponse>;
|
|
24
24
|
createUser(user: CreateUserRequest, headers?: Record<string, string>): Promise<UsersResponse>;
|
|
25
25
|
getUser(userId: string, headers?: Record<string, string>): Promise<UsersResponse>;
|
|
26
26
|
rateUser(rateUserRequest: RateUserRequest, headers?: Record<string, string>): Promise<any>;
|
package/package.json
CHANGED
|
@@ -190,9 +190,9 @@ class P2PMarketplaceAPIClient {
|
|
|
190
190
|
return this.post<OrderResponse>(url, order, headers);
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
public async updateOrder(updateRequest: UpdateOrderRequest, headers?: Record<string, string>): Promise<
|
|
193
|
+
public async updateOrder(updateRequest: UpdateOrderRequest, headers?: Record<string, string>): Promise<OrderResponse> {
|
|
194
194
|
const url = '/api/orders/update';
|
|
195
|
-
return this.post<
|
|
195
|
+
return this.post<OrderResponse>(url, updateRequest, headers);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
public async createUser(user: CreateUserRequest, headers?: Record<string, string>): Promise<UsersResponse> {
|