@ludeo/cloud-common 1.2.121 → 1.2.122-ygbeta1
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/check-predictor-status.d.ts +9 -0
- package/dist/v4/events/check-predictor-status.js +30 -0
- package/dist/v4/events/check-predictor-status.js.map +1 -0
- package/dist/v4/events/cloud-ludeo-updated.d.ts +10 -0
- package/dist/v4/events/cloud-ludeo-updated.js +40 -0
- package/dist/v4/events/cloud-ludeo-updated.js.map +1 -0
- package/dist/v4/events/index.d.ts +2 -0
- package/dist/v4/events/index.js +2 -0
- package/dist/v4/events/index.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/check-predictor-status.ts +20 -0
- package/src/v4/events/cloud-ludeo-updated.ts +25 -0
- package/src/v4/events/index.ts +2 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare class CheckPredictorStatusPayload {
|
|
3
|
+
}
|
|
4
|
+
export declare class CheckPredictorStatus extends LudeoEvent {
|
|
5
|
+
static readonly EVENT_NAME = "cloud-pools.check-predictor-status";
|
|
6
|
+
constructor(payload: CheckPredictorStatusPayload);
|
|
7
|
+
payload: CheckPredictorStatusPayload;
|
|
8
|
+
context: never;
|
|
9
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.CheckPredictorStatus = exports.CheckPredictorStatusPayload = void 0;
|
|
13
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
class CheckPredictorStatusPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CheckPredictorStatusPayload = CheckPredictorStatusPayload;
|
|
18
|
+
class CheckPredictorStatus extends ludeo_event_1.LudeoEvent {
|
|
19
|
+
constructor(payload) {
|
|
20
|
+
super(CheckPredictorStatus.EVENT_NAME);
|
|
21
|
+
this.payload = payload;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.CheckPredictorStatus = CheckPredictorStatus;
|
|
25
|
+
CheckPredictorStatus.EVENT_NAME = "cloud-pools.check-predictor-status";
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CheckPredictorStatusPayload),
|
|
28
|
+
__metadata("design:type", CheckPredictorStatusPayload)
|
|
29
|
+
], CheckPredictorStatus.prototype, "payload", void 0);
|
|
30
|
+
//# sourceMappingURL=check-predictor-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-predictor-status.js","sourceRoot":"","sources":["../../../src/v4/events/check-predictor-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,2BAA2B;CAAG;AAA3C,kEAA2C;AAE3C,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YAAY,OAAoC;QAC9C,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,oDAYC;AAXiB,+BAAU,GAAG,oCAAoC,CAAC;AAQlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare class CloudLudeoUpdatedPayload {
|
|
3
|
+
ludeoId: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class CloudLudeoUpdated extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-session-allocator.cloud-ludeo-updated";
|
|
8
|
+
constructor(payload: CloudLudeoUpdatedPayload);
|
|
9
|
+
payload: CloudLudeoUpdatedPayload;
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.CloudLudeoUpdated = exports.CloudLudeoUpdatedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
class CloudLudeoUpdatedPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.CloudLudeoUpdatedPayload = CloudLudeoUpdatedPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CloudLudeoUpdatedPayload.prototype, "ludeoId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsBoolean)(),
|
|
26
|
+
__metadata("design:type", Boolean)
|
|
27
|
+
], CloudLudeoUpdatedPayload.prototype, "disabled", void 0);
|
|
28
|
+
class CloudLudeoUpdated extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload) {
|
|
30
|
+
super(CloudLudeoUpdated.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.CloudLudeoUpdated = CloudLudeoUpdated;
|
|
35
|
+
CloudLudeoUpdated.EVENT_NAME = "cloud-session-allocator.cloud-ludeo-updated";
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CloudLudeoUpdatedPayload),
|
|
38
|
+
__metadata("design:type", CloudLudeoUpdatedPayload)
|
|
39
|
+
], CloudLudeoUpdated.prototype, "payload", void 0);
|
|
40
|
+
//# sourceMappingURL=cloud-ludeo-updated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-ludeo-updated.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-ludeo-updated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,wBAAwB;CAOpC;AAPD,4DAOC;AALC;IADC,IAAA,wBAAM,GAAE;;yDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;0DACM;AAIpB,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YAAY,OAAiC;QAC3C,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,8CAUC;AATiB,4BAAU,GAAG,6CAA6C,CAAC;AAQ3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
|
@@ -136,3 +136,5 @@ export * from "./pools-build-assignment-failed";
|
|
|
136
136
|
export * from "./build-assignment-failed";
|
|
137
137
|
export * from "./monitor-aws-build-replication-status-task";
|
|
138
138
|
export * from "./ludeo-build-updated";
|
|
139
|
+
export * from "./check-predictor-status";
|
|
140
|
+
export * from "./cloud-ludeo-updated";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -152,4 +152,6 @@ __exportStar(require("./pools-build-assignment-failed"), exports);
|
|
|
152
152
|
__exportStar(require("./build-assignment-failed"), exports);
|
|
153
153
|
__exportStar(require("./monitor-aws-build-replication-status-task"), exports);
|
|
154
154
|
__exportStar(require("./ludeo-build-updated"), exports);
|
|
155
|
+
__exportStar(require("./check-predictor-status"), exports);
|
|
156
|
+
__exportStar(require("./cloud-ludeo-updated"), exports);
|
|
155
157
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6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nD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,mEAAiD;AACjD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,+DAA6C;AAC7C,oEAAkD;AAClD,kEAAgD;AAChD,yDAAuC;AACvC,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,kDAAgC;AAChC,kEAAgD;AAChD,sEAAoD;AACpD,uEAAqD;AACrD,oDAAkC;AAClC,iEAA+C;AAC/C,mDAAiC;AACjC,iDAA+B;AAC/B,0DAAwC;AACxC,uDAAqC;AACrC,uDAAqC;AACrC,iFAA+D;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACp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AoD;AACpD,uEAAqD;AACrD,oDAAkC;AAClC,iEAA+C;AAC/C,mDAAiC;AACjC,iDAA+B;AAC/B,0DAAwC;AACxC,uDAAqC;AACrC,uDAAqC;AACrC,iFAA+D;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC;AACtC,2DAAyC;AACzC,wDAAsC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IsUUID, IsString } from "class-validator";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
|
|
6
|
+
export class CheckPredictorStatusPayload {}
|
|
7
|
+
|
|
8
|
+
export class CheckPredictorStatus extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-pools.check-predictor-status";
|
|
10
|
+
|
|
11
|
+
constructor(payload: CheckPredictorStatusPayload) {
|
|
12
|
+
super(CheckPredictorStatus.EVENT_NAME);
|
|
13
|
+
this.payload = payload;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@ValidateNestedType(() => CheckPredictorStatusPayload)
|
|
17
|
+
payload: CheckPredictorStatusPayload;
|
|
18
|
+
|
|
19
|
+
context: never;
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IsBoolean, IsOptional, IsUUID } from "class-validator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
|
|
5
|
+
export class CloudLudeoUpdatedPayload {
|
|
6
|
+
@IsUUID()
|
|
7
|
+
ludeoId: string;
|
|
8
|
+
|
|
9
|
+
@IsOptional()
|
|
10
|
+
@IsBoolean()
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Disabling ludeos is not currently supported - so we created this event for us to be able to disable ludeos.
|
|
15
|
+
export class CloudLudeoUpdated extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME = "cloud-session-allocator.cloud-ludeo-updated";
|
|
17
|
+
|
|
18
|
+
constructor(payload: CloudLudeoUpdatedPayload) {
|
|
19
|
+
super(CloudLudeoUpdated.EVENT_NAME);
|
|
20
|
+
this.payload = payload;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@ValidateNestedType(() => CloudLudeoUpdatedPayload)
|
|
24
|
+
payload: CloudLudeoUpdatedPayload;
|
|
25
|
+
}
|
package/src/v4/events/index.ts
CHANGED
|
@@ -136,3 +136,5 @@ export * from "./pools-build-assignment-failed";
|
|
|
136
136
|
export * from "./build-assignment-failed";
|
|
137
137
|
export * from "./monitor-aws-build-replication-status-task";
|
|
138
138
|
export * from "./ludeo-build-updated";
|
|
139
|
+
export * from "./check-predictor-status";
|
|
140
|
+
export * from "./cloud-ludeo-updated";
|