b5-api-client 0.0.20 → 0.0.21

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.
@@ -253,7 +253,7 @@ class P2PMarketplaceAPIClient {
253
253
  }
254
254
  createDispute(request, headers) {
255
255
  return __awaiter(this, void 0, void 0, function* () {
256
- const url = '/api/disputes';
256
+ const url = '/api/dispute';
257
257
  return this.post(url, request, headers);
258
258
  });
259
259
  }
package/dist/types.d.ts CHANGED
@@ -39,6 +39,10 @@ export interface Order {
39
39
  transactionsCount: number;
40
40
  chatId: string;
41
41
  userMetrics?: UserMetrics[];
42
+ buyerCanDispute?: boolean;
43
+ sellerCanDispute?: boolean;
44
+ buyerDisputed?: boolean;
45
+ sellerDisputed?: boolean;
42
46
  }
43
47
  export interface OrderResponse {
44
48
  orders: Order[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "b5-api-client",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "Escrow Backend API client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -229,7 +229,7 @@ class P2PMarketplaceAPIClient {
229
229
  }
230
230
 
231
231
  public async createDispute(request: CreateDisputeRequest, headers?: Record<string, string>): Promise<DisputesResponse> {
232
- const url = '/api/disputes';
232
+ const url = '/api/dispute';
233
233
  return this.post<DisputesResponse>(url, request, headers);
234
234
  }
235
235
 
package/src/types.ts CHANGED
@@ -59,6 +59,10 @@ export interface Order {
59
59
  transactionsCount: number;
60
60
  chatId: string;
61
61
  userMetrics?: UserMetrics[];
62
+ buyerCanDispute?: boolean;
63
+ sellerCanDispute?: boolean;
64
+ buyerDisputed?: boolean;
65
+ sellerDisputed?: boolean;
62
66
  }
63
67
 
64
68
  export interface OrderResponse {