@mivis/petmart-api 1.2.205 → 1.2.207
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/package.json +1 -1
- package/type.d.ts +18 -8
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -1362,14 +1362,10 @@ declare namespace Components {
|
|
|
1362
1362
|
comment: string;
|
|
1363
1363
|
}
|
|
1364
1364
|
|
|
1365
|
-
export interface ExpoPushMessageData {
|
|
1366
|
-
type: ENotificationType;
|
|
1367
|
-
typeId: string;
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
1365
|
export enum ENotificationType {
|
|
1371
1366
|
ORDER = 'ORDER',
|
|
1372
1367
|
PRODUCT = 'PRODUCT',
|
|
1368
|
+
COLLECTION = 'COLLECTION',
|
|
1373
1369
|
}
|
|
1374
1370
|
|
|
1375
1371
|
export interface IAdminChangeSellerStatusRequest {
|
|
@@ -1599,7 +1595,7 @@ declare namespace Components {
|
|
|
1599
1595
|
|
|
1600
1596
|
export interface NotificationData {
|
|
1601
1597
|
body: string;
|
|
1602
|
-
data?:
|
|
1598
|
+
data?: InternalPushMessageData | ExternalPushMessageData;
|
|
1603
1599
|
title: string;
|
|
1604
1600
|
}
|
|
1605
1601
|
|
|
@@ -1689,6 +1685,7 @@ declare namespace Components {
|
|
|
1689
1685
|
genealogy?: string;
|
|
1690
1686
|
birthplace?: string;
|
|
1691
1687
|
documents?: File | File[];
|
|
1688
|
+
documentsNames?: string[];
|
|
1692
1689
|
competition_history?: ICompetitionHistory[];
|
|
1693
1690
|
communication: ICommunication;
|
|
1694
1691
|
}
|
|
@@ -1696,7 +1693,7 @@ declare namespace Components {
|
|
|
1696
1693
|
export interface IUpdateHorse extends Partial<ICreateHorse> {
|
|
1697
1694
|
toRemoveImages?: string[];
|
|
1698
1695
|
toRemoveVideoCover?: string;
|
|
1699
|
-
toRemoveDocuments?: string[];
|
|
1696
|
+
toRemoveDocuments?: string[]; // Array of documents.fileName
|
|
1700
1697
|
}
|
|
1701
1698
|
|
|
1702
1699
|
export enum EHorseStatus {
|
|
@@ -1724,7 +1721,7 @@ declare namespace Components {
|
|
|
1724
1721
|
reg_number: string | null;
|
|
1725
1722
|
genealogy: string | null;
|
|
1726
1723
|
birthplace: string | null;
|
|
1727
|
-
documents:
|
|
1724
|
+
documents: IDocument[];
|
|
1728
1725
|
competition_history: ICompetitionHistory[] | null;
|
|
1729
1726
|
communication: ICommunication;
|
|
1730
1727
|
telegram_message_id: string | null;
|
|
@@ -1734,6 +1731,11 @@ declare namespace Components {
|
|
|
1734
1731
|
updatedAt: Date;
|
|
1735
1732
|
}
|
|
1736
1733
|
|
|
1734
|
+
export interface IDocument {
|
|
1735
|
+
name: string;
|
|
1736
|
+
fileName: string;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1737
1739
|
export interface IPopulatedHorse
|
|
1738
1740
|
extends Omit<IHorse, 'user_id' | 'breed' | 'suit' | 'category'> {
|
|
1739
1741
|
user_id: IPopulatedOrderUserApp;
|
|
@@ -1820,5 +1822,13 @@ declare namespace Components {
|
|
|
1820
1822
|
export interface IActionsHorseRequest {
|
|
1821
1823
|
toDelete: string;
|
|
1822
1824
|
}
|
|
1825
|
+
export interface InternalPushMessageData {
|
|
1826
|
+
type: ENotificationType;
|
|
1827
|
+
typeId: string;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
export interface ExternalPushMessageData {
|
|
1831
|
+
url: string;
|
|
1832
|
+
}
|
|
1823
1833
|
}
|
|
1824
1834
|
}
|