@darraghor/nest-backend-libs 2.21.4 → 2.22.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 (94) hide show
  1. package/dist/authz/RequestWithUser.d.ts +3 -3
  2. package/dist/authz/UserValidation.service.d.ts +4 -4
  3. package/dist/authz/UserValidation.service.js +30 -30
  4. package/dist/authz/UserValidation.service.js.map +1 -1
  5. package/dist/authz/authz.module.js +2 -2
  6. package/dist/authz/authz.module.js.map +1 -1
  7. package/dist/authz/authzstrategy.d.ts +2 -2
  8. package/dist/authz/authzstrategy.js +2 -2
  9. package/dist/authz/authzstrategy.js.map +1 -1
  10. package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js +2 -3
  11. package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js.map +1 -1
  12. package/dist/index.d.ts +2 -2
  13. package/dist/index.js +2 -2
  14. package/dist/index.js.map +1 -1
  15. package/dist/invitations/invitation.service.d.ts +2 -2
  16. package/dist/invitations/invitation.service.js +1 -1
  17. package/dist/invitations/invitation.service.js.map +1 -1
  18. package/dist/organisation/dto/create-organisation.dto.d.ts +3 -3
  19. package/dist/organisation/dto/create-organisation.dto.js +4 -4
  20. package/dist/organisation/dto/create-organisation.dto.js.map +1 -1
  21. package/dist/organisation/organisation.service.js +6 -6
  22. package/dist/organisation/organisation.service.js.map +1 -1
  23. package/dist/organisation-memberships/dtos/create-membership-dto.d.ts +1 -1
  24. package/dist/organisation-memberships/dtos/create-membership-dto.js +2 -2
  25. package/dist/organisation-memberships/dtos/create-membership-dto.js.map +1 -1
  26. package/dist/organisation-memberships/entities/organisation-membership.entity.d.ts +3 -3
  27. package/dist/organisation-memberships/entities/organisation-membership.entity.js +8 -8
  28. package/dist/organisation-memberships/entities/organisation-membership.entity.js.map +1 -1
  29. package/dist/organisation-memberships/organisation-memberships.service.js +6 -6
  30. package/dist/organisation-memberships/organisation-memberships.service.js.map +1 -1
  31. package/dist/organisation-subscriptions/organisation-subscriptions.service.js +1 -1
  32. package/dist/organisation-subscriptions/organisation-subscriptions.service.js.map +1 -1
  33. package/dist/payment-sessions/payment-session.entity.d.ts +1 -1
  34. package/dist/payment-sessions/payment-session.entity.js +2 -2
  35. package/dist/payment-sessions/payment-session.entity.js.map +1 -1
  36. package/dist/payment-sessions/payment-session.service.d.ts +1 -1
  37. package/dist/payment-sessions/payment-session.service.js +1 -1
  38. package/dist/payment-sessions/payment-session.service.js.map +1 -1
  39. package/dist/stripe-client/services/stripe-checkout.service.d.ts +3 -3
  40. package/dist/stripe-client/services/stripe-checkout.service.js +1 -1
  41. package/dist/stripe-client/services/stripe-checkout.service.js.map +1 -1
  42. package/dist/user-external/index.d.ts +1 -0
  43. package/dist/user-external/index.js +6 -0
  44. package/dist/user-external/index.js.map +1 -0
  45. package/dist/user-external/user-external.module.d.ts +2 -0
  46. package/dist/{person-external/person-external.module.js → user-external/user-external.module.js} +10 -10
  47. package/dist/user-external/user-external.module.js.map +1 -0
  48. package/dist/user-external/user.controller.d.ts +16 -0
  49. package/dist/{person-external/person.controller.js → user-external/user.controller.js} +28 -28
  50. package/dist/user-external/user.controller.js.map +1 -0
  51. package/dist/user-internal/dto/create-user.dto.d.ts +2 -0
  52. package/dist/user-internal/dto/create-user.dto.js +7 -0
  53. package/dist/user-internal/dto/create-user.dto.js.map +1 -0
  54. package/dist/user-internal/dto/update-user.dto.d.ts +5 -0
  55. package/dist/user-internal/dto/update-user.dto.js +9 -0
  56. package/dist/user-internal/dto/update-user.dto.js.map +1 -0
  57. package/dist/{person-internal/dto/personResponseDto.d.ts → user-internal/dto/userResponseDto.d.ts} +1 -1
  58. package/dist/{person-internal/dto/personResponseDto.js → user-internal/dto/userResponseDto.js} +20 -20
  59. package/dist/user-internal/dto/userResponseDto.js.map +1 -0
  60. package/dist/{person-internal/entities/person.entity.d.ts → user-internal/entities/user.entity.d.ts} +1 -1
  61. package/dist/{person-internal/entities/person.entity.js → user-internal/entities/user.entity.js} +23 -23
  62. package/dist/user-internal/entities/user.entity.js.map +1 -0
  63. package/dist/user-internal/index.d.ts +2 -0
  64. package/dist/user-internal/index.js +8 -0
  65. package/dist/user-internal/index.js.map +1 -0
  66. package/dist/user-internal/user-internal.module.d.ts +2 -0
  67. package/dist/{person-internal/person-internal.module.js → user-internal/user-internal.module.js} +11 -11
  68. package/dist/user-internal/user-internal.module.js.map +1 -0
  69. package/dist/user-internal/user.service.d.ts +17 -0
  70. package/dist/{person-internal/person.service.js → user-internal/user.service.js} +14 -14
  71. package/dist/user-internal/user.service.js.map +1 -0
  72. package/package.json +1 -1
  73. package/dist/person-external/index.d.ts +0 -1
  74. package/dist/person-external/index.js +0 -6
  75. package/dist/person-external/index.js.map +0 -1
  76. package/dist/person-external/person-external.module.d.ts +0 -2
  77. package/dist/person-external/person-external.module.js.map +0 -1
  78. package/dist/person-external/person.controller.d.ts +0 -16
  79. package/dist/person-external/person.controller.js.map +0 -1
  80. package/dist/person-internal/dto/create-person.dto.d.ts +0 -2
  81. package/dist/person-internal/dto/create-person.dto.js +0 -7
  82. package/dist/person-internal/dto/create-person.dto.js.map +0 -1
  83. package/dist/person-internal/dto/personResponseDto.js.map +0 -1
  84. package/dist/person-internal/dto/update-person.dto.d.ts +0 -5
  85. package/dist/person-internal/dto/update-person.dto.js +0 -9
  86. package/dist/person-internal/dto/update-person.dto.js.map +0 -1
  87. package/dist/person-internal/entities/person.entity.js.map +0 -1
  88. package/dist/person-internal/index.d.ts +0 -2
  89. package/dist/person-internal/index.js +0 -8
  90. package/dist/person-internal/index.js.map +0 -1
  91. package/dist/person-internal/person-internal.module.d.ts +0 -2
  92. package/dist/person-internal/person-internal.module.js.map +0 -1
  93. package/dist/person-internal/person.service.d.ts +0 -17
  94. package/dist/person-internal/person.service.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"organisation-subscriptions.service.js","sourceRoot":"","sources":["../../src/organisation-subscriptions/organisation-subscriptions.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;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AAI,CAC3C,oBAAoB,CACvB,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACxB;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAe;QACxB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;YAC9C,IAAI,EAAE,OAAO;SAChB,CAAC,CAAC;QAEH,OAAO,CACH,MAAM,CAAC,QAAQ,KAAK,SAAS;YAC7B,MAAM,CAAC,QAAQ,KAAK,IAAI;YACxB,MAAM,CAAC,QAAQ,GAAG,CAAC,CACtB,CAAC;IACN,CAAC;CACJ,CAAA;AApLY,+BAA+B;IAD3C,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,0BAAgB,EAAC,kCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,0BAAgB,EAAC,iEAA8B,CAAC,CAAA;qCADhC,oBAAU;QAED,oBAAU;QACI,+CAAqB;GAPxD,+BAA+B,CAoL3C;AApLY,0EAA+B"}
1
+ {"version":3,"file":"organisation-subscriptions.service.js","sourceRoot":"","sources":["../../src/organisation-subscriptions/organisation-subscriptions.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,6CAAiD;AACjD,qCAAmC;AACnC,6DAAoD;AACpD,sFAA0E;AAC1E,yFAAkF;AAClF,kGAA2F;AAIpF,IAAM,+BAA+B,uCAArC,MAAM,+BAA+B;IAI5B;IAEA;IACS;IANJ,MAAM,GAAG,IAAI,eAAM,CAAC,iCAA+B,CAAC,IAAI,CAAC,CAAC;IAC3E,YAEY,OAAiC,EAEjC,gBAA4D,EACnD,qBAA4C;QAHrD,YAAO,GAAP,OAAO,CAA0B;QAEjC,qBAAgB,GAAhB,gBAAgB,CAA4C;QACnD,0BAAqB,GAArB,qBAAqB,CAAuB;IAC9D,CAAC;IACI,eAAe,GACnB,mDAAmD,CAAC;IACxD,KAAK,CAAC,oBAAoB,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;IAIJ,WAAA,IAAA,0BAAgB,EAAC,kCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,0BAAgB,EAAC,iEAA8B,CAAC,CAAA;qCADhC,oBAAU;QAED,oBAAU;QACI,+CAAqB;GAPxD,+BAA+B,CAoL3C;AApLY,0EAA+B"}
@@ -3,5 +3,5 @@ export declare class PaymentSessionReference {
3
3
  uuid: string;
4
4
  createdDate: Date;
5
5
  organisationUuid?: string;
6
- personUuid: string;
6
+ userUuid: string;
7
7
  }
@@ -17,7 +17,7 @@ let PaymentSessionReference = class PaymentSessionReference {
17
17
  uuid;
18
18
  createdDate;
19
19
  organisationUuid;
20
- personUuid;
20
+ userUuid;
21
21
  };
22
22
  __decorate([
23
23
  (0, typeorm_1.PrimaryGeneratedColumn)(),
@@ -46,7 +46,7 @@ __decorate([
46
46
  __decorate([
47
47
  (0, typeorm_1.Column)(),
48
48
  __metadata("design:type", String)
49
- ], PaymentSessionReference.prototype, "personUuid", void 0);
49
+ ], PaymentSessionReference.prototype, "userUuid", void 0);
50
50
  PaymentSessionReference = __decorate([
51
51
  (0, typeorm_1.Entity)()
52
52
  ], PaymentSessionReference);
@@ -1 +1 @@
1
- {"version":3,"file":"payment-session.entity.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAC5C,qCAOiB;AAGV,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAGhC,EAAE,CAAU;IASL,IAAI,CAAU;IAIrB,WAAW,CAAQ;IAGnB,gBAAgB,CAAU;IAG1B,UAAU,CAAU;CACvB,CAAA;AAtBG;IAAC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,GAAE;;mDACF;AAEZ;IAAC,IAAA,gBAAM,EAAC,MAAM,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB;KACtC,CAAC;IACD,IAAA,mBAAS,EAAC,MAAM,CAAC;IACjB,IAAA,qBAAW,GAAE;IACb,IAAA,eAAK,GAAE;;qDACa;AAErB;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,GAAE;8BACA,IAAI;4DAAC;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;iEACC;AAE1B;IAAC,IAAA,gBAAM,GAAE;;2DACW;AAtBX,uBAAuB;IADnC,IAAA,gBAAM,GAAE;GACI,uBAAuB,CAuBnC;AAvBY,0DAAuB"}
1
+ {"version":3,"file":"payment-session.entity.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAC5C,qCAOiB;AAGV,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAGhC,EAAE,CAAU;IASL,IAAI,CAAU;IAIrB,WAAW,CAAQ;IAGnB,gBAAgB,CAAU;IAG1B,QAAQ,CAAU;CACrB,CAAA;AAtBG;IAAC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,GAAE;;mDACF;AAEZ;IAAC,IAAA,gBAAM,EAAC,MAAM,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB;KACtC,CAAC;IACD,IAAA,mBAAS,EAAC,MAAM,CAAC;IACjB,IAAA,qBAAW,GAAE;IACb,IAAA,eAAK,GAAE;;qDACa;AAErB;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,GAAE;8BACA,IAAI;4DAAC;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;iEACC;AAE1B;IAAC,IAAA,gBAAM,GAAE;;yDACS;AAtBT,uBAAuB;IADnC,IAAA,gBAAM,GAAE;GACI,uBAAuB,CAuBnC;AAvBY,0DAAuB"}
@@ -7,6 +7,6 @@ export declare class PaymentSessionService {
7
7
  findSessionByUuid(uuid: string): Promise<PaymentSessionReference | undefined>;
8
8
  createSession(parameters: {
9
9
  organisationUuid?: string;
10
- personUuid?: string;
10
+ userUuid?: string;
11
11
  }): Promise<PaymentSessionReference>;
12
12
  }
@@ -40,7 +40,7 @@ let PaymentSessionService = class PaymentSessionService {
40
40
  async createSession(parameters) {
41
41
  const paymentReference = this.paymentReferenceRepository.create({
42
42
  organisationUuid: parameters.organisationUuid,
43
- personUuid: parameters.personUuid,
43
+ userUuid: parameters.userUuid,
44
44
  });
45
45
  return await this.paymentReferenceRepository.save(paymentReference);
46
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"payment-session.service.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAA0C;AAC1C,6CAAiD;AACjD,qCAAmC;AACnC,qEAAiE;AAG1D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAGlB;IAFZ,YAEY,0BAA+D;QAA/D,+BAA0B,GAA1B,0BAA0B,CAAqC;IACxE,CAAC;IAEJ,KAAK,CAAC,OAAO;QACT,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,iBAAiB,CACnB,IAAY;QAEZ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE;gBACH,IAAI;aACP;SACJ,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,EAAE;YACT,OAAO,SAAS,CAAC;SACpB;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,UAGnB;QACG,MAAM,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC;YAC5D,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;YAC7C,UAAU,EAAE,UAAU,CAAC,UAAU;SACpC,CAAC,CAAC;QAEH,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACxE,CAAC;CACJ,CAAA;AApCY,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAGJ,WAAA,IAAA,0BAAgB,EAAC,gDAAuB,CAAC,CAAA;qCACN,oBAAU;GAHzC,qBAAqB,CAoCjC;AApCY,sDAAqB"}
1
+ {"version":3,"file":"payment-session.service.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAA0C;AAC1C,6CAAiD;AACjD,qCAAmC;AACnC,qEAAiE;AAG1D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAGlB;IAFZ,YAEY,0BAA+D;QAA/D,+BAA0B,GAA1B,0BAA0B,CAAqC;IACxE,CAAC;IAEJ,KAAK,CAAC,OAAO;QACT,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,iBAAiB,CACnB,IAAY;QAEZ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE;gBACH,IAAI;aACP;SACJ,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,EAAE;YACT,OAAO,SAAS,CAAC;SACpB;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,UAGnB;QACG,MAAM,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC;YAC5D,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;YAC7C,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAChC,CAAC,CAAC;QAEH,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACxE,CAAC;CACJ,CAAA;AApCY,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAGJ,WAAA,IAAA,0BAAgB,EAAC,gDAAuB,CAAC,CAAA;qCACN,oBAAU;GAHzC,qBAAqB,CAoCjC;AApCY,sDAAqB"}
@@ -1,5 +1,5 @@
1
1
  import Stripe from "stripe";
2
- import { RequestPerson } from "../../authz/RequestWithUser";
2
+ import { RequestUser } from "../../authz/RequestWithUser";
3
3
  import { StripeCheckoutSessionRequestDto } from "../models/StripeCheckoutSessionRequestDto";
4
4
  import { StripeCheckoutSessionResponseDto } from "../models/StripeCheckoutSessionResponseDto";
5
5
  import { StripeClientConfigurationService } from "../StripeClientConfigurationService";
@@ -20,8 +20,8 @@ export declare class StripeCheckoutService {
20
20
  private readonly stripeCheckoutEventRepository;
21
21
  private readonly logger;
22
22
  constructor(clientInstance: Stripe, stripeClientConfigurationService: StripeClientConfigurationService, paymentSessionService: PaymentSessionService, organisationSubscriptionService: OrganisationSubscriptionService, stripeCheckoutEventRepository: Repository<StripeCheckoutEvent>);
23
- createCustomerPortalSession(parameters: StripeCustomerPortalRequestDto, user: RequestPerson): Promise<StripeCustomerPortalResponseDto>;
24
- createAuthenticatedCheckoutSession(parameters: StripeCheckoutSessionRequestDto, user: RequestPerson): Promise<StripeCheckoutSessionResponseDto>;
23
+ createCustomerPortalSession(parameters: StripeCustomerPortalRequestDto, user: RequestUser): Promise<StripeCustomerPortalResponseDto>;
24
+ createAuthenticatedCheckoutSession(parameters: StripeCheckoutSessionRequestDto, user: RequestUser): Promise<StripeCheckoutSessionResponseDto>;
25
25
  createCheckoutSession(parameters: StripeCheckoutSessionRequestDto): Promise<StripeCheckoutSessionResponseDto>;
26
26
  private createStripeSession;
27
27
  getLast(take: number, skip: number): Promise<StripeCheckoutEvent[]>;
@@ -65,7 +65,7 @@ let StripeCheckoutService = StripeCheckoutService_1 = class StripeCheckoutServic
65
65
  // create a new session in the database
66
66
  const paymentReference = await this.paymentSessionService.createSession({
67
67
  organisationUuid: parameters.organisationId,
68
- personUuid: user.uuid,
68
+ userUuid: user.uuid,
69
69
  });
70
70
  const mappedParameters = {
71
71
  mode: parameters.mode,
@@ -1 +1 @@
1
- {"version":3,"file":"stripe-checkout.service.js","sourceRoot":"","sources":["../../../src/stripe-client/services/stripe-checkout.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAA0D;AAC1D,oDAA4B;AAG5B,iGAA4F;AAC5F,0FAAqF;AACrF,4FAAqF;AACrF,iFAAiF;AAGjF,6CAAiD;AACjD,2FAA6E;AAC7E,qCAAmC;AAEnC;;GAEG;AAEI,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAIT;IACA;IACA;IACA;IAEA;IARJ,MAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAC;IACjE,YAEqB,cAAsB,EACtB,gCAAkE,EAClE,qBAA4C,EAC5C,+BAAgE,EAEhE,6BAA8D;QAL9D,mBAAc,GAAd,cAAc,CAAQ;QACtB,qCAAgC,GAAhC,gCAAgC,CAAkC;QAClE,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,oCAA+B,GAA/B,+BAA+B,CAAiC;QAEhE,kCAA6B,GAA7B,6BAA6B,CAAiC;IAChF,CAAC;IAEJ,wEAAwE;IACjE,KAAK,CAAC,2BAA2B,CACpC,UAA0C,EAC1C,IAAmB;QAEnB,wEAAwE;QACxE,MAAM,kBAAkB,GACpB,MAAM,IAAI,CAAC,+BAA+B,CAAC,OAAO,CAC9C,UAAU,CAAC,sBAAsB,CACpC,CAAC;QACN,IACI,CAAC,IAAI,CAAC,WAAW;aACZ,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC;aAC/B,QAAQ,CAAC,kBAAkB,CAAC,YAAY,CAAC,IAAI,CAAC,EACrD;YACE;gBACI,MAAM,IAAI,KAAK,CACX,+EAA+E,CAClF,CAAC;aACL;SACJ;QAED,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,aAAa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,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAA;IAKtB,WAAA,IAAA,0BAAgB,EAAC,kDAAmB,CAAC,CAAA;qCAJL,gBAAM;QACY,mEAAgC;QAC3C,+CAAqB;QACX,4DAA+B;QAEjC,oBAAU;GATrD,qBAAqB,CA+HjC;AA/HY,sDAAqB"}
1
+ {"version":3,"file":"stripe-checkout.service.js","sourceRoot":"","sources":["../../../src/stripe-client/services/stripe-checkout.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAA0D;AAC1D,oDAA4B;AAG5B,iGAA4F;AAC5F,0FAAqF;AACrF,4FAAqF;AACrF,iFAAiF;AAGjF,6CAAiD;AACjD,2FAA6E;AAC7E,qCAAmC;AAEnC;;GAEG;AAEI,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAIT;IACA;IACA;IACA;IAEA;IARJ,MAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAC;IACjE,YAEqB,cAAsB,EACtB,gCAAkE,EAClE,qBAA4C,EAC5C,+BAAgE,EAEhE,6BAA8D;QAL9D,mBAAc,GAAd,cAAc,CAAQ;QACtB,qCAAgC,GAAhC,gCAAgC,CAAkC;QAClE,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,oCAA+B,GAA/B,+BAA+B,CAAiC;QAEhE,kCAA6B,GAA7B,6BAA6B,CAAiC;IAChF,CAAC;IAEJ,wEAAwE;IACjE,KAAK,CAAC,2BAA2B,CACpC,UAA0C,EAC1C,IAAiB;QAEjB,wEAAwE;QACxE,MAAM,kBAAkB,GACpB,MAAM,IAAI,CAAC,+BAA+B,CAAC,OAAO,CAC9C,UAAU,CAAC,sBAAsB,CACpC,CAAC;QACN,IACI,CAAC,IAAI,CAAC,WAAW;aACZ,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,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IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC;YAC3C,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,KAAK,EAAE;gBACH,WAAW,EAAE,MAAM;aACtB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA/HY,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAA;IAKtB,WAAA,IAAA,0BAAgB,EAAC,kDAAmB,CAAC,CAAA;qCAJL,gBAAM;QACY,mEAAgC;QAC3C,+CAAqB;QACX,4DAA+B;QAEjC,oBAAU;GATrD,qBAAqB,CA+HjC;AA/HY,sDAAqB"}
@@ -0,0 +1 @@
1
+ export { UserExternalModule } from "./user-external.module";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserExternalModule = void 0;
4
+ var user_external_module_1 = require("./user-external.module");
5
+ Object.defineProperty(exports, "UserExternalModule", { enumerable: true, get: function () { return user_external_module_1.UserExternalModule; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/user-external/index.ts"],"names":[],"mappings":";;;AAAA,+DAA0D;AAAlD,0HAAA,kBAAkB,OAAA"}
@@ -0,0 +1,2 @@
1
+ export declare class UserExternalModule {
2
+ }
@@ -6,19 +6,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.PersonExternalModule = void 0;
9
+ exports.UserExternalModule = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
- const person_controller_1 = require("./person.controller");
12
- const person_internal_module_1 = require("../person-internal/person-internal.module");
13
- let PersonExternalModule = class PersonExternalModule {
11
+ const user_controller_1 = require("./user.controller");
12
+ const user_internal_module_1 = require("../user-internal/user-internal.module");
13
+ let UserExternalModule = class UserExternalModule {
14
14
  };
15
- PersonExternalModule = __decorate([
15
+ UserExternalModule = __decorate([
16
16
  (0, common_1.Module)({
17
- imports: [person_internal_module_1.PersonInternalModule],
18
- controllers: [person_controller_1.PersonController],
17
+ imports: [user_internal_module_1.UserInternalModule],
18
+ controllers: [user_controller_1.UserController],
19
19
  providers: [],
20
20
  exports: [],
21
21
  })
22
- ], PersonExternalModule);
23
- exports.PersonExternalModule = PersonExternalModule;
24
- //# sourceMappingURL=person-external.module.js.map
22
+ ], UserExternalModule);
23
+ exports.UserExternalModule = UserExternalModule;
24
+ //# sourceMappingURL=user-external.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-external.module.js","sourceRoot":"","sources":["../../src/user-external/user-external.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,uDAAiD;AACjD,gFAAyE;AAQlE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,kBAAkB;IAN9B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,yCAAkB,CAAC;QAC7B,WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,EAAE;KACd,CAAC;GACW,kBAAkB,CAAG;AAArB,gDAAkB"}
@@ -0,0 +1,16 @@
1
+ import { UserService } from "../user-internal/user.service";
2
+ import { UpdateUserDto } from "../user-internal/dto/update-user.dto";
3
+ import { RequestWithUser } from "../authz/RequestWithUser";
4
+ import { BooleanResult } from "../root-app/models/boolean-result";
5
+ import { UserDto } from "../user-internal/dto/userResponseDto";
6
+ import { User } from "../user-internal/entities/user.entity";
7
+ export declare class UserController {
8
+ private readonly userService;
9
+ constructor(userService: UserService);
10
+ findOne(request: RequestWithUser, uuid: string): Promise<UserDto>;
11
+ findAll(): Promise<User[]>;
12
+ update(uuid: string, updateUserDto: UpdateUserDto, request: RequestWithUser): Promise<{
13
+ result: boolean | 0 | undefined;
14
+ }>;
15
+ remove(uuid: string, request: RequestWithUser): Promise<BooleanResult>;
16
+ }
@@ -12,19 +12,19 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.PersonController = void 0;
15
+ exports.UserController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
- const person_service_1 = require("../person-internal/person.service");
18
- const update_person_dto_1 = require("../person-internal/dto/update-person.dto");
17
+ const user_service_1 = require("../user-internal/user.service");
18
+ const update_user_dto_1 = require("../user-internal/dto/update-user.dto");
19
19
  const swagger_1 = require("@nestjs/swagger");
20
20
  const class_validator_1 = require("class-validator");
21
21
  const boolean_result_1 = require("../root-app/models/boolean-result");
22
- const personResponseDto_1 = require("../person-internal/dto/personResponseDto");
22
+ const userResponseDto_1 = require("../user-internal/dto/userResponseDto");
23
23
  const authz_1 = require("../authz");
24
- let PersonController = class PersonController {
25
- personService;
26
- constructor(personService) {
27
- this.personService = personService;
24
+ let UserController = class UserController {
25
+ userService;
26
+ constructor(userService) {
27
+ this.userService = userService;
28
28
  }
29
29
  async findOne(request, uuid) {
30
30
  if (uuid === "me") {
@@ -36,42 +36,42 @@ let PersonController = class PersonController {
36
36
  if (!(0, class_validator_1.isUUID)(uuid, "4")) {
37
37
  throw new common_1.BadRequestException(uuid, "Invalid UUID");
38
38
  }
39
- // find the person if they are in the same organisation as the user
40
- const result = await this.personService.findOneIfSameOrganisation(uuid, request.user);
39
+ // find the user if they are in the same organisation as the user
40
+ const result = await this.userService.findOneIfSameOrganisation(uuid, request.user);
41
41
  return {
42
42
  ...result,
43
43
  isSuper: request.user.permissions.includes(authz_1.SuperUserClaims.MODIFY_ALL),
44
44
  };
45
45
  }
46
46
  async findAll() {
47
- return await this.personService.findAll();
47
+ return await this.userService.findAll();
48
48
  }
49
- async update(uuid, updatePersonDto, request) {
50
- const result = await this.personService.update(uuid, updatePersonDto, request.user.uuid);
49
+ async update(uuid, updateUserDto, request) {
50
+ const result = await this.userService.update(uuid, updateUserDto, request.user.uuid);
51
51
  return { result: result.affected && result.affected > 0 };
52
52
  }
53
53
  async remove(uuid, request) {
54
- const deleteResult = await this.personService.remove(uuid, request.user.uuid);
54
+ const deleteResult = await this.userService.remove(uuid, request.user.uuid);
55
55
  return { result: deleteResult !== undefined };
56
56
  }
57
57
  };
58
58
  __decorate([
59
59
  (0, common_1.Get)(":uuid"),
60
- (0, swagger_1.ApiOkResponse)({ type: personResponseDto_1.PersonDto }),
60
+ (0, swagger_1.ApiOkResponse)({ type: userResponseDto_1.UserDto }),
61
61
  __param(0, (0, common_1.Request)()),
62
62
  __param(1, (0, common_1.Param)("uuid")),
63
63
  __metadata("design:type", Function),
64
64
  __metadata("design:paramtypes", [Object, String]),
65
65
  __metadata("design:returntype", Promise)
66
- ], PersonController.prototype, "findOne", null);
66
+ ], UserController.prototype, "findOne", null);
67
67
  __decorate([
68
68
  (0, common_1.Get)(),
69
69
  (0, authz_1.MandatoryUserClaims)("read:all"),
70
- (0, swagger_1.ApiOkResponse)({ type: personResponseDto_1.PersonDto, isArray: true }),
70
+ (0, swagger_1.ApiOkResponse)({ type: userResponseDto_1.UserDto, isArray: true }),
71
71
  __metadata("design:type", Function),
72
72
  __metadata("design:paramtypes", []),
73
73
  __metadata("design:returntype", Promise)
74
- ], PersonController.prototype, "findAll", null);
74
+ ], UserController.prototype, "findAll", null);
75
75
  __decorate([
76
76
  (0, common_1.Patch)(":uuid"),
77
77
  (0, swagger_1.ApiOkResponse)({ type: boolean_result_1.BooleanResult }),
@@ -79,9 +79,9 @@ __decorate([
79
79
  __param(1, (0, common_1.Body)()),
80
80
  __param(2, (0, common_1.Request)()),
81
81
  __metadata("design:type", Function),
82
- __metadata("design:paramtypes", [String, update_person_dto_1.UpdatePersonDto, Object]),
82
+ __metadata("design:paramtypes", [String, update_user_dto_1.UpdateUserDto, Object]),
83
83
  __metadata("design:returntype", Promise)
84
- ], PersonController.prototype, "update", null);
84
+ ], UserController.prototype, "update", null);
85
85
  __decorate([
86
86
  (0, common_1.Delete)(":uuid"),
87
87
  (0, swagger_1.ApiOkResponse)({ type: boolean_result_1.BooleanResult }),
@@ -90,13 +90,13 @@ __decorate([
90
90
  __metadata("design:type", Function),
91
91
  __metadata("design:paramtypes", [String, Object]),
92
92
  __metadata("design:returntype", Promise)
93
- ], PersonController.prototype, "remove", null);
94
- PersonController = __decorate([
93
+ ], UserController.prototype, "remove", null);
94
+ UserController = __decorate([
95
95
  (0, common_1.UseGuards)(authz_1.DefaultAuthGuard, authz_1.ClaimsAuthorisationGuard),
96
96
  (0, swagger_1.ApiBearerAuth)(),
97
- (0, common_1.Controller)("person"),
98
- (0, swagger_1.ApiTags)("Persons"),
99
- __metadata("design:paramtypes", [person_service_1.PersonService])
100
- ], PersonController);
101
- exports.PersonController = PersonController;
102
- //# sourceMappingURL=person.controller.js.map
97
+ (0, common_1.Controller)("user"),
98
+ (0, swagger_1.ApiTags)("Users"),
99
+ __metadata("design:paramtypes", [user_service_1.UserService])
100
+ ], UserController);
101
+ exports.UserController = UserController;
102
+ //# sourceMappingURL=user.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../src/user-external/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,gEAA0D;AAC1D,0EAAmE;AACnE,6CAAsE;AAEtE,qDAAuC;AACvC,sEAAgE;AAChE,0EAA6D;AAE7D,oCAKkB;AAMX,IAAM,cAAc,GAApB,MAAM,cAAc;IACM;IAA7B,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAInD,AAAN,KAAK,CAAC,OAAO,CACE,OAAwB,EACpB,IAAY;QAE3B,IAAI,IAAI,KAAK,IAAI,EAAE;YACf,OAAO;gBACH,GAAG,OAAO,CAAC,IAAI;gBACf,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,W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AO,EAAC,CAAC;IAE1B,WAAA,IAAA,gBAAO,GAAE,CAAA;IACT,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;6CAyBjB;AAKK;IAHL,IAAA,YAAG,GAAE;IACL,IAAA,2BAAmB,EAAC,UAAU,CAAC;IAC/B,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,yBAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;;;6CAG7C;AAIK;IAFL,IAAA,cAAK,EAAC,OAAO,CAAC;IACd,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,8BAAa,EAAC,CAAC;IAEhC,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,gBAAO,GAAE,CAAA;;6CADa,+BAAa;;4CASvC;AAIK;IAFL,IAAA,eAAM,EAAC,OAAO,CAAC;IACf,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,8BAAa,EAAC,CAAC;IAEhC,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;4CAOb;AAnEQ,cAAc;IAJ1B,IAAA,kBAAS,EAAC,wBAAgB,EAAE,gCAAwB,CAAC;IACrD,IAAA,uBAAa,GAAE;IACf,IAAA,mBAAU,EAAC,MAAM,CAAC;IAClB,IAAA,iBAAO,EAAC,OAAO,CAAC;qCAE6B,0BAAW;GAD5C,cAAc,CAoE1B;AApEY,wCAAc"}
@@ -0,0 +1,2 @@
1
+ export declare class CreateUserDto {
2
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateUserDto = void 0;
4
+ class CreateUserDto {
5
+ }
6
+ exports.CreateUserDto = CreateUserDto;
7
+ //# sourceMappingURL=create-user.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../src/user-internal/dto/create-user.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAAG;AAA7B,sCAA6B"}
@@ -0,0 +1,5 @@
1
+ import { CreateUserDto } from "./create-user.dto";
2
+ declare const UpdateUserDto_base: import("@nestjs/common").Type<Partial<CreateUserDto>>;
3
+ export declare class UpdateUserDto extends UpdateUserDto_base {
4
+ }
5
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateUserDto = void 0;
4
+ const swagger_1 = require("@nestjs/swagger");
5
+ const create_user_dto_1 = require("./create-user.dto");
6
+ class UpdateUserDto extends (0, swagger_1.PartialType)(create_user_dto_1.CreateUserDto) {
7
+ }
8
+ exports.UpdateUserDto = UpdateUserDto;
9
+ //# sourceMappingURL=update-user.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user.dto.js","sourceRoot":"","sources":["../../../src/user-internal/dto/update-user.dto.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,uDAAgD;AAEhD,MAAa,aAAc,SAAQ,IAAA,qBAAW,EAAC,+BAAa,CAAC;CAAG;AAAhE,sCAAgE"}
@@ -1,5 +1,5 @@
1
1
  import { OrganisationMembership } from "../../organisation-memberships/entities/organisation-membership.entity";
2
- export declare class PersonDto {
2
+ export declare class UserDto {
3
3
  isSuper: boolean;
4
4
  id: number;
5
5
  email: string;
@@ -9,11 +9,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PersonDto = void 0;
12
+ exports.UserDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const organisation_membership_entity_1 = require("../../organisation-memberships/entities/organisation-membership.entity");
16
- class PersonDto {
16
+ class UserDto {
17
17
  isSuper;
18
18
  id;
19
19
  email;
@@ -34,67 +34,67 @@ class PersonDto {
34
34
  __decorate([
35
35
  (0, swagger_1.ApiProperty)(),
36
36
  __metadata("design:type", Boolean)
37
- ], PersonDto.prototype, "isSuper", void 0);
37
+ ], UserDto.prototype, "isSuper", void 0);
38
38
  __decorate([
39
39
  (0, swagger_1.ApiProperty)(),
40
40
  __metadata("design:type", Number)
41
- ], PersonDto.prototype, "id", void 0);
41
+ ], UserDto.prototype, "id", void 0);
42
42
  __decorate([
43
43
  (0, swagger_1.ApiProperty)(),
44
44
  __metadata("design:type", String)
45
- ], PersonDto.prototype, "email", void 0);
45
+ ], UserDto.prototype, "email", void 0);
46
46
  __decorate([
47
47
  (0, swagger_1.ApiProperty)(),
48
48
  __metadata("design:type", String)
49
- ], PersonDto.prototype, "uuid", void 0);
49
+ ], UserDto.prototype, "uuid", void 0);
50
50
  __decorate([
51
51
  (0, swagger_1.ApiProperty)(),
52
52
  __metadata("design:type", Boolean)
53
- ], PersonDto.prototype, "emailVerified", void 0);
53
+ ], UserDto.prototype, "emailVerified", void 0);
54
54
  __decorate([
55
55
  (0, swagger_1.ApiProperty)(),
56
56
  (0, typeorm_1.Column)({ default: false }),
57
57
  __metadata("design:type", Boolean)
58
- ], PersonDto.prototype, "blocked", void 0);
58
+ ], UserDto.prototype, "blocked", void 0);
59
59
  __decorate([
60
60
  (0, swagger_1.ApiPropertyOptional)(),
61
61
  __metadata("design:type", String)
62
- ], PersonDto.prototype, "name", void 0);
62
+ ], UserDto.prototype, "name", void 0);
63
63
  __decorate([
64
64
  (0, swagger_1.ApiPropertyOptional)(),
65
65
  __metadata("design:type", String)
66
- ], PersonDto.prototype, "familyName", void 0);
66
+ ], UserDto.prototype, "familyName", void 0);
67
67
  __decorate([
68
68
  (0, swagger_1.ApiPropertyOptional)(),
69
69
  __metadata("design:type", String)
70
- ], PersonDto.prototype, "givenName", void 0);
70
+ ], UserDto.prototype, "givenName", void 0);
71
71
  __decorate([
72
72
  (0, swagger_1.ApiProperty)(),
73
73
  __metadata("design:type", String)
74
- ], PersonDto.prototype, "picture", void 0);
74
+ ], UserDto.prototype, "picture", void 0);
75
75
  __decorate([
76
76
  (0, swagger_1.ApiProperty)(),
77
77
  __metadata("design:type", String)
78
- ], PersonDto.prototype, "auth0UserId", void 0);
78
+ ], UserDto.prototype, "auth0UserId", void 0);
79
79
  __decorate([
80
80
  (0, swagger_1.ApiPropertyOptional)(),
81
81
  __metadata("design:type", String)
82
- ], PersonDto.prototype, "username", void 0);
82
+ ], UserDto.prototype, "username", void 0);
83
83
  __decorate([
84
84
  (0, swagger_1.ApiProperty)({ type: () => organisation_membership_entity_1.OrganisationMembership, isArray: true }),
85
85
  __metadata("design:type", Array)
86
- ], PersonDto.prototype, "memberships", void 0);
86
+ ], UserDto.prototype, "memberships", void 0);
87
87
  __decorate([
88
88
  (0, swagger_1.ApiProperty)(),
89
89
  __metadata("design:type", Date)
90
- ], PersonDto.prototype, "createdDate", void 0);
90
+ ], UserDto.prototype, "createdDate", void 0);
91
91
  __decorate([
92
92
  (0, swagger_1.ApiProperty)(),
93
93
  __metadata("design:type", Date)
94
- ], PersonDto.prototype, "updateDate", void 0);
94
+ ], UserDto.prototype, "updateDate", void 0);
95
95
  __decorate([
96
96
  (0, swagger_1.ApiProperty)(),
97
97
  __metadata("design:type", Date)
98
- ], PersonDto.prototype, "deletedDate", void 0);
99
- exports.PersonDto = PersonDto;
100
- //# sourceMappingURL=personResponseDto.js.map
98
+ ], UserDto.prototype, "deletedDate", void 0);
99
+ exports.UserDto = UserDto;
100
+ //# sourceMappingURL=userResponseDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userResponseDto.js","sourceRoot":"","sources":["../../../src/user-internal/dto/userResponseDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAiE;AACjE,qCAA+B;AAC/B,2HAA8G;AAE9G,MAAa,OAAO;IAEhB,OAAO,CAAW;IAGlB,EAAE,CAAU;IAGZ,KAAK,CAAU;IAGR,IAAI,CAAU;IAGrB,aAAa,CAAW;IAIxB,OAAO,CAAW;IAGlB,IAAI,CAAU;IAGd,UAAU,CAAU;IAGpB,SAAS,CAAU;IAGnB,OAAO,CAAU;IAGjB,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAGlB,WAAW,CAA4B;IAGvC,WAAW,CAAQ;IAGnB,UAAU,CAAQ;IAGlB,WAAW,CAAQ;CACtB;AAhDG;IAAC,IAAA,qBAAW,GAAE;;wCACI;AAElB;IAAC,IAAA,qBAAW,GAAE;;mCACF;AAEZ;IAAC,IAAA,qBAAW,GAAE;;sCACC;AAEf;IAAC,IAAA,qBAAW,GAAE;;qCACO;AAErB;IAAC,IAAA,qBAAW,GAAE;;8CACU;AAExB;IAAC,IAAA,qBAAW,GAAE;IACb,IAAA,gBAAM,EAAC,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;;wCACP;AAElB;IAAC,IAAA,6BAAmB,GAAE;;qCACR;AAEd;IAAC,IAAA,6BAAmB,GAAE;;2CACF;AAEpB;IAAC,IAAA,6BAAmB,GAAE;;0CACH;AAEnB;IAAC,IAAA,qBAAW,GAAE;;wCACG;AAEjB;IAAC,IAAA,qBAAW,GAAE;;4CACO;AAErB;IAAC,IAAA,6BAAmB,GAAE;;yCACJ;AAElB;IAAC,IAAA,qBAAW,EAAC,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,uDAAsB,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;4CAC1B;AAEvC;IAAC,IAAA,qBAAW,GAAE;8BACA,IAAI;4CAAC;AAEnB;IAAC,IAAA,qBAAW,GAAE;8BACD,IAAI;2CAAC;AAElB;IAAC,IAAA,qBAAW,GAAE;8BACA,IAAI;4CAAC;AAhDvB,0BAiDC"}
@@ -1,5 +1,5 @@
1
1
  import { OrganisationMembership } from "../../organisation-memberships/entities/organisation-membership.entity";
2
- export declare class Person {
2
+ export declare class User {
3
3
  id: number;
4
4
  email: string;
5
5
  uuid: string;
@@ -9,12 +9,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Person = void 0;
12
+ exports.User = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const typeorm_1 = require("typeorm");
16
16
  const organisation_membership_entity_1 = require("../../organisation-memberships/entities/organisation-membership.entity");
17
- let Person = class Person {
17
+ let User = class User {
18
18
  id;
19
19
  email;
20
20
  uuid;
@@ -41,12 +41,12 @@ __decorate([
41
41
  (0, typeorm_1.PrimaryGeneratedColumn)(),
42
42
  (0, swagger_1.ApiProperty)(),
43
43
  __metadata("design:type", Number)
44
- ], Person.prototype, "id", void 0);
44
+ ], User.prototype, "id", void 0);
45
45
  __decorate([
46
46
  (0, swagger_1.ApiProperty)(),
47
47
  (0, typeorm_1.Column)(),
48
48
  __metadata("design:type", String)
49
- ], Person.prototype, "email", void 0);
49
+ ], User.prototype, "email", void 0);
50
50
  __decorate([
51
51
  (0, typeorm_1.Column)("uuid", {
52
52
  name: "uuid",
@@ -56,71 +56,71 @@ __decorate([
56
56
  (0, swagger_1.ApiProperty)(),
57
57
  (0, typeorm_1.Index)(),
58
58
  __metadata("design:type", String)
59
- ], Person.prototype, "uuid", void 0);
59
+ ], User.prototype, "uuid", void 0);
60
60
  __decorate([
61
61
  (0, swagger_1.ApiProperty)(),
62
62
  (0, typeorm_1.Column)({ default: false }),
63
63
  __metadata("design:type", Boolean)
64
- ], Person.prototype, "emailVerified", void 0);
64
+ ], User.prototype, "emailVerified", void 0);
65
65
  __decorate([
66
66
  (0, swagger_1.ApiProperty)(),
67
67
  (0, typeorm_1.Column)({ default: false }),
68
68
  __metadata("design:type", Boolean)
69
- ], Person.prototype, "blocked", void 0);
69
+ ], User.prototype, "blocked", void 0);
70
70
  __decorate([
71
71
  (0, swagger_1.ApiPropertyOptional)(),
72
72
  (0, typeorm_1.Column)({ nullable: true }),
73
73
  __metadata("design:type", String)
74
- ], Person.prototype, "name", void 0);
74
+ ], User.prototype, "name", void 0);
75
75
  __decorate([
76
76
  (0, swagger_1.ApiPropertyOptional)(),
77
77
  (0, typeorm_1.Column)({ nullable: true }),
78
78
  __metadata("design:type", String)
79
- ], Person.prototype, "familyName", void 0);
79
+ ], User.prototype, "familyName", void 0);
80
80
  __decorate([
81
81
  (0, swagger_1.ApiPropertyOptional)(),
82
82
  (0, typeorm_1.Column)({ nullable: true }),
83
83
  __metadata("design:type", String)
84
- ], Person.prototype, "givenName", void 0);
84
+ ], User.prototype, "givenName", void 0);
85
85
  __decorate([
86
86
  (0, swagger_1.ApiProperty)(),
87
87
  (0, typeorm_1.Column)(),
88
88
  __metadata("design:type", String)
89
- ], Person.prototype, "picture", void 0);
89
+ ], User.prototype, "picture", void 0);
90
90
  __decorate([
91
91
  (0, swagger_1.ApiProperty)(),
92
92
  (0, typeorm_1.Column)(),
93
93
  (0, typeorm_1.Index)({ unique: true }),
94
94
  __metadata("design:type", String)
95
- ], Person.prototype, "auth0UserId", void 0);
95
+ ], User.prototype, "auth0UserId", void 0);
96
96
  __decorate([
97
97
  (0, swagger_1.ApiPropertyOptional)(),
98
98
  (0, typeorm_1.Column)({ nullable: true }),
99
99
  __metadata("design:type", String)
100
- ], Person.prototype, "username", void 0);
100
+ ], User.prototype, "username", void 0);
101
101
  __decorate([
102
102
  (0, swagger_1.ApiProperty)({ type: () => organisation_membership_entity_1.OrganisationMembership, isArray: true }),
103
103
  (0, class_transformer_1.Type)(() => organisation_membership_entity_1.OrganisationMembership),
104
- (0, typeorm_1.OneToMany)(() => organisation_membership_entity_1.OrganisationMembership, (om) => om.person, {
104
+ (0, typeorm_1.OneToMany)(() => organisation_membership_entity_1.OrganisationMembership, (om) => om.user, {
105
105
  cascade: ["insert", "update"],
106
106
  }),
107
107
  __metadata("design:type", Array)
108
- ], Person.prototype, "memberships", void 0);
108
+ ], User.prototype, "memberships", void 0);
109
109
  __decorate([
110
110
  (0, typeorm_1.CreateDateColumn)(),
111
111
  (0, swagger_1.ApiProperty)(),
112
112
  __metadata("design:type", Date)
113
- ], Person.prototype, "createdDate", void 0);
113
+ ], User.prototype, "createdDate", void 0);
114
114
  __decorate([
115
115
  (0, typeorm_1.UpdateDateColumn)(),
116
116
  (0, swagger_1.ApiProperty)(),
117
117
  __metadata("design:type", Date)
118
- ], Person.prototype, "updateDate", void 0);
118
+ ], User.prototype, "updateDate", void 0);
119
119
  __decorate([
120
120
  (0, typeorm_1.DeleteDateColumn)(),
121
121
  (0, swagger_1.ApiProperty)(),
122
122
  __metadata("design:type", Date)
123
- ], Person.prototype, "deletedDate", void 0);
123
+ ], User.prototype, "deletedDate", void 0);
124
124
  __decorate([
125
125
  (0, typeorm_1.AfterLoad)(),
126
126
  (0, typeorm_1.AfterInsert)(),
@@ -128,9 +128,9 @@ __decorate([
128
128
  __metadata("design:type", Function),
129
129
  __metadata("design:paramtypes", []),
130
130
  __metadata("design:returntype", Promise)
131
- ], Person.prototype, "nullChecks", null);
132
- Person = __decorate([
131
+ ], User.prototype, "nullChecks", null);
132
+ User = __decorate([
133
133
  (0, typeorm_1.Entity)()
134
- ], Person);
135
- exports.Person = Person;
136
- //# sourceMappingURL=person.entity.js.map
134
+ ], User);
135
+ exports.User = User;
136
+ //# sourceMappingURL=user.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/user-internal/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAiE;AACjE,yDAAuC;AACvC,qCAaiB;AACjB,2HAA8G;AAGvG,IAAM,IAAI,GAAV,MAAM,IAAI;IAGb,EAAE,CAAU;IAIZ,KAAK,CAAU;IASR,IAAI,CAAU;IAIrB,aAAa,CAAW;IAIxB,OAAO,CAAW;IAIlB,IAAI,CAAU;IAId,UAAU,CAAU;IAIpB,SAAS,CAAU;IAInB,OA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