@7365admin1/core 3.32.0 → 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.
@@ -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)
@@ -0,0 +1,36 @@
1
+ name: Publish Staging
2
+ on:
3
+ push:
4
+ branches:
5
+ - staging
6
+
7
+ concurrency: ${{ github.workflow }}-${{ github.ref }}
8
+
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20.x
18
+ cache: "yarn"
19
+ cache-dependency-path: yarn.lock
20
+
21
+ - run: yarn install --immutable
22
+
23
+ - run: yarn build
24
+
25
+ - name: Create .npmrc for publishing
26
+ run: |
27
+ echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > ~/.npmrc
28
+
29
+ - name: Set staging prerelease version
30
+ run: |
31
+ BASE=$(node -p "const [x,y,z]=require('./package.json').version.split('-')[0].split('.'); [x,y,+z+1].join('.')")
32
+ npm version "$BASE-staging.${{ github.run_number }}" --no-git-tag-version
33
+ node -p "'Publishing ' + require('./package.json').version"
34
+
35
+ - name: Publish to npm with staging tag
36
+ run: npm publish --tag staging --registry https://registry.npmjs.org
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
- } | TFormEntry>;
7653
+ }>;
7650
7654
  };
7651
7655
 
7652
7656
  declare function useFormEntryController(): {