@ludeo/cloud-common 1.2.217 → 1.2.218
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/machine-resource-creation-failed-response.d.ts +1 -0
- package/dist/v4/events/machine-resource-creation-failed-response.js +5 -0
- package/dist/v4/events/machine-resource-creation-failed-response.js.map +1 -1
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.d.ts +1 -0
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +5 -0
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/machine-resource-creation-failed-response.ts +5 -1
- package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +5 -1
|
@@ -4,6 +4,7 @@ export declare class MachineResourceCreationFailedResponsePayload {
|
|
|
4
4
|
machineResourceId: string;
|
|
5
5
|
machinePoolId: string;
|
|
6
6
|
errorMessage: string;
|
|
7
|
+
isRecoverable?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare class MachineResourceCreationFailedResponse extends LudeoEvent {
|
|
9
10
|
static readonly EVENT_NAME = "cloud-resources.machine-resource-creation-failed-response";
|
|
@@ -29,6 +29,11 @@ __decorate([
|
|
|
29
29
|
(0, class_validator_1.IsString)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], MachineResourceCreationFailedResponsePayload.prototype, "errorMessage", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsBoolean)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], MachineResourceCreationFailedResponsePayload.prototype, "isRecoverable", void 0);
|
|
32
37
|
class MachineResourceCreationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
33
38
|
constructor(payload, context) {
|
|
34
39
|
super(MachineResourceCreationFailedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-resource-creation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-resource-creation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"machine-resource-creation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-resource-creation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4CAA4C;CAaxD;AAbD,oGAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;uFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;mFACa;AAGtB;IADC,IAAA,0BAAQ,GAAE;;kFACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;mFACY;AAG1B,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAAqD,EACrD,OAA6B;QAE7B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,2DAA2D,CAAC;AAY9D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;sEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4CAA4C,CAAC;8BAC9D,4CAA4C;sEAAC"}
|
|
@@ -10,6 +10,7 @@ export declare class MachineLudeocastCreationEndedPayload {
|
|
|
10
10
|
status: CloudResourceStatus;
|
|
11
11
|
reason?: string;
|
|
12
12
|
machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>;
|
|
13
|
+
isRecoverable?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare class MachineLudeocastCreationEnded extends LudeoEvent {
|
|
15
16
|
static readonly EVENT_NAME = "site-controller.machine-ludeocast-creation-ended";
|
|
@@ -44,6 +44,11 @@ __decorate([
|
|
|
44
44
|
(0, class_validator_1.IsOptional)(),
|
|
45
45
|
__metadata("design:type", pools_1.MachineResourceSettings)
|
|
46
46
|
], MachineLudeocastCreationEndedPayload.prototype, "machineResourceSettings", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsBoolean)(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], MachineLudeocastCreationEndedPayload.prototype, "isRecoverable", void 0);
|
|
47
52
|
class MachineLudeocastCreationEnded extends infra_1.LudeoEvent {
|
|
48
53
|
constructor(payload, context) {
|
|
49
54
|
super(MachineLudeocastCreationEnded.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAkF;AAClF,6CAAsD;AACtD,iEAAkE;AAClE,6CAAiF;AAGjF,MAAa,oCAAoC;CAuBhD;AAvBD,oFAuBC;AArBC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGhB;IADC,IAAA,4BAAU,GAAE;8BACa,+BAAuB;qFAA4C;AAI7F;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;2EACY;AAG1B,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsString, IsUUID } from "class-validator";
|
|
1
|
+
import { IsBoolean, IsOptional, IsString, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { CloudResourceContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
@@ -13,6 +13,10 @@ export class MachineResourceCreationFailedResponsePayload {
|
|
|
13
13
|
|
|
14
14
|
@IsString()
|
|
15
15
|
errorMessage: string;
|
|
16
|
+
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@IsBoolean()
|
|
19
|
+
isRecoverable?: boolean;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
export class MachineResourceCreationFailedResponse extends LudeoEvent {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
3
|
+
import { IsBoolean, IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
4
|
import { CloudResourceContext } from '../../contexts';
|
|
5
5
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
6
|
import { CloudResourceStatus, MachineResourceSettings } from '../../types/pools';
|
|
@@ -25,6 +25,10 @@ export class MachineLudeocastCreationEndedPayload {
|
|
|
25
25
|
|
|
26
26
|
@IsOptional()
|
|
27
27
|
machineResourceSettings?: MachineResourceSettings<LudeoCastV2MachineResourceProviderSettings>
|
|
28
|
+
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsBoolean()
|
|
31
|
+
isRecoverable?: boolean;
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
export class MachineLudeocastCreationEnded extends LudeoEvent {
|