@connect-plus-online/ogabai-integrations 0.0.84 → 0.0.86
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.cjs.js +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -44,6 +44,7 @@ interface Product extends ProductName {
|
|
|
44
44
|
productPackages: ProductPackage[];
|
|
45
45
|
category: ProductCategory;
|
|
46
46
|
smallestPackage: ProductPackage;
|
|
47
|
+
preExpirationNoticeInWeeks: string;
|
|
47
48
|
}
|
|
48
49
|
interface ProductLight {
|
|
49
50
|
_id: string;
|
|
@@ -101,6 +102,7 @@ interface Stock {
|
|
|
101
102
|
deduction: number;
|
|
102
103
|
storeId: string;
|
|
103
104
|
createdAt: string;
|
|
105
|
+
expirationDate: string;
|
|
104
106
|
}
|
|
105
107
|
interface StoreSetting {
|
|
106
108
|
_id: string;
|
|
@@ -245,7 +247,7 @@ interface TransactionCounts {
|
|
|
245
247
|
totalTxToday: number;
|
|
246
248
|
}
|
|
247
249
|
type UserStatus = "active" | "suspended" | "inactive";
|
|
248
|
-
type UserType = "manufacturer" | "distributor" | "admin";
|
|
250
|
+
type UserType = "manufacturer" | "distributor" | "admin" | "retail";
|
|
249
251
|
interface Manufacturer {
|
|
250
252
|
_id: string;
|
|
251
253
|
userId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ interface Product extends ProductName {
|
|
|
44
44
|
productPackages: ProductPackage[];
|
|
45
45
|
category: ProductCategory;
|
|
46
46
|
smallestPackage: ProductPackage;
|
|
47
|
+
preExpirationNoticeInWeeks: string;
|
|
47
48
|
}
|
|
48
49
|
interface ProductLight {
|
|
49
50
|
_id: string;
|
|
@@ -101,6 +102,7 @@ interface Stock {
|
|
|
101
102
|
deduction: number;
|
|
102
103
|
storeId: string;
|
|
103
104
|
createdAt: string;
|
|
105
|
+
expirationDate: string;
|
|
104
106
|
}
|
|
105
107
|
interface StoreSetting {
|
|
106
108
|
_id: string;
|
|
@@ -245,7 +247,7 @@ interface TransactionCounts {
|
|
|
245
247
|
totalTxToday: number;
|
|
246
248
|
}
|
|
247
249
|
type UserStatus = "active" | "suspended" | "inactive";
|
|
248
|
-
type UserType = "manufacturer" | "distributor" | "admin";
|
|
250
|
+
type UserType = "manufacturer" | "distributor" | "admin" | "retail";
|
|
249
251
|
interface Manufacturer {
|
|
250
252
|
_id: string;
|
|
251
253
|
userId: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -456,7 +456,8 @@ var stockQuery = [
|
|
|
456
456
|
"sellPerPackage",
|
|
457
457
|
"deduction",
|
|
458
458
|
"storeId",
|
|
459
|
-
"createdAt"
|
|
459
|
+
"createdAt",
|
|
460
|
+
"expirationDate"
|
|
460
461
|
];
|
|
461
462
|
var storeQuery = [
|
|
462
463
|
"_id",
|
|
@@ -498,7 +499,8 @@ var productQuery = [
|
|
|
498
499
|
"productPackages",
|
|
499
500
|
"storeId",
|
|
500
501
|
"tag",
|
|
501
|
-
"totalStockInSmallestPackage"
|
|
502
|
+
"totalStockInSmallestPackage",
|
|
503
|
+
"preExpirationNoticeInWeeks"
|
|
502
504
|
];
|
|
503
505
|
var productNameQuery = [
|
|
504
506
|
"_id",
|