@7365admin1/core 2.10.0 → 2.11.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/.github/workflows/main.yml +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +961 -627
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +396 -62
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/public/rsa-keys/new_rsa_512_priv.pem +0 -3
- package/dist/public/rsa-keys/new_rsa_512_pub.pem +0 -3
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -341,6 +341,7 @@ declare function useVerificationRepo(): {
|
|
|
341
341
|
}) => Promise<{}>;
|
|
342
342
|
getByIdByType: (type: string) => Promise<TVerification[]>;
|
|
343
343
|
updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
344
|
+
getByStatus: (status: string) => Promise<TVerification[]>;
|
|
344
345
|
};
|
|
345
346
|
|
|
346
347
|
type TKeyValuePair<K extends string | number | symbol = string, V = any> = {
|
|
@@ -367,6 +368,7 @@ declare function useVerificationService(): {
|
|
|
367
368
|
email: string;
|
|
368
369
|
metadata: TKeyValuePair;
|
|
369
370
|
}) => Promise<bson.ObjectId>;
|
|
371
|
+
checkExpiredInvitation: () => Promise<string>;
|
|
370
372
|
};
|
|
371
373
|
|
|
372
374
|
declare function useVerificationController(): {
|
|
@@ -400,6 +402,7 @@ declare function useFileRepo(): {
|
|
|
400
402
|
getAllDraftedFiles: () => Promise<mongodb.WithId<bson.Document>[] | TFile>;
|
|
401
403
|
updateStatusById: (_id: string | ObjectId, value: Pick<TFile, "status">, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
402
404
|
getFileById: (_id: string | ObjectId) => Promise<TFile | null>;
|
|
405
|
+
createIndex: () => Promise<void>;
|
|
403
406
|
};
|
|
404
407
|
|
|
405
408
|
declare function useFileService(): {
|
|
@@ -3834,6 +3837,12 @@ declare function UseAccessManagementRepo(): {
|
|
|
3834
3837
|
pages: number;
|
|
3835
3838
|
pageRange: string;
|
|
3836
3839
|
}>;
|
|
3840
|
+
assignedAccessCardsRepo: (params: {
|
|
3841
|
+
site: string;
|
|
3842
|
+
userType: string;
|
|
3843
|
+
type: string;
|
|
3844
|
+
search: string;
|
|
3845
|
+
}) => Promise<bson.Document[]>;
|
|
3837
3846
|
};
|
|
3838
3847
|
|
|
3839
3848
|
declare function useAccessManagementController(): {
|
|
@@ -3846,6 +3855,7 @@ declare function useAccessManagementController(): {
|
|
|
3846
3855
|
allAccessCardsCounts: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3847
3856
|
availableAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3848
3857
|
userTypeAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3858
|
+
assignedAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3849
3859
|
};
|
|
3850
3860
|
|
|
3851
3861
|
declare const DEVICE_STATUS: {
|