shopoflex-types 1.0.24 → 1.0.25
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/types/common.d.ts +8 -4
- package/package.json +3 -2
package/dist/types/common.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export interface AddonType {
|
|
|
118
118
|
price: number;
|
|
119
119
|
enableQuantity?: boolean;
|
|
120
120
|
stockHandle: StockHandle;
|
|
121
|
+
files?: FileType[];
|
|
121
122
|
}
|
|
122
123
|
export interface Modifier {
|
|
123
124
|
name?: {
|
|
@@ -131,6 +132,7 @@ export interface Modifier {
|
|
|
131
132
|
active?: boolean;
|
|
132
133
|
options?: AddonType[] | string[];
|
|
133
134
|
addons?: AddonType[] | string[];
|
|
135
|
+
files?: FileType[];
|
|
134
136
|
}
|
|
135
137
|
export interface Category {
|
|
136
138
|
_id: string;
|
|
@@ -148,6 +150,7 @@ export interface Category {
|
|
|
148
150
|
isActive: boolean;
|
|
149
151
|
vendorId: string | any;
|
|
150
152
|
createdAt: Date;
|
|
153
|
+
files?: FileType[];
|
|
151
154
|
}
|
|
152
155
|
export interface ProductType {
|
|
153
156
|
_id: string;
|
|
@@ -205,7 +208,7 @@ export interface CartItem {
|
|
|
205
208
|
overallTotal?: number;
|
|
206
209
|
};
|
|
207
210
|
finalPrice?: number;
|
|
208
|
-
|
|
211
|
+
files?: FileType[];
|
|
209
212
|
}
|
|
210
213
|
export interface Cart {
|
|
211
214
|
_id?: string;
|
|
@@ -289,6 +292,7 @@ export interface Customer {
|
|
|
289
292
|
addresses?: Address[];
|
|
290
293
|
vendors?: string[];
|
|
291
294
|
isAnonymos?: boolean;
|
|
295
|
+
files?: FileType[];
|
|
292
296
|
}
|
|
293
297
|
export interface VendorAssociation {
|
|
294
298
|
vendorId: string;
|
|
@@ -308,6 +312,7 @@ export interface IUser {
|
|
|
308
312
|
createdAt?: Date;
|
|
309
313
|
updatedAt?: Date;
|
|
310
314
|
fcmTokens?: string[];
|
|
315
|
+
files?: FileType[];
|
|
311
316
|
}
|
|
312
317
|
export interface CurrentUserType extends IUser {
|
|
313
318
|
vendors?: {
|
|
@@ -316,9 +321,7 @@ export interface CurrentUserType extends IUser {
|
|
|
316
321
|
en: string;
|
|
317
322
|
ar: string;
|
|
318
323
|
};
|
|
319
|
-
logo
|
|
320
|
-
previewUrl: string;
|
|
321
|
-
};
|
|
324
|
+
logo?: FileType[];
|
|
322
325
|
description: {
|
|
323
326
|
en: string;
|
|
324
327
|
ar: string;
|
|
@@ -524,4 +527,5 @@ export interface IBranch {
|
|
|
524
527
|
dineInSettings?: IDineInSettings;
|
|
525
528
|
createdAt?: Date;
|
|
526
529
|
updatedAt?: Date;
|
|
530
|
+
files?: FileType[];
|
|
527
531
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shopoflex-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "Shared TypeScript types for Shopoflex applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"watch": "tsc --watch",
|
|
13
|
-
"prepublishOnly": "npm run build"
|
|
13
|
+
"prepublishOnly": "npm run build",
|
|
14
|
+
"deploy": "npm run build && npm publish"
|
|
14
15
|
},
|
|
15
16
|
"publishConfig": {
|
|
16
17
|
"access": "public"
|