@7365admin1/core 2.71.0 → 2.73.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 +12 -0
- package/dist/index.d.ts +22 -4
- package/dist/index.js +433 -56
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +433 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @iservice365/core
|
|
2
2
|
|
|
3
|
+
## 2.73.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2d55751: release latest changes for preloved api, person api, etc.
|
|
8
|
+
|
|
9
|
+
## 2.72.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 3a415e0: release changes for person, preloved api, etc.
|
|
14
|
+
|
|
3
15
|
## 2.71.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -343,6 +343,7 @@ declare function useMemberRepo(): {
|
|
|
343
343
|
updateRoleById: (_id: string | ObjectId, role: string | ObjectId) => Promise<number>;
|
|
344
344
|
getByRoles: (roles: string[] | ObjectId[], type: string) => Promise<TMember[]>;
|
|
345
345
|
updateSiteById: (_id: string | ObjectId, siteId: string | ObjectId, siteName: string) => Promise<number>;
|
|
346
|
+
getByUserIdTypeOrg: (user: string | ObjectId, type: string, org: string | ObjectId) => Promise<TMember>;
|
|
346
347
|
};
|
|
347
348
|
|
|
348
349
|
declare function useMemberController(): {
|
|
@@ -350,12 +351,13 @@ declare function useMemberController(): {
|
|
|
350
351
|
getByUserId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
351
352
|
getByUserIdType: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
352
353
|
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
354
|
+
getAllByUser: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
353
355
|
getOrgsByMembership: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
354
356
|
updateMemberStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
355
357
|
updateRoleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
356
358
|
createMemberDirect: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
357
359
|
updateSiteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
358
|
-
|
|
360
|
+
getByUserIdTypeOrg: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
359
361
|
};
|
|
360
362
|
|
|
361
363
|
type TVerificationMetadata = {
|
|
@@ -2042,6 +2044,7 @@ type TSiteCamera = {
|
|
|
2042
2044
|
updatedAt?: Date | string;
|
|
2043
2045
|
deletedAt?: Date | string;
|
|
2044
2046
|
siteName?: string;
|
|
2047
|
+
ANPRSwitches: any;
|
|
2045
2048
|
};
|
|
2046
2049
|
declare const schemaUpdateSiteCamera: Joi.ObjectSchema<any>;
|
|
2047
2050
|
declare const schemaSiteCamera: Joi.ObjectSchema<any>;
|
|
@@ -2060,6 +2063,7 @@ declare function MSiteCamera(value: TSiteCamera): {
|
|
|
2060
2063
|
createdAt: string | Date;
|
|
2061
2064
|
updatedAt: string | Date;
|
|
2062
2065
|
deletedAt: string | Date;
|
|
2066
|
+
ANPRSwitches: any;
|
|
2063
2067
|
};
|
|
2064
2068
|
|
|
2065
2069
|
declare function useDahuaService(): {
|
|
@@ -2147,7 +2151,8 @@ declare enum VehicleSort {
|
|
|
2147
2151
|
}
|
|
2148
2152
|
declare enum OrgNature {
|
|
2149
2153
|
PROPERTY_MANAGEMENT_AGENCY = "property_management_agency",
|
|
2150
|
-
SECURITY_AGENCY = "security_agency"
|
|
2154
|
+
SECURITY_AGENCY = "security_agency",
|
|
2155
|
+
REAL_ESTATE_DEVELOPER = "real_estate_developer"
|
|
2151
2156
|
}
|
|
2152
2157
|
declare enum ANPRMode {
|
|
2153
2158
|
TRAFFIC_REDLIST = "TrafficRedList",
|
|
@@ -4792,6 +4797,15 @@ declare function UseAccessManagementRepo(): {
|
|
|
4792
4797
|
removeTemplateRepo: ({ site }: {
|
|
4793
4798
|
site: string | ObjectId;
|
|
4794
4799
|
}) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
4800
|
+
qrCodeListRepo: ({ type, search, site, page, limit, isLift, userId }: {
|
|
4801
|
+
type: string;
|
|
4802
|
+
site: string | ObjectId;
|
|
4803
|
+
page: number;
|
|
4804
|
+
limit: number;
|
|
4805
|
+
search: string;
|
|
4806
|
+
isLift: boolean;
|
|
4807
|
+
userId: string | ObjectId;
|
|
4808
|
+
}) => Promise<bson.Document[]>;
|
|
4795
4809
|
};
|
|
4796
4810
|
|
|
4797
4811
|
declare function useAccessManagementController(): {
|
|
@@ -4838,6 +4852,7 @@ declare function useAccessManagementController(): {
|
|
|
4838
4852
|
getResidents: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4839
4853
|
userAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4840
4854
|
removeTemplate: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4855
|
+
qrCodeList: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4841
4856
|
};
|
|
4842
4857
|
|
|
4843
4858
|
declare const DEVICE_STATUS: {
|
|
@@ -6922,7 +6937,7 @@ declare function MPost(value: TPost): {
|
|
|
6922
6937
|
declare function usePostPrelovedRepo(): {
|
|
6923
6938
|
add: (value: TPost, session?: any) => Promise<ObjectId>;
|
|
6924
6939
|
getById: (_id: string | ObjectId) => Promise<bson.Document>;
|
|
6925
|
-
getAll: ({ search, page, limit, filter, site, status, category, subcategory, }: {
|
|
6940
|
+
getAll: ({ search, page, limit, filter, site, status, category, subcategory, userId, }: {
|
|
6926
6941
|
search?: string | undefined;
|
|
6927
6942
|
page?: number | undefined;
|
|
6928
6943
|
limit?: number | undefined;
|
|
@@ -6931,6 +6946,7 @@ declare function usePostPrelovedRepo(): {
|
|
|
6931
6946
|
status?: string | string[] | undefined;
|
|
6932
6947
|
category?: string | ObjectId | undefined;
|
|
6933
6948
|
subcategory?: (string | ObjectId)[] | undefined;
|
|
6949
|
+
userId?: string | undefined;
|
|
6934
6950
|
}, session?: any) => Promise<{
|
|
6935
6951
|
items: any[];
|
|
6936
6952
|
pages: number;
|
|
@@ -6998,7 +7014,7 @@ declare function MCategoryPreloved(value: TCategoryPreloved): {
|
|
|
6998
7014
|
name: string;
|
|
6999
7015
|
createdBy: string | ObjectId;
|
|
7000
7016
|
site: string | ObjectId | null;
|
|
7001
|
-
createdAt: string;
|
|
7017
|
+
createdAt: string | Date;
|
|
7002
7018
|
updatedAt: string | null;
|
|
7003
7019
|
};
|
|
7004
7020
|
|
|
@@ -7008,11 +7024,13 @@ declare function useCategoryPrelovedRepo(): {
|
|
|
7008
7024
|
site?: string | ObjectId | undefined;
|
|
7009
7025
|
}) => Promise<mongodb.WithId<bson.Document>[]>;
|
|
7010
7026
|
getById: (_id: string | ObjectId) => Promise<mongodb.WithId<bson.Document>>;
|
|
7027
|
+
addCategory: (item: TCategoryPreloved, session?: any) => Promise<ObjectId>;
|
|
7011
7028
|
};
|
|
7012
7029
|
|
|
7013
7030
|
declare function useCategoryPrelovedController(): {
|
|
7014
7031
|
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
7015
7032
|
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
7033
|
+
addCategory: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
7016
7034
|
};
|
|
7017
7035
|
|
|
7018
7036
|
type TSubcategoryPreloved = {
|