@carbonbox/domain 0.0.7 → 0.0.9

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 (30) hide show
  1. package/build/carbonbox/users/carbonBox/coordinator/domain/repository/ICoordinatorRepository.js +2 -0
  2. package/build/carbonbox/users/carbonBox/host/domain/repository/IHostRepository.js +2 -0
  3. package/build/carbonbox/users/carbonBox/host-manager/domain/repository/IHostManagerRepository.js +2 -0
  4. package/build/carbonbox/users/clients/company/domain/repository/ICompanyManagerRepository.js +2 -0
  5. package/build/carbonbox/users/clients/company/domain/repository/ICompanyRepository.js +2 -0
  6. package/build/carbonbox/users/clients/company-host-manager/domain/CompanyHostManager.js +126 -0
  7. package/build/carbonbox/users/clients/company-host-manager/domain/repository/ICompanyHostManagerRepository.js +2 -0
  8. package/build/carbonbox/users/clients/company-host-manager/domain/repository/IHostManagerRepository.js +2 -0
  9. package/build/main/index.js +2 -2
  10. package/build/types/carbonbox/users/carbonBox/coordinator/domain/repository/ICoordinatorRepository.d.ts +11 -0
  11. package/build/types/carbonbox/users/carbonBox/coordinator/domain/repository/ICoordinatorRepository.d.ts.map +1 -0
  12. package/build/types/carbonbox/users/carbonBox/host/domain/repository/IHostRepository.d.ts +11 -0
  13. package/build/types/carbonbox/users/carbonBox/host/domain/repository/IHostRepository.d.ts.map +1 -0
  14. package/build/types/carbonbox/users/carbonBox/host-manager/domain/repository/IHostManagerRepository.d.ts +11 -0
  15. package/build/types/carbonbox/users/carbonBox/host-manager/domain/repository/IHostManagerRepository.d.ts.map +1 -0
  16. package/build/types/carbonbox/users/clients/company/domain/repository/ICompanyManagerRepository.d.ts +11 -0
  17. package/build/types/carbonbox/users/clients/company/domain/repository/ICompanyManagerRepository.d.ts.map +1 -0
  18. package/build/types/carbonbox/users/clients/company/domain/repository/ICompanyRepository.d.ts +11 -0
  19. package/build/types/carbonbox/users/clients/company/domain/repository/ICompanyRepository.d.ts.map +1 -0
  20. package/build/types/carbonbox/users/clients/company-host-manager/domain/CompanyHostManager.d.ts +44 -0
  21. package/build/types/carbonbox/users/clients/company-host-manager/domain/CompanyHostManager.d.ts.map +1 -0
  22. package/build/types/carbonbox/users/clients/company-host-manager/domain/repository/ICompanyHostManagerRepository.d.ts +11 -0
  23. package/build/types/carbonbox/users/clients/company-host-manager/domain/repository/ICompanyHostManagerRepository.d.ts.map +1 -0
  24. package/build/types/carbonbox/users/clients/company-host-manager/domain/repository/IHostManagerRepository.d.ts +11 -0
  25. package/build/types/carbonbox/users/clients/company-host-manager/domain/repository/IHostManagerRepository.d.ts.map +1 -0
  26. package/build/types/carbonbox/users/shared/domain/AnySystemUserType.d.ts +1 -1
  27. package/build/types/carbonbox/users/shared/domain/AnySystemUserType.d.ts.map +1 -1
  28. package/build/types/main/index.d.ts +6 -1
  29. package/build/types/main/index.d.ts.map +1 -1
  30. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _CompanyHostManager__officialName, _CompanyHostManager__taxIdentificationNumber, _CompanyHostManager__activeCustomPlanId, _CompanyHostManager__phone, _CompanyHostManager__workLocation, _CompanyHostManager__avatar, _CompanyHostManager__biography;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CompanyHostManager = void 0;
16
+ const User_1 = require("../../../shared/domain/User");
17
+ const ActiveCustomPlanId_1 = require("./value-objects/ActiveCustomPlanId");
18
+ const Avatar_1 = require("./value-objects/Avatar");
19
+ const Biography_1 = require("./value-objects/Biography");
20
+ const CreatedAt_1 = require("./value-objects/CreatedAt");
21
+ const Email_1 = require("./value-objects/Email");
22
+ const Id_1 = require("./value-objects/Id");
23
+ const OfficialName_1 = require("./value-objects/OfficialName");
24
+ const Password_1 = require("./value-objects/Password");
25
+ const Phone_1 = require("./value-objects/Phone");
26
+ const Roles_1 = require("./value-objects/Roles");
27
+ const TaxIdentificationNumber_1 = require("./value-objects/TaxIdentificationNumber");
28
+ const UpdatedAt_1 = require("./value-objects/UpdatedAt");
29
+ const UserType_1 = require("./value-objects/UserType");
30
+ const WorkLocation_1 = require("./value-objects/WorkLocation");
31
+ class CompanyHostManager extends User_1.User {
32
+ constructor(props) {
33
+ const id = Id_1.Id.create(props.id);
34
+ const createdAt = CreatedAt_1.CreatedAt.create(props.createdAt);
35
+ const updatedAt = UpdatedAt_1.UpdatedAt.create(props.createdAt);
36
+ const email = Email_1.Email.create(props.email);
37
+ const userType = UserType_1.UserType.create(props.userType);
38
+ const roles = Roles_1.Roles.create(props.roles);
39
+ const password = Password_1.Password.create(props.password);
40
+ super({
41
+ id: id.value,
42
+ createdAt: createdAt.value,
43
+ updatedAt: updatedAt.value,
44
+ email: email.value,
45
+ userType: userType.value,
46
+ roles: roles.value,
47
+ password: password.value,
48
+ });
49
+ _CompanyHostManager__officialName.set(this, void 0);
50
+ _CompanyHostManager__taxIdentificationNumber.set(this, void 0);
51
+ _CompanyHostManager__activeCustomPlanId.set(this, void 0);
52
+ _CompanyHostManager__phone.set(this, void 0);
53
+ _CompanyHostManager__workLocation.set(this, void 0);
54
+ _CompanyHostManager__avatar.set(this, void 0);
55
+ _CompanyHostManager__biography.set(this, void 0);
56
+ __classPrivateFieldSet(this, _CompanyHostManager__officialName, OfficialName_1.OfficialName.create(props.officialName), "f");
57
+ __classPrivateFieldSet(this, _CompanyHostManager__taxIdentificationNumber, TaxIdentificationNumber_1.TaxIdentificationNumber.create(props.taxIdentificationNumber), "f");
58
+ __classPrivateFieldSet(this, _CompanyHostManager__activeCustomPlanId, ActiveCustomPlanId_1.ActiveCustomPlanId.create(props.activeCustomPlanId), "f");
59
+ __classPrivateFieldSet(this, _CompanyHostManager__phone, Phone_1.Phone.create(props.phone), "f");
60
+ __classPrivateFieldSet(this, _CompanyHostManager__workLocation, WorkLocation_1.WorkLocation.create(props.workLocation), "f");
61
+ __classPrivateFieldSet(this, _CompanyHostManager__avatar, Avatar_1.Avatar.create(props.avatar), "f");
62
+ __classPrivateFieldSet(this, _CompanyHostManager__biography, Biography_1.Biography.create(props.biography), "f");
63
+ }
64
+ static create(props) {
65
+ return new CompanyHostManager(props);
66
+ }
67
+ static fromPrimitives(primitives) {
68
+ return new CompanyHostManager({
69
+ id: primitives.id,
70
+ createdAt: primitives.createdAt,
71
+ updatedAt: primitives.updatedAt,
72
+ email: primitives.email,
73
+ password: primitives.password,
74
+ userType: primitives.userType,
75
+ roles: primitives.roles,
76
+ phone: primitives.phone,
77
+ workLocation: primitives.workLocation,
78
+ avatar: primitives.avatar,
79
+ biography: primitives.biography,
80
+ officialName: primitives.officialName,
81
+ taxIdentificationNumber: primitives.taxIdentificationNumber,
82
+ activeCustomPlanId: primitives.activeCustomPlanId,
83
+ });
84
+ }
85
+ get officialName() {
86
+ return __classPrivateFieldGet(this, _CompanyHostManager__officialName, "f");
87
+ }
88
+ get taxIdentificationNumber() {
89
+ return __classPrivateFieldGet(this, _CompanyHostManager__taxIdentificationNumber, "f");
90
+ }
91
+ get activeCustomPlanId() {
92
+ return __classPrivateFieldGet(this, _CompanyHostManager__activeCustomPlanId, "f");
93
+ }
94
+ get phone() {
95
+ return __classPrivateFieldGet(this, _CompanyHostManager__phone, "f");
96
+ }
97
+ get workLocation() {
98
+ return __classPrivateFieldGet(this, _CompanyHostManager__workLocation, "f");
99
+ }
100
+ get avatar() {
101
+ return __classPrivateFieldGet(this, _CompanyHostManager__avatar, "f");
102
+ }
103
+ get biography() {
104
+ return __classPrivateFieldGet(this, _CompanyHostManager__biography, "f");
105
+ }
106
+ get toPrimitives() {
107
+ return {
108
+ id: this.id.value,
109
+ createdAt: this.createdAt.value,
110
+ updatedAt: this.updatedAt.value,
111
+ email: this.email.value,
112
+ password: this.password.value,
113
+ userType: this.userType.value,
114
+ roles: this.roles.value,
115
+ phone: __classPrivateFieldGet(this, _CompanyHostManager__phone, "f").value,
116
+ workLocation: __classPrivateFieldGet(this, _CompanyHostManager__workLocation, "f").value,
117
+ avatar: __classPrivateFieldGet(this, _CompanyHostManager__avatar, "f").value,
118
+ biography: __classPrivateFieldGet(this, _CompanyHostManager__biography, "f").value,
119
+ officialName: __classPrivateFieldGet(this, _CompanyHostManager__officialName, "f").value,
120
+ taxIdentificationNumber: __classPrivateFieldGet(this, _CompanyHostManager__taxIdentificationNumber, "f").value,
121
+ activeCustomPlanId: __classPrivateFieldGet(this, _CompanyHostManager__activeCustomPlanId, "f").value,
122
+ };
123
+ }
124
+ }
125
+ exports.CompanyHostManager = CompanyHostManager;
126
+ _CompanyHostManager__officialName = new WeakMap(), _CompanyHostManager__taxIdentificationNumber = new WeakMap(), _CompanyHostManager__activeCustomPlanId = new WeakMap(), _CompanyHostManager__phone = new WeakMap(), _CompanyHostManager__workLocation = new WeakMap(), _CompanyHostManager__avatar = new WeakMap(), _CompanyHostManager__biography = new WeakMap();
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -60,5 +60,5 @@ Object.defineProperty(exports, "HostManager", { enumerable: true, get: function
60
60
  var Company_1 = require("../carbonbox/users/clients/company/domain/Company");
61
61
  Object.defineProperty(exports, "Company", { enumerable: true, get: function () { return Company_1.Company; } });
62
62
  // Users Clients Company Host Manager
63
- var CompanyHost_1 = require("../carbonbox/users/clients/company-host-manager/domain/CompanyHost");
64
- Object.defineProperty(exports, "CompanyHostManager", { enumerable: true, get: function () { return CompanyHost_1.CompanyHostManager; } });
63
+ var CompanyHostManager_1 = require("../carbonbox/users/clients/company-host-manager/domain/CompanyHostManager");
64
+ Object.defineProperty(exports, "CompanyHostManager", { enumerable: true, get: function () { return CompanyHostManager_1.CompanyHostManager; } });
@@ -0,0 +1,11 @@
1
+ import { Nullable } from '../../../../../shared/domain/Nullable';
2
+ import { Coordinator } from '../Coordinator';
3
+ import { Email } from '../value-objects/Email';
4
+ import { Id } from '../value-objects/Id';
5
+ export interface ICoordinatorRepository {
6
+ save(coordinator: Coordinator): Promise<void>;
7
+ find(): Promise<Nullable<Coordinator>>;
8
+ findById(id: Id): Promise<Nullable<Coordinator>>;
9
+ findByEmail(email: Email): Promise<Nullable<Coordinator>>;
10
+ }
11
+ //# sourceMappingURL=ICoordinatorRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICoordinatorRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/carbonbox/users/carbonBox/coordinator/domain/repository/ICoordinatorRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAEzC,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IACjD,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;CAC3D"}
@@ -0,0 +1,11 @@
1
+ import { Nullable } from '../../../../../shared/domain/Nullable';
2
+ import { Host } from '../Host';
3
+ import { Email } from '../value-objects/Email';
4
+ import { Id } from '../value-objects/Id';
5
+ export interface IHostRepository {
6
+ save(host: Host): Promise<void>;
7
+ find(): Promise<Nullable<Host>>;
8
+ findById(id: Id): Promise<Nullable<Host>>;
9
+ findByEmail(email: Email): Promise<Nullable<Host>>;
10
+ }
11
+ //# sourceMappingURL=IHostRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IHostRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/carbonbox/users/carbonBox/host/domain/repository/IHostRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAEzC,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1C,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;CACpD"}
@@ -0,0 +1,11 @@
1
+ import { Nullable } from '../../../../../shared/domain/Nullable';
2
+ import { HostManager } from '../HostManager';
3
+ import { Email } from '../value-objects/Email';
4
+ import { Id } from '../value-objects/Id';
5
+ export interface IHostManagerRepository {
6
+ save(hostManager: HostManager): Promise<void>;
7
+ find(): Promise<Nullable<HostManager>>;
8
+ findById(id: Id): Promise<Nullable<HostManager>>;
9
+ findByEmail(email: Email): Promise<Nullable<HostManager>>;
10
+ }
11
+ //# sourceMappingURL=IHostManagerRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IHostManagerRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/carbonbox/users/carbonBox/host-manager/domain/repository/IHostManagerRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAEzC,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IACjD,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;CAC3D"}
@@ -0,0 +1,11 @@
1
+ import { Nullable } from '../../../../../shared/domain/Nullable';
2
+ import { Company } from '../Company';
3
+ import { Email } from '../value-objects/Email';
4
+ import { Id } from '../value-objects/Id';
5
+ export interface ICompanyManagerRepository {
6
+ save(company: Company): Promise<void>;
7
+ find(): Promise<Nullable<Company>>;
8
+ findById(id: Id): Promise<Nullable<Company>>;
9
+ findByEmail(email: Email): Promise<Nullable<Company>>;
10
+ }
11
+ //# sourceMappingURL=ICompanyManagerRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICompanyManagerRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/carbonbox/users/clients/company/domain/repository/ICompanyManagerRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAEzC,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;CACvD"}
@@ -0,0 +1,11 @@
1
+ import { Nullable } from '../../../../../shared/domain/Nullable';
2
+ import { Company } from '../Company';
3
+ import { Email } from '../value-objects/Email';
4
+ import { Id } from '../value-objects/Id';
5
+ export interface ICompanyRepository {
6
+ save(company: Company): Promise<void>;
7
+ find(): Promise<Nullable<Company>>;
8
+ findById(id: Id): Promise<Nullable<Company>>;
9
+ findByEmail(email: Email): Promise<Nullable<Company>>;
10
+ }
11
+ //# sourceMappingURL=ICompanyRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICompanyRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/carbonbox/users/clients/company/domain/repository/ICompanyRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;CACvD"}
@@ -0,0 +1,44 @@
1
+ import { IImageProps } from '../../../../shared/domain/value-objects/Image';
2
+ import { IPhoneProps } from '../../../../shared/domain/value-objects/Phone';
3
+ import { IWorkLocationProps } from '../../../../shared/domain/value-objects/WorkLocation';
4
+ import { User } from '../../../shared/domain/User';
5
+ import { IEmailProps } from '../../../shared/domain/value-objects/Email';
6
+ import { ICompanyHostManagerPrimitives } from './ICompanyHostManagerPrimitives';
7
+ import { ActiveCustomPlanId } from './value-objects/ActiveCustomPlanId';
8
+ import { Avatar } from './value-objects/Avatar';
9
+ import { Biography } from './value-objects/Biography';
10
+ import { OfficialName } from './value-objects/OfficialName';
11
+ import { Phone } from './value-objects/Phone';
12
+ import { TaxIdentificationNumber } from './value-objects/TaxIdentificationNumber';
13
+ import { WorkLocation } from './value-objects/WorkLocation';
14
+ export interface ICompanyHostManagerProps {
15
+ id: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ email: IEmailProps;
19
+ password: string;
20
+ userType: string;
21
+ roles: string[];
22
+ phone: IPhoneProps;
23
+ workLocation: IWorkLocationProps;
24
+ avatar: IImageProps;
25
+ biography: string | null;
26
+ officialName: string;
27
+ taxIdentificationNumber: string;
28
+ activeCustomPlanId: string | null;
29
+ }
30
+ export declare class CompanyHostManager extends User<ICompanyHostManagerPrimitives> {
31
+ #private;
32
+ private constructor();
33
+ static create(props: ICompanyHostManagerProps): CompanyHostManager;
34
+ static fromPrimitives(primitives: ICompanyHostManagerPrimitives): CompanyHostManager;
35
+ get officialName(): OfficialName;
36
+ get taxIdentificationNumber(): TaxIdentificationNumber;
37
+ get activeCustomPlanId(): ActiveCustomPlanId;
38
+ get phone(): Phone;
39
+ get workLocation(): WorkLocation;
40
+ get avatar(): Avatar;
41
+ get biography(): Biography;
42
+ get toPrimitives(): ICompanyHostManagerPrimitives;
43
+ }
44
+ //# sourceMappingURL=CompanyHostManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompanyHostManager.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/users/clients/company-host-manager/domain/CompanyHostManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAA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AM,CAE1B;IAED,IAAW,SAAS,IAAI,SAAS,CAEhC;IAED,IAAoB,YAAY,IAAI,6BAA6B,CAiBhE;CACF"}
@@ -0,0 +1,11 @@
1
+ import { Nullable } from '../../../../../shared/domain/Nullable';
2
+ import { CompanyHostManager } from '../CompanyHostManager';
3
+ import { Email } from '../value-objects/Email';
4
+ import { Id } from '../value-objects/Id';
5
+ export interface ICompanyHostManagerRepository {
6
+ save(companyHostManager: CompanyHostManager): Promise<void>;
7
+ find(): Promise<Nullable<CompanyHostManager>>;
8
+ findById(id: Id): Promise<Nullable<CompanyHostManager>>;
9
+ findByEmail(email: Email): Promise<Nullable<CompanyHostManager>>;
10
+ }
11
+ //# sourceMappingURL=ICompanyHostManagerRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICompanyHostManagerRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/carbonbox/users/clients/company-host-manager/domain/repository/ICompanyHostManagerRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAEzC,MAAM,WAAW,6BAA6B;IAC5C,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACxD,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAClE"}
@@ -0,0 +1,11 @@
1
+ import { Nullable } from '../../../../../shared/domain/Nullable';
2
+ import { CompanyHostManager } from '../CompanyHostManager';
3
+ import { Email } from '../value-objects/Email';
4
+ import { Id } from '../value-objects/Id';
5
+ export interface IHostManagerRepository {
6
+ save(companyHostManager: CompanyHostManager): Promise<void>;
7
+ find(): Promise<Nullable<CompanyHostManager>>;
8
+ findById(id: Id): Promise<Nullable<CompanyHostManager>>;
9
+ findByEmail(email: Email): Promise<Nullable<CompanyHostManager>>;
10
+ }
11
+ //# sourceMappingURL=IHostManagerRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IHostManagerRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/carbonbox/users/clients/company-host-manager/domain/repository/IHostManagerRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAEzC,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACxD,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAClE"}
@@ -1,7 +1,7 @@
1
1
  import { Coordinator } from '../../carbonBox/coordinator/domain/Coordinator';
2
2
  import { HostManager } from '../../carbonBox/host-manager/domain/HostManager';
3
3
  import { Host } from '../../carbonBox/host/domain/Host';
4
- import { CompanyHostManager } from '../../clients/company-host-manager/domain/CompanyHost';
4
+ import { CompanyHostManager } from '../../clients/company-host-manager/domain/CompanyHostManager';
5
5
  import { Company } from '../../clients/company/domain/Company';
6
6
  export type AnySystemUserType = Host | HostManager | Coordinator | Company | CompanyHostManager;
7
7
  //# sourceMappingURL=AnySystemUserType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnySystemUserType.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/users/shared/domain/AnySystemUserType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"AnySystemUserType.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/users/shared/domain/AnySystemUserType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,GAAG,kBAAkB,CAAC"}
@@ -30,12 +30,17 @@ export { IAnySystemUserTypePrimitives } from '../carbonbox/users/shared/domain/I
30
30
  export { AnySystemUserType } from '../carbonbox/users/shared/domain/AnySystemUserType';
31
31
  export { Coordinator, ICoordinatorProps } from '../carbonbox/users/carbonBox/coordinator/domain/Coordinator';
32
32
  export { ICoordinatorPrimitives } from '../carbonbox/users/carbonBox/coordinator/domain/ICoordinatorPrimitives';
33
+ export { ICoordinatorRepository } from '../carbonbox/users/carbonBox/coordinator/domain/repository/ICoordinatorRepository';
33
34
  export { Host, IHostProps } from '../carbonbox/users/carbonBox/host/domain/Host';
34
35
  export { IHostPrimitives } from '../carbonbox/users/carbonBox/host/domain/IHostPrimitives';
36
+ export { IHostRepository } from '../carbonbox/users/carbonBox/host/domain/repository/IHostRepository';
35
37
  export { HostManager, IHostManagerProps } from '../carbonbox/users/carbonBox/host-manager/domain/HostManager';
36
38
  export { IHostManagerPrimitives } from '../carbonbox/users/carbonBox/host-manager/domain/IHostManagerPrimitives';
39
+ export { IHostManagerRepository } from '../carbonbox/users/carbonBox/host-manager/domain/repository/IHostManagerRepository';
37
40
  export { Company, ICompanyProps } from '../carbonbox/users/clients/company/domain/Company';
38
41
  export { ICompanyPrimitives } from '../carbonbox/users/clients/company/domain/ICompanyPrimitives';
39
- export { CompanyHostManager, ICompanyHostManagerProps } from '../carbonbox/users/clients/company-host-manager/domain/CompanyHost';
42
+ export { ICompanyRepository } from '../carbonbox/users/clients/company/domain/repository/ICompanyRepository';
43
+ export { CompanyHostManager, ICompanyHostManagerProps } from '../carbonbox/users/clients/company-host-manager/domain/CompanyHostManager';
40
44
  export { ICompanyHostManagerPrimitives } from '../carbonbox/users/clients/company-host-manager/domain/ICompanyHostManagerPrimitives';
45
+ export { ICompanyHostManagerRepository } from '../carbonbox/users/clients/company-host-manager/domain/repository/ICompanyHostManagerRepository';
41
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/main/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CA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MAAM,+DAA+D,CAAC;AAC7G,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAGvF,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAE,sBAAsB,EAAE,MAAM,wEAAwE,CAAC;AAChH,OAAO,EAAE,sBAAsB,EAAE,MAAM,mFAAmF,CAAC;AAG3H,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,qEAAqE,CAAC;AAGtG,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AAC9G,OAAO,EAAE,sBAAsB,EAAE,MAAM,yEAAyE,CAAC;AACjH,OAAO,EAAE,sBAAsB,EAAE,MAAM,oFAAoF,CAAC;AAG5H,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAG7G,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,2EAA2E,CAAC;AACzI,OAAO,EAAE,6BAA6B,EAAE,MAAM,sFAAsF,CAAC;AACrI,OAAO,EAAE,6BAA6B,EAAE,MAAM,iGAAiG,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "browser": false
4
4
  },
5
5
  "name": "@carbonbox/domain",
6
- "version": "0.0.7",
6
+ "version": "0.0.9",
7
7
  "description": "Domain package for CarbonBox Project",
8
8
  "main": "build/main/index.js",
9
9
  "types": "build/types/main/index.d.ts",