asv-hlps-market 1.0.43 → 1.0.46
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/lib/cjs/products/models/Product.d.ts +1 -0
- package/lib/cjs/sales/models/Sale.d.ts +4 -0
- package/lib/cjs/sales/models/SaleProduct.d.ts +2 -0
- package/lib/cjs/shops/models/Shop.d.ts +4 -1
- package/lib/cjs/transports/TripStatus.d.ts +1 -0
- package/lib/cjs/transports/TripStatus.js +2 -0
- package/lib/cjs/users/models/User.d.ts +4 -1
- package/lib/cjs/vehicles/models/Vehicle.d.ts +1 -0
- package/lib/esm/products/models/Product.d.ts +1 -0
- package/lib/esm/sales/models/Sale.d.ts +4 -0
- package/lib/esm/sales/models/SaleProduct.d.ts +2 -0
- package/lib/esm/shops/models/Shop.d.ts +4 -1
- package/lib/esm/transports/TripStatus.d.ts +1 -0
- package/lib/esm/transports/TripStatus.js +1 -0
- package/lib/esm/users/models/User.d.ts +4 -1
- package/lib/esm/vehicles/models/Vehicle.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Shop from "asv-hlps/lib/cjs/markets/shops/models/Shop";
|
|
1
2
|
import BaseSale from "asv-hlps/lib/cjs/sales/models/Sale";
|
|
2
3
|
export default interface Sale extends BaseSale {
|
|
3
4
|
isPaid: boolean;
|
|
@@ -6,4 +7,7 @@ export default interface Sale extends BaseSale {
|
|
|
6
7
|
totalAmount: number;
|
|
7
8
|
specialPrice?: number;
|
|
8
9
|
fromMobile?: boolean;
|
|
10
|
+
shop?: Shop;
|
|
11
|
+
shops?: Shop[];
|
|
12
|
+
mbrId?: number;
|
|
9
13
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Currency from "asv-hlps/lib/cjs/cashs/models/Currency";
|
|
1
2
|
import Estate from "../../estates/models/Estate";
|
|
2
3
|
import UMarket from "../../markets/models/UMarket";
|
|
3
4
|
import Product from "../../products/models/Product";
|
|
@@ -14,6 +15,8 @@ export interface Shop {
|
|
|
14
15
|
umarket: UMarket;
|
|
15
16
|
estates: Estate[];
|
|
16
17
|
vehicles: Vehicle[];
|
|
18
|
+
countryCode: string;
|
|
19
|
+
currency: Currency;
|
|
17
20
|
enabledPos: boolean;
|
|
18
|
-
|
|
21
|
+
isCertificated: boolean;
|
|
19
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TripStatus = "all" | "archived" | "active" | "notActive";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import UserBase from "asv-hlps/lib/cjs/users/models/UserBase";
|
|
2
2
|
import UMarket from "../../markets/models/UMarket";
|
|
3
|
+
import { WalletCredit } from "../../wallets/models/WalletCredit";
|
|
3
4
|
export default interface User extends UserBase {
|
|
4
5
|
umarkets?: UMarket[];
|
|
5
|
-
wallets?:
|
|
6
|
+
wallets?: WalletCredit[];
|
|
6
7
|
phone?: string;
|
|
8
|
+
parentId?: number;
|
|
9
|
+
walletCredit?: number;
|
|
7
10
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Shop from "asv-hlps/lib/cjs/markets/shops/models/Shop";
|
|
1
2
|
import BaseSale from "asv-hlps/lib/cjs/sales/models/Sale";
|
|
2
3
|
export default interface Sale extends BaseSale {
|
|
3
4
|
isPaid: boolean;
|
|
@@ -6,4 +7,7 @@ export default interface Sale extends BaseSale {
|
|
|
6
7
|
totalAmount: number;
|
|
7
8
|
specialPrice?: number;
|
|
8
9
|
fromMobile?: boolean;
|
|
10
|
+
shop?: Shop;
|
|
11
|
+
shops?: Shop[];
|
|
12
|
+
mbrId?: number;
|
|
9
13
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Currency from "asv-hlps/lib/cjs/cashs/models/Currency";
|
|
1
2
|
import Estate from "../../estates/models/Estate";
|
|
2
3
|
import UMarket from "../../markets/models/UMarket";
|
|
3
4
|
import Product from "../../products/models/Product";
|
|
@@ -14,6 +15,8 @@ export interface Shop {
|
|
|
14
15
|
umarket: UMarket;
|
|
15
16
|
estates: Estate[];
|
|
16
17
|
vehicles: Vehicle[];
|
|
18
|
+
countryCode: string;
|
|
19
|
+
currency: Currency;
|
|
17
20
|
enabledPos: boolean;
|
|
18
|
-
|
|
21
|
+
isCertificated: boolean;
|
|
19
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TripStatus = "all" | "archived" | "active" | "notActive";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import UserBase from "asv-hlps/lib/cjs/users/models/UserBase";
|
|
2
2
|
import UMarket from "../../markets/models/UMarket";
|
|
3
|
+
import { WalletCredit } from "../../wallets/models/WalletCredit";
|
|
3
4
|
export default interface User extends UserBase {
|
|
4
5
|
umarkets?: UMarket[];
|
|
5
|
-
wallets?:
|
|
6
|
+
wallets?: WalletCredit[];
|
|
6
7
|
phone?: string;
|
|
8
|
+
parentId?: number;
|
|
9
|
+
walletCredit?: number;
|
|
7
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asv-hlps-market",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
4
4
|
"description": "some markets tools",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"author": "Aril Vignon",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"typescript": "^5.9.
|
|
19
|
+
"typescript": "^5.9.3"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"asv-hlps": "^1.4.
|
|
22
|
+
"asv-hlps": "^1.4.66"
|
|
23
23
|
}
|
|
24
24
|
}
|