@7365admin1/core 2.72.0 → 2.74.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 +28 -4
- package/dist/index.js +500 -67
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +500 -67
- 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.74.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 473d453: release changes for person api, organization api, etc
|
|
8
|
+
|
|
9
|
+
## 2.73.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 2d55751: release latest changes for preloved api, person api, etc.
|
|
14
|
+
|
|
3
15
|
## 2.72.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 = {
|
|
@@ -521,6 +523,8 @@ type TOrg = {
|
|
|
521
523
|
busInst?: string;
|
|
522
524
|
status?: string;
|
|
523
525
|
defaultSite?: string;
|
|
526
|
+
terms?: string;
|
|
527
|
+
policies?: string;
|
|
524
528
|
createdAt?: string | Date;
|
|
525
529
|
updatedAt?: string | Date;
|
|
526
530
|
deletedAt?: string | Date;
|
|
@@ -570,6 +574,7 @@ declare function useOrgRepo(): {
|
|
|
570
574
|
pages: number;
|
|
571
575
|
pageRange: string;
|
|
572
576
|
}>;
|
|
577
|
+
getAdminOrgForResident: () => Promise<mongodb.WithId<bson.Document>>;
|
|
573
578
|
};
|
|
574
579
|
|
|
575
580
|
declare function useOrgController(): {
|
|
@@ -582,6 +587,7 @@ declare function useOrgController(): {
|
|
|
582
587
|
getByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
583
588
|
update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
584
589
|
getOrgsByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
590
|
+
getAdminOrgForResident: (_req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
585
591
|
};
|
|
586
592
|
|
|
587
593
|
/**
|
|
@@ -2042,6 +2048,7 @@ type TSiteCamera = {
|
|
|
2042
2048
|
updatedAt?: Date | string;
|
|
2043
2049
|
deletedAt?: Date | string;
|
|
2044
2050
|
siteName?: string;
|
|
2051
|
+
ANPRSwitches: any;
|
|
2045
2052
|
};
|
|
2046
2053
|
declare const schemaUpdateSiteCamera: Joi.ObjectSchema<any>;
|
|
2047
2054
|
declare const schemaSiteCamera: Joi.ObjectSchema<any>;
|
|
@@ -2060,6 +2067,7 @@ declare function MSiteCamera(value: TSiteCamera): {
|
|
|
2060
2067
|
createdAt: string | Date;
|
|
2061
2068
|
updatedAt: string | Date;
|
|
2062
2069
|
deletedAt: string | Date;
|
|
2070
|
+
ANPRSwitches: any;
|
|
2063
2071
|
};
|
|
2064
2072
|
|
|
2065
2073
|
declare function useDahuaService(): {
|
|
@@ -2147,7 +2155,8 @@ declare enum VehicleSort {
|
|
|
2147
2155
|
}
|
|
2148
2156
|
declare enum OrgNature {
|
|
2149
2157
|
PROPERTY_MANAGEMENT_AGENCY = "property_management_agency",
|
|
2150
|
-
SECURITY_AGENCY = "security_agency"
|
|
2158
|
+
SECURITY_AGENCY = "security_agency",
|
|
2159
|
+
REAL_ESTATE_DEVELOPER = "real_estate_developer"
|
|
2151
2160
|
}
|
|
2152
2161
|
declare enum ANPRMode {
|
|
2153
2162
|
TRAFFIC_REDLIST = "TrafficRedList",
|
|
@@ -2636,6 +2645,7 @@ type TPerson = {
|
|
|
2636
2645
|
platform?: string;
|
|
2637
2646
|
approvedBy?: TApprover;
|
|
2638
2647
|
countryCode?: string;
|
|
2648
|
+
callingCode?: string;
|
|
2639
2649
|
createdAt?: string | Date;
|
|
2640
2650
|
updatedAt?: string | Date;
|
|
2641
2651
|
deletedAt?: string | Date;
|
|
@@ -2674,6 +2684,7 @@ declare function MPerson(value: TPerson): {
|
|
|
2674
2684
|
platForm: string;
|
|
2675
2685
|
approvedBy: TApprover;
|
|
2676
2686
|
countryCode: string;
|
|
2687
|
+
callingCode: string;
|
|
2677
2688
|
createdAt: string | Date;
|
|
2678
2689
|
updatedAt: string | Date | undefined;
|
|
2679
2690
|
deletedAt: string | Date | undefined;
|
|
@@ -4792,6 +4803,15 @@ declare function UseAccessManagementRepo(): {
|
|
|
4792
4803
|
removeTemplateRepo: ({ site }: {
|
|
4793
4804
|
site: string | ObjectId;
|
|
4794
4805
|
}) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
4806
|
+
qrCodeListRepo: ({ type, search, site, page, limit, isLift, userId }: {
|
|
4807
|
+
type: string;
|
|
4808
|
+
site: string | ObjectId;
|
|
4809
|
+
page: number;
|
|
4810
|
+
limit: number;
|
|
4811
|
+
search: string;
|
|
4812
|
+
isLift: boolean;
|
|
4813
|
+
userId: string | ObjectId;
|
|
4814
|
+
}) => Promise<bson.Document[]>;
|
|
4795
4815
|
};
|
|
4796
4816
|
|
|
4797
4817
|
declare function useAccessManagementController(): {
|
|
@@ -4838,6 +4858,7 @@ declare function useAccessManagementController(): {
|
|
|
4838
4858
|
getResidents: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4839
4859
|
userAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4840
4860
|
removeTemplate: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4861
|
+
qrCodeList: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4841
4862
|
};
|
|
4842
4863
|
|
|
4843
4864
|
declare const DEVICE_STATUS: {
|
|
@@ -6922,7 +6943,7 @@ declare function MPost(value: TPost): {
|
|
|
6922
6943
|
declare function usePostPrelovedRepo(): {
|
|
6923
6944
|
add: (value: TPost, session?: any) => Promise<ObjectId>;
|
|
6924
6945
|
getById: (_id: string | ObjectId) => Promise<bson.Document>;
|
|
6925
|
-
getAll: ({ search, page, limit, filter, site, status, category, subcategory, }: {
|
|
6946
|
+
getAll: ({ search, page, limit, filter, site, status, category, subcategory, userId, }: {
|
|
6926
6947
|
search?: string | undefined;
|
|
6927
6948
|
page?: number | undefined;
|
|
6928
6949
|
limit?: number | undefined;
|
|
@@ -6931,6 +6952,7 @@ declare function usePostPrelovedRepo(): {
|
|
|
6931
6952
|
status?: string | string[] | undefined;
|
|
6932
6953
|
category?: string | ObjectId | undefined;
|
|
6933
6954
|
subcategory?: (string | ObjectId)[] | undefined;
|
|
6955
|
+
userId?: string | undefined;
|
|
6934
6956
|
}, session?: any) => Promise<{
|
|
6935
6957
|
items: any[];
|
|
6936
6958
|
pages: number;
|
|
@@ -6998,7 +7020,7 @@ declare function MCategoryPreloved(value: TCategoryPreloved): {
|
|
|
6998
7020
|
name: string;
|
|
6999
7021
|
createdBy: string | ObjectId;
|
|
7000
7022
|
site: string | ObjectId | null;
|
|
7001
|
-
createdAt: string;
|
|
7023
|
+
createdAt: string | Date;
|
|
7002
7024
|
updatedAt: string | null;
|
|
7003
7025
|
};
|
|
7004
7026
|
|
|
@@ -7008,11 +7030,13 @@ declare function useCategoryPrelovedRepo(): {
|
|
|
7008
7030
|
site?: string | ObjectId | undefined;
|
|
7009
7031
|
}) => Promise<mongodb.WithId<bson.Document>[]>;
|
|
7010
7032
|
getById: (_id: string | ObjectId) => Promise<mongodb.WithId<bson.Document>>;
|
|
7033
|
+
addCategory: (item: TCategoryPreloved, session?: any) => Promise<ObjectId>;
|
|
7011
7034
|
};
|
|
7012
7035
|
|
|
7013
7036
|
declare function useCategoryPrelovedController(): {
|
|
7014
7037
|
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
7015
7038
|
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
7039
|
+
addCategory: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
7016
7040
|
};
|
|
7017
7041
|
|
|
7018
7042
|
type TSubcategoryPreloved = {
|