@ludeo/cloud-common 1.2.77 → 1.2.78
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-artifacts-job-failed.d.ts +13 -0
- package/dist/v4/events/{build-distribution-failed-response.js → build-artifacts-job-failed.js} +14 -14
- package/dist/v4/events/build-artifacts-job-failed.js.map +1 -0
- package/dist/v4/events/build-artifacts-job-finished.d.ts +15 -0
- package/dist/v4/events/{build-distributed-successfully.js → build-artifacts-job-finished.js} +16 -16
- package/dist/v4/events/build-artifacts-job-finished.js.map +1 -0
- package/dist/v4/events/build-created.d.ts +11 -0
- package/dist/v4/events/build-created.js +41 -0
- package/dist/v4/events/build-created.js.map +1 -0
- package/dist/v4/events/build-distributed.d.ts +11 -0
- package/dist/v4/events/build-distributed.js +41 -0
- package/dist/v4/events/build-distributed.js.map +1 -0
- package/dist/v4/events/{build-distribution-failed-response.d.ts → build-distribution-job-failed.d.ts} +5 -5
- package/dist/v4/events/build-distribution-job-failed.js +46 -0
- package/dist/v4/events/build-distribution-job-failed.js.map +1 -0
- package/dist/v4/events/build-distribution-job-finished.d.ts +14 -0
- package/dist/v4/events/build-distribution-job-finished.js +50 -0
- package/dist/v4/events/build-distribution-job-finished.js.map +1 -0
- package/dist/v4/events/create-build-artifacts-job.d.ts +14 -0
- package/dist/v4/events/create-build-artifacts-job.js +47 -0
- package/dist/v4/events/create-build-artifacts-job.js.map +1 -0
- package/dist/v4/events/{distribute-build-request.d.ts → distribute-build-job.d.ts} +5 -5
- package/dist/v4/events/{distribute-build-request.js → distribute-build-job.js} +14 -14
- package/dist/v4/events/distribute-build-job.js.map +1 -0
- package/dist/v4/events/index.d.ts +8 -3
- package/dist/v4/events/index.js +8 -3
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/types/build.d.ts +36 -24
- package/dist/v4/types/build.js +31 -5
- package/dist/v4/types/build.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/build-artifacts-job-failed.ts +29 -0
- package/src/v4/events/build-artifacts-job-finished.ts +36 -0
- package/src/v4/events/build-created.ts +25 -0
- package/src/v4/events/build-distributed.ts +25 -0
- package/src/v4/events/{build-distribution-failed-response.ts → build-distribution-job-failed.ts} +7 -8
- package/src/v4/events/build-distribution-job-finished.ts +35 -0
- package/src/v4/events/create-build-artifacts-job.ts +30 -0
- package/src/v4/events/{distribute-build-request.ts → distribute-build-job.ts} +7 -7
- package/src/v4/events/index.ts +8 -3
- package/src/v4/types/build.ts +38 -25
- package/dist/v4/events/build-distributed-successfully.d.ts +0 -15
- package/dist/v4/events/build-distributed-successfully.js.map +0 -1
- package/dist/v4/events/build-distribution-failed-response.js.map +0 -1
- package/dist/v4/events/distribute-build-request.js.map +0 -1
- package/src/v4/events/build-distributed-successfully.ts +0 -36
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CloudProvider } from "../types";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
export declare class BuildArtifactsJobFailedPayload {
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
buildId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class BuildArtifactsJobFailed extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.build-artifacts-job-failed";
|
|
10
|
+
constructor(payload: BuildArtifactsJobFailedPayload, context: BuildContext);
|
|
11
|
+
context: BuildContext;
|
|
12
|
+
payload: BuildArtifactsJobFailedPayload;
|
|
13
|
+
}
|
package/dist/v4/events/{build-distribution-failed-response.js → build-artifacts-job-failed.js}
RENAMED
|
@@ -9,38 +9,38 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.BuildArtifactsJobFailed = exports.BuildArtifactsJobFailedPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const types_1 = require("../types");
|
|
15
15
|
const build_context_1 = require("../contexts/build-context");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
17
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
-
class
|
|
18
|
+
class BuildArtifactsJobFailedPayload {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.BuildArtifactsJobFailedPayload = BuildArtifactsJobFailedPayload;
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
24
|
+
], BuildArtifactsJobFailedPayload.prototype, "cloudProvider", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsUUID)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
29
|
-
class
|
|
28
|
+
], BuildArtifactsJobFailedPayload.prototype, "buildId", void 0);
|
|
29
|
+
class BuildArtifactsJobFailed extends ludeo_event_1.LudeoEvent {
|
|
30
30
|
constructor(payload, context) {
|
|
31
|
-
super(
|
|
31
|
+
super(BuildArtifactsJobFailed.EVENT_NAME);
|
|
32
32
|
this.payload = payload;
|
|
33
33
|
this.context = context;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
exports.
|
|
37
|
-
|
|
36
|
+
exports.BuildArtifactsJobFailed = BuildArtifactsJobFailed;
|
|
37
|
+
BuildArtifactsJobFailed.EVENT_NAME = "cloud-builds.build-artifacts-job-failed";
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
40
|
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
-
],
|
|
41
|
+
], BuildArtifactsJobFailed.prototype, "context", void 0);
|
|
42
42
|
__decorate([
|
|
43
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
44
|
-
__metadata("design:type",
|
|
45
|
-
],
|
|
46
|
-
//# sourceMappingURL=build-
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildArtifactsJobFailedPayload),
|
|
44
|
+
__metadata("design:type", BuildArtifactsJobFailedPayload)
|
|
45
|
+
], BuildArtifactsJobFailed.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=build-artifacts-job-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-artifacts-job-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-artifacts-job-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;qEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;+DACO;AAGlB,MAAa,uBAAwB,SAAQ,wBAAU;IAGrD,YAAY,OAAuC,EAAE,OAAqB;QACxE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,0DAcC;AAbiB,kCAAU,GAAG,yCAAyC,CAAC;AASvE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;wDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { CloudProvider } from "../types";
|
|
3
|
+
import { Artifacts } from "../types/build";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
export declare class BuildArtifactsJobFinishedPayload {
|
|
6
|
+
cloudProvider: CloudProvider;
|
|
7
|
+
artifacts: Artifacts;
|
|
8
|
+
buildId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class BuildArtifactsJobFinished extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.build-artifacts-job-finished";
|
|
12
|
+
constructor(payload: BuildArtifactsJobFinishedPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: BuildArtifactsJobFinishedPayload;
|
|
15
|
+
}
|
package/dist/v4/events/{build-distributed-successfully.js → build-artifacts-job-finished.js}
RENAMED
|
@@ -9,43 +9,43 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.BuildArtifactsJobFinished = exports.BuildArtifactsJobFinishedPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const build_context_1 = require("../contexts/build-context");
|
|
15
15
|
const types_1 = require("../types");
|
|
16
16
|
const build_1 = require("../types/build");
|
|
17
17
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
18
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
19
|
-
class
|
|
19
|
+
class BuildArtifactsJobFinishedPayload {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.BuildArtifactsJobFinishedPayload = BuildArtifactsJobFinishedPayload;
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
25
|
+
], BuildArtifactsJobFinishedPayload.prototype, "cloudProvider", 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.AwsArtifacts),
|
|
28
28
|
__metadata("design:type", Object)
|
|
29
|
-
],
|
|
29
|
+
], BuildArtifactsJobFinishedPayload.prototype, "artifacts", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, class_validator_1.IsUUID)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
34
|
-
class
|
|
33
|
+
], BuildArtifactsJobFinishedPayload.prototype, "buildId", void 0);
|
|
34
|
+
class BuildArtifactsJobFinished extends ludeo_event_1.LudeoEvent {
|
|
35
35
|
constructor(payload, context) {
|
|
36
|
-
super(
|
|
36
|
+
super(BuildArtifactsJobFinished.EVENT_NAME);
|
|
37
37
|
this.payload = payload;
|
|
38
38
|
this.context = context;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
exports.
|
|
42
|
-
|
|
41
|
+
exports.BuildArtifactsJobFinished = BuildArtifactsJobFinished;
|
|
42
|
+
BuildArtifactsJobFinished.EVENT_NAME = "cloud-builds.build-artifacts-job-finished";
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
45
|
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
-
],
|
|
46
|
+
], BuildArtifactsJobFinished.prototype, "context", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
49
|
-
__metadata("design:type",
|
|
50
|
-
],
|
|
51
|
-
//# sourceMappingURL=build-
|
|
48
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildArtifactsJobFinishedPayload),
|
|
49
|
+
__metadata("design:type", BuildArtifactsJobFinishedPayload)
|
|
50
|
+
], BuildArtifactsJobFinished.prototype, "payload", void 0);
|
|
51
|
+
//# sourceMappingURL=build-artifacts-job-finished.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-artifacts-job-finished.js","sourceRoot":"","sources":["../../../src/v4/events/build-artifacts-job-finished.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,6DAAyD;AACzD,oCAAyC;AACzC,0CAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,gCAAgC;CAS5C;AATD,4EASC;AAPC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uEACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAY,CAAC;;mEAClB;AAGrB;IADC,IAAA,wBAAM,GAAE;;iEACO;AAGlB,MAAa,yBAA0B,SAAQ,wBAAU;IAGvD,YACE,OAAyC,EACzC,OAAqB;QAErB,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8DAiBC;AAhBiB,oCAAU,GAAG,2CAA2C,CAAC;AAYzE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;0DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;8BAClD,gCAAgC;0DAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class BuildCreatedPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class BuildCreated extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-builds.build-created";
|
|
8
|
+
constructor(payload: BuildCreatedPayload, context: BuildContext);
|
|
9
|
+
context: BuildContext;
|
|
10
|
+
payload: BuildCreatedPayload;
|
|
11
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.BuildCreated = exports.BuildCreatedPayload = 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 BuildCreatedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.BuildCreatedPayload = BuildCreatedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BuildCreatedPayload.prototype, "buildId", void 0);
|
|
24
|
+
class BuildCreated extends ludeo_event_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(BuildCreated.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.BuildCreated = BuildCreated;
|
|
32
|
+
BuildCreated.EVENT_NAME = "cloud-builds.build-created";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
35
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
36
|
+
], BuildCreated.prototype, "context", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildCreatedPayload),
|
|
39
|
+
__metadata("design:type", BuildCreatedPayload)
|
|
40
|
+
], BuildCreated.prototype, "payload", void 0);
|
|
41
|
+
//# sourceMappingURL=build-created.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-created.js","sourceRoot":"","sources":["../../../src/v4/events/build-created.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AADC;IADC,IAAA,wBAAM,GAAE;;oDACO;AAGlB,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YAAY,OAA4B,EAAE,OAAqB;QAC7D,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oCAcC;AAbiB,uBAAU,GAAG,4BAA4B,CAAC;AAS1D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;6CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC;8BACrC,mBAAmB;6CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class BuildDistributedPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class BuildDistributed extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-builds.build-distributed";
|
|
8
|
+
constructor(payload: BuildDistributedPayload, context: BuildContext);
|
|
9
|
+
context: BuildContext;
|
|
10
|
+
payload: BuildDistributedPayload;
|
|
11
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.BuildDistributed = exports.BuildDistributedPayload = 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 BuildDistributedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.BuildDistributedPayload = BuildDistributedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BuildDistributedPayload.prototype, "buildId", void 0);
|
|
24
|
+
class BuildDistributed extends ludeo_event_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(BuildDistributed.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.BuildDistributed = BuildDistributed;
|
|
32
|
+
BuildDistributed.EVENT_NAME = "cloud-builds.build-distributed";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
35
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
36
|
+
], BuildDistributed.prototype, "context", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDistributedPayload),
|
|
39
|
+
__metadata("design:type", BuildDistributedPayload)
|
|
40
|
+
], BuildDistributed.prototype, "payload", void 0);
|
|
41
|
+
//# sourceMappingURL=build-distributed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-distributed.js","sourceRoot":"","sources":["../../../src/v4/events/build-distributed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;wDACO;AAGlB,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAgC,EAAE,OAAqB;QACjE,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4CAcC;AAbiB,2BAAU,GAAG,gCAAgC,CAAC;AAS9D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;iDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CloudProvider } from "../types";
|
|
2
2
|
import { BuildContext } from "../contexts/build-context";
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class BuildDistributionJobFailedPayload {
|
|
5
5
|
cloudProvider: CloudProvider;
|
|
6
6
|
buildId: string;
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
9
|
-
static readonly EVENT_NAME = "cloud-builds.build-distribution-failed
|
|
10
|
-
constructor(payload:
|
|
8
|
+
export declare class BuildDistributionJobFailed extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.build-distribution-job-failed";
|
|
10
|
+
constructor(payload: BuildDistributionJobFailedPayload, context: BuildContext);
|
|
11
11
|
context: BuildContext;
|
|
12
|
-
payload:
|
|
12
|
+
payload: BuildDistributionJobFailedPayload;
|
|
13
13
|
}
|
|
@@ -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.BuildDistributionJobFailed = exports.BuildDistributionJobFailedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const types_1 = require("../types");
|
|
15
|
+
const build_context_1 = require("../contexts/build-context");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
+
class BuildDistributionJobFailedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.BuildDistributionJobFailedPayload = BuildDistributionJobFailedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], BuildDistributionJobFailedPayload.prototype, "cloudProvider", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], BuildDistributionJobFailedPayload.prototype, "buildId", void 0);
|
|
29
|
+
class BuildDistributionJobFailed extends ludeo_event_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(BuildDistributionJobFailed.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.BuildDistributionJobFailed = BuildDistributionJobFailed;
|
|
37
|
+
BuildDistributionJobFailed.EVENT_NAME = "cloud-builds.build-distribution-job-failed";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
+
], BuildDistributionJobFailed.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDistributionJobFailedPayload),
|
|
44
|
+
__metadata("design:type", BuildDistributionJobFailedPayload)
|
|
45
|
+
], BuildDistributionJobFailed.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=build-distribution-job-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-distribution-job-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-distribution-job-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;wEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;kEACO;AAGlB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAAqB;QAErB,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,4CAA4C,CAAC;AAY1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;2DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { CloudProvider, Distributions } from "../types";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
export declare class BuildDistributionJobFinishedPayload {
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
distributions: Distributions;
|
|
7
|
+
buildId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class BuildDistributionJobFinished extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-builds.build-distribution-job-finished";
|
|
11
|
+
constructor(payload: BuildDistributionJobFinishedPayload, context: BuildContext);
|
|
12
|
+
context: BuildContext;
|
|
13
|
+
payload: BuildDistributionJobFinishedPayload;
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.BuildDistributionJobFinished = exports.BuildDistributionJobFinishedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const build_context_1 = require("../contexts/build-context");
|
|
15
|
+
const types_1 = require("../types");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
+
class BuildDistributionJobFinishedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.BuildDistributionJobFinishedPayload = BuildDistributionJobFinishedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], BuildDistributionJobFinishedPayload.prototype, "cloudProvider", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AwsDistributions),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], BuildDistributionJobFinishedPayload.prototype, "distributions", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsUUID)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], BuildDistributionJobFinishedPayload.prototype, "buildId", void 0);
|
|
33
|
+
class BuildDistributionJobFinished extends ludeo_event_1.LudeoEvent {
|
|
34
|
+
constructor(payload, context) {
|
|
35
|
+
super(BuildDistributionJobFinished.EVENT_NAME);
|
|
36
|
+
this.payload = payload;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.BuildDistributionJobFinished = BuildDistributionJobFinished;
|
|
41
|
+
BuildDistributionJobFinished.EVENT_NAME = "cloud-builds.build-distribution-job-finished";
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
44
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
45
|
+
], BuildDistributionJobFinished.prototype, "context", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDistributionJobFinishedPayload),
|
|
48
|
+
__metadata("design:type", BuildDistributionJobFinishedPayload)
|
|
49
|
+
], BuildDistributionJobFinished.prototype, "payload", void 0);
|
|
50
|
+
//# sourceMappingURL=build-distribution-job-finished.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-distribution-job-finished.js","sourceRoot":"","sources":["../../../src/v4/events/build-distribution-job-finished.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,6DAAyD;AACzD,oCAA0E;AAC1E,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAPC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;;0EACd;AAG7B;IADC,IAAA,wBAAM,GAAE;;oEACO;AAGlB,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAAqB;QAErB,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,8CAA8C,CAAC;AAY5E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;6DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CloudProvider } from "../types";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { CloudBuild } from "../types/build";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
export declare class CreateBuildArtifactsJobPayload {
|
|
6
|
+
build: CloudBuild;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
}
|
|
9
|
+
export declare class CreateBuildArtifactsJob extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-builds.create-build-artifacts-job";
|
|
11
|
+
constructor(payload: CreateBuildArtifactsJobPayload, context: BuildContext);
|
|
12
|
+
context: BuildContext;
|
|
13
|
+
payload: CreateBuildArtifactsJobPayload;
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.CreateBuildArtifactsJob = exports.CreateBuildArtifactsJobPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const types_1 = require("../types");
|
|
15
|
+
const build_context_1 = require("../contexts/build-context");
|
|
16
|
+
const build_1 = require("../types/build");
|
|
17
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
19
|
+
class CreateBuildArtifactsJobPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateBuildArtifactsJobPayload = CreateBuildArtifactsJobPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
+
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
+
], CreateBuildArtifactsJobPayload.prototype, "build", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateBuildArtifactsJobPayload.prototype, "cloudProvider", void 0);
|
|
30
|
+
class CreateBuildArtifactsJob extends ludeo_event_1.LudeoEvent {
|
|
31
|
+
constructor(payload, context) {
|
|
32
|
+
super(CreateBuildArtifactsJob.EVENT_NAME);
|
|
33
|
+
this.payload = payload;
|
|
34
|
+
this.context = context;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.CreateBuildArtifactsJob = CreateBuildArtifactsJob;
|
|
38
|
+
CreateBuildArtifactsJob.EVENT_NAME = "cloud-builds.create-build-artifacts-job";
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
41
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
42
|
+
], CreateBuildArtifactsJob.prototype, "context", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateBuildArtifactsJobPayload),
|
|
45
|
+
__metadata("design:type", CreateBuildArtifactsJobPayload)
|
|
46
|
+
], CreateBuildArtifactsJob.prototype, "payload", void 0);
|
|
47
|
+
//# sourceMappingURL=create-build-artifacts-job.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-build-artifacts-job.js","sourceRoot":"","sources":["../../../src/v4/events/create-build-artifacts-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,oCAAyC;AACzC,6DAAyD;AACzD,0CAA4C;AAC5C,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;6DAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;qEACO;AAG/B,MAAa,uBAAwB,SAAQ,wBAAU;IAGrD,YAAY,OAAuC,EAAE,OAAqB;QACxE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,0DAcC;AAbiB,kCAAU,GAAG,yCAAyC,CAAC;AASvE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;wDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC"}
|
|
@@ -2,13 +2,13 @@ import { CloudProvider } from "../types";
|
|
|
2
2
|
import { BuildContext } from "../contexts/build-context";
|
|
3
3
|
import { CloudBuild } from "../types/build";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class DistributeBuildJobPayload {
|
|
6
6
|
build: CloudBuild;
|
|
7
7
|
cloudProvider: CloudProvider;
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
10
|
-
static readonly EVENT_NAME = "cloud-builds.distribute-build-
|
|
11
|
-
constructor(payload:
|
|
9
|
+
export declare class DistributeBuildJob extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-builds.distribute-build-job";
|
|
11
|
+
constructor(payload: DistributeBuildJobPayload, context: BuildContext);
|
|
12
12
|
context: BuildContext;
|
|
13
|
-
payload:
|
|
13
|
+
payload: DistributeBuildJobPayload;
|
|
14
14
|
}
|
|
@@ -9,39 +9,39 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.DistributeBuildJob = exports.DistributeBuildJobPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const types_1 = require("../types");
|
|
15
15
|
const build_context_1 = require("../contexts/build-context");
|
|
16
16
|
const build_1 = require("../types/build");
|
|
17
17
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
18
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
19
|
-
class
|
|
19
|
+
class DistributeBuildJobPayload {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.DistributeBuildJobPayload = DistributeBuildJobPayload;
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
24
|
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
-
],
|
|
25
|
+
], DistributeBuildJobPayload.prototype, "build", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
30
|
-
class
|
|
29
|
+
], DistributeBuildJobPayload.prototype, "cloudProvider", void 0);
|
|
30
|
+
class DistributeBuildJob extends ludeo_event_1.LudeoEvent {
|
|
31
31
|
constructor(payload, context) {
|
|
32
|
-
super(
|
|
32
|
+
super(DistributeBuildJob.EVENT_NAME);
|
|
33
33
|
this.payload = payload;
|
|
34
34
|
this.context = context;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
exports.
|
|
38
|
-
|
|
37
|
+
exports.DistributeBuildJob = DistributeBuildJob;
|
|
38
|
+
DistributeBuildJob.EVENT_NAME = "cloud-builds.distribute-build-job";
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
41
41
|
__metadata("design:type", build_context_1.BuildContext)
|
|
42
|
-
],
|
|
42
|
+
], DistributeBuildJob.prototype, "context", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
45
|
-
__metadata("design:type",
|
|
46
|
-
],
|
|
47
|
-
//# sourceMappingURL=distribute-build-
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => DistributeBuildJobPayload),
|
|
45
|
+
__metadata("design:type", DistributeBuildJobPayload)
|
|
46
|
+
], DistributeBuildJob.prototype, "payload", void 0);
|
|
47
|
+
//# sourceMappingURL=distribute-build-job.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distribute-build-job.js","sourceRoot":"","sources":["../../../src/v4/events/distribute-build-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,oCAAyC;AACzC,6DAAyD;AACzD,0CAA4C;AAC5C,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;wDAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;gEACO;AAG/B,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAkC,EAAE,OAAqB;QACnE,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gDAcC;AAbiB,6BAAU,GAAG,mCAAmC,CAAC;AASjE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;mDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC3C,yBAAyB;mDAAC"}
|
|
@@ -103,6 +103,11 @@ export * from "./terminate-stale-ludeos";
|
|
|
103
103
|
export * from "./terminate-ludeo-request";
|
|
104
104
|
export * from "./ludeo-allocation-timeout-task";
|
|
105
105
|
export * from "./monitor-stream-groups-task";
|
|
106
|
-
export * from "./build-
|
|
107
|
-
export * from "./build-distribution-failed
|
|
108
|
-
export * from "./distribute-build-
|
|
106
|
+
export * from "./build-distribution-job-finished";
|
|
107
|
+
export * from "./build-distribution-job-failed";
|
|
108
|
+
export * from "./distribute-build-job";
|
|
109
|
+
export * from "./create-build-artifacts-job";
|
|
110
|
+
export * from "./build-artifacts-job-finished";
|
|
111
|
+
export * from "./build-artifacts-job-failed";
|
|
112
|
+
export * from "./build-distributed";
|
|
113
|
+
export * from "./build-created";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -119,7 +119,12 @@ __exportStar(require("./terminate-stale-ludeos"), exports);
|
|
|
119
119
|
__exportStar(require("./terminate-ludeo-request"), exports);
|
|
120
120
|
__exportStar(require("./ludeo-allocation-timeout-task"), exports);
|
|
121
121
|
__exportStar(require("./monitor-stream-groups-task"), exports);
|
|
122
|
-
__exportStar(require("./build-
|
|
123
|
-
__exportStar(require("./build-distribution-failed
|
|
124
|
-
__exportStar(require("./distribute-build-
|
|
122
|
+
__exportStar(require("./build-distribution-job-finished"), exports);
|
|
123
|
+
__exportStar(require("./build-distribution-job-failed"), exports);
|
|
124
|
+
__exportStar(require("./distribute-build-job"), exports);
|
|
125
|
+
__exportStar(require("./create-build-artifacts-job"), exports);
|
|
126
|
+
__exportStar(require("./build-artifacts-job-finished"), exports);
|
|
127
|
+
__exportStar(require("./build-artifacts-job-failed"), exports);
|
|
128
|
+
__exportStar(require("./build-distributed"), exports);
|
|
129
|
+
__exportStar(require("./build-created"), exports);
|
|
125
130
|
//# 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,
|
|
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"}
|