@eeplatform/core 1.7.0 → 1.7.2

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eeplatform/core
2
2
 
3
+ ## 1.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 4947704: Update dependencies
8
+
9
+ ## 1.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 296124d: Update dependencies
14
+
3
15
  ## 1.7.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -100,15 +100,19 @@ declare function useUserRepo(): {
100
100
  sort?: {} | undefined;
101
101
  status?: string | undefined;
102
102
  type?: string | undefined;
103
- }) => Promise<Record<string, any>>;
103
+ }) => Promise<Record<string, any> | {
104
+ items: any[];
105
+ pages: number;
106
+ pageRange: string;
107
+ }>;
104
108
  updatePassword: ({ _id, password }?: {
105
109
  _id: string | ObjectId;
106
110
  password: string;
107
111
  }, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
108
112
  updateName: ({ _id, firstName, lastName }?: {
109
113
  _id: string | ObjectId;
110
- firstName?: string | undefined;
111
- lastName?: string | undefined;
114
+ firstName?: string;
115
+ lastName?: string;
112
116
  }, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
113
117
  updateBirthday: ({ _id, month, day, year }?: {
114
118
  _id: string | ObjectId;
@@ -135,7 +139,11 @@ declare function useUserService(): {
135
139
  status?: string | undefined;
136
140
  type?: string | undefined;
137
141
  limit?: number | undefined;
138
- }) => Promise<Record<string, any>>;
142
+ }) => Promise<Record<string, any> | {
143
+ items: any[];
144
+ pages: number;
145
+ pageRange: string;
146
+ }>;
139
147
  createUser: (value: Pick<TUser, "firstName" | "middleName" | "lastName" | "email" | "password" | "prefix" | "suffix">) => Promise<ObjectId>;
140
148
  resetPassword: (id: string, newPassword: string, passwordConfirmation: string) => Promise<string>;
141
149
  updateName: (_id: string, firstName?: string, lastName?: string) => Promise<string>;
@@ -148,7 +156,7 @@ declare function useUserService(): {
148
156
  updateUserProfile: ({ file, user, previousProfile }?: {
149
157
  file: Express.Multer.File;
150
158
  user: string;
151
- previousProfile?: string | undefined;
159
+ previousProfile?: string;
152
160
  }) => Promise<string>;
153
161
  createUserByInvite: ({ id, firstName, lastName, password, }?: {
154
162
  id?: string | undefined;
@@ -211,7 +219,11 @@ declare function useOrgRepo(): {
211
219
  limit?: number | undefined;
212
220
  sort?: {} | undefined;
213
221
  status?: string | undefined;
214
- }) => Promise<Record<string, any>>;
222
+ }) => Promise<Record<string, any> | {
223
+ items: any[];
224
+ pages: number;
225
+ pageRange: string;
226
+ }>;
215
227
  getById: (_id: string | ObjectId) => Promise<TOrg>;
216
228
  updateFieldById: ({ _id, field, value }?: {
217
229
  _id: string | ObjectId;
@@ -271,12 +283,12 @@ declare function useRoleRepo(): {
271
283
  createUniqueIndex: () => Promise<void>;
272
284
  addRole: (value: TRole, session?: ClientSession) => Promise<ObjectId>;
273
285
  getRoles: ({ search, page, limit, sort, type, id, }?: {
274
- search?: string | undefined;
275
- page?: number | undefined;
276
- limit?: number | undefined;
286
+ search?: string;
287
+ page?: number;
288
+ limit?: number;
277
289
  sort?: any;
278
- type?: string | undefined;
279
- id?: string | ObjectId | undefined;
290
+ type?: string;
291
+ id?: string | ObjectId;
280
292
  }) => Promise<{
281
293
  items: any[];
282
294
  pages: number;
@@ -368,14 +380,14 @@ declare function useVerificationRepo(): {
368
380
  createIndexes: () => Promise<void>;
369
381
  add: (value: TVerification, session?: ClientSession) => Promise<ObjectId>;
370
382
  getVerifications: ({ search, page, limit, sort, status, type, email, app, }?: {
371
- search?: string | undefined;
372
- page?: number | undefined;
373
- limit?: number | undefined;
374
- sort?: Record<string, number> | undefined;
375
- status?: string | undefined;
376
- type?: string | string[] | undefined;
377
- email?: string | undefined;
378
- app?: string | undefined;
383
+ search?: string;
384
+ page?: number;
385
+ limit?: number;
386
+ sort?: Record<string, number>;
387
+ status?: string;
388
+ type?: string | Array<string>;
389
+ email?: string;
390
+ app?: string;
379
391
  }) => Promise<{
380
392
  items: any[];
381
393
  pages: number;
@@ -484,18 +496,22 @@ declare function useMemberRepo(): {
484
496
  search: string;
485
497
  limit: number;
486
498
  page: number;
487
- user?: string | ObjectId | undefined;
488
- org?: string | ObjectId | undefined;
499
+ user?: string | ObjectId;
500
+ org?: string | ObjectId;
489
501
  type: string;
490
502
  status: string;
491
- }) => Promise<Record<string, any>>;
503
+ }) => Promise<Record<string, any> | {
504
+ items: any[];
505
+ pages: number;
506
+ pageRange: string;
507
+ }>;
492
508
  getOrgsByUserId: ({ search, page, limit, sort, user, status, }?: {
493
509
  user: string | ObjectId;
494
510
  page: number;
495
- limit?: number | undefined;
496
- search?: string | undefined;
497
- sort?: Record<string, number> | undefined;
498
- status?: string | undefined;
511
+ limit?: number;
512
+ search?: string;
513
+ sort?: Record<string, number>;
514
+ status?: string;
499
515
  }) => Promise<{
500
516
  items: any[];
501
517
  pages: number;
@@ -511,7 +527,7 @@ declare function useMemberRepo(): {
511
527
  search: string;
512
528
  limit: number;
513
529
  page: number;
514
- user?: string | ObjectId | undefined;
530
+ user?: string | ObjectId;
515
531
  }) => Promise<{
516
532
  items: any[];
517
533
  pages: number;
@@ -607,7 +623,11 @@ declare function useBuildingRepo(): {
607
623
  sort?: {} | undefined;
608
624
  school?: string | undefined;
609
625
  status?: string | undefined;
610
- }) => Promise<Record<string, any>>;
626
+ }) => Promise<Record<string, any> | {
627
+ items: any[];
628
+ pages: number;
629
+ pageRange: string;
630
+ }>;
611
631
  getById: (_id: string | ObjectId) => Promise<TBuilding | null>;
612
632
  updateById: (_id: ObjectId | string, value: {
613
633
  name: string;
@@ -645,18 +665,22 @@ declare function useBuildingUnitRepo(): {
645
665
  school?: string | undefined;
646
666
  building?: string | undefined;
647
667
  status?: string | undefined;
648
- }) => Promise<Record<string, any>>;
668
+ }) => Promise<Record<string, any> | {
669
+ items: any[];
670
+ pages: number;
671
+ pageRange: string;
672
+ }>;
649
673
  getById: (_id: string | ObjectId) => Promise<TBuildingUnit>;
650
674
  getByBuildingLevel: (building: string | ObjectId, level: number) => Promise<TBuildingUnit | null>;
651
675
  updateById: (_id: string | ObjectId, value: {
652
- name?: string | undefined;
653
- building?: string | undefined;
654
- level?: number | undefined;
655
- category?: string | undefined;
656
- type?: string | undefined;
657
- seating_capacity?: number | undefined;
658
- standing_capacity?: number | undefined;
659
- area?: number | undefined;
676
+ name?: string;
677
+ building?: string;
678
+ level?: number;
679
+ category?: string;
680
+ type?: string;
681
+ seating_capacity?: number;
682
+ standing_capacity?: number;
683
+ area?: number;
660
684
  }, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
661
685
  getByBuilding: (building: string | ObjectId) => Promise<TBuildingUnit | null>;
662
686
  deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;