@mitumba/sdk 1.19.0 → 1.20.0

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/index.d.mts CHANGED
@@ -360,17 +360,15 @@ interface VaziFeedResponse {
360
360
  }
361
361
 
362
362
  interface Conversation {
363
- id: string;
364
- sender_id: string;
365
- receiver_id: string;
366
363
  partner_id: string;
367
- partner_name: string | null;
364
+ partner_name: string;
365
+ store_name?: string | null;
368
366
  body: string;
369
- listing_id: string | null;
370
- listing_title: string | null;
371
- store_id: string | null;
372
- read_at: string | null;
373
367
  created_at: string;
368
+ store_id?: string | null;
369
+ listing_id?: string | null;
370
+ listing_title?: string | null;
371
+ unread_count: number;
374
372
  }
375
373
  interface Message {
376
374
  id: string;
@@ -379,6 +377,7 @@ interface Message {
379
377
  body: string;
380
378
  listing_id: string | null;
381
379
  store_id: string | null;
380
+ order_id?: string | null;
382
381
  read_at: string | null;
383
382
  created_at: string;
384
383
  }
@@ -387,6 +386,7 @@ interface SendMessageInput {
387
386
  body: string;
388
387
  listing_id?: string;
389
388
  store_id?: string;
389
+ order_id?: string;
390
390
  }
391
391
 
392
392
  type NotificationType = 'order' | 'message' | 'price_drop' | 'offer' | 'payout' | 'system';
package/dist/index.d.ts CHANGED
@@ -360,17 +360,15 @@ interface VaziFeedResponse {
360
360
  }
361
361
 
362
362
  interface Conversation {
363
- id: string;
364
- sender_id: string;
365
- receiver_id: string;
366
363
  partner_id: string;
367
- partner_name: string | null;
364
+ partner_name: string;
365
+ store_name?: string | null;
368
366
  body: string;
369
- listing_id: string | null;
370
- listing_title: string | null;
371
- store_id: string | null;
372
- read_at: string | null;
373
367
  created_at: string;
368
+ store_id?: string | null;
369
+ listing_id?: string | null;
370
+ listing_title?: string | null;
371
+ unread_count: number;
374
372
  }
375
373
  interface Message {
376
374
  id: string;
@@ -379,6 +377,7 @@ interface Message {
379
377
  body: string;
380
378
  listing_id: string | null;
381
379
  store_id: string | null;
380
+ order_id?: string | null;
382
381
  read_at: string | null;
383
382
  created_at: string;
384
383
  }
@@ -387,6 +386,7 @@ interface SendMessageInput {
387
386
  body: string;
388
387
  listing_id?: string;
389
388
  store_id?: string;
389
+ order_id?: string;
390
390
  }
391
391
 
392
392
  type NotificationType = 'order' | 'message' | 'price_drop' | 'offer' | 'payout' | 'system';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitumba/sdk",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "The official TypeScript SDK for the Mitumba marketplace platform.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",