@7365admin1/core 3.31.0 → 3.32.2-staging.1

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,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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 3.32.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 38c7888: release changes in nfc, preloved, etc.
8
+
3
9
  ## 3.31.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -4750,6 +4750,13 @@ declare function UseAccessManagementRepo(): {
4750
4750
  type: string;
4751
4751
  search: string;
4752
4752
  }) => Promise<bson.Document[]>;
4753
+ assignedAccessCardsByUnitRepo: (params: {
4754
+ site: string;
4755
+ unitId: string;
4756
+ userType: string;
4757
+ type: string;
4758
+ search: string;
4759
+ }) => Promise<bson.Document>;
4753
4760
  acknowlegdeCardRepo: (params: {
4754
4761
  userId: string[];
4755
4762
  cardId: string[];
@@ -4925,11 +4932,12 @@ declare function UseAccessManagementRepo(): {
4925
4932
  pages: number;
4926
4933
  pageRange: string;
4927
4934
  }>;
4928
- assignMultipleCardsRepo: ({ assignees, unit, type, acm_url, }: {
4935
+ assignMultipleCardsRepo: ({ assignees, unit, type, acm_url, id }: {
4929
4936
  assignees: string[] | ObjectId[];
4930
4937
  unit: string | ObjectId;
4931
4938
  type: string;
4932
4939
  acm_url: string;
4940
+ id?: string | ObjectId | null | undefined;
4933
4941
  }) => Promise<string>;
4934
4942
  visitorCheckoutRepo: ({ userId }: {
4935
4943
  userId: string;
@@ -4975,6 +4983,7 @@ declare function useAccessManagementController(): {
4975
4983
  availableAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4976
4984
  userTypeAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4977
4985
  assignedAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4986
+ assignedAccessCardsByUnit: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4978
4987
  acknowlegdeCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4979
4988
  accessandLiftCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4980
4989
  replaceCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
@@ -5230,7 +5239,6 @@ declare function useBulletinVideoRepo(): {
5230
5239
  updateBulletinVideoById: (_id: ObjectId | string, value: Partial<TBulletinVideo>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
5231
5240
  deleteBulletinVideoById: (_id: string | ObjectId, session?: ClientSession) => Promise<number>;
5232
5241
  createIndexes: () => Promise<void>;
5233
- createTextIndex: () => Promise<void>;
5234
5242
  };
5235
5243
 
5236
5244
  declare function useBulletinVideoService(): {
@@ -6057,11 +6065,12 @@ declare function MNfcPatrolLog(valueArg: TNfcPatrolLog): {
6057
6065
  declare function useNfcPatrolLogRepo(): {
6058
6066
  createIndexes: () => Promise<void>;
6059
6067
  add: (value: TNfcPatrolLog, session?: ClientSession) => Promise<ObjectId>;
6060
- getAllBySite: ({ page, limit, site, date, route, }: {
6068
+ getAllBySite: ({ page, limit, site, date, type, route, }: {
6061
6069
  page?: number | undefined;
6062
6070
  limit?: number | undefined;
6063
6071
  site: string | ObjectId;
6064
6072
  date?: string | undefined;
6073
+ type?: "month" | undefined;
6065
6074
  route?: {
6066
6075
  _id: ObjectId | string;
6067
6076
  startTime: string;