@ludeo/cloud-common 1.2.143-ygbeta2 → 1.2.143-ygbeta3
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/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/ludeocast-resource-updated.d.ts +3 -3
- package/dist/v4/events/ludeocast-resource-updated.js +9 -9
- package/dist/v4/events/ludeocast-resource-updated.js.map +1 -1
- package/dist/v4/events/machine-resource-status-changed.d.ts +4 -4
- package/dist/v4/events/machine-resource-status-changed.js +16 -16
- package/dist/v4/events/machine-resource-status-changed.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/ludeocast-resource-updated.ts +4 -4
- package/src/v4/events/machine-resource-status-changed.ts +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class LudeocastResourceUpdatedPayload {
|
|
4
4
|
resourceType: string;
|
|
5
5
|
status: string;
|
|
6
6
|
reason?: string;
|
|
@@ -8,7 +8,7 @@ export declare class LudeocastResourceUpdatedEventPayload {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class LudeocastResourceUpdated extends LudeoEvent {
|
|
10
10
|
static readonly EVENT_NAME = "cloud-resource-monitor.ludeocast-controller.resource-updated";
|
|
11
|
-
constructor(payload:
|
|
11
|
+
constructor(payload: LudeocastResourceUpdatedPayload, context: CloudResourceContext);
|
|
12
12
|
context: CloudResourceContext;
|
|
13
|
-
payload:
|
|
13
|
+
payload: LudeocastResourceUpdatedPayload;
|
|
14
14
|
}
|
|
@@ -9,31 +9,31 @@ 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.LudeocastResourceUpdated = exports.
|
|
12
|
+
exports.LudeocastResourceUpdated = exports.LudeocastResourceUpdatedPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
15
|
const cloud_resource_context_1 = require("../contexts/cloud-resource-context");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
-
class
|
|
17
|
+
class LudeocastResourceUpdatedPayload {
|
|
18
18
|
}
|
|
19
|
-
exports.
|
|
19
|
+
exports.LudeocastResourceUpdatedPayload = LudeocastResourceUpdatedPayload;
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, class_validator_1.IsString)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
23
|
+
], LudeocastResourceUpdatedPayload.prototype, "resourceType", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsString)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
27
|
+
], LudeocastResourceUpdatedPayload.prototype, "status", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsString)(),
|
|
30
30
|
(0, class_validator_1.IsOptional)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
32
|
+
], LudeocastResourceUpdatedPayload.prototype, "reason", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, class_validator_1.IsString)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
|
-
],
|
|
36
|
+
], LudeocastResourceUpdatedPayload.prototype, "resourceId", void 0);
|
|
37
37
|
class LudeocastResourceUpdated extends ludeo_event_1.LudeoEvent {
|
|
38
38
|
constructor(payload, context) {
|
|
39
39
|
super(LudeocastResourceUpdated.EVENT_NAME);
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
__metadata("design:type", cloud_resource_context_1.CloudResourceContext)
|
|
49
49
|
], LudeocastResourceUpdated.prototype, "context", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
52
|
-
__metadata("design:type",
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeocastResourceUpdatedPayload),
|
|
52
|
+
__metadata("design:type", LudeocastResourceUpdatedPayload)
|
|
53
53
|
], LudeocastResourceUpdated.prototype, "payload", void 0);
|
|
54
54
|
//# sourceMappingURL=ludeocast-resource-updated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeocast-resource-updated.js","sourceRoot":"","sources":["../../../src/v4/events/ludeocast-resource-updated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yDAAqD;AACrD,+EAA0E;AAC1E,oGAAqF;AAErF,MAAa
|
|
1
|
+
{"version":3,"file":"ludeocast-resource-updated.js","sourceRoot":"","sources":["../../../src/v4/events/ludeocast-resource-updated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yDAAqD;AACrD,+EAA0E;AAC1E,oGAAqF;AAErF,MAAa,+BAA+B;CAa3C;AAbD,0EAaC;AAXC;IADC,IAAA,0BAAQ,GAAE;;qEACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;+DACI;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACG;AAGhB;IADC,IAAA,0BAAQ,GAAE;;mEACQ;AAGrB,MAAa,wBAAyB,SAAQ,wBAAU;IAItD,YACE,OAAwC,EACxC,OAA6B;QAE7B,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,4DAkBC;AAjBiB,mCAAU,GACxB,8DAA8D,CAAC;AAYjE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;yDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
3
3
|
import { CloudResourceStatus } from "../types";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class MachineResourceStatusChangedPayload {
|
|
5
5
|
machineResourceId: string;
|
|
6
6
|
machinePoolId?: string;
|
|
7
7
|
status: CloudResourceStatus;
|
|
8
8
|
previousStatus?: CloudResourceStatus;
|
|
9
9
|
error?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class MachineResourceStatusChanged extends LudeoEvent {
|
|
12
12
|
static readonly EVENT_NAME = "cloud-resource-monitor.machine-resource-status-changed";
|
|
13
|
-
constructor(payload:
|
|
13
|
+
constructor(payload: MachineResourceStatusChangedPayload, context: CloudResourceContext);
|
|
14
14
|
context: CloudResourceContext;
|
|
15
|
-
payload:
|
|
15
|
+
payload: MachineResourceStatusChangedPayload;
|
|
16
16
|
}
|
|
@@ -9,53 +9,53 @@ 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.
|
|
12
|
+
exports.MachineResourceStatusChanged = exports.MachineResourceStatusChangedPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
15
|
const cloud_resource_context_1 = require("../contexts/cloud-resource-context");
|
|
16
16
|
const types_1 = require("../types");
|
|
17
17
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
|
-
class
|
|
18
|
+
class MachineResourceStatusChangedPayload {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.MachineResourceStatusChangedPayload = MachineResourceStatusChangedPayload;
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsUUID)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
24
|
+
], MachineResourceStatusChangedPayload.prototype, "machineResourceId", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsUUID)(),
|
|
27
27
|
(0, class_validator_1.IsOptional)(),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
29
|
+
], MachineResourceStatusChangedPayload.prototype, "machinePoolId", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, class_validator_1.IsString)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
33
|
+
], MachineResourceStatusChangedPayload.prototype, "status", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, class_validator_1.IsOptional)(),
|
|
36
36
|
(0, class_validator_1.IsString)(),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
38
|
+
], MachineResourceStatusChangedPayload.prototype, "previousStatus", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, class_validator_1.IsOptional)(),
|
|
41
41
|
(0, class_validator_1.IsString)(),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
|
-
],
|
|
44
|
-
class
|
|
43
|
+
], MachineResourceStatusChangedPayload.prototype, "error", void 0);
|
|
44
|
+
class MachineResourceStatusChanged extends ludeo_event_1.LudeoEvent {
|
|
45
45
|
constructor(payload, context) {
|
|
46
|
-
super(
|
|
46
|
+
super(MachineResourceStatusChanged.EVENT_NAME);
|
|
47
47
|
this.payload = payload;
|
|
48
48
|
this.context = context;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
exports.
|
|
52
|
-
|
|
51
|
+
exports.MachineResourceStatusChanged = MachineResourceStatusChanged;
|
|
52
|
+
MachineResourceStatusChanged.EVENT_NAME = "cloud-resource-monitor.machine-resource-status-changed";
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_resource_context_1.CloudResourceContext),
|
|
55
55
|
__metadata("design:type", cloud_resource_context_1.CloudResourceContext)
|
|
56
|
-
],
|
|
56
|
+
], MachineResourceStatusChanged.prototype, "context", void 0);
|
|
57
57
|
__decorate([
|
|
58
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
59
|
-
__metadata("design:type",
|
|
60
|
-
],
|
|
58
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineResourceStatusChangedPayload),
|
|
59
|
+
__metadata("design:type", MachineResourceStatusChangedPayload)
|
|
60
|
+
], MachineResourceStatusChanged.prototype, "payload", void 0);
|
|
61
61
|
//# sourceMappingURL=machine-resource-status-changed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-resource-status-changed.js","sourceRoot":"","sources":["../../../src/v4/events/machine-resource-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAA+C;AAC/C,oGAAqF;AAErF,MAAa,
|
|
1
|
+
{"version":3,"file":"machine-resource-status-changed.js","sourceRoot":"","sources":["../../../src/v4/events/machine-resource-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAA+C;AAC/C,oGAAqF;AAErF,MAAa,mCAAmC;CAkB/C;AAlBD,kFAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;8EACiB;AAI1B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;0EACU;AAGvB;IADC,IAAA,0BAAQ,GAAE;;mEACiB;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2EAC0B;AAIrC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACI;AAGjB,MAAa,4BAA6B,SAAQ,wBAAU;IAI1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oEAkBC;AAjBiB,uCAAU,GACxB,wDAAwD,CAAC;AAY3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;6DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
3
3
|
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
4
4
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
5
5
|
|
|
6
|
-
export class
|
|
6
|
+
export class LudeocastResourceUpdatedPayload {
|
|
7
7
|
@IsString()
|
|
8
8
|
resourceType: string;
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ export class LudeocastResourceUpdated extends LudeoEvent {
|
|
|
23
23
|
"cloud-resource-monitor.ludeocast-controller.resource-updated";
|
|
24
24
|
|
|
25
25
|
constructor(
|
|
26
|
-
payload:
|
|
26
|
+
payload: LudeocastResourceUpdatedPayload,
|
|
27
27
|
context: CloudResourceContext
|
|
28
28
|
) {
|
|
29
29
|
super(LudeocastResourceUpdated.EVENT_NAME);
|
|
@@ -34,6 +34,6 @@ export class LudeocastResourceUpdated extends LudeoEvent {
|
|
|
34
34
|
@ValidateNestedType(() => CloudResourceContext)
|
|
35
35
|
context: CloudResourceContext;
|
|
36
36
|
|
|
37
|
-
@ValidateNestedType(() =>
|
|
38
|
-
payload:
|
|
37
|
+
@ValidateNestedType(() => LudeocastResourceUpdatedPayload)
|
|
38
|
+
payload: LudeocastResourceUpdatedPayload;
|
|
39
39
|
}
|
|
@@ -4,7 +4,7 @@ import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
|
4
4
|
import { CloudResourceStatus } from "../types";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
7
|
-
export class
|
|
7
|
+
export class MachineResourceStatusChangedPayload {
|
|
8
8
|
@IsUUID()
|
|
9
9
|
machineResourceId: string;
|
|
10
10
|
|
|
@@ -24,15 +24,15 @@ export class MachineResourceStatusChangedEventPayload {
|
|
|
24
24
|
error?: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export class
|
|
27
|
+
export class MachineResourceStatusChanged extends LudeoEvent {
|
|
28
28
|
static readonly EVENT_NAME =
|
|
29
29
|
"cloud-resource-monitor.machine-resource-status-changed";
|
|
30
30
|
|
|
31
31
|
constructor(
|
|
32
|
-
payload:
|
|
32
|
+
payload: MachineResourceStatusChangedPayload,
|
|
33
33
|
context: CloudResourceContext
|
|
34
34
|
) {
|
|
35
|
-
super(
|
|
35
|
+
super(MachineResourceStatusChanged.EVENT_NAME);
|
|
36
36
|
this.payload = payload;
|
|
37
37
|
this.context = context;
|
|
38
38
|
}
|
|
@@ -40,6 +40,6 @@ export class MachineResourceStatusChangedEvent extends LudeoEvent {
|
|
|
40
40
|
@ValidateNestedType(() => CloudResourceContext)
|
|
41
41
|
context: CloudResourceContext;
|
|
42
42
|
|
|
43
|
-
@ValidateNestedType(() =>
|
|
44
|
-
payload:
|
|
43
|
+
@ValidateNestedType(() => MachineResourceStatusChangedPayload)
|
|
44
|
+
payload: MachineResourceStatusChangedPayload;
|
|
45
45
|
}
|