@ludeo/cloud-common 1.2.108 → 1.2.109
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BuildContext } from "../contexts/build-context";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudBuild } from "../types";
|
|
3
4
|
export declare class BuildCreationFailedPayload {
|
|
4
|
-
|
|
5
|
+
build: CloudBuild;
|
|
5
6
|
error?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare class BuildCreationFailed extends LudeoEvent {
|
|
@@ -14,13 +14,14 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const build_context_1 = require("../contexts/build-context");
|
|
15
15
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
16
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
+
const types_1 = require("../types");
|
|
17
18
|
class BuildCreationFailedPayload {
|
|
18
19
|
}
|
|
19
20
|
exports.BuildCreationFailedPayload = BuildCreationFailedPayload;
|
|
20
21
|
__decorate([
|
|
21
|
-
(0,
|
|
22
|
-
__metadata("design:type",
|
|
23
|
-
], BuildCreationFailedPayload.prototype, "
|
|
22
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.CloudBuild),
|
|
23
|
+
__metadata("design:type", types_1.CloudBuild)
|
|
24
|
+
], BuildCreationFailedPayload.prototype, "build", void 0);
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, class_validator_1.IsString)(),
|
|
26
27
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-creation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"build-creation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AACrD,oCAAsC;AAEtC,MAAa,0BAA0B;CAOtC;AAPD,gEAOC;AALC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;yDAAC;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACE;AAGjB,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YAAY,OAAmC,EAAE,OAAqB;QACpE,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,kDAcC;AAbiB,8BAAU,GAAG,oCAAoC,CAAC;AASlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;oDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { IsOptional, IsString
|
|
1
|
+
import { IsOptional, IsString } from "class-validator";
|
|
2
2
|
import { BuildContext } from "../contexts/build-context";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { CloudBuild } from "../types";
|
|
5
6
|
|
|
6
7
|
export class BuildCreationFailedPayload {
|
|
7
|
-
@
|
|
8
|
-
|
|
8
|
+
@ValidateNestedType(() => CloudBuild)
|
|
9
|
+
build: CloudBuild;
|
|
9
10
|
|
|
10
11
|
@IsString()
|
|
11
12
|
@IsOptional()
|