@7365admin1/core 3.25.0 → 3.27.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 +37 -1
- package/dist/index.js +470 -136
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +472 -136
- 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
|
+
## 3.27.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ad3a683: release changes today
|
|
8
|
+
|
|
9
|
+
## 3.26.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 3ce77c8: release changes in nfc patrol api, soa api, billing api, vehicle api, etc.
|
|
14
|
+
|
|
3
15
|
## 3.25.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -174,6 +174,12 @@ declare function useUserRepo(): {
|
|
|
174
174
|
sid: string;
|
|
175
175
|
}, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
176
176
|
updateUserOrgById: (id: string | ObjectId, org: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
177
|
+
updateUserUnitById: (id: string | ObjectId, value: {
|
|
178
|
+
block?: ObjectId | null;
|
|
179
|
+
level?: ObjectId | null;
|
|
180
|
+
unitId?: ObjectId | null;
|
|
181
|
+
unitName?: string;
|
|
182
|
+
}, session?: ClientSession) => Promise<"No user unit fields to update." | "Successfully updated user unit information.">;
|
|
177
183
|
};
|
|
178
184
|
|
|
179
185
|
declare function useUserController(): {
|
|
@@ -476,11 +482,12 @@ declare function useVerificationService(): {
|
|
|
476
482
|
metadata: TKeyValuePair;
|
|
477
483
|
}) => Promise<bson.ObjectId>;
|
|
478
484
|
createForgetPassword: (email: string) => Promise<string>;
|
|
479
|
-
createServiceProviderInvite: ({ email, orgId, siteId, siteName, inviteType, }: {
|
|
485
|
+
createServiceProviderInvite: ({ email, orgId, siteId, siteName, app, inviteType, }: {
|
|
480
486
|
email: string;
|
|
481
487
|
orgId: string;
|
|
482
488
|
siteId: string;
|
|
483
489
|
siteName: string;
|
|
490
|
+
app: string;
|
|
484
491
|
inviteType: "create-org" | "organization-invite";
|
|
485
492
|
}) => Promise<bson.ObjectId>;
|
|
486
493
|
getById: (id: string) => Promise<TVerification>;
|
|
@@ -2873,6 +2880,7 @@ type TVisitorTransaction = {
|
|
|
2873
2880
|
inviterId?: string | ObjectId;
|
|
2874
2881
|
createdBy?: string | ObjectId;
|
|
2875
2882
|
updatedBy?: string | ObjectId;
|
|
2883
|
+
isMembersAdded?: boolean;
|
|
2876
2884
|
};
|
|
2877
2885
|
declare const schemaVisitorTransaction: Joi.ObjectSchema<any>;
|
|
2878
2886
|
declare const schemaUpdateVisTrans: Joi.ObjectSchema<any>;
|
|
@@ -2923,6 +2931,13 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
|
|
|
2923
2931
|
} | null;
|
|
2924
2932
|
arrivalTime: string | null | undefined;
|
|
2925
2933
|
duration: number | null | undefined;
|
|
2934
|
+
members: {
|
|
2935
|
+
name: string;
|
|
2936
|
+
nric: string;
|
|
2937
|
+
visitorPass?: TKeyRef[] | null | undefined;
|
|
2938
|
+
passKeys?: TKeyRef[] | null | undefined;
|
|
2939
|
+
contact: string;
|
|
2940
|
+
}[] | undefined;
|
|
2926
2941
|
};
|
|
2927
2942
|
|
|
2928
2943
|
declare const visitors_namespace_collection = "visitor.transactions";
|
|
@@ -5079,6 +5094,7 @@ declare function useNfcPatrolTagRepo(): {
|
|
|
5079
5094
|
},
|
|
5080
5095
|
ClientSession?
|
|
5081
5096
|
]) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
5097
|
+
getById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document>>;
|
|
5082
5098
|
};
|
|
5083
5099
|
|
|
5084
5100
|
declare enum DOBStatus {
|
|
@@ -6028,15 +6044,24 @@ declare function useNfcPatrolLogRepo(): {
|
|
|
6028
6044
|
pages: number;
|
|
6029
6045
|
pageRange: string;
|
|
6030
6046
|
} | TNfcPatrolLog>;
|
|
6047
|
+
getById: (id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | null>;
|
|
6048
|
+
updateCheckpoint: (id: string | ObjectId, checkpointIndex: number, payload: any, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
6031
6049
|
};
|
|
6032
6050
|
|
|
6033
6051
|
declare function useNfcPatrolLogService(): {
|
|
6034
6052
|
add: (value: TNfcPatrolLog) => Promise<string>;
|
|
6053
|
+
completeCheckpoint: (logId: string, payload: {
|
|
6054
|
+
checkpointIndex: number;
|
|
6055
|
+
uid: string;
|
|
6056
|
+
action: "complete" | "skip";
|
|
6057
|
+
skippedRemarks?: string;
|
|
6058
|
+
}) => Promise<string>;
|
|
6035
6059
|
};
|
|
6036
6060
|
|
|
6037
6061
|
declare function useNfcPatrolLogController(): {
|
|
6038
6062
|
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6039
6063
|
getAllBySite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6064
|
+
completeCheckpoint: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6040
6065
|
};
|
|
6041
6066
|
|
|
6042
6067
|
declare function useAddressRepo(): {
|
|
@@ -6099,6 +6124,17 @@ declare function useNewDashboardRepo(): {
|
|
|
6099
6124
|
count: any;
|
|
6100
6125
|
ongoing: any;
|
|
6101
6126
|
waitingApproval: any;
|
|
6127
|
+
byStatus: {
|
|
6128
|
+
Pending: number;
|
|
6129
|
+
Approved: number;
|
|
6130
|
+
Ongoing: number;
|
|
6131
|
+
"For Review": number;
|
|
6132
|
+
"With Balance": number;
|
|
6133
|
+
"With Refund": number;
|
|
6134
|
+
Completed: number;
|
|
6135
|
+
Rejected: number;
|
|
6136
|
+
Cancelled: number;
|
|
6137
|
+
};
|
|
6102
6138
|
percentage: number;
|
|
6103
6139
|
};
|
|
6104
6140
|
workOrderStatus: {
|