@7365admin1/core 3.129.3-staging.460 → 3.129.3-staging.461

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@7365admin1/core",
3
3
  "license": "MIT",
4
- "version": "3.129.3-staging.460",
4
+ "version": "3.129.3-staging.461",
5
5
  "author": "7365admin1",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -503,9 +503,27 @@ function buildApp(nsu, core) {
503
503
  const authV2 = express.Router();
504
504
  {
505
505
  const { signUp } = core.useAuthControllerV2();
506
- const { verify } = core.useVerificationControllerV2();
506
+ const {
507
+ verify,
508
+ createInviteSignUp,
509
+ verifyInviteCode,
510
+ verifyInvitePassword,
511
+ getInviteAccount,
512
+ getOnboarding,
513
+ updateOnboarding,
514
+ resendSignUpVerification,
515
+ } = core.useVerificationControllerV2();
507
516
  authV2.post("/sign-up", signUp);
508
517
  authV2.get("/verify/:verificationCode", verify);
518
+ // auth-v2.route.ts:29-46 - the organisation-owner invitation pages
519
+ // (web-app-main sign-up-invite/org-owner) and the e-mailed code resend.
520
+ authV2.post("/invite/:id/sign-up", createInviteSignUp);
521
+ authV2.post("/invite/:id/verify-code", verifyInviteCode);
522
+ authV2.post("/invite/:id/verify-password", verifyInvitePassword);
523
+ authV2.get("/invite/:id/account", getInviteAccount);
524
+ authV2.get("/onboarding", requireAuth, getOnboarding);
525
+ authV2.patch("/onboarding/:id", requireAuth, updateOnboarding);
526
+ authV2.post("/resend-verification", resendSignUpVerification);
509
527
  }
510
528
 
511
529
  // mirrors iservice365-API-core/src/routes/user-v2.route.ts