@7365admin1/core 3.32.2-staging.1 → 3.32.2-staging.10
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/.changeset/invite-payload-logging.md +5 -0
- package/.changeset/manpower-alert-flood-fix.md +5 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.js +239 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +294 -142
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
---
|
|
2
|
+
"@7365admin1/core": patch
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Add request payload and response logging to the three invite endpoints (`createSimpleUserInvite`, `createSimpleMemberInvite`, `createServiceProviderInvite`) to diagnose reports of invites not sending. Logs at info level on success, and includes the payload alongside the existing error log on failure.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
---
|
|
2
|
+
"@7365admin1/core": patch
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Fix manpower alert email flood: dedupe daily remark creation per site, skip alerts for sites without recipient emails, send one alert per site per alert time, and enforce a configurable daily alert limit (MANPOWER_ALERT_DAILY_LIMIT, default 50)
|
package/dist/index.d.ts
CHANGED
|
@@ -2622,6 +2622,8 @@ type TGetAttendancesQuery = {
|
|
|
2622
2622
|
page?: number;
|
|
2623
2623
|
limit?: number;
|
|
2624
2624
|
search?: string;
|
|
2625
|
+
startDate?: string | Date;
|
|
2626
|
+
endDate?: string | Date;
|
|
2625
2627
|
} & Pick<TAttendance, "site" | "serviceType">;
|
|
2626
2628
|
type TGetAttendancesByUserQuery = Pick<TGetAttendancesQuery, "page" | "limit" | "search" | "site" | "serviceType"> & Pick<TAttendance, "user">;
|
|
2627
2629
|
declare const attendanceSchema: Joi.ObjectSchema<any>;
|
|
@@ -2682,7 +2684,7 @@ declare function useAttendanceSettingsController(): {
|
|
|
2682
2684
|
declare function useAttendanceRepository(): {
|
|
2683
2685
|
createIndex: () => Promise<void>;
|
|
2684
2686
|
checkInAttendance: (value: TAttendanceCheckIn, session?: ClientSession) => Promise<ObjectId>;
|
|
2685
|
-
getAllAttendances: ({ page, limit, search, site, serviceType, }: TGetAttendancesQuery) => Promise<{}>;
|
|
2687
|
+
getAllAttendances: ({ page, limit, search, site, startDate, endDate, serviceType, }: TGetAttendancesQuery) => Promise<{}>;
|
|
2686
2688
|
getAttendanceByUser: ({ page, limit, search, site, serviceType, user, }: TGetAttendancesByUserQuery) => Promise<{}>;
|
|
2687
2689
|
getAttendanceById: (_id: string | ObjectId, session?: ClientSession) => Promise<{}>;
|
|
2688
2690
|
getRawAttendanceById: (_id: string | ObjectId, session?: ClientSession) => Promise<TAttendance>;
|
|
@@ -2963,7 +2965,7 @@ declare function useVisitorTransactionRepo(): {
|
|
|
2963
2965
|
pageRange: string;
|
|
2964
2966
|
}>;
|
|
2965
2967
|
getOpenByPlateNumber: (plateNumber: string, site: string | ObjectId) => Promise<TVisitorTransaction | null | undefined>;
|
|
2966
|
-
updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession, isManualCheckOut?: boolean) => Promise<mongodb.UpdateResult<bson.Document
|
|
2968
|
+
updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession, isManualCheckOut?: boolean) => Promise<mongodb.UpdateResult<bson.Document> | undefined>;
|
|
2967
2969
|
deleteVisitorTransaction: (_id: string | ObjectId) => Promise<number>;
|
|
2968
2970
|
createTextIndex: () => Promise<void>;
|
|
2969
2971
|
getDeliveryPickupTransactions: () => Promise<mongodb.WithId<bson.Document>[]>;
|
|
@@ -7259,6 +7261,7 @@ declare function usePostPrelovedRepo(): {
|
|
|
7259
7261
|
updateById: (_id: string | ObjectId, value: Partial<TPost>, session?: any) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
7260
7262
|
deleteById: (_id: string | ObjectId, session?: any) => Promise<number>;
|
|
7261
7263
|
updateStatus: (_id: string | ObjectId, status: PostStatus, session?: any) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
7264
|
+
createIndexes: () => Promise<string>;
|
|
7262
7265
|
};
|
|
7263
7266
|
|
|
7264
7267
|
declare function usePostPrelovedController(): {
|
|
@@ -7293,6 +7296,7 @@ declare function usePostFavoriteRepo(): {
|
|
|
7293
7296
|
getById: (_id: string | ObjectId) => Promise<mongodb.WithId<TPostFavorite>>;
|
|
7294
7297
|
getByPostId: (postId: string | ObjectId) => Promise<mongodb.WithId<TPostFavorite>>;
|
|
7295
7298
|
updateById: (_id: string | ObjectId, userId: string | ObjectId, session?: any) => Promise<"removed" | "added">;
|
|
7299
|
+
createIndexes: () => Promise<string>;
|
|
7296
7300
|
};
|
|
7297
7301
|
|
|
7298
7302
|
declare function usePostFavoriteService(): {
|
|
@@ -7646,7 +7650,7 @@ declare function useFormEntryRepo(): {
|
|
|
7646
7650
|
items: any[];
|
|
7647
7651
|
pages: number;
|
|
7648
7652
|
pageRange: string;
|
|
7649
|
-
}
|
|
7653
|
+
}>;
|
|
7650
7654
|
};
|
|
7651
7655
|
|
|
7652
7656
|
declare function useFormEntryController(): {
|