@carlonicora/nestjs-neo4jsonapi 1.29.0 → 1.31.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.
Files changed (62) hide show
  1. package/dist/config/base.config.d.ts.map +1 -1
  2. package/dist/config/base.config.js +7 -0
  3. package/dist/config/base.config.js.map +1 -1
  4. package/dist/config/interfaces/base.config.interface.d.ts +2 -0
  5. package/dist/config/interfaces/base.config.interface.d.ts.map +1 -1
  6. package/dist/config/interfaces/config.ai.interface.d.ts +6 -0
  7. package/dist/config/interfaces/config.ai.interface.d.ts.map +1 -1
  8. package/dist/config/interfaces/config.google.interface.d.ts +5 -0
  9. package/dist/config/interfaces/config.google.interface.d.ts.map +1 -0
  10. package/dist/config/interfaces/config.google.interface.js +3 -0
  11. package/dist/config/interfaces/config.google.interface.js.map +1 -0
  12. package/dist/config/interfaces/index.d.ts +1 -0
  13. package/dist/config/interfaces/index.d.ts.map +1 -1
  14. package/dist/config/interfaces/index.js +1 -0
  15. package/dist/config/interfaces/index.js.map +1 -1
  16. package/dist/core/llm/services/model.service.d.ts.map +1 -1
  17. package/dist/core/llm/services/model.service.js +38 -0
  18. package/dist/core/llm/services/model.service.js.map +1 -1
  19. package/dist/core/llm/services/vision.llm.service.d.ts +14 -0
  20. package/dist/core/llm/services/vision.llm.service.d.ts.map +1 -1
  21. package/dist/core/llm/services/vision.llm.service.js +48 -1
  22. package/dist/core/llm/services/vision.llm.service.js.map +1 -1
  23. package/dist/foundations/auth/auth.module.d.ts.map +1 -1
  24. package/dist/foundations/auth/auth.module.js +13 -3
  25. package/dist/foundations/auth/auth.module.js.map +1 -1
  26. package/dist/foundations/auth/controllers/auth.google.controller.d.ts +13 -0
  27. package/dist/foundations/auth/controllers/auth.google.controller.d.ts.map +1 -0
  28. package/dist/foundations/auth/controllers/auth.google.controller.js +61 -0
  29. package/dist/foundations/auth/controllers/auth.google.controller.js.map +1 -0
  30. package/dist/foundations/auth/services/auth.google.service.d.ts +28 -0
  31. package/dist/foundations/auth/services/auth.google.service.d.ts.map +1 -0
  32. package/dist/foundations/auth/services/auth.google.service.js +123 -0
  33. package/dist/foundations/auth/services/auth.google.service.js.map +1 -0
  34. package/dist/foundations/auth/services/auth.service.d.ts +3 -1
  35. package/dist/foundations/auth/services/auth.service.d.ts.map +1 -1
  36. package/dist/foundations/auth/services/auth.service.js +20 -2
  37. package/dist/foundations/auth/services/auth.service.js.map +1 -1
  38. package/dist/foundations/google-user/entities/google-user.d.ts +21 -0
  39. package/dist/foundations/google-user/entities/google-user.d.ts.map +1 -0
  40. package/dist/foundations/google-user/entities/google-user.js +28 -0
  41. package/dist/foundations/google-user/entities/google-user.js.map +1 -0
  42. package/dist/foundations/google-user/google-user.module.d.ts +3 -0
  43. package/dist/foundations/google-user/google-user.module.d.ts.map +1 -0
  44. package/dist/foundations/google-user/google-user.module.js +26 -0
  45. package/dist/foundations/google-user/google-user.module.js.map +1 -0
  46. package/dist/foundations/google-user/index.d.ts +6 -0
  47. package/dist/foundations/google-user/index.d.ts.map +1 -0
  48. package/dist/foundations/google-user/index.js +22 -0
  49. package/dist/foundations/google-user/index.js.map +1 -0
  50. package/dist/foundations/google-user/repositories/google-user.repository.d.ts +21 -0
  51. package/dist/foundations/google-user/repositories/google-user.repository.d.ts.map +1 -0
  52. package/dist/foundations/google-user/repositories/google-user.repository.js +50 -0
  53. package/dist/foundations/google-user/repositories/google-user.repository.js.map +1 -0
  54. package/dist/foundations/google-user/services/google-user.service.d.ts +21 -0
  55. package/dist/foundations/google-user/services/google-user.service.d.ts.map +1 -0
  56. package/dist/foundations/google-user/services/google-user.service.js +63 -0
  57. package/dist/foundations/google-user/services/google-user.service.js.map +1 -0
  58. package/dist/foundations/google-user/types/google.user.type.d.ts +7 -0
  59. package/dist/foundations/google-user/types/google.user.type.d.ts.map +1 -0
  60. package/dist/foundations/google-user/types/google.user.type.js +3 -0
  61. package/dist/foundations/google-user/types/google.user.type.js.map +1 -0
  62. package/package.json +2 -1
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AuthGoogleService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const config_1 = require("@nestjs/config");
18
+ const axios_1 = __importDefault(require("axios"));
19
+ const crypto_1 = require("crypto");
20
+ const nestjs_cls_1 = require("nestjs-cls");
21
+ const __1 = require("..");
22
+ const google_user_repository_1 = require("../../google-user/repositories/google-user.repository");
23
+ const user_1 = require("../../user");
24
+ const pending_registration_service_1 = require("./pending-registration.service");
25
+ let AuthGoogleService = class AuthGoogleService {
26
+ constructor(userRepository, googleUserRepository, authService, config, clsService, pendingRegistrationService) {
27
+ this.userRepository = userRepository;
28
+ this.googleUserRepository = googleUserRepository;
29
+ this.authService = authService;
30
+ this.config = config;
31
+ this.clsService = clsService;
32
+ this.pendingRegistrationService = pendingRegistrationService;
33
+ this._googleAuthUrl = "https://accounts.google.com/o/oauth2/v2/auth";
34
+ this._googleTokenUrl = "https://oauth2.googleapis.com/token";
35
+ this._googleUserInfoUrl = "https://www.googleapis.com/oauth2/v2/userinfo";
36
+ }
37
+ get authConfig() {
38
+ return this.config.get("auth");
39
+ }
40
+ generateLoginUrl() {
41
+ const params = new URLSearchParams({
42
+ client_id: this.config.get("google").clientId,
43
+ redirect_uri: `${this.config.get("api").url}auth/callback/google`,
44
+ response_type: "code",
45
+ scope: "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile",
46
+ access_type: "offline",
47
+ state: (0, crypto_1.randomUUID)(),
48
+ });
49
+ return `${this._googleAuthUrl}?${params.toString()}`;
50
+ }
51
+ async handleGoogleLogin(params) {
52
+ const googleUser = await this.googleUserRepository.findByGoogleId({
53
+ googleId: params.userDetails.id,
54
+ });
55
+ // Existing user - normal login flow
56
+ if (googleUser) {
57
+ if (params.userDetails.picture && googleUser.user.avatar !== params.userDetails.picture) {
58
+ await this.userRepository.updateAvatar({
59
+ userId: googleUser.user.id,
60
+ avatar: params.userDetails.picture,
61
+ });
62
+ }
63
+ const token = await this.authService.createToken({ user: googleUser.user });
64
+ const authCodeId = (0, crypto_1.randomUUID)();
65
+ await this.authService.createCode({
66
+ authCodeId: authCodeId,
67
+ authId: token.data.attributes.refreshToken,
68
+ });
69
+ return `${this.config.get("app").url}auth?code=${authCodeId}`;
70
+ }
71
+ // New user - redirect to consent page
72
+ if (!this.authConfig.allowRegistration) {
73
+ return `${this.config.get("app").url}auth?error=registration_disabled`;
74
+ }
75
+ // Store pending registration in Redis
76
+ const pendingId = await this.pendingRegistrationService.create({
77
+ provider: "google",
78
+ providerUserId: params.userDetails.id,
79
+ email: params.userDetails.email,
80
+ name: params.userDetails.name,
81
+ avatar: params.userDetails.picture,
82
+ });
83
+ return `${this.config.get("app").url}auth/consent?pending=${pendingId}`;
84
+ }
85
+ async exchangeCodeForToken(code) {
86
+ const response = await axios_1.default.post(this._googleTokenUrl, new URLSearchParams({
87
+ client_id: this.config.get("google").clientId,
88
+ client_secret: this.config.get("google").clientSecret,
89
+ grant_type: "authorization_code",
90
+ code: code,
91
+ redirect_uri: `${this.config.get("api").url}auth/callback/google`,
92
+ }).toString(), {
93
+ headers: {
94
+ "Content-Type": "application/x-www-form-urlencoded",
95
+ },
96
+ });
97
+ return response.data.access_token;
98
+ }
99
+ async fetchUserDetails(accessToken) {
100
+ const response = await axios_1.default.get(this._googleUserInfoUrl, {
101
+ headers: {
102
+ Authorization: `Bearer ${accessToken}`,
103
+ },
104
+ });
105
+ return {
106
+ id: response.data.id,
107
+ email: response.data.email,
108
+ name: response.data.name,
109
+ picture: response.data.picture ?? null,
110
+ };
111
+ }
112
+ };
113
+ exports.AuthGoogleService = AuthGoogleService;
114
+ exports.AuthGoogleService = AuthGoogleService = __decorate([
115
+ (0, common_1.Injectable)(),
116
+ __metadata("design:paramtypes", [user_1.UserRepository,
117
+ google_user_repository_1.GoogleUserRepository,
118
+ __1.AuthService,
119
+ config_1.ConfigService,
120
+ nestjs_cls_1.ClsService,
121
+ pending_registration_service_1.PendingRegistrationService])
122
+ ], AuthGoogleService);
123
+ //# sourceMappingURL=auth.google.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.google.service.js","sourceRoot":"","sources":["../../../../src/foundations/auth/services/auth.google.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,kDAA0B;AAC1B,mCAAoC;AACpC,2CAAwC;AACxC,0BAAiC;AAIjC,kGAA6F;AAE7F,qCAA4C;AAC5C,iFAA4E;AAGrE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YACmB,cAA8B,EAC9B,oBAA0C,EAC1C,WAAwB,EACxB,MAA0C,EAC1C,UAAsB,EACtB,0BAAsD;QALtD,mBAAc,GAAd,cAAc,CAAgB;QAC9B,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,gBAAW,GAAX,WAAW,CAAa;QACxB,WAAM,GAAN,MAAM,CAAoC;QAC1C,eAAU,GAAV,UAAU,CAAY;QACtB,+BAA0B,GAA1B,0BAA0B,CAA4B;QAGxD,mBAAc,GAAG,8CAA8C,CAAC;QAChE,oB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M,CAAC,GAAG,CAAwB,QAAQ,CAAC,CAAC,YAAY;YAC5E,UAAU,EAAE,oBAAoB;YAChC,IAAI,EAAE,IAAI;YACV,YAAY,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAqB,KAAK,CAAC,CAAC,GAAG,sBAAsB;SACtF,CAAC,CAAC,QAAQ,EAAE,EACb;YACE,OAAO,EAAE;gBACP,cAAc,EAAE,mCAAmC;aACpD;SACF,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,WAAmB;QACxC,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,EAAE;YACxD,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,WAAW,EAAE;aACvC;SACF,CAAC,CAAC;QAEH,OAAO;YACL,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE;YACpB,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK;YAC1B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI;YACxB,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI;SACvC,CAAC;IACJ,CAAC;CACF,CAAA;AA3GY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAGwB,qBAAc;QACR,6CAAoB;QAC7B,eAAW;QAChB,sBAAa;QACT,uBAAU;QACM,yDAA0B;GAP9D,iBAAiB,CA2G7B"}
@@ -18,6 +18,7 @@ import { UserRepository } from "../../user/repositories/user.repository";
18
18
  import { UserService } from "../../user/services/user.service";
19
19
  import { PendingRegistrationService } from "./pending-registration.service";
20
20
  import { DiscordUserService } from "../../discord-user/services/discord-user.service";
21
+ import { GoogleUserService } from "../../google-user/services/google-user.service";
21
22
  export declare class AuthService {
22
23
  private readonly builder;
23
24
  private readonly repository;
@@ -32,7 +33,8 @@ export declare class AuthService {
32
33
  private readonly configService;
33
34
  private readonly pendingRegistrationService;
34
35
  private readonly discordUserService;
35
- constructor(builder: JsonApiService, repository: AuthRepository, userService: UserService, users: UserRepository, companyRepository: CompanyRepository, emailService: EmailService, security: SecurityService, clsService: ClsService, neo4j: Neo4jService, moduleRef: ModuleRef, configService: ConfigService<BaseConfigInterface>, pendingRegistrationService: PendingRegistrationService, discordUserService: DiscordUserService);
36
+ private readonly googleUserService;
37
+ constructor(builder: JsonApiService, repository: AuthRepository, userService: UserService, users: UserRepository, companyRepository: CompanyRepository, emailService: EmailService, security: SecurityService, clsService: ClsService, neo4j: Neo4jService, moduleRef: ModuleRef, configService: ConfigService<BaseConfigInterface>, pendingRegistrationService: PendingRegistrationService, discordUserService: DiscordUserService, googleUserService: GoogleUserService);
36
38
  private get appConfig();
37
39
  private get authConfig();
38
40
  findCurrentAuth(): Promise<JsonApiDataInterface>;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/services/auth.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAA+B,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAChH,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAA2C,MAAM,4BAA4B,CAAC;AAC1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,C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,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAe5C,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAe/C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAU3C,yBAAyB,CAAC,MAAM,EAAE;QACtC,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,OAAO,CAAC;QAC1B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;KACnC,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAsE9B"}
@@ -27,8 +27,9 @@ const user_repository_1 = require("../../user/repositories/user.repository");
27
27
  const user_service_1 = require("../../user/services/user.service");
28
28
  const pending_registration_service_1 = require("./pending-registration.service");
29
29
  const discord_user_service_1 = require("../../discord-user/services/discord-user.service");
30
+ const google_user_service_1 = require("../../google-user/services/google-user.service");
30
31
  let AuthService = class AuthService {
31
- constructor(builder, repository, userService, users, companyRepository, emailService, security, clsService, neo4j, moduleRef, configService, pendingRegistrationService, discordUserService) {
32
+ constructor(builder, repository, userService, users, companyRepository, emailService, security, clsService, neo4j, moduleRef, configService, pendingRegistrationService, discordUserService, googleUserService) {
32
33
  this.builder = builder;
33
34
  this.repository = repository;
34
35
  this.userService = userService;
@@ -42,6 +43,7 @@ let AuthService = class AuthService {
42
43
  this.configService = configService;
43
44
  this.pendingRegistrationService = pendingRegistrationService;
44
45
  this.discordUserService = discordUserService;
46
+ this.googleUserService = googleUserService;
45
47
  }
46
48
  get appConfig() {
47
49
  return this.configService.get("app");
@@ -283,6 +285,21 @@ let AuthService = class AuthService {
283
285
  marketingConsentAt: params.marketingConsentAt,
284
286
  });
285
287
  }
288
+ else if (pending.provider === "google") {
289
+ await this.googleUserService.create({
290
+ userId,
291
+ companyId,
292
+ userDetails: {
293
+ id: pending.providerUserId,
294
+ email: pending.email,
295
+ name: pending.name,
296
+ picture: pending.avatar,
297
+ },
298
+ termsAcceptedAt: params.termsAcceptedAt,
299
+ marketingConsent: params.marketingConsent,
300
+ marketingConsentAt: params.marketingConsentAt,
301
+ });
302
+ }
286
303
  else {
287
304
  throw new common_1.HttpException(`Unsupported provider: ${pending.provider}`, common_1.HttpStatus.BAD_REQUEST);
288
305
  }
@@ -318,6 +335,7 @@ exports.AuthService = AuthService = __decorate([
318
335
  core_1.ModuleRef,
319
336
  config_1.ConfigService,
320
337
  pending_registration_service_1.PendingRegistrationService,
321
- discord_user_service_1.DiscordUserService])
338
+ discord_user_service_1.DiscordUserService,
339
+ google_user_service_1.GoogleUserService])
322
340
  ], AuthService);
323
341
  //# sourceMappingURL=auth.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/foundations/auth/services/auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAuE;AACvE,2CAA+C;AAC/C,uCAAyC;AACzC,mCAAoC;AACpC,yEAAgE;AAChE,8EAA0E;AAC1E,uFAAgH;AAGhH,2CAAwC;AAGxC,oFAAgF;AAChF,8EAA0E;AAI1E,+DAA2D;AAC3D,6EAAyE;AACzE,sFAAkF;AAGlF,6EAAyE;AACzE,mEAA+D;AAC/D,iFAA4E;AAC5E,2FAAsF;AAG/E,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YACmB,OAAuB,EACvB,UAA0B,EAC1B,WAAwB,EACxB,KAAqB,EACrB,iBAAoC,EACpC,YAA0B,EAC1B,QAAyB,EACzB,UAAsB,EACtB,KAAmB,EACnB,SAAoB,EACpB,aAAiD,EACjD,0BAAsD,EACtD,kBAAsC;QAZtC,YAAO,GAAP,OAAO,CAAgB;QACvB,eAAU,GAAV,UAAU,CAAgB;QAC1B,gBAAW,GAAX,WAAW,CAAa;QACxB,UAAK,GAAL,KAAK,CAAgB;QACrB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,iBAAY,GAAZ,YAA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C/F,CAAC;QAED,kBAAkB;QAClB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QAC5C,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAEtC,8BAA8B;QAC9B,MAAM,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAE/D,mBAAmB;QACnB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QAEvD,oBAAoB;QACpB,MAAM,KAAK,GAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QACpD,MAAM,UAAU,GAAG,IAAA,mBAAU,GAAE,CAAC;QAEhC,MAAM,IAAI,CAAC,UAAU,CAAC;YACpB,UAAU;YACV,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY;SAC3C,CAAC,CAAC;QAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC9B,CAAC;CACF,CAAA;AAhWY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAGiB,gCAAc;QACX,gCAAc;QACb,0BAAW;QACjB,gCAAc;QACF,sCAAiB;QACtB,4BAAY;QAChB,kCAAe;QACb,uBAAU;QACf,4BAAY;QACR,gBAAS;QACL,sBAAa;QACA,yDAA0B;QAClC,yCAAkB;GAd9C,WAAW,CAgWvB"}
1
+ {"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/foundations/auth/services/auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAuE;AACvE,2CAA+C;AAC/C,uCAAyC;AACzC,mCAAoC;AACpC,yEAAgE;AAChE,8EAA0E;AAC1E,uFAAgH;AAGhH,2CAAwC;AAGxC,oFAAgF;AAChF,8EAA0E;AAI1E,+DA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AAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAE/D,mBAAmB;QACnB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QAEvD,oBAAoB;QACpB,MAAM,KAAK,GAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QACpD,MAAM,UAAU,GAAG,IAAA,mBAAU,GAAE,CAAC;QAEhC,MAAM,IAAI,CAAC,UAAU,CAAC;YACpB,UAAU;YACV,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY;SAC3C,CAAC,CAAC;QAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC9B,CAAC;CACF,CAAA;AA/WY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAGiB,gCAAc;QACX,gCAAc;QACb,0BAAW;QACjB,gCAAc;QACF,sCAAiB;QACtB,4BAAY;QAChB,kCAAe;QACb,uBAAU;QACf,4BAAY;QACR,gBAAS;QACL,sBAAa;QACA,yDAA0B;QAClC,yCAAkB;QACnB,uCAAiB;GAf5C,WAAW,CA+WvB"}
@@ -0,0 +1,21 @@
1
+ import { Entity } from "../../../common";
2
+ import { Company } from "../../company";
3
+ import { User } from "../../user";
4
+ export type GoogleUser = Entity & {
5
+ name: string;
6
+ googleId: string;
7
+ company: Company;
8
+ user: User;
9
+ };
10
+ export declare const GoogleUserDescriptor: import("../../../common").EntityDescriptor<GoogleUser, {
11
+ user: {
12
+ model: import("../../../common").DataMeta;
13
+ direction: "in";
14
+ relationship: string;
15
+ cardinality: "one";
16
+ dtoKey: string;
17
+ contextKey: string;
18
+ };
19
+ }>;
20
+ export type GoogleUserDescriptorType = typeof GoogleUserDescriptor;
21
+ //# sourceMappingURL=google-user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-user.d.ts","sourceRoot":"","sources":["../../../../src/foundations/google-user/entities/google-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAY,MAAM,YAAY,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IAEjB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;EAuB/B,CAAC;AAGH,MAAM,MAAM,wBAAwB,GAAG,OAAO,oBAAoB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GoogleUserDescriptor = void 0;
4
+ const common_1 = require("../../../common");
5
+ const user_1 = require("../../user");
6
+ exports.GoogleUserDescriptor = (0, common_1.defineEntity)()({
7
+ // Meta properties
8
+ type: "googleusers",
9
+ endpoint: "googleusers",
10
+ nodeName: "googleuser",
11
+ labelName: "GoogleUser",
12
+ // Field definitions
13
+ fields: {
14
+ name: { type: "string", required: true },
15
+ googleId: { type: "string", required: true },
16
+ },
17
+ relationships: {
18
+ user: {
19
+ model: user_1.userMeta,
20
+ direction: "in",
21
+ relationship: "HAS_GOOGLE",
22
+ cardinality: "one",
23
+ dtoKey: "users",
24
+ contextKey: "userId",
25
+ },
26
+ },
27
+ });
28
+ //# sourceMappingURL=google-user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-user.js","sourceRoot":"","sources":["../../../../src/foundations/google-user/entities/google-user.ts"],"names":[],"mappings":";;;AAAA,4CAAuD;AAEvD,qCAA4C;AAU/B,QAAA,oBAAoB,GAAG,IAAA,qBAAY,GAAc,CAAC;IAC7D,kBAAkB;IAClB,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,aAAa;IACvB,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,YAAY;IAEvB,oBAAoB;IACpB,MAAM,EAAE;QACN,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC7C;IAED,aAAa,EAAE;QACb,IAAI,EAAE;YACJ,KAAK,EAAE,eAAQ;YACf,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,YAAY;YAC1B,WAAW,EAAE,KAAK;YAClB,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,QAAQ;SACrB;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare class GoogleUserModule {
2
+ }
3
+ //# sourceMappingURL=google-user.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-user.module.d.ts","sourceRoot":"","sources":["../../../src/foundations/google-user/google-user.module.ts"],"names":[],"mappings":"AAMA,qBAMa,gBAAgB;CAAG"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.GoogleUserModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const company_1 = require("../company");
12
+ const user_1 = require("../user");
13
+ const google_user_repository_1 = require("./repositories/google-user.repository");
14
+ const google_user_service_1 = require("./services/google-user.service");
15
+ let GoogleUserModule = class GoogleUserModule {
16
+ };
17
+ exports.GoogleUserModule = GoogleUserModule;
18
+ exports.GoogleUserModule = GoogleUserModule = __decorate([
19
+ (0, common_1.Module)({
20
+ controllers: [],
21
+ providers: [google_user_repository_1.GoogleUserRepository, google_user_service_1.GoogleUserService],
22
+ exports: [google_user_repository_1.GoogleUserRepository, google_user_service_1.GoogleUserService],
23
+ imports: [company_1.CompanyModule, user_1.UserModule],
24
+ })
25
+ ], GoogleUserModule);
26
+ //# sourceMappingURL=google-user.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-user.module.js","sourceRoot":"","sources":["../../../src/foundations/google-user/google-user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,wCAA2C;AAC3C,kCAAqC;AACrC,kFAA6E;AAC7E,wEAAmE;AAQ5D,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,4CAAgB;2BAAhB,gBAAgB;IAN5B,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,CAAC,6CAAoB,EAAE,uCAAiB,CAAC;QACpD,OAAO,EAAE,CAAC,6CAAoB,EAAE,uCAAiB,CAAC;QAClD,OAAO,EAAE,CAAC,uBAAa,EAAE,iBAAU,CAAC;KACrC,CAAC;GACW,gBAAgB,CAAG"}
@@ -0,0 +1,6 @@
1
+ export * from "./google-user.module";
2
+ export * from "./entities/google-user";
3
+ export * from "./repositories/google-user.repository";
4
+ export * from "./services/google-user.service";
5
+ export * from "./types/google.user.type";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/google-user/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./google-user.module"), exports);
18
+ __exportStar(require("./entities/google-user"), exports);
19
+ __exportStar(require("./repositories/google-user.repository"), exports);
20
+ __exportStar(require("./services/google-user.service"), exports);
21
+ __exportStar(require("./types/google.user.type"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundations/google-user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,yDAAuC;AACvC,wEAAsD;AACtD,iEAA+C;AAC/C,2DAAyC"}
@@ -0,0 +1,21 @@
1
+ import { ClsService } from "nestjs-cls";
2
+ import { AbstractRepository, Neo4jService, SecurityService } from "../../../core";
3
+ import { GoogleUser, GoogleUserDescriptor } from "../entities/google-user";
4
+ export declare class GoogleUserRepository extends AbstractRepository<GoogleUser, typeof GoogleUserDescriptor.relationships> {
5
+ protected readonly descriptor: import("../../..").EntityDescriptor<GoogleUser, {
6
+ user: {
7
+ model: import("../../..").DataMeta;
8
+ direction: "in";
9
+ relationship: string;
10
+ cardinality: "one";
11
+ dtoKey: string;
12
+ contextKey: string;
13
+ };
14
+ }>;
15
+ constructor(neo4j: Neo4jService, securityService: SecurityService, clsService: ClsService);
16
+ protected buildReturnStatement(): string;
17
+ findByGoogleId(params: {
18
+ googleId: string;
19
+ }): Promise<GoogleUser>;
20
+ }
21
+ //# sourceMappingURL=google-user.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-user.repository.d.ts","sourceRoot":"","sources":["../../../../src/foundations/google-user/repositories/google-user.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGlF,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE3E,qBACa,oBAAqB,SAAQ,kBAAkB,CAAC,UAAU,EAAE,OAAO,oBAAoB,CAAC,aAAa,CAAC;IACjH,SAAS,CAAC,QAAQ,CAAC,UAAU;;;;;;;;;OAAwB;gBACzC,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU;IAIzF,SAAS,CAAC,oBAAoB,IAAI,MAAM;IAUlC,cAAc,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,UAAU,CAAC;CAcxE"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GoogleUserRepository = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_cls_1 = require("nestjs-cls");
15
+ const core_1 = require("../../../core");
16
+ const role_1 = require("../../role");
17
+ const user_1 = require("../../user");
18
+ const google_user_1 = require("../entities/google-user");
19
+ let GoogleUserRepository = class GoogleUserRepository extends core_1.AbstractRepository {
20
+ constructor(neo4j, securityService, clsService) {
21
+ super(neo4j, securityService, clsService);
22
+ this.descriptor = google_user_1.GoogleUserDescriptor;
23
+ }
24
+ buildReturnStatement() {
25
+ return `
26
+ MATCH (googleuser:GoogleUser)-[:BELONGS_TO]->(googleuser_company:Company)
27
+ MATCH (googleuser)<-[:HAS_GOOGLE]-(googleuser_user:User)
28
+ OPTIONAL MATCH (googleuser_${user_1.userMeta.nodeName})-[:MEMBER_OF]->(googleuser_${user_1.userMeta.nodeName}_${role_1.roleMeta.nodeName}:${role_1.roleMeta.labelName})
29
+
30
+ RETURN googleuser, googleuser_company, googleuser_user, googleuser_company as googleuser_user_company, googleuser_${user_1.userMeta.nodeName}_${role_1.roleMeta.nodeName}
31
+ `;
32
+ }
33
+ async findByGoogleId(params) {
34
+ const query = this.neo4j.initQuery({ serialiser: this.descriptor.model });
35
+ query.queryParams = {
36
+ googleId: params.googleId,
37
+ };
38
+ query.query = `
39
+ MATCH (${google_user_1.GoogleUserDescriptor.model.nodeName}:${google_user_1.GoogleUserDescriptor.model.labelName} { googleId: $googleId })
40
+ ${this.buildReturnStatement()}
41
+ `;
42
+ return this.neo4j.readOne(query);
43
+ }
44
+ };
45
+ exports.GoogleUserRepository = GoogleUserRepository;
46
+ exports.GoogleUserRepository = GoogleUserRepository = __decorate([
47
+ (0, common_1.Injectable)(),
48
+ __metadata("design:paramtypes", [core_1.Neo4jService, core_1.SecurityService, nestjs_cls_1.ClsService])
49
+ ], GoogleUserRepository);
50
+ //# sourceMappingURL=google-user.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-user.repository.js","sourceRoot":"","sources":["../../../../src/foundations/google-user/repositories/google-user.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAAwC;AACxC,wCAAkF;AAClF,qCAAsC;AACtC,qCAAsC;AACtC,yDAA2E;AAGpE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,yBAAyE;IAEjH,YAAY,KAAmB,EAAE,eAAgC,EAAE,UAAsB;QACvF,KAAK,CAAC,KAAK,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;QAFzB,eAAU,GAAG,kCAAoB,CAAC;IAGrD,CAAC;IAES,oBAAoB;QAC5B,OAAO;;;mCAGwB,eAAQ,CAAC,QAAQ,+BAA+B,eAAQ,CAAC,QAAQ,IAAI,eAAQ,CAAC,QAAQ,IAAI,eAAQ,CAAC,SAAS;;0HAErB,eAAQ,CAAC,QAAQ,IAAI,eAAQ,CAAC,QAAQ;KAC3J,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,MAA4B;QAC/C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;QAE1E,KAAK,CAAC,WAAW,GAAG;YAClB,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B,CAAC;QAEF,KAAK,CAAC,KAAK,GAAG;eACH,kCAAoB,CAAC,KAAK,CAAC,QAAQ,IAAI,kCAAoB,CAAC,KAAK,CAAC,SAAS;QAClF,IAAI,CAAC,oBAAoB,EAAE;KAC9B,CAAC;QAEF,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;CACF,CAAA;AA9BY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAGQ,mBAAY,EAAmB,sBAAe,EAAc,uBAAU;GAF9E,oBAAoB,CA8BhC"}
@@ -0,0 +1,21 @@
1
+ import { ClsService } from "nestjs-cls";
2
+ import { CompanyRepository } from "../../company";
3
+ import { UserRepository } from "../../user";
4
+ import { GoogleUserRepository } from "../repositories/google-user.repository";
5
+ import { googleUser } from "../types/google.user.type";
6
+ export declare class GoogleUserService {
7
+ private readonly googleUserRepository;
8
+ private readonly userRepository;
9
+ private readonly companyRepository;
10
+ private readonly clsService;
11
+ constructor(googleUserRepository: GoogleUserRepository, userRepository: UserRepository, companyRepository: CompanyRepository, clsService: ClsService);
12
+ create(params: {
13
+ userId: string;
14
+ companyId: string;
15
+ userDetails: googleUser;
16
+ termsAcceptedAt?: string;
17
+ marketingConsent?: boolean;
18
+ marketingConsentAt?: string | null;
19
+ }): Promise<void>;
20
+ }
21
+ //# sourceMappingURL=google-user.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-user.service.d.ts","sourceRoot":"","sources":["../../../../src/foundations/google-user/services/google-user.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,qBACa,iBAAiB;IAE1B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAHV,oBAAoB,EAAE,oBAAoB,EAC1C,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,UAAU;IAGnC,MAAM,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,UAAU,CAAC;QACxB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACpC,GAAG,OAAO,CAAC,IAAI,CAAC;CA8BlB"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GoogleUserService = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const crypto_1 = require("crypto");
15
+ const nestjs_cls_1 = require("nestjs-cls");
16
+ const common_2 = require("../../../common");
17
+ const company_1 = require("../../company");
18
+ const user_1 = require("../../user");
19
+ const google_user_repository_1 = require("../repositories/google-user.repository");
20
+ let GoogleUserService = class GoogleUserService {
21
+ constructor(googleUserRepository, userRepository, companyRepository, clsService) {
22
+ this.googleUserRepository = googleUserRepository;
23
+ this.userRepository = userRepository;
24
+ this.companyRepository = companyRepository;
25
+ this.clsService = clsService;
26
+ }
27
+ async create(params) {
28
+ this.clsService.set("companyId", params.companyId);
29
+ this.clsService.set("userId", params.userId);
30
+ await this.companyRepository.create({
31
+ companyId: params.companyId,
32
+ name: `${params.userDetails.name}`,
33
+ });
34
+ await this.userRepository.create({
35
+ userId: params.userId,
36
+ email: params.userDetails.email ?? params.userDetails.id,
37
+ name: params.userDetails.name,
38
+ password: (0, crypto_1.randomUUID)(),
39
+ companyId: params.companyId,
40
+ avatar: params.userDetails.picture,
41
+ roleIds: [common_2.RoleId.CompanyAdministrator],
42
+ isActive: true,
43
+ termsAcceptedAt: params.termsAcceptedAt,
44
+ marketingConsent: params.marketingConsent,
45
+ marketingConsentAt: params.marketingConsentAt ?? undefined,
46
+ });
47
+ await this.googleUserRepository.create({
48
+ id: params.userId,
49
+ googleId: params.userDetails.id,
50
+ name: params.userDetails.name,
51
+ user: params.userId,
52
+ });
53
+ }
54
+ };
55
+ exports.GoogleUserService = GoogleUserService;
56
+ exports.GoogleUserService = GoogleUserService = __decorate([
57
+ (0, common_1.Injectable)(),
58
+ __metadata("design:paramtypes", [google_user_repository_1.GoogleUserRepository,
59
+ user_1.UserRepository,
60
+ company_1.CompanyRepository,
61
+ nestjs_cls_1.ClsService])
62
+ ], GoogleUserService);
63
+ //# sourceMappingURL=google-user.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-user.service.js","sourceRoot":"","sources":["../../../../src/foundations/google-user/services/google-user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mCAAoC;AACpC,2CAAwC;AACxC,4CAAyC;AACzC,2CAAkD;AAClD,qCAA4C;AAC5C,mFAA8E;AAIvE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YACmB,oBAA0C,EAC1C,cAA8B,EAC9B,iBAAoC,EACpC,UAAsB;QAHtB,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,eAAU,GAAV,UAAU,CAAY;IACtC,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,MAOZ;QACC,IAAI,CAAC,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BAAc;QACX,2BAAiB;QACxB,uBAAU;GAL9B,iBAAiB,CA6C7B"}
@@ -0,0 +1,7 @@
1
+ export type googleUser = {
2
+ id: string;
3
+ name: string;
4
+ email?: string;
5
+ picture: string | null;
6
+ };
7
+ //# sourceMappingURL=google.user.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google.user.type.d.ts","sourceRoot":"","sources":["../../../../src/foundations/google-user/types/google.user.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=google.user.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google.user.type.js","sourceRoot":"","sources":["../../../../src/foundations/google-user/types/google.user.type.ts"],"names":[],"mappings":""}