@mivis/petmart-api 1.2.170 → 1.2.172

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +31 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.170",
3
+ "version": "1.2.172",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -632,6 +632,8 @@ declare namespace Components {
632
632
  telegram_message_id: number | null;
633
633
  api_token: string | null;
634
634
  slug: string;
635
+ telegram_chat_id: number | null;
636
+ telegram_api_token: string;
635
637
  number: number;
636
638
  createdAt: Date;
637
639
  updatedAt: Date;
@@ -920,7 +922,7 @@ declare namespace Components {
920
922
  limit: number;
921
923
  }
922
924
 
923
- export type IPopulatedOrderShop = Pick<IShop, '_id' | 'name' | 'address'>;
925
+ export type IPopulatedOrderShop = IShop;
924
926
 
925
927
  export interface IPopulatedOrderItemApp
926
928
  extends Omit<IOrderItem, 'product_id'> {
@@ -1518,5 +1520,33 @@ declare namespace Components {
1518
1520
  seller_id: string;
1519
1521
  product_ids: string[];
1520
1522
  }
1523
+
1524
+ export interface IVersion {
1525
+ version: string;
1526
+ isForceToUpdate: boolean;
1527
+ }
1528
+
1529
+ export interface IAppVersion {
1530
+ ios: IVersion;
1531
+ android: IVersion;
1532
+ }
1533
+
1534
+ export interface NotificationData {
1535
+ body: string;
1536
+ data?: ExpoPushMessageData;
1537
+ title: string;
1538
+ }
1539
+
1540
+ export interface INotification {
1541
+ _id: string;
1542
+ user_id: string;
1543
+ message: NotificationData;
1544
+ status: ENotificationStatus;
1545
+ }
1546
+
1547
+ export enum ENotificationStatus {
1548
+ READ = 'READ',
1549
+ UNREAD = 'UNREAD',
1550
+ }
1521
1551
  }
1522
1552
  }