@7365admin1/core 2.41.0 → 2.42.0
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.js +197 -116
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +417 -330
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2025,13 +2025,13 @@ declare function MVehicle(value: TVehicle): {
|
|
|
2025
2025
|
nric: string;
|
|
2026
2026
|
remarks: string;
|
|
2027
2027
|
seasonPassType: string;
|
|
2028
|
-
start:
|
|
2028
|
+
start: Date;
|
|
2029
2029
|
end: string | Date;
|
|
2030
2030
|
status: string;
|
|
2031
2031
|
unitName: string;
|
|
2032
2032
|
peopleId: string | ObjectId;
|
|
2033
2033
|
vehicleModel: string;
|
|
2034
|
-
createdAt:
|
|
2034
|
+
createdAt: Date;
|
|
2035
2035
|
updatedAt: string | Date;
|
|
2036
2036
|
deletedAt: string | Date;
|
|
2037
2037
|
};
|
|
@@ -2107,7 +2107,7 @@ declare function useVehicleRepo(): {
|
|
|
2107
2107
|
pageRange: string;
|
|
2108
2108
|
}>;
|
|
2109
2109
|
getAllExpiredVehicles: () => Promise<mongodb.WithId<bson.Document>[]>;
|
|
2110
|
-
bulkUpsertVehicles: (values: TVehicle[]
|
|
2110
|
+
bulkUpsertVehicles: (values: TVehicle[]) => Promise<{
|
|
2111
2111
|
matchedCount: number;
|
|
2112
2112
|
modifiedCount: number;
|
|
2113
2113
|
upsertedCount: number;
|
|
@@ -2165,7 +2165,7 @@ declare function useVehicleController(): {
|
|
|
2165
2165
|
getVehiclesByNRIC: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2166
2166
|
reactivateVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2167
2167
|
getAllVehiclesByUnitId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2168
|
-
|
|
2168
|
+
uploadSpreadsheetVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2169
2169
|
};
|
|
2170
2170
|
|
|
2171
2171
|
declare enum CameraType {
|
|
@@ -2480,6 +2480,7 @@ type TPerson = {
|
|
|
2480
2480
|
plates?: TPlates[];
|
|
2481
2481
|
isOwner?: boolean;
|
|
2482
2482
|
files?: TFiles[];
|
|
2483
|
+
plateNumber?: string;
|
|
2483
2484
|
createdAt?: string | Date;
|
|
2484
2485
|
updatedAt?: string | Date;
|
|
2485
2486
|
deletedAt?: string | Date;
|
|
@@ -2513,6 +2514,7 @@ declare function MPerson(value: TPerson): {
|
|
|
2513
2514
|
plates: TPlates[];
|
|
2514
2515
|
isOwner: boolean;
|
|
2515
2516
|
files: TFiles[];
|
|
2517
|
+
plateNumber: string;
|
|
2516
2518
|
createdAt: string | Date;
|
|
2517
2519
|
updatedAt: string | Date | undefined;
|
|
2518
2520
|
deletedAt: string | Date | undefined;
|
|
@@ -5769,6 +5771,7 @@ declare function useManpowerMonitoringRepo(): {
|
|
|
5769
5771
|
message: string;
|
|
5770
5772
|
}>;
|
|
5771
5773
|
getAllSites: (serviceProviderId: string | ObjectId) => Promise<any>;
|
|
5774
|
+
createIndexes: () => Promise<string>;
|
|
5772
5775
|
};
|
|
5773
5776
|
|
|
5774
5777
|
declare function useManpowerMonitoringSrvc(): {
|
|
@@ -5823,6 +5826,7 @@ declare function useManpowerDesignationRepo(): {
|
|
|
5823
5826
|
createManpowerDesignations: (value: TManpowerDesignations) => Promise<mongodb.InsertOneResult<bson.Document>>;
|
|
5824
5827
|
getManpowerDesignationsBySiteId: (_id: string | ObjectId, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
|
|
5825
5828
|
updateManpowerDesignations: (_id: string | ObjectId, value: TManpowerDesignationsUpdate) => Promise<number>;
|
|
5829
|
+
createIndexes: () => Promise<string>;
|
|
5826
5830
|
};
|
|
5827
5831
|
|
|
5828
5832
|
declare function useManpowerDesignationCtrl(): {
|
|
@@ -6170,6 +6174,7 @@ declare function useManpowerRemarksRepo(): {
|
|
|
6170
6174
|
getManpowerRemarksBySiteId: (_id: string | ObjectId, date: string, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
|
|
6171
6175
|
updateManpowerRemarks: (_id: string | ObjectId, value: TManpowerRemarksUpdate) => Promise<number>;
|
|
6172
6176
|
updateRemarksStatus: (_id: string | ObjectId, value: TManpowerRemarksStatusUpdate) => Promise<number>;
|
|
6177
|
+
createIndexes: () => Promise<string>;
|
|
6173
6178
|
};
|
|
6174
6179
|
|
|
6175
6180
|
declare function useManpowerRemarkCtrl(): {
|