@7365admin1/core 3.3.0 → 3.4.0

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,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 3.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cc378b0: release changes for members and organization api
8
+
3
9
  ## 3.3.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -280,6 +280,9 @@ type TMember = {
280
280
  siteId?: string | ObjectId;
281
281
  siteName?: string;
282
282
  status?: string;
283
+ onboardingRequired?: boolean;
284
+ onboardingCompleted?: boolean;
285
+ onboardingCompletedAt?: string;
283
286
  createdAt?: string;
284
287
  updatedAt?: string;
285
288
  deletedAt?: string;
@@ -342,6 +345,7 @@ declare function useMemberRepo(): {
342
345
  getByRoles: (roles: string[] | ObjectId[], type: string) => Promise<TMember[]>;
343
346
  updateSiteById: (_id: string | ObjectId, siteId: string | ObjectId, siteName: string) => Promise<number>;
344
347
  getByUserIdTypeOrg: (user: string | ObjectId, type: string, org: string | ObjectId) => Promise<TMember>;
348
+ completeOnboardingById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
345
349
  };
346
350
 
347
351
  declare function useMemberController(): {
@@ -356,6 +360,7 @@ declare function useMemberController(): {
356
360
  createMemberDirect: (req: Request, res: Response, next: NextFunction) => Promise<void>;
357
361
  updateSiteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
358
362
  getByUserIdTypeOrg: (req: Request, res: Response, next: NextFunction) => Promise<void>;
363
+ completeOnboarding: (req: Request, res: Response, next: NextFunction) => Promise<void>;
359
364
  };
360
365
 
361
366
  type TVerificationMetadata = {
@@ -521,9 +526,6 @@ type TOrg = {
521
526
  busInst?: string;
522
527
  status?: string;
523
528
  defaultSite?: string;
524
- onboardingRequired?: boolean;
525
- onboardingCompleted?: boolean;
526
- onboardingCompletedAt?: string | Date | null;
527
529
  terms?: string;
528
530
  policies?: string;
529
531
  createdAt?: string | Date;
@@ -590,7 +592,6 @@ declare function useOrgController(): {
590
592
  update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
591
593
  getOrgsByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
592
594
  getAdminOrgForResident: (_req: Request, res: Response, next: NextFunction) => Promise<void>;
593
- completeOnboarding: (req: Request, res: Response, next: NextFunction) => Promise<void>;
594
595
  };
595
596
 
596
597
  /**
@@ -7314,7 +7315,7 @@ declare function useFormEntryRepo(): {
7314
7315
  pageRange: string;
7315
7316
  } | TFormEntry>;
7316
7317
  getFormEntryById: (_id: string | ObjectId) => Promise<bson.Document>;
7317
- updateFormEntryById: (_id: string | ObjectId, value: TFormEntry) => Promise<number>;
7318
+ updateFormEntryById: (_id: string | ObjectId, value: residentFormEntry) => Promise<number>;
7318
7319
  createTextIndex: () => Promise<void>;
7319
7320
  deleteOnlineFormById: (_id: string | ObjectId, session?: ClientSession) => Promise<number>;
7320
7321
  addResidentForm: (value: residentFormEntry, session?: ClientSession) => Promise<ObjectId>;