@flusys/nestjs-auth 9.1.0-rc.1 → 9.1.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.
package/fesm/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import { ExtractJwt, Strategy } from "passport-jwt";
2
- import * as __rspack_external__nestjs_passport_18907953 from "@nestjs/passport";
3
1
  export const __rspack_esm_id = 410;
4
2
  export const __rspack_esm_ids = [410];
5
3
  export const __webpack_modules__ = {
@@ -127,7 +125,10 @@ const COMPANY_SCHEMA_EXCLUSIONS = [
127
125
  'id',
128
126
  'name',
129
127
  'slug',
130
- 'logoId'
128
+ 'logoId',
129
+ 'parentId',
130
+ 'serial',
131
+ 'displayParentId'
131
132
  ]
132
133
  },
133
134
  {
@@ -277,7 +278,10 @@ const COMPANY_SCHEMA_EXCLUSIONS = [
277
278
  'branchId',
278
279
  'branchName',
279
280
  'branchSlug',
280
- 'companyId'
281
+ 'companyId',
282
+ 'parentId',
283
+ 'serial',
284
+ 'displayParentId'
281
285
  ]
282
286
  },
283
287
  {
@@ -573,70 +577,6 @@ __webpack_require__.d(__webpack_exports__, {
573
577
  });
574
578
 
575
579
 
576
- },
577
- 5180(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
578
- /* import */ var _app_user_entity_js__rspack_import_0 = __webpack_require__(4758);
579
- /* import */ var _company_branch_entity_js__rspack_import_1 = __webpack_require__(1923);
580
- /* import */ var _company_entity_js__rspack_import_2 = __webpack_require__(8538);
581
- /* import */ var _pending_registration_entity_js__rspack_import_3 = __webpack_require__(9388);
582
- /* import */ var _social_auth_config_entity_js__rspack_import_4 = __webpack_require__(2020);
583
- /* import */ var _user_company_permission_entity_js__rspack_import_5 = __webpack_require__(2377);
584
- /* import */ var _user_token_entity_js__rspack_import_6 = __webpack_require__(9696);
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
- const BaseEntities = [
600
- _app_user_entity_js__rspack_import_0/* .AppUser */.$,
601
- _user_token_entity_js__rspack_import_6/* .UserToken */.L,
602
- _social_auth_config_entity_js__rspack_import_4/* .SocialAuthConfig */.G
603
- ];
604
- const EmailEntities = [
605
- _pending_registration_entity_js__rspack_import_3/* .PendingRegistration */.N
606
- ];
607
- const CompanyEntities = [
608
- _company_entity_js__rspack_import_2/* .Company */.C,
609
- _company_branch_entity_js__rspack_import_1/* .CompanyBranch */.A,
610
- _user_company_permission_entity_js__rspack_import_5/* .UserCompanyPermission */.I
611
- ];
612
- function getAuthEntitiesByConfig(config) {
613
- const { enableCompanyFeature = false, enableEmailVerification = true } = config;
614
- const entities = [
615
- ...BaseEntities
616
- ];
617
- if (enableEmailVerification) {
618
- entities.push(...EmailEntities);
619
- }
620
- if (enableCompanyFeature) {
621
- entities.push(...CompanyEntities);
622
- }
623
- return entities;
624
- }
625
-
626
- __webpack_require__.d(__webpack_exports__, {
627
- $u: () => (/* reexport safe */ _app_user_entity_js__rspack_import_0.$),
628
- At: () => (/* reexport safe */ _company_branch_entity_js__rspack_import_1.A),
629
- CC: () => (/* reexport safe */ _company_entity_js__rspack_import_2.C),
630
- GB: () => (/* reexport safe */ _social_auth_config_entity_js__rspack_import_4.G),
631
- Iq: () => (/* reexport safe */ _user_company_permission_entity_js__rspack_import_5.I),
632
- Li: () => (/* reexport safe */ _user_token_entity_js__rspack_import_6.L),
633
- Ni: () => (/* reexport safe */ _pending_registration_entity_js__rspack_import_3.N),
634
- eZ: () => (/* reexport safe */ _user_company_permission_entity_js__rspack_import_5.e),
635
- getAuthEntitiesByConfig: () => (getAuthEntitiesByConfig),
636
- ks: () => (/* reexport safe */ _user_token_entity_js__rspack_import_6.k)
637
- });
638
-
639
-
640
580
  },
641
581
  8351(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
642
582
  /* import */ var _social_provider_type_enum_js__rspack_import_0 = __webpack_require__(5142);
@@ -650,23 +590,6 @@ __webpack_require__.d(__webpack_exports__, {
650
590
  });
651
591
 
652
592
 
653
- },
654
- 892(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
655
- /* import */ var _auth_response_mapper_js__rspack_import_0 = __webpack_require__(2295);
656
- /* import */ var _token_helper_js__rspack_import_1 = __webpack_require__(1379);
657
-
658
-
659
-
660
- __webpack_require__.d(__webpack_exports__, {
661
- $C: () => (/* reexport safe */ _auth_response_mapper_js__rspack_import_0.$C),
662
- FV: () => (/* reexport safe */ _auth_response_mapper_js__rspack_import_0.FV),
663
- QH: () => (/* reexport safe */ _auth_response_mapper_js__rspack_import_0.QH),
664
- Vg: () => (/* reexport safe */ _token_helper_js__rspack_import_1.Vg),
665
- e: () => (/* reexport safe */ _token_helper_js__rspack_import_1.e),
666
- om: () => (/* reexport safe */ _token_helper_js__rspack_import_1.om)
667
- });
668
-
669
-
670
593
  },
671
594
  3716(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
672
595
 
@@ -690,6 +613,7 @@ __webpack_require__.d(__webpack_exports__, {
690
613
  aK: () => (/* reexport */ config/* .BCRYPT_SALT_ROUNDS */.aK),
691
614
  W1: () => (/* reexport */ config/* .BRANCH_MESSAGES */.W1),
692
615
  zF: () => (/* reexport */ controllers/* .BranchController */.zF),
616
+ XR: () => (/* reexport */ services/* .BranchHierarchyResolverAdapter */.XR),
693
617
  UQ: () => (/* reexport */ dtos/* .BranchInfoDto */.UQ),
694
618
  tu: () => (/* reexport */ dtos/* .BranchPermittedUserDto */.tu),
695
619
  bK: () => (/* reexport */ dtos/* .BranchPermittedUsersResponseDto */.bK),
@@ -699,6 +623,7 @@ __webpack_require__.d(__webpack_exports__, {
699
623
  $h: () => (/* reexport */ dtos/* .ChangePasswordDto */.$h),
700
624
  t7: () => (/* reexport */ interceptors/* .ClearToken */.t),
701
625
  CC: () => (/* reexport */ entities/* .Company */.CC),
626
+ ht: () => (/* reexport */ services/* .CompanyAccessResolverAdapter */.ht),
702
627
  At: () => (/* reexport */ entities/* .CompanyBranch */.At),
703
628
  ET: () => (/* reexport */ dtos/* .CompanyBranchResponseDto */.ET),
704
629
  wD: () => (/* reexport */ controllers/* .CompanyController */.wD),
@@ -783,7 +708,10 @@ __webpack_require__.d(__webpack_exports__, {
783
708
  e: () => (/* reexport */ helpers/* .generateTokens */.e),
784
709
  QB: () => (/* reexport */ entities.getAuthEntitiesByConfig),
785
710
  V8: () => (/* reexport */ social_provider_registry/* .getSocialProvider */.V),
711
+ vR: () => (/* reexport */ helpers/* .loadCompanyBranchNodes */.vR),
712
+ xu: () => (/* reexport */ helpers/* .loadDisplayParentIds */.xu),
786
713
  om: () => (/* reexport */ helpers/* .parseExpiryToMs */.om),
714
+ XP: () => (/* reexport */ helpers/* .revokeUserSessions */.XP),
787
715
  QH: () => (/* reexport */ helpers/* .toBranchInfo */.QH),
788
716
  $C: () => (/* reexport */ helpers/* .toCompanyInfo */.$C),
789
717
  FV: () => (/* reexport */ helpers/* .toUserInfo */.FV)
@@ -801,8 +729,8 @@ var dtos = __webpack_require__(9029);
801
729
  var entities = __webpack_require__(5180);
802
730
  // EXTERNAL MODULE: ./projects/nestjs-auth/src/enums/index.ts
803
731
  var enums = __webpack_require__(8351);
804
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/helpers/index.ts
805
- var helpers = __webpack_require__(892);
732
+ // EXTERNAL MODULE: ./projects/nestjs-auth/src/helpers/index.ts + 2 modules
733
+ var helpers = __webpack_require__(334);
806
734
  // EXTERNAL MODULE: ./projects/nestjs-auth/src/interceptors/index.ts
807
735
  var interceptors = __webpack_require__(1867);
808
736
  // EXTERNAL MODULE: ./projects/nestjs-auth/src/interfaces/index.ts
@@ -814,8 +742,8 @@ var social_provider_registry = __webpack_require__(6928);
814
742
  ;// CONCATENATED MODULE: ./projects/nestjs-auth/src/providers/index.ts
815
743
 
816
744
 
817
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/services/index.ts
818
- var services = __webpack_require__(8811);
745
+ // EXTERNAL MODULE: ./projects/nestjs-auth/src/services/index.ts + 2 modules
746
+ var services = __webpack_require__(8230);
819
747
  // EXTERNAL MODULE: ./projects/nestjs-auth/src/strategies/jwt.strategy.ts + 1 modules
820
748
  var jwt_strategy = __webpack_require__(5389);
821
749
  ;// CONCATENATED MODULE: ./projects/nestjs-auth/src/index.ts
@@ -864,465 +792,6 @@ __webpack_require__.d(__webpack_exports__, {
864
792
  });
865
793
 
866
794
 
867
- },
868
- 7579(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
869
-
870
- // EXPORTS
871
- __webpack_require__.d(__webpack_exports__, {
872
- r: () => (/* reexport */ AuthModule)
873
- });
874
-
875
- // EXTERNAL MODULE: external "@flusys/nestjs-shared/modules"
876
- var modules_ = __webpack_require__(1236);
877
- // EXTERNAL MODULE: external "@nestjs/common"
878
- var common_ = __webpack_require__(6157);
879
- // EXTERNAL MODULE: external "@nestjs/jwt"
880
- var jwt_ = __webpack_require__(2125);
881
- // EXTERNAL MODULE: external "@nestjs/passport"
882
- var passport_ = __webpack_require__(3794);
883
- // EXTERNAL MODULE: external "@flusys/nestjs-shared/guards"
884
- var guards_ = __webpack_require__(3513);
885
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/config/auth.constants.ts
886
- var auth_constants = __webpack_require__(5588);
887
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/controllers/index.ts + 11 modules
888
- var src_controllers = __webpack_require__(1003);
889
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/entities/index.ts
890
- var entities = __webpack_require__(5180);
891
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/interceptors/clear-token.interceptor.ts
892
- var clear_token_interceptor = __webpack_require__(5207);
893
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/interceptors/set-token.interceptor.ts + 1 modules
894
- var set_token_interceptor = __webpack_require__(8359);
895
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/services/index.ts
896
- var services = __webpack_require__(8811);
897
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/services/auth-config.service.ts + 1 modules
898
- var auth_config_service = __webpack_require__(6514);
899
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/services/auth-datasource.provider.ts
900
- var auth_datasource_provider = __webpack_require__(2732);
901
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/strategies/jwt.strategy.ts + 1 modules
902
- var jwt_strategy = __webpack_require__(5389);
903
- ;// CONCATENATED MODULE: ./projects/nestjs-auth/src/modules/auth.module.ts
904
- function _ts_decorate(decorators, target, key, desc) {
905
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
906
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
907
- r = Reflect.decorate(decorators, target, key, desc);
908
- } else {
909
- for(var i = decorators.length - 1; i >= 0; i--){
910
- if (d = decorators[i]) {
911
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
912
- }
913
- }
914
- }
915
- return c > 3 && r && Object.defineProperty(target, key, r), r;
916
- }
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
-
926
-
927
-
928
-
929
-
930
-
931
- class AuthModule {
932
- static forRoot(options) {
933
- const optionsProvider = {
934
- provide: auth_constants/* .AUTH_MODULE_OPTIONS */.xe,
935
- useValue: options
936
- };
937
- return this.buildModule(options, [
938
- optionsProvider,
939
- ...options.providers ?? []
940
- ]);
941
- }
942
- static forRootAsync(options) {
943
- const asyncProviders = this.createAsyncProviders(options);
944
- return this.buildModule(options, [
945
- ...asyncProviders,
946
- ...options.providers ?? []
947
- ], options.imports);
948
- }
949
- static buildModule(options, providers, externalImports = []) {
950
- const { global = false, includeController = true, bootstrapAppConfig } = options;
951
- const featureFlags = this.getFeatureFlags(bootstrapAppConfig);
952
- return {
953
- module: AuthModule,
954
- global,
955
- imports: [
956
- ...externalImports,
957
- ...this.buildImports()
958
- ],
959
- controllers: this.buildControllers(includeController, featureFlags),
960
- providers: [
961
- ...providers,
962
- ...this.buildProviders(featureFlags)
963
- ],
964
- exports: this.buildExports(featureFlags)
965
- };
966
- }
967
- static getFeatureFlags(bootstrapAppConfig) {
968
- return {
969
- enableCompanyFeature: bootstrapAppConfig?.enableCompanyFeature ?? false,
970
- enableEmailVerification: bootstrapAppConfig?.enableEmailVerification ?? true
971
- };
972
- }
973
- static buildImports() {
974
- return [
975
- passport_.PassportModule.register({
976
- defaultStrategy: 'jwt'
977
- }),
978
- jwt_.JwtModule.register({}),
979
- modules_.CacheModule,
980
- modules_.UtilsModule
981
- ];
982
- }
983
- static buildControllers(includeController, flags) {
984
- if (!includeController) return [];
985
- const controllers = [
986
- src_controllers/* .AuthenticationController */.$3,
987
- src_controllers/* .SocialAuthController */.eA,
988
- src_controllers/* .SocialAuthConfigController */.O3,
989
- src_controllers/* .UserController */.SZ
990
- ];
991
- if (flags.enableEmailVerification) {
992
- controllers.push(src_controllers/* .EmailVerificationController */.Q1);
993
- }
994
- if (flags.enableCompanyFeature) {
995
- controllers.push(src_controllers/* .CompanySelectionController */.Qg, src_controllers/* .CompanyController */.wD, src_controllers/* .BranchController */.zF, src_controllers/* .UserPermissionController */.rl);
996
- }
997
- return controllers;
998
- }
999
- static buildProviders(flags) {
1000
- const providers = [
1001
- auth_config_service/* .AuthConfigService */.W,
1002
- auth_datasource_provider/* .AuthDataSourceProvider */.v,
1003
- jwt_strategy/* .JwtStrategy */.P,
1004
- guards_.JwtAuthGuard,
1005
- services/* .AuthenticationService */.kX,
1006
- services/* .SocialAuthService */.Jn,
1007
- services/* .SocialAuthConfigService */.t_,
1008
- set_token_interceptor/* .SetToken */.A,
1009
- clear_token_interceptor/* .ClearToken */.t,
1010
- services/* .UserService */.DL,
1011
- (0,modules_.createModuleEventsProvider)('auth', auth_constants/* .AUTH_MODULE_OPTIONS */.xe)
1012
- ];
1013
- if (flags.enableEmailVerification) {
1014
- providers.push(services/* .AuthEmailService */.Gw);
1015
- }
1016
- if (flags.enableCompanyFeature) {
1017
- providers.push(services/* .CompanySelectionSessionService */.vB, services/* .CompanyService */.Bl, services/* .BranchService */.O_, services/* .UserPermissionService */.OE);
1018
- }
1019
- return providers;
1020
- }
1021
- static buildExports(flags) {
1022
- const exports = [
1023
- passport_.PassportModule,
1024
- auth_constants/* .AUTH_MODULE_OPTIONS */.xe,
1025
- auth_config_service/* .AuthConfigService */.W,
1026
- auth_datasource_provider/* .AuthDataSourceProvider */.v,
1027
- jwt_strategy/* .JwtStrategy */.P,
1028
- guards_.JwtAuthGuard,
1029
- services/* .AuthenticationService */.kX,
1030
- services/* .SocialAuthService */.Jn,
1031
- services/* .SocialAuthConfigService */.t_,
1032
- services/* .UserService */.DL
1033
- ];
1034
- if (flags.enableEmailVerification) {
1035
- exports.push(services/* .AuthEmailService */.Gw);
1036
- }
1037
- if (flags.enableCompanyFeature) {
1038
- exports.push(services/* .CompanySelectionSessionService */.vB, services/* .CompanyService */.Bl, services/* .BranchService */.O_, services/* .UserPermissionService */.OE);
1039
- }
1040
- return exports;
1041
- }
1042
- static createAsyncProviders(options) {
1043
- const staticOptions = {
1044
- global: options.global,
1045
- includeController: options.includeController,
1046
- bootstrapAppConfig: options.bootstrapAppConfig
1047
- };
1048
- if (options.useFactory) {
1049
- return [
1050
- {
1051
- provide: auth_constants/* .AUTH_MODULE_OPTIONS */.xe,
1052
- useFactory: async (...args)=>({
1053
- ...staticOptions,
1054
- config: await options.useFactory(...args)
1055
- }),
1056
- inject: options.inject || []
1057
- }
1058
- ];
1059
- }
1060
- if (options.useClass) {
1061
- return [
1062
- {
1063
- provide: options.useClass,
1064
- useClass: options.useClass
1065
- },
1066
- {
1067
- provide: auth_constants/* .AUTH_MODULE_OPTIONS */.xe,
1068
- useFactory: async (factory)=>({
1069
- ...staticOptions,
1070
- config: await factory.createAuthOptions()
1071
- }),
1072
- inject: [
1073
- options.useClass
1074
- ]
1075
- }
1076
- ];
1077
- }
1078
- if (options.useExisting) {
1079
- return [
1080
- {
1081
- provide: auth_constants/* .AUTH_MODULE_OPTIONS */.xe,
1082
- useFactory: async (factory)=>({
1083
- ...staticOptions,
1084
- config: await factory.createAuthOptions()
1085
- }),
1086
- inject: [
1087
- options.useExisting
1088
- ]
1089
- }
1090
- ];
1091
- }
1092
- return [
1093
- {
1094
- provide: auth_constants/* .AUTH_MODULE_OPTIONS */.xe,
1095
- useValue: staticOptions
1096
- }
1097
- ];
1098
- }
1099
- static getEntities(config) {
1100
- return (0,entities.getAuthEntitiesByConfig)({
1101
- enableCompanyFeature: config.enableCompanyFeature ?? false,
1102
- enableEmailVerification: config.enableEmailVerification ?? true
1103
- });
1104
- }
1105
- }
1106
- AuthModule = _ts_decorate([
1107
- (0,common_.Module)({})
1108
- ], AuthModule);
1109
-
1110
- ;// CONCATENATED MODULE: ./projects/nestjs-auth/src/modules/index.ts
1111
-
1112
-
1113
-
1114
- },
1115
- 8811(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
1116
- /* import */ var _authentication_service_js__rspack_import_0 = __webpack_require__(4722);
1117
- /* import */ var _auth_email_service_js__rspack_import_1 = __webpack_require__(3221);
1118
- /* import */ var _company_selection_session_service_js__rspack_import_2 = __webpack_require__(5811);
1119
- /* import */ var _social_auth_service_js__rspack_import_3 = __webpack_require__(2786);
1120
- /* import */ var _social_auth_config_service_js__rspack_import_4 = __webpack_require__(8275);
1121
- /* import */ var _user_service_js__rspack_import_5 = __webpack_require__(7229);
1122
- /* import */ var _company_service_js__rspack_import_6 = __webpack_require__(9201);
1123
- /* import */ var _branch_service_js__rspack_import_7 = __webpack_require__(5402);
1124
- /* import */ var _user_permission_service_js__rspack_import_8 = __webpack_require__(5291);
1125
- /* import */ var _auth_config_service_js__rspack_import_9 = __webpack_require__(6514);
1126
- /* import */ var _auth_datasource_provider_js__rspack_import_10 = __webpack_require__(2732);
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
- __webpack_require__.d(__webpack_exports__, {
1140
- Bl: () => (/* reexport safe */ _company_service_js__rspack_import_6.B),
1141
- DL: () => (/* reexport safe */ _user_service_js__rspack_import_5.D),
1142
- Gw: () => (/* reexport safe */ _auth_email_service_js__rspack_import_1.G),
1143
- Jn: () => (/* reexport safe */ _social_auth_service_js__rspack_import_3.J),
1144
- OE: () => (/* reexport safe */ _user_permission_service_js__rspack_import_8.O),
1145
- O_: () => (/* reexport safe */ _branch_service_js__rspack_import_7.O),
1146
- WE: () => (/* reexport safe */ _auth_config_service_js__rspack_import_9.W),
1147
- kX: () => (/* reexport safe */ _authentication_service_js__rspack_import_0.k),
1148
- t_: () => (/* reexport safe */ _social_auth_config_service_js__rspack_import_4.t),
1149
- vB: () => (/* reexport safe */ _company_selection_session_service_js__rspack_import_2.v),
1150
- vS: () => (/* reexport safe */ _auth_datasource_provider_js__rspack_import_10.v)
1151
- });
1152
-
1153
-
1154
- },
1155
- 5389(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
1156
-
1157
- // EXPORTS
1158
- __webpack_require__.d(__webpack_exports__, {
1159
- P: () => (/* binding */ JwtStrategy)
1160
- });
1161
-
1162
- // EXTERNAL MODULE: external "@flusys/nestjs-shared/constants"
1163
- var constants_ = __webpack_require__(9140);
1164
- // EXTERNAL MODULE: external "@nestjs/common"
1165
- var common_ = __webpack_require__(6157);
1166
- // EXTERNAL MODULE: external "@nestjs/core"
1167
- var core_ = __webpack_require__(3075);
1168
- // EXTERNAL MODULE: external "@nestjs/passport"
1169
- var passport_ = __webpack_require__(3794);
1170
- ;// CONCATENATED MODULE: external "passport-jwt"
1171
-
1172
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/config/message-keys.ts
1173
- var message_keys = __webpack_require__(5363);
1174
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/entities/app-user.entity.ts
1175
- var app_user_entity = __webpack_require__(4758);
1176
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/services/auth-config.service.ts + 1 modules
1177
- var auth_config_service = __webpack_require__(6514);
1178
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/services/auth-datasource.provider.ts
1179
- var auth_datasource_provider = __webpack_require__(2732);
1180
- // EXTERNAL MODULE: ./projects/nestjs-auth/src/services/authentication.service.ts + 1 modules
1181
- var authentication_service = __webpack_require__(4722);
1182
- ;// CONCATENATED MODULE: ./projects/nestjs-auth/src/strategies/jwt.strategy.ts
1183
- function _ts_decorate(decorators, target, key, desc) {
1184
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1185
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
1186
- r = Reflect.decorate(decorators, target, key, desc);
1187
- } else {
1188
- for(var i = decorators.length - 1; i >= 0; i--){
1189
- if (d = decorators[i]) {
1190
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1191
- }
1192
- }
1193
- }
1194
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1195
- }
1196
- function _ts_metadata(metadataKey, metadataValue) {
1197
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
1198
- return Reflect.metadata(metadataKey, metadataValue);
1199
- }
1200
- }
1201
- function _ts_param(paramIndex, decorator) {
1202
- return function(target, key) {
1203
- decorator(target, key, paramIndex);
1204
- };
1205
- }
1206
-
1207
-
1208
-
1209
-
1210
-
1211
-
1212
-
1213
-
1214
-
1215
-
1216
- function hasCompanyContext(payload) {
1217
- return 'companyId' in payload && payload.companyId != null;
1218
- }
1219
- class JwtStrategy extends (0,passport_.PassportStrategy)(Strategy, 'jwt') {
1220
- authConfig;
1221
- moduleRef;
1222
- constructor(authConfig, moduleRef){
1223
- super({
1224
- jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
1225
- ignoreExpiration: false,
1226
- secretOrKeyProvider: (_req, _token, done)=>{
1227
- done(null, this.authConfig.getJwtSecret());
1228
- },
1229
- passReqToCallback: true
1230
- }), this.authConfig = authConfig, this.moduleRef = moduleRef;
1231
- }
1232
- async validate(_req, payload) {
1233
- const userRepo = await this.resolveUserRepository();
1234
- await this.checkTokenRevocation(payload);
1235
- const user = await userRepo.findOne({
1236
- where: {
1237
- id: payload.id,
1238
- isActive: true
1239
- }
1240
- });
1241
- if (!user) {
1242
- throw new common_.UnauthorizedException({
1243
- message: 'User not found or inactive',
1244
- messageKey: message_keys/* .USER_MESSAGES.NOT_FOUND */.ny.NOT_FOUND
1245
- });
1246
- }
1247
- return this.buildUserInfo(payload);
1248
- }
1249
- async resolveUserRepository() {
1250
- try {
1251
- const provider = await this.moduleRef.resolve(auth_datasource_provider/* .AuthDataSourceProvider */.v, undefined, {
1252
- strict: false
1253
- });
1254
- if (provider) {
1255
- return provider.getRepository(app_user_entity/* .AppUser */.$);
1256
- }
1257
- } catch {
1258
- throw new common_.UnauthorizedException({
1259
- message: 'Unable to access user data',
1260
- messageKey: constants_.SYSTEM_MESSAGES.SERVICE_NOT_AVAILABLE,
1261
- messageVariables: {
1262
- provider: 'DataSourceProvider',
1263
- available: ''
1264
- }
1265
- });
1266
- }
1267
- throw new common_.UnauthorizedException({
1268
- message: 'User repository not available',
1269
- messageKey: constants_.SYSTEM_MESSAGES.REPOSITORY_NOT_AVAILABLE,
1270
- messageVariables: {
1271
- entity: 'User'
1272
- }
1273
- });
1274
- }
1275
- async checkTokenRevocation(payload) {
1276
- if (!payload.iat) return;
1277
- try {
1278
- const authService = await this.moduleRef.resolve(authentication_service/* .AuthenticationService */.k, undefined, {
1279
- strict: false
1280
- });
1281
- if (authService && await authService.isTokenRevoked(payload.id, payload.iat)) {
1282
- throw new common_.UnauthorizedException({
1283
- message: 'Token has been revoked',
1284
- messageKey: message_keys/* .AUTH_MESSAGES.TOKEN_REVOKED */.mK.TOKEN_REVOKED
1285
- });
1286
- }
1287
- } catch (err) {
1288
- if (err instanceof common_.UnauthorizedException) throw err;
1289
- }
1290
- }
1291
- buildUserInfo(payload) {
1292
- const base = {
1293
- id: payload.id,
1294
- email: payload.email
1295
- };
1296
- if (!hasCompanyContext(payload)) {
1297
- return base;
1298
- }
1299
- return {
1300
- ...base,
1301
- companyId: payload.companyId,
1302
- ...payload.branchId && {
1303
- branchId: payload.branchId
1304
- }
1305
- };
1306
- }
1307
- }
1308
- JwtStrategy = _ts_decorate([
1309
- (0,common_.Injectable)(),
1310
- _ts_param(0, (0,common_.Inject)(auth_config_service/* .AuthConfigService */.W)),
1311
- _ts_param(1, (0,common_.Inject)(core_.ModuleRef)),
1312
- _ts_metadata("design:type", Function),
1313
- _ts_metadata("design:paramtypes", [
1314
- typeof auth_config_service/* .AuthConfigService */.W === "undefined" ? Object : auth_config_service/* .AuthConfigService */.W,
1315
- typeof core_.ModuleRef === "undefined" ? Object : core_.ModuleRef
1316
- ])
1317
- ], JwtStrategy);
1318
-
1319
-
1320
- },
1321
- 3794(module) {
1322
-
1323
- module.exports = __rspack_external__nestjs_passport_18907953;
1324
-
1325
-
1326
795
  },
1327
796
 
1328
797
  };
@@ -1338,8 +807,10 @@ import * as __rspack_chunk_4 from './118.js';
1338
807
  __webpack_require__.C(__rspack_chunk_4);
1339
808
  import * as __rspack_chunk_5 from './120.js';
1340
809
  __webpack_require__.C(__rspack_chunk_5);
1341
- import * as __rspack_chunk_6 from './index.js';
810
+ import * as __rspack_chunk_6 from './360.js';
1342
811
  __webpack_require__.C(__rspack_chunk_6);
812
+ import * as __rspack_chunk_7 from './index.js';
813
+ __webpack_require__.C(__rspack_chunk_7);
1343
814
  var __webpack_exports__ = __webpack_exec__(3716);var __webpack_exports__AUTH_EMAIL_PROVIDER = __webpack_exports__.C8;
1344
815
  var __webpack_exports__AUTH_EVENT_ACTIONS = __webpack_exports__.ov;
1345
816
  var __webpack_exports__AUTH_EVENT_ENTITIES = __webpack_exports__.gm;
@@ -1358,6 +829,7 @@ var __webpack_exports__AuthenticationService = __webpack_exports__.kX;
1358
829
  var __webpack_exports__BCRYPT_SALT_ROUNDS = __webpack_exports__.aK;
1359
830
  var __webpack_exports__BRANCH_MESSAGES = __webpack_exports__.W1;
1360
831
  var __webpack_exports__BranchController = __webpack_exports__.zF;
832
+ var __webpack_exports__BranchHierarchyResolverAdapter = __webpack_exports__.XR;
1361
833
  var __webpack_exports__BranchInfoDto = __webpack_exports__.UQ;
1362
834
  var __webpack_exports__BranchPermittedUserDto = __webpack_exports__.tu;
1363
835
  var __webpack_exports__BranchPermittedUsersResponseDto = __webpack_exports__.bK;
@@ -1367,6 +839,7 @@ var __webpack_exports__COMPANY_MESSAGES = __webpack_exports__.hg;
1367
839
  var __webpack_exports__ChangePasswordDto = __webpack_exports__.$h;
1368
840
  var __webpack_exports__ClearToken = __webpack_exports__.t7;
1369
841
  var __webpack_exports__Company = __webpack_exports__.CC;
842
+ var __webpack_exports__CompanyAccessResolverAdapter = __webpack_exports__.ht;
1370
843
  var __webpack_exports__CompanyBranch = __webpack_exports__.At;
1371
844
  var __webpack_exports__CompanyBranchResponseDto = __webpack_exports__.ET;
1372
845
  var __webpack_exports__CompanyController = __webpack_exports__.wD;
@@ -1451,8 +924,11 @@ var __webpack_exports__generateAccessToken = __webpack_exports__.Vg;
1451
924
  var __webpack_exports__generateTokens = __webpack_exports__.e;
1452
925
  var __webpack_exports__getAuthEntitiesByConfig = __webpack_exports__.QB;
1453
926
  var __webpack_exports__getSocialProvider = __webpack_exports__.V8;
927
+ var __webpack_exports__loadCompanyBranchNodes = __webpack_exports__.vR;
928
+ var __webpack_exports__loadDisplayParentIds = __webpack_exports__.xu;
1454
929
  var __webpack_exports__parseExpiryToMs = __webpack_exports__.om;
930
+ var __webpack_exports__revokeUserSessions = __webpack_exports__.XP;
1455
931
  var __webpack_exports__toBranchInfo = __webpack_exports__.QH;
1456
932
  var __webpack_exports__toCompanyInfo = __webpack_exports__.$C;
1457
933
  var __webpack_exports__toUserInfo = __webpack_exports__.FV;
1458
- export { __webpack_exports__AUTH_EMAIL_PROVIDER as AUTH_EMAIL_PROVIDER, __webpack_exports__AUTH_EVENT_ACTIONS as AUTH_EVENT_ACTIONS, __webpack_exports__AUTH_EVENT_ENTITIES as AUTH_EVENT_ENTITIES, __webpack_exports__AUTH_EVENT_MODULE as AUTH_EVENT_MODULE, __webpack_exports__AUTH_MESSAGES as AUTH_MESSAGES, __webpack_exports__AUTH_MODULE_OPTIONS as AUTH_MODULE_OPTIONS, __webpack_exports__AppUser as AppUser, __webpack_exports__AssignUserBranchDto as AssignUserBranchDto, __webpack_exports__AssignUserCompanyDto as AssignUserCompanyDto, __webpack_exports__AuthConfigService as AuthConfigService, __webpack_exports__AuthDataSourceProvider as AuthDataSourceProvider, __webpack_exports__AuthEmailService as AuthEmailService, __webpack_exports__AuthModule as AuthModule, __webpack_exports__AuthenticationController as AuthenticationController, __webpack_exports__AuthenticationService as AuthenticationService, __webpack_exports__BCRYPT_SALT_ROUNDS as BCRYPT_SALT_ROUNDS, __webpack_exports__BRANCH_MESSAGES as BRANCH_MESSAGES, __webpack_exports__BranchController as BranchController, __webpack_exports__BranchInfoDto as BranchInfoDto, __webpack_exports__BranchPermittedUserDto as BranchPermittedUserDto, __webpack_exports__BranchPermittedUsersResponseDto as BranchPermittedUsersResponseDto, __webpack_exports__BranchSelectionInfoDto as BranchSelectionInfoDto, __webpack_exports__BranchService as BranchService, __webpack_exports__COMPANY_MESSAGES as COMPANY_MESSAGES, __webpack_exports__ChangePasswordDto as ChangePasswordDto, __webpack_exports__ClearToken as ClearToken, __webpack_exports__Company as Company, __webpack_exports__CompanyBranch as CompanyBranch, __webpack_exports__CompanyBranchResponseDto as CompanyBranchResponseDto, __webpack_exports__CompanyController as CompanyController, __webpack_exports__CompanyInfoDto as CompanyInfoDto, __webpack_exports__CompanyPermittedUserDto as CompanyPermittedUserDto, __webpack_exports__CompanyPermittedUsersResponseDto as CompanyPermittedUsersResponseDto, __webpack_exports__CompanyResponseDto as CompanyResponseDto, __webpack_exports__CompanySelectionController as CompanySelectionController, __webpack_exports__CompanySelectionResponseDto as CompanySelectionResponseDto, __webpack_exports__CompanySelectionSessionService as CompanySelectionSessionService, __webpack_exports__CompanyService as CompanyService, __webpack_exports__CompanyWithBranchesDto as CompanyWithBranchesDto, __webpack_exports__CreateCompanyBranchDto as CreateCompanyBranchDto, __webpack_exports__CreateCompanyDto as CreateCompanyDto, __webpack_exports__CreateSocialAuthConfigDto as CreateSocialAuthConfigDto, __webpack_exports__CreateUserDto as CreateUserDto, __webpack_exports__DEFAULT_COOKIE_NAME as DEFAULT_COOKIE_NAME, __webpack_exports__EMAIL_VERIFICATION_MESSAGES as EMAIL_VERIFICATION_MESSAGES, __webpack_exports__EmailVerificationController as EmailVerificationController, __webpack_exports__ForgotPasswordDto as ForgotPasswordDto, __webpack_exports__GetBranchUsersDto as GetBranchUsersDto, __webpack_exports__GetCompanyUsersDto as GetCompanyUsersDto, __webpack_exports__JwtStrategy as JwtStrategy, __webpack_exports__LoginDto as LoginDto, __webpack_exports__LoginResponseDto as LoginResponseDto, __webpack_exports__LoginResponseRequiresEmailVerificationDto as LoginResponseRequiresEmailVerificationDto, __webpack_exports__MAX_COOKIE_BYTES as MAX_COOKIE_BYTES, __webpack_exports__MeResponseDto as MeResponseDto, __webpack_exports__PendingRegistration as PendingRegistration, __webpack_exports__PermissionItemDto as PermissionItemDto, __webpack_exports__PermissionType as PermissionType, __webpack_exports__RefreshTokenDto as RefreshTokenDto, __webpack_exports__RegistrationDto as RegistrationDto, __webpack_exports__RegistrationResponseDto as RegistrationResponseDto, __webpack_exports__ResendVerificationDto as ResendVerificationDto, __webpack_exports__ResetPasswordDto as ResetPasswordDto, __webpack_exports__SESSION_CACHE_PREFIX as SESSION_CACHE_PREFIX, __webpack_exports__SOCIAL_AUTH_CONFIG_MESSAGES as SOCIAL_AUTH_CONFIG_MESSAGES, __webpack_exports__SOCIAL_AUTH_MESSAGES as SOCIAL_AUTH_MESSAGES, __webpack_exports__SOCIAL_STATE_PREFIX as SOCIAL_STATE_PREFIX, __webpack_exports__SOCIAL_STATE_TTL_MS as SOCIAL_STATE_TTL_MS, __webpack_exports__SelectDto as SelectDto, __webpack_exports__SetToken as SetToken, __webpack_exports__SocialAuthConfig as SocialAuthConfig, __webpack_exports__SocialAuthConfigController as SocialAuthConfigController, __webpack_exports__SocialAuthConfigResponseDto as SocialAuthConfigResponseDto, __webpack_exports__SocialAuthConfigService as SocialAuthConfigService, __webpack_exports__SocialAuthController as SocialAuthController, __webpack_exports__SocialAuthService as SocialAuthService, __webpack_exports__SocialAuthorizeDto as SocialAuthorizeDto, __webpack_exports__SocialAuthorizeResponseDto as SocialAuthorizeResponseDto, __webpack_exports__SocialCallbackDto as SocialCallbackDto, __webpack_exports__SocialProviderInfoDto as SocialProviderInfoDto, __webpack_exports__SocialProviderTypeEnum as SocialProviderTypeEnum, __webpack_exports__SocialProvidersDto as SocialProvidersDto, __webpack_exports__SwitchCompanyDto as SwitchCompanyDto, __webpack_exports__TOKEN_REVOKED_PREFIX as TOKEN_REVOKED_PREFIX, __webpack_exports__TokenType as TokenType, __webpack_exports__USER_ENRICHER as USER_ENRICHER, __webpack_exports__USER_MESSAGES as USER_MESSAGES, __webpack_exports__USER_PERMISSION_MESSAGES as USER_PERMISSION_MESSAGES, __webpack_exports__UpdateCompanyBranchDto as UpdateCompanyBranchDto, __webpack_exports__UpdateCompanyDto as UpdateCompanyDto, __webpack_exports__UpdateSocialAuthConfigDto as UpdateSocialAuthConfigDto, __webpack_exports__UpdateUserDto as UpdateUserDto, __webpack_exports__UserBranchPermissionDto as UserBranchPermissionDto, __webpack_exports__UserBranchesResponseDto as UserBranchesResponseDto, __webpack_exports__UserCompaniesResponseDto as UserCompaniesResponseDto, __webpack_exports__UserCompanyPermission as UserCompanyPermission, __webpack_exports__UserCompanyPermissionDto as UserCompanyPermissionDto, __webpack_exports__UserController as UserController, __webpack_exports__UserInfoDto as UserInfoDto, __webpack_exports__UserLookupResponseDto as UserLookupResponseDto, __webpack_exports__UserPermissionController as UserPermissionController, __webpack_exports__UserPermissionService as UserPermissionService, __webpack_exports__UserResponseDto as UserResponseDto, __webpack_exports__UserService as UserService, __webpack_exports__UserToken as UserToken, __webpack_exports__VerifyEmailDto as VerifyEmailDto, __webpack_exports__authSwaggerConfig as authSwaggerConfig, __webpack_exports__generateAccessToken as generateAccessToken, __webpack_exports__generateTokens as generateTokens, __webpack_exports__getAuthEntitiesByConfig as getAuthEntitiesByConfig, __webpack_exports__getSocialProvider as getSocialProvider, __webpack_exports__parseExpiryToMs as parseExpiryToMs, __webpack_exports__toBranchInfo as toBranchInfo, __webpack_exports__toCompanyInfo as toCompanyInfo, __webpack_exports__toUserInfo as toUserInfo };
934
+ export { __webpack_exports__AUTH_EMAIL_PROVIDER as AUTH_EMAIL_PROVIDER, __webpack_exports__AUTH_EVENT_ACTIONS as AUTH_EVENT_ACTIONS, __webpack_exports__AUTH_EVENT_ENTITIES as AUTH_EVENT_ENTITIES, __webpack_exports__AUTH_EVENT_MODULE as AUTH_EVENT_MODULE, __webpack_exports__AUTH_MESSAGES as AUTH_MESSAGES, __webpack_exports__AUTH_MODULE_OPTIONS as AUTH_MODULE_OPTIONS, __webpack_exports__AppUser as AppUser, __webpack_exports__AssignUserBranchDto as AssignUserBranchDto, __webpack_exports__AssignUserCompanyDto as AssignUserCompanyDto, __webpack_exports__AuthConfigService as AuthConfigService, __webpack_exports__AuthDataSourceProvider as AuthDataSourceProvider, __webpack_exports__AuthEmailService as AuthEmailService, __webpack_exports__AuthModule as AuthModule, __webpack_exports__AuthenticationController as AuthenticationController, __webpack_exports__AuthenticationService as AuthenticationService, __webpack_exports__BCRYPT_SALT_ROUNDS as BCRYPT_SALT_ROUNDS, __webpack_exports__BRANCH_MESSAGES as BRANCH_MESSAGES, __webpack_exports__BranchController as BranchController, __webpack_exports__BranchHierarchyResolverAdapter as BranchHierarchyResolverAdapter, __webpack_exports__BranchInfoDto as BranchInfoDto, __webpack_exports__BranchPermittedUserDto as BranchPermittedUserDto, __webpack_exports__BranchPermittedUsersResponseDto as BranchPermittedUsersResponseDto, __webpack_exports__BranchSelectionInfoDto as BranchSelectionInfoDto, __webpack_exports__BranchService as BranchService, __webpack_exports__COMPANY_MESSAGES as COMPANY_MESSAGES, __webpack_exports__ChangePasswordDto as ChangePasswordDto, __webpack_exports__ClearToken as ClearToken, __webpack_exports__Company as Company, __webpack_exports__CompanyAccessResolverAdapter as CompanyAccessResolverAdapter, __webpack_exports__CompanyBranch as CompanyBranch, __webpack_exports__CompanyBranchResponseDto as CompanyBranchResponseDto, __webpack_exports__CompanyController as CompanyController, __webpack_exports__CompanyInfoDto as CompanyInfoDto, __webpack_exports__CompanyPermittedUserDto as CompanyPermittedUserDto, __webpack_exports__CompanyPermittedUsersResponseDto as CompanyPermittedUsersResponseDto, __webpack_exports__CompanyResponseDto as CompanyResponseDto, __webpack_exports__CompanySelectionController as CompanySelectionController, __webpack_exports__CompanySelectionResponseDto as CompanySelectionResponseDto, __webpack_exports__CompanySelectionSessionService as CompanySelectionSessionService, __webpack_exports__CompanyService as CompanyService, __webpack_exports__CompanyWithBranchesDto as CompanyWithBranchesDto, __webpack_exports__CreateCompanyBranchDto as CreateCompanyBranchDto, __webpack_exports__CreateCompanyDto as CreateCompanyDto, __webpack_exports__CreateSocialAuthConfigDto as CreateSocialAuthConfigDto, __webpack_exports__CreateUserDto as CreateUserDto, __webpack_exports__DEFAULT_COOKIE_NAME as DEFAULT_COOKIE_NAME, __webpack_exports__EMAIL_VERIFICATION_MESSAGES as EMAIL_VERIFICATION_MESSAGES, __webpack_exports__EmailVerificationController as EmailVerificationController, __webpack_exports__ForgotPasswordDto as ForgotPasswordDto, __webpack_exports__GetBranchUsersDto as GetBranchUsersDto, __webpack_exports__GetCompanyUsersDto as GetCompanyUsersDto, __webpack_exports__JwtStrategy as JwtStrategy, __webpack_exports__LoginDto as LoginDto, __webpack_exports__LoginResponseDto as LoginResponseDto, __webpack_exports__LoginResponseRequiresEmailVerificationDto as LoginResponseRequiresEmailVerificationDto, __webpack_exports__MAX_COOKIE_BYTES as MAX_COOKIE_BYTES, __webpack_exports__MeResponseDto as MeResponseDto, __webpack_exports__PendingRegistration as PendingRegistration, __webpack_exports__PermissionItemDto as PermissionItemDto, __webpack_exports__PermissionType as PermissionType, __webpack_exports__RefreshTokenDto as RefreshTokenDto, __webpack_exports__RegistrationDto as RegistrationDto, __webpack_exports__RegistrationResponseDto as RegistrationResponseDto, __webpack_exports__ResendVerificationDto as ResendVerificationDto, __webpack_exports__ResetPasswordDto as ResetPasswordDto, __webpack_exports__SESSION_CACHE_PREFIX as SESSION_CACHE_PREFIX, __webpack_exports__SOCIAL_AUTH_CONFIG_MESSAGES as SOCIAL_AUTH_CONFIG_MESSAGES, __webpack_exports__SOCIAL_AUTH_MESSAGES as SOCIAL_AUTH_MESSAGES, __webpack_exports__SOCIAL_STATE_PREFIX as SOCIAL_STATE_PREFIX, __webpack_exports__SOCIAL_STATE_TTL_MS as SOCIAL_STATE_TTL_MS, __webpack_exports__SelectDto as SelectDto, __webpack_exports__SetToken as SetToken, __webpack_exports__SocialAuthConfig as SocialAuthConfig, __webpack_exports__SocialAuthConfigController as SocialAuthConfigController, __webpack_exports__SocialAuthConfigResponseDto as SocialAuthConfigResponseDto, __webpack_exports__SocialAuthConfigService as SocialAuthConfigService, __webpack_exports__SocialAuthController as SocialAuthController, __webpack_exports__SocialAuthService as SocialAuthService, __webpack_exports__SocialAuthorizeDto as SocialAuthorizeDto, __webpack_exports__SocialAuthorizeResponseDto as SocialAuthorizeResponseDto, __webpack_exports__SocialCallbackDto as SocialCallbackDto, __webpack_exports__SocialProviderInfoDto as SocialProviderInfoDto, __webpack_exports__SocialProviderTypeEnum as SocialProviderTypeEnum, __webpack_exports__SocialProvidersDto as SocialProvidersDto, __webpack_exports__SwitchCompanyDto as SwitchCompanyDto, __webpack_exports__TOKEN_REVOKED_PREFIX as TOKEN_REVOKED_PREFIX, __webpack_exports__TokenType as TokenType, __webpack_exports__USER_ENRICHER as USER_ENRICHER, __webpack_exports__USER_MESSAGES as USER_MESSAGES, __webpack_exports__USER_PERMISSION_MESSAGES as USER_PERMISSION_MESSAGES, __webpack_exports__UpdateCompanyBranchDto as UpdateCompanyBranchDto, __webpack_exports__UpdateCompanyDto as UpdateCompanyDto, __webpack_exports__UpdateSocialAuthConfigDto as UpdateSocialAuthConfigDto, __webpack_exports__UpdateUserDto as UpdateUserDto, __webpack_exports__UserBranchPermissionDto as UserBranchPermissionDto, __webpack_exports__UserBranchesResponseDto as UserBranchesResponseDto, __webpack_exports__UserCompaniesResponseDto as UserCompaniesResponseDto, __webpack_exports__UserCompanyPermission as UserCompanyPermission, __webpack_exports__UserCompanyPermissionDto as UserCompanyPermissionDto, __webpack_exports__UserController as UserController, __webpack_exports__UserInfoDto as UserInfoDto, __webpack_exports__UserLookupResponseDto as UserLookupResponseDto, __webpack_exports__UserPermissionController as UserPermissionController, __webpack_exports__UserPermissionService as UserPermissionService, __webpack_exports__UserResponseDto as UserResponseDto, __webpack_exports__UserService as UserService, __webpack_exports__UserToken as UserToken, __webpack_exports__VerifyEmailDto as VerifyEmailDto, __webpack_exports__authSwaggerConfig as authSwaggerConfig, __webpack_exports__generateAccessToken as generateAccessToken, __webpack_exports__generateTokens as generateTokens, __webpack_exports__getAuthEntitiesByConfig as getAuthEntitiesByConfig, __webpack_exports__getSocialProvider as getSocialProvider, __webpack_exports__loadCompanyBranchNodes as loadCompanyBranchNodes, __webpack_exports__loadDisplayParentIds as loadDisplayParentIds, __webpack_exports__parseExpiryToMs as parseExpiryToMs, __webpack_exports__revokeUserSessions as revokeUserSessions, __webpack_exports__toBranchInfo as toBranchInfo, __webpack_exports__toCompanyInfo as toCompanyInfo, __webpack_exports__toUserInfo as toUserInfo };