@7365admin1/core 3.32.2-staging.1 → 3.32.2-staging.11
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/CHANGELOG.md +30 -0
- package/dist/index.d.ts +8 -3
- package/dist/index.js +252 -87
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +307 -143
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @iservice365/core
|
|
2
2
|
|
|
3
|
+
## 3.34.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 195c268: 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)
|
|
8
|
+
|
|
9
|
+
## 3.34.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- d81eaf1: 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.
|
|
14
|
+
|
|
15
|
+
## 3.34.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 8986923: Fix `@7365admin1/node-server-utils` dependency to point at the real published `^1.6.0` instead of a leftover staging prerelease pin (`1.5.1-staging.1`). The stale prerelease caused a duplicate nested copy of node-server-utils to be installed alongside the real one, triggering "Unable to connect to server" errors at startup in consuming apps.
|
|
20
|
+
|
|
21
|
+
## 3.34.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- 36c0873: Add `MAILER_FROM_EMAIL` config so the mailer's SMTP auth login and display sender can differ, needed for relaying through Brevo (or any provider whose SMTP login differs from the desired sender address). Falls back to the existing behavior when unset.
|
|
26
|
+
|
|
27
|
+
## 3.33.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- fd94267: release api changes
|
|
32
|
+
|
|
3
33
|
## 3.32.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
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(): {
|
|
@@ -7434,6 +7438,7 @@ declare function useChatPrelovedRepo(): {
|
|
|
7434
7438
|
add: (value: TChatPreloved, session?: any) => Promise<string | ObjectId>;
|
|
7435
7439
|
updateById: (_id: string | ObjectId, value: Partial<TChatPreloved>) => Promise<string>;
|
|
7436
7440
|
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
7441
|
+
createIndexes: () => Promise<string>;
|
|
7437
7442
|
};
|
|
7438
7443
|
|
|
7439
7444
|
declare function useChatPrelovedService(): {
|
|
@@ -7646,7 +7651,7 @@ declare function useFormEntryRepo(): {
|
|
|
7646
7651
|
items: any[];
|
|
7647
7652
|
pages: number;
|
|
7648
7653
|
pageRange: string;
|
|
7649
|
-
}
|
|
7654
|
+
}>;
|
|
7650
7655
|
};
|
|
7651
7656
|
|
|
7652
7657
|
declare function useFormEntryController(): {
|