@ludeo/cloud-common 1.2.83-beta-yahil-1 → 1.2.83-beta-yahil-2
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/build-creation-failed.d.ts +12 -0
- package/dist/v4/events/build-creation-failed.js +46 -0
- package/dist/v4/events/build-creation-failed.js.map +1 -0
- package/dist/v4/events/create-build.js +1 -1
- package/dist/v4/events/create-build.js.map +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/package.json +1 -1
- package/src/v4/events/build-creation-failed.ts +29 -0
- package/src/v4/events/create-build.ts +3 -4
- package/src/v4/events/index.ts +1 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class BuildCreationFailedPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class BuildCreationFailed extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-builds.build-creation-failed";
|
|
9
|
+
constructor(payload: BuildCreationFailedPayload, context: BuildContext);
|
|
10
|
+
context: BuildContext;
|
|
11
|
+
payload: BuildCreationFailedPayload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.BuildCreationFailed = exports.BuildCreationFailedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const build_context_1 = require("../contexts/build-context");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
+
class BuildCreationFailedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.BuildCreationFailedPayload = BuildCreationFailedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BuildCreationFailedPayload.prototype, "buildId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], BuildCreationFailedPayload.prototype, "error", void 0);
|
|
29
|
+
class BuildCreationFailed extends ludeo_event_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(BuildCreationFailed.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.BuildCreationFailed = BuildCreationFailed;
|
|
37
|
+
BuildCreationFailed.EVENT_NAME = "cloud-builds.build-creation-failed";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
+
], BuildCreationFailed.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildCreationFailedPayload),
|
|
44
|
+
__metadata("design:type", BuildCreationFailedPayload)
|
|
45
|
+
], BuildCreationFailed.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=build-creation-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-creation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,0BAA0B;CAOtC;AAPD,gEAOC;AALC;IADC,IAAA,wBAAM,GAAE;;2DACO;AAIhB;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"}
|
|
@@ -24,7 +24,7 @@ __decorate([
|
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], CreateBuildPayload.prototype, "buildId", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.
|
|
27
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.BuildMetadata),
|
|
28
28
|
__metadata("design:type", build_1.BuildMetadata)
|
|
29
29
|
], CreateBuildPayload.prototype, "meta", void 0);
|
|
30
30
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-build.js","sourceRoot":"","sources":["../../../src/v4/events/create-build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-build.js","sourceRoot":"","sources":["../../../src/v4/events/create-build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,6DAAyD;AACzD,0CAA+C;AAC/C,oGAAqF;AACrF,yDAAqD;AACrD,0CAAoD;AAEpD,MAAa,kBAAkB;CAS9B;AATD,gDASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;mDACK;AAGhB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;8BAClC,qBAAa;gDAAC;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BAC9B,0BAAkB;yDAAC;AAGpC,MAAa,WAAY,SAAQ,wBAAU;IAGzC,YAAY,OAA2B,EAAE,OAAqB;QAC5D,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,kCAcC;AAbiB,sBAAU,GAAG,2BAA2B,CAAC;AASzD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;4CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;8BACpC,kBAAkB;4CAAC"}
|
package/dist/v4/events/index.js
CHANGED
|
@@ -134,4 +134,5 @@ __exportStar(require("./token-activated"), exports);
|
|
|
134
134
|
__exportStar(require("./cloud-session-sent-to-client"), exports);
|
|
135
135
|
__exportStar(require("./build-uploaded"), exports);
|
|
136
136
|
__exportStar(require("./create-build"), exports);
|
|
137
|
+
__exportStar(require("./build-creation-failed"), exports);
|
|
137
138
|
//# 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,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"}
|
|
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,sE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;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"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IsOptional, IsString, IsUUID } 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 BuildCreationFailedPayload {
|
|
7
|
+
@IsUUID()
|
|
8
|
+
buildId: string;
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
error?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class BuildCreationFailed extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME = "cloud-builds.build-creation-failed";
|
|
17
|
+
|
|
18
|
+
constructor(payload: BuildCreationFailedPayload, context: BuildContext) {
|
|
19
|
+
super(BuildCreationFailed.EVENT_NAME);
|
|
20
|
+
this.payload = payload;
|
|
21
|
+
this.context = context;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@ValidateNestedType(() => BuildContext)
|
|
25
|
+
context: BuildContext;
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => BuildCreationFailedPayload)
|
|
28
|
+
payload: BuildCreationFailedPayload;
|
|
29
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CloudProvider } from "../types";
|
|
1
|
+
import { IsString } from "class-validator";
|
|
3
2
|
import { BuildContext } from "../contexts/build-context";
|
|
4
|
-
import { BuildMetadata
|
|
3
|
+
import { BuildMetadata } from "../types/build";
|
|
5
4
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
5
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
7
6
|
import { BuildCreationInput } from "../types/build";
|
|
@@ -10,7 +9,7 @@ export class CreateBuildPayload {
|
|
|
10
9
|
@IsString()
|
|
11
10
|
buildId: string;
|
|
12
11
|
|
|
13
|
-
@ValidateNestedType(() =>
|
|
12
|
+
@ValidateNestedType(() => BuildMetadata)
|
|
14
13
|
meta: BuildMetadata;
|
|
15
14
|
|
|
16
15
|
@ValidateNestedType(() => BuildCreationInput)
|
package/src/v4/events/index.ts
CHANGED