@ludeo/cloud-common 1.2.86 → 1.2.87
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/index.d.ts +1 -0
- package/dist/v4/events/index.js +1 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/machine-resource-termination-failed-response.d.ts +16 -0
- package/dist/v4/events/machine-resource-termination-failed-response.js +58 -0
- package/dist/v4/events/machine-resource-termination-failed-response.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/events/index.ts +1 -0
- package/src/v4/events/machine-resource-termination-failed-response.ts +47 -0
package/dist/v4/events/index.js
CHANGED
|
@@ -137,4 +137,5 @@ __exportStar(require("./create-build"), exports);
|
|
|
137
137
|
__exportStar(require("./build-creation-failed"), exports);
|
|
138
138
|
__exportStar(require("./pool-updated.event"), exports);
|
|
139
139
|
__exportStar(require("./pool-created.event"), exports);
|
|
140
|
+
__exportStar(require("./machine-resource-termination-failed-response"), exports);
|
|
140
141
|
//# 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,+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,yEAA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C7C,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"}
|
|
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;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
4
|
+
export declare class MachineResourceTerminationFailedResponsePayload {
|
|
5
|
+
machineResourceId: string;
|
|
6
|
+
machinePoolId: string;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
cloudProviderSettings: CloudProviderSettings;
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class MachineResourceTerminationFailedResponse extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "cloud-pools.machine-resource-termination-failed-response";
|
|
13
|
+
constructor(payload: MachineResourceTerminationFailedResponsePayload, context: CloudResourceContext);
|
|
14
|
+
context: CloudResourceContext;
|
|
15
|
+
payload: MachineResourceTerminationFailedResponsePayload;
|
|
16
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.MachineResourceTerminationFailedResponse = exports.MachineResourceTerminationFailedResponsePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
class MachineResourceTerminationFailedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.MachineResourceTerminationFailedResponsePayload = MachineResourceTerminationFailedResponsePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "machineResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "machinePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "cloudProvider", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "cloudProviderSettings", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], MachineResourceTerminationFailedResponsePayload.prototype, "errorMessage", void 0);
|
|
41
|
+
class MachineResourceTerminationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
42
|
+
constructor(payload, context) {
|
|
43
|
+
super(MachineResourceTerminationFailedResponse.EVENT_NAME);
|
|
44
|
+
this.payload = payload;
|
|
45
|
+
this.context = context;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.MachineResourceTerminationFailedResponse = MachineResourceTerminationFailedResponse;
|
|
49
|
+
MachineResourceTerminationFailedResponse.EVENT_NAME = "cloud-pools.machine-resource-termination-failed-response";
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
52
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
53
|
+
], MachineResourceTerminationFailedResponse.prototype, "context", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineResourceTerminationFailedResponsePayload),
|
|
56
|
+
__metadata("design:type", MachineResourceTerminationFailedResponsePayload)
|
|
57
|
+
], MachineResourceTerminationFailedResponse.prototype, "payload", void 0);
|
|
58
|
+
//# sourceMappingURL=machine-resource-termination-failed-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoE;AAEpE,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,+CAA+C;CAe3D;AAfD,0GAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;0FACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;sFACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;sFACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;8FACD;AAG7C;IADC,IAAA,0BAAQ,GAAE;;qFACU;AAGvB,MAAa,wCAAyC,SAAQ,wBAAU;IAItE,YACE,OAAwD,EACxD,OAA6B;QAE7B,KAAK,CAAC,wCAAwC,CAAC,UAAU,CAAC,CAAC;QAC3D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,4FAkBC;AAjBiB,mDAAU,GACxB,0DAA0D,CAAC;AAY7D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;yEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+CAA+C,CAAC;8BACjE,+CAA+C;yEAAC"}
|
package/package.json
CHANGED
package/src/v4/events/index.ts
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IsArray, IsEnum, IsString, IsUUID } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { CloudResourceContext } from "../contexts";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
+
import {
|
|
7
|
+
AWSProviderSettings,
|
|
8
|
+
CloudProvider,
|
|
9
|
+
CloudProviderSettings,
|
|
10
|
+
} from "../types";
|
|
11
|
+
|
|
12
|
+
export class MachineResourceTerminationFailedResponsePayload {
|
|
13
|
+
@IsUUID()
|
|
14
|
+
machineResourceId: string;
|
|
15
|
+
|
|
16
|
+
@IsUUID()
|
|
17
|
+
machinePoolId: string;
|
|
18
|
+
|
|
19
|
+
@IsEnum(CloudProvider)
|
|
20
|
+
cloudProvider: CloudProvider;
|
|
21
|
+
|
|
22
|
+
@ValidateNestedType(() => AWSProviderSettings)
|
|
23
|
+
cloudProviderSettings: CloudProviderSettings;
|
|
24
|
+
|
|
25
|
+
@IsString()
|
|
26
|
+
errorMessage: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class MachineResourceTerminationFailedResponse extends LudeoEvent {
|
|
30
|
+
static readonly EVENT_NAME =
|
|
31
|
+
"cloud-pools.machine-resource-termination-failed-response";
|
|
32
|
+
|
|
33
|
+
constructor(
|
|
34
|
+
payload: MachineResourceTerminationFailedResponsePayload,
|
|
35
|
+
context: CloudResourceContext
|
|
36
|
+
) {
|
|
37
|
+
super(MachineResourceTerminationFailedResponse.EVENT_NAME);
|
|
38
|
+
this.payload = payload;
|
|
39
|
+
this.context = context;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
43
|
+
context: CloudResourceContext;
|
|
44
|
+
|
|
45
|
+
@ValidateNestedType(() => MachineResourceTerminationFailedResponsePayload)
|
|
46
|
+
payload: MachineResourceTerminationFailedResponsePayload;
|
|
47
|
+
}
|