grm-shared-library 1.0.44 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/modules/control-centre/dtos/create-control-centre.dto.d.ts +1 -0
- package/dist/modules/control-centre/dtos/create-control-centre.dto.js +4 -0
- package/dist/modules/control-centre/interfaces/control-centre.d.ts +2 -0
- package/dist/modules/organization/dtos/create-organization.dto.d.ts +0 -1
- package/dist/modules/organization/dtos/create-organization.dto.js +0 -4
- package/dist/modules/organization/interfaces/organization.d.ts +0 -2
- package/dist/modules/user/dtos/create-user.dto.d.ts +1 -1
- package/dist/modules/user/dtos/create-user.dto.js +1 -1
- package/dist/modules/user/interfaces/user.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './modules/common/index';
|
|
|
6
6
|
export * from './modules/permission/index';
|
|
7
7
|
export * from './modules/role/index';
|
|
8
8
|
export * from './modules/user/index';
|
|
9
|
-
export * from './modules/partner/index';
|
|
10
9
|
export * from './modules/control-centre/index';
|
|
11
10
|
/**
|
|
12
11
|
* Kafka
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,6 @@ __exportStar(require("./modules/common/index"), exports);
|
|
|
22
22
|
__exportStar(require("./modules/permission/index"), exports);
|
|
23
23
|
__exportStar(require("./modules/role/index"), exports);
|
|
24
24
|
__exportStar(require("./modules/user/index"), exports);
|
|
25
|
-
__exportStar(require("./modules/partner/index"), exports);
|
|
26
25
|
__exportStar(require("./modules/control-centre/index"), exports);
|
|
27
26
|
/**
|
|
28
27
|
* Kafka
|
|
@@ -60,3 +60,7 @@ __decorate([
|
|
|
60
60
|
(0, class_validator_1.IsOptional)(),
|
|
61
61
|
__metadata("design:type", Object)
|
|
62
62
|
], CreateControlCentreDto.prototype, "attributes", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsNumber)(),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], CreateControlCentreDto.prototype, "organizationId", void 0);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MapAddressDto } from "../../common";
|
|
2
2
|
import { ContactPersonDto } from "../../common/dtos/contact-person.dto";
|
|
3
|
+
import { Organization } from "../../organization";
|
|
3
4
|
export interface ControlCentre {
|
|
4
5
|
id?: number;
|
|
5
6
|
name: string;
|
|
@@ -10,6 +11,7 @@ export interface ControlCentre {
|
|
|
10
11
|
logo?: string;
|
|
11
12
|
contactPerson: ContactPersonDto;
|
|
12
13
|
attributes?: Record<string, any>;
|
|
14
|
+
organization: Organization;
|
|
13
15
|
createdAt?: Date;
|
|
14
16
|
updatedAt?: Date;
|
|
15
17
|
}
|
|
@@ -78,7 +78,3 @@ __decorate([
|
|
|
78
78
|
(0, class_validator_1.IsOptional)(),
|
|
79
79
|
__metadata("design:type", Array)
|
|
80
80
|
], CreateOrganizationDto.prototype, "controlCentreIds", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
83
|
-
__metadata("design:type", Array)
|
|
84
|
-
], CreateOrganizationDto.prototype, "partnerIds", void 0);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ContactPersonDto } from "../../common/dtos/contact-person.dto";
|
|
2
2
|
import { MapAddressDto } from "../../common/dtos/map-address.dto";
|
|
3
3
|
import { ControlCentre } from "../../control-centre";
|
|
4
|
-
import { Partner } from "../../partner";
|
|
5
4
|
export interface Organization {
|
|
6
5
|
id?: number;
|
|
7
6
|
name: string;
|
|
@@ -15,7 +14,6 @@ export interface Organization {
|
|
|
15
14
|
logo?: string;
|
|
16
15
|
contactPerson: ContactPersonDto;
|
|
17
16
|
controlCentres?: ControlCentre[];
|
|
18
|
-
partners?: Partner[];
|
|
19
17
|
createdAt?: Date;
|
|
20
18
|
updatedAt?: Date;
|
|
21
19
|
}
|
|
@@ -81,7 +81,7 @@ __decorate([
|
|
|
81
81
|
(0, class_validator_1.IsNumber)(),
|
|
82
82
|
(0, class_validator_1.IsOptional)(),
|
|
83
83
|
__metadata("design:type", Number)
|
|
84
|
-
], CreateUserDto.prototype, "
|
|
84
|
+
], CreateUserDto.prototype, "controlCentreId", void 0);
|
|
85
85
|
__decorate([
|
|
86
86
|
(0, class_validator_1.IsNumber)(),
|
|
87
87
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ControlCentre } from "../../control-centre";
|
|
1
2
|
import { Organization } from "../../organization";
|
|
2
|
-
import { Partner } from "../../partner/interfaces/partner";
|
|
3
3
|
import { Role } from "../../role";
|
|
4
4
|
export interface User {
|
|
5
5
|
id?: number;
|
|
@@ -15,7 +15,7 @@ export interface User {
|
|
|
15
15
|
isEmailVerified?: boolean;
|
|
16
16
|
otp?: string;
|
|
17
17
|
otpExpiresAt?: Date;
|
|
18
|
-
|
|
18
|
+
controlCentre?: ControlCentre;
|
|
19
19
|
organization: Organization;
|
|
20
20
|
createdAt?: Date;
|
|
21
21
|
updatedAt?: Date;
|