@ludeo/cloud-common 1.2.122 → 1.2.124
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-files-verification-job-failed.d.ts +15 -0
- package/dist/v4/events/build-files-verification-job-failed.js +51 -0
- package/dist/v4/events/build-files-verification-job-failed.js.map +1 -0
- package/dist/v4/events/build-files-verification-job-finished.d.ts +14 -0
- package/dist/v4/events/build-files-verification-job-finished.js +47 -0
- package/dist/v4/events/build-files-verification-job-finished.js.map +1 -0
- package/dist/v4/events/build-files-verification-job.d.ts +15 -0
- package/dist/v4/events/build-files-verification-job.js +51 -0
- package/dist/v4/events/build-files-verification-job.js.map +1 -0
- package/dist/v4/events/build-files-verified.d.ts +11 -0
- package/dist/v4/events/build-files-verified.js +41 -0
- package/dist/v4/events/build-files-verified.js.map +1 -0
- package/dist/v4/events/clean-build-distribution-job.d.ts +15 -0
- package/dist/v4/events/clean-build-distribution-job.js +51 -0
- package/dist/v4/events/clean-build-distribution-job.js.map +1 -0
- package/dist/v4/events/cloud-ludeo-updated.d.ts +10 -0
- package/dist/v4/events/cloud-ludeo-updated.js +40 -0
- package/dist/v4/events/cloud-ludeo-updated.js.map +1 -0
- package/dist/v4/events/index.d.ts +7 -0
- package/dist/v4/events/index.js +7 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/monitor-aws-build-files-verification-task.d.ts +13 -0
- package/dist/v4/events/monitor-aws-build-files-verification-task.js +44 -0
- package/dist/v4/events/monitor-aws-build-files-verification-task.js.map +1 -0
- package/dist/v4/types/build.d.ts +4 -0
- package/dist/v4/types/build.js +4 -0
- package/dist/v4/types/build.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/build-files-verification-job-failed.ts +38 -0
- package/src/v4/events/build-files-verification-job-finished.ts +35 -0
- package/src/v4/events/build-files-verification-job.ts +37 -0
- package/src/v4/events/build-files-verified.ts +25 -0
- package/src/v4/events/clean-build-distribution-job.ts +36 -0
- package/src/v4/events/cloud-ludeo-updated.ts +25 -0
- package/src/v4/events/index.ts +7 -0
- package/src/v4/events/monitor-aws-build-files-verification-task.ts +30 -0
- package/src/v4/types/build.ts +4 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudProvider } from "../types";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
import { CloudBuild } from "../types/build";
|
|
5
|
+
export declare class BuildFilesVerificationJobFailedPayload {
|
|
6
|
+
build: CloudBuild;
|
|
7
|
+
files: string[];
|
|
8
|
+
cloudProvider: CloudProvider;
|
|
9
|
+
}
|
|
10
|
+
export declare class BuildFilesVerificationJobFailed extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.build-files-verification-job-failed";
|
|
12
|
+
constructor(payload: BuildFilesVerificationJobFailedPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: BuildFilesVerificationJobFailedPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.BuildFilesVerificationJobFailed = exports.BuildFilesVerificationJobFailedPayload = 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
|
+
const build_1 = require("../types/build");
|
|
19
|
+
class BuildFilesVerificationJobFailedPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.BuildFilesVerificationJobFailedPayload = BuildFilesVerificationJobFailedPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
+
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
+
], BuildFilesVerificationJobFailedPayload.prototype, "build", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsArray)(),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], BuildFilesVerificationJobFailedPayload.prototype, "files", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BuildFilesVerificationJobFailedPayload.prototype, "cloudProvider", void 0);
|
|
34
|
+
class BuildFilesVerificationJobFailed extends ludeo_event_1.LudeoEvent {
|
|
35
|
+
constructor(payload, context) {
|
|
36
|
+
super(BuildFilesVerificationJobFailed.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.BuildFilesVerificationJobFailed = BuildFilesVerificationJobFailed;
|
|
42
|
+
BuildFilesVerificationJobFailed.EVENT_NAME = "cloud-builds.build-files-verification-job-failed";
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
+
], BuildFilesVerificationJobFailed.prototype, "context", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildFilesVerificationJobFailedPayload),
|
|
49
|
+
__metadata("design:type", BuildFilesVerificationJobFailedPayload)
|
|
50
|
+
], BuildFilesVerificationJobFailed.prototype, "payload", void 0);
|
|
51
|
+
//# sourceMappingURL=build-files-verification-job-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-files-verification-job-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-files-verification-job-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAC1D,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,0CAA4C;AAE5C,MAAa,sCAAsC;CASlD;AATD,wFASC;AAPC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;qEAAC;AAGlB;IADC,IAAA,yBAAO,GAAE;;qEACM;AAGhB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;6EACO;AAG/B,MAAa,+BAAgC,SAAQ,wBAAU;IAI7D,YACE,OAA+C,EAC/C,OAAqB;QAErB,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,0EAkBC;AAjBiB,0CAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;gEAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;8BACxD,sCAAsC;gEAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CloudProvider } from "../types";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
import { CloudBuild } from "../types/build";
|
|
5
|
+
export declare class BuildFilesVerificationJobFinishedPayload {
|
|
6
|
+
build: CloudBuild;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
}
|
|
9
|
+
export declare class BuildFilesVerificationJobFinished extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-builds.build-files-verification-job-finished";
|
|
11
|
+
constructor(payload: BuildFilesVerificationJobFinishedPayload, context: BuildContext);
|
|
12
|
+
context: BuildContext;
|
|
13
|
+
payload: BuildFilesVerificationJobFinishedPayload;
|
|
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.BuildFilesVerificationJobFinished = exports.BuildFilesVerificationJobFinishedPayload = 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
|
+
const build_1 = require("../types/build");
|
|
19
|
+
class BuildFilesVerificationJobFinishedPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.BuildFilesVerificationJobFinishedPayload = BuildFilesVerificationJobFinishedPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
+
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
+
], BuildFilesVerificationJobFinishedPayload.prototype, "build", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], BuildFilesVerificationJobFinishedPayload.prototype, "cloudProvider", void 0);
|
|
30
|
+
class BuildFilesVerificationJobFinished extends ludeo_event_1.LudeoEvent {
|
|
31
|
+
constructor(payload, context) {
|
|
32
|
+
super(BuildFilesVerificationJobFinished.EVENT_NAME);
|
|
33
|
+
this.payload = payload;
|
|
34
|
+
this.context = context;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.BuildFilesVerificationJobFinished = BuildFilesVerificationJobFinished;
|
|
38
|
+
BuildFilesVerificationJobFinished.EVENT_NAME = "cloud-builds.build-files-verification-job-finished";
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
41
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
42
|
+
], BuildFilesVerificationJobFinished.prototype, "context", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildFilesVerificationJobFinishedPayload),
|
|
45
|
+
__metadata("design:type", BuildFilesVerificationJobFinishedPayload)
|
|
46
|
+
], BuildFilesVerificationJobFinished.prototype, "payload", void 0);
|
|
47
|
+
//# sourceMappingURL=build-files-verification-job-finished.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-files-verification-job-finished.js","sourceRoot":"","sources":["../../../src/v4/events/build-files-verification-job-finished.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAC1D,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,0CAA4C;AAE5C,MAAa,wCAAwC;CAMpD;AAND,4FAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;uEAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;+EACO;AAG/B,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAiD,EACjD,OAAqB;QAErB,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,oDAAoD,CAAC;AAYvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;kEAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wCAAwC,CAAC;8BAC1D,wCAAwC;kEAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudProvider } from "../types";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
import { CloudBuild } from "../types/build";
|
|
5
|
+
export declare class BuildFilesVerificationJobPayload {
|
|
6
|
+
build: CloudBuild;
|
|
7
|
+
files: string[];
|
|
8
|
+
cloudProvider: CloudProvider;
|
|
9
|
+
}
|
|
10
|
+
export declare class BuildFilesVerificationJob extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.build-files-verification-job";
|
|
12
|
+
constructor(payload: BuildFilesVerificationJobPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: BuildFilesVerificationJobPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.BuildFilesVerificationJob = exports.BuildFilesVerificationJobPayload = 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
|
+
const build_1 = require("../types/build");
|
|
19
|
+
class BuildFilesVerificationJobPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.BuildFilesVerificationJobPayload = BuildFilesVerificationJobPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
+
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
+
], BuildFilesVerificationJobPayload.prototype, "build", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsArray)(),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], BuildFilesVerificationJobPayload.prototype, "files", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BuildFilesVerificationJobPayload.prototype, "cloudProvider", void 0);
|
|
34
|
+
class BuildFilesVerificationJob extends ludeo_event_1.LudeoEvent {
|
|
35
|
+
constructor(payload, context) {
|
|
36
|
+
super(BuildFilesVerificationJob.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.BuildFilesVerificationJob = BuildFilesVerificationJob;
|
|
42
|
+
BuildFilesVerificationJob.EVENT_NAME = "cloud-builds.build-files-verification-job";
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
+
], BuildFilesVerificationJob.prototype, "context", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildFilesVerificationJobPayload),
|
|
49
|
+
__metadata("design:type", BuildFilesVerificationJobPayload)
|
|
50
|
+
], BuildFilesVerificationJob.prototype, "payload", void 0);
|
|
51
|
+
//# sourceMappingURL=build-files-verification-job.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-files-verification-job.js","sourceRoot":"","sources":["../../../src/v4/events/build-files-verification-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAC1D,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,0CAA4C;AAE5C,MAAa,gCAAgC;CAS5C;AATD,4EASC;AAPC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;+DAAC;AAGlB;IADC,IAAA,yBAAO,GAAE;;+DACM;AAGhB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uEACO;AAG/B,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 BuildFilesVerifiedPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class BuildFilesVerified extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-builds.build-files-verified";
|
|
8
|
+
constructor(payload: BuildFilesVerifiedPayload, context: BuildContext);
|
|
9
|
+
context: BuildContext;
|
|
10
|
+
payload: BuildFilesVerifiedPayload;
|
|
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.BuildFilesVerified = exports.BuildFilesVerifiedPayload = 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 BuildFilesVerifiedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.BuildFilesVerifiedPayload = BuildFilesVerifiedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BuildFilesVerifiedPayload.prototype, "buildId", void 0);
|
|
24
|
+
class BuildFilesVerified extends ludeo_event_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(BuildFilesVerified.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.BuildFilesVerified = BuildFilesVerified;
|
|
32
|
+
BuildFilesVerified.EVENT_NAME = "cloud-builds.build-files-verified";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
35
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
36
|
+
], BuildFilesVerified.prototype, "context", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildFilesVerifiedPayload),
|
|
39
|
+
__metadata("design:type", BuildFilesVerifiedPayload)
|
|
40
|
+
], BuildFilesVerified.prototype, "payload", void 0);
|
|
41
|
+
//# sourceMappingURL=build-files-verified.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-files-verified.js","sourceRoot":"","sources":["../../../src/v4/events/build-files-verified.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,yBAAyB;CAGrC;AAHD,8DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;0DACO;AAGlB,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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 CleanBuildDistributionJobPayload {
|
|
6
|
+
build: CloudBuild;
|
|
7
|
+
files: string[];
|
|
8
|
+
cloudProvider: CloudProvider;
|
|
9
|
+
}
|
|
10
|
+
export declare class CleanBuildDistributionJob extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.clean-build-distribution-job";
|
|
12
|
+
constructor(payload: CleanBuildDistributionJobPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: CleanBuildDistributionJobPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.CleanBuildDistributionJob = exports.CleanBuildDistributionJobPayload = 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 CleanBuildDistributionJobPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.CleanBuildDistributionJobPayload = CleanBuildDistributionJobPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
+
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
+
], CleanBuildDistributionJobPayload.prototype, "build", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsArray)(),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], CleanBuildDistributionJobPayload.prototype, "files", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CleanBuildDistributionJobPayload.prototype, "cloudProvider", void 0);
|
|
34
|
+
class CleanBuildDistributionJob extends ludeo_event_1.LudeoEvent {
|
|
35
|
+
constructor(payload, context) {
|
|
36
|
+
super(CleanBuildDistributionJob.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.CleanBuildDistributionJob = CleanBuildDistributionJob;
|
|
42
|
+
CleanBuildDistributionJob.EVENT_NAME = "cloud-builds.clean-build-distribution-job";
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
+
], CleanBuildDistributionJob.prototype, "context", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CleanBuildDistributionJobPayload),
|
|
49
|
+
__metadata("design:type", CleanBuildDistributionJobPayload)
|
|
50
|
+
], CleanBuildDistributionJob.prototype, "payload", void 0);
|
|
51
|
+
//# sourceMappingURL=clean-build-distribution-job.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean-build-distribution-job.js","sourceRoot":"","sources":["../../../src/v4/events/clean-build-distribution-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkD;AAClD,oCAAyC;AACzC,6DAAyD;AACzD,0CAA4C;AAC5C,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,gCAAgC;CAS5C;AATD,4EASC;AAPC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;+DAAC;AAGlB;IADC,IAAA,yBAAO,GAAE;;+DACM;AAGhB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uEACO;AAG/B,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,10 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare class CloudLudeoUpdatedPayload {
|
|
3
|
+
ludeoId: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class CloudLudeoUpdated extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-session-allocator.cloud-ludeo-updated";
|
|
8
|
+
constructor(payload: CloudLudeoUpdatedPayload);
|
|
9
|
+
payload: CloudLudeoUpdatedPayload;
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.CloudLudeoUpdated = exports.CloudLudeoUpdatedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
class CloudLudeoUpdatedPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.CloudLudeoUpdatedPayload = CloudLudeoUpdatedPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CloudLudeoUpdatedPayload.prototype, "ludeoId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsBoolean)(),
|
|
26
|
+
__metadata("design:type", Boolean)
|
|
27
|
+
], CloudLudeoUpdatedPayload.prototype, "disabled", void 0);
|
|
28
|
+
class CloudLudeoUpdated extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload) {
|
|
30
|
+
super(CloudLudeoUpdated.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.CloudLudeoUpdated = CloudLudeoUpdated;
|
|
35
|
+
CloudLudeoUpdated.EVENT_NAME = "cloud-session-allocator.cloud-ludeo-updated";
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CloudLudeoUpdatedPayload),
|
|
38
|
+
__metadata("design:type", CloudLudeoUpdatedPayload)
|
|
39
|
+
], CloudLudeoUpdated.prototype, "payload", void 0);
|
|
40
|
+
//# sourceMappingURL=cloud-ludeo-updated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-ludeo-updated.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-ludeo-updated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,wBAAwB;CAOpC;AAPD,4DAOC;AALC;IADC,IAAA,wBAAM,GAAE;;yDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;0DACM;AAIpB,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YAAY,OAAiC;QAC3C,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,8CAUC;AATiB,4BAAU,GAAG,6CAA6C,CAAC;AAQ3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
|
@@ -136,4 +136,11 @@ export * from "./pools-build-assignment-failed";
|
|
|
136
136
|
export * from "./build-assignment-failed";
|
|
137
137
|
export * from "./monitor-aws-build-replication-status-task";
|
|
138
138
|
export * from "./ludeo-build-updated";
|
|
139
|
+
export * from "./clean-build-distribution-job";
|
|
140
|
+
export * from "./monitor-aws-build-files-verification-task";
|
|
141
|
+
export * from "./build-files-verification-job";
|
|
142
|
+
export * from "./build-files-verification-job-finished";
|
|
143
|
+
export * from "./build-files-verification-job-failed";
|
|
144
|
+
export * from "./build-files-verified";
|
|
139
145
|
export * from "./check-predictor-status";
|
|
146
|
+
export * from "./cloud-ludeo-updated";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -152,5 +152,12 @@ __exportStar(require("./pools-build-assignment-failed"), exports);
|
|
|
152
152
|
__exportStar(require("./build-assignment-failed"), exports);
|
|
153
153
|
__exportStar(require("./monitor-aws-build-replication-status-task"), exports);
|
|
154
154
|
__exportStar(require("./ludeo-build-updated"), exports);
|
|
155
|
+
__exportStar(require("./clean-build-distribution-job"), exports);
|
|
156
|
+
__exportStar(require("./monitor-aws-build-files-verification-task"), exports);
|
|
157
|
+
__exportStar(require("./build-files-verification-job"), exports);
|
|
158
|
+
__exportStar(require("./build-files-verification-job-finished"), exports);
|
|
159
|
+
__exportStar(require("./build-files-verification-job-failed"), exports);
|
|
160
|
+
__exportStar(require("./build-files-verified"), exports);
|
|
155
161
|
__exportStar(require("./check-predictor-status"), exports);
|
|
162
|
+
__exportStar(require("./cloud-ludeo-updated"), exports);
|
|
156
163
|
//# 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;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,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;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC;AACtC,2DAAyC"}
|
|
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;AACj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AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC;AACtC,iEAA+C;AAC/C,8EAA4D;AAC5D,iEAA+C;AAC/C,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudBuild } from "../types/build";
|
|
3
|
+
export declare class MonitorAwsBuildFilesVerificationTaskPayload {
|
|
4
|
+
build: CloudBuild;
|
|
5
|
+
startTime: number;
|
|
6
|
+
files: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare class MonitorAwsBuildFilesVerificationTask extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.monitor-aws-build-files-verification-task";
|
|
10
|
+
constructor(payload: MonitorAwsBuildFilesVerificationTaskPayload);
|
|
11
|
+
context: never;
|
|
12
|
+
payload: MonitorAwsBuildFilesVerificationTaskPayload;
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.MonitorAwsBuildFilesVerificationTask = exports.MonitorAwsBuildFilesVerificationTaskPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const build_1 = require("../types/build");
|
|
17
|
+
class MonitorAwsBuildFilesVerificationTaskPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.MonitorAwsBuildFilesVerificationTaskPayload = MonitorAwsBuildFilesVerificationTaskPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
22
|
+
__metadata("design:type", build_1.CloudBuild)
|
|
23
|
+
], MonitorAwsBuildFilesVerificationTaskPayload.prototype, "build", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], MonitorAwsBuildFilesVerificationTaskPayload.prototype, "startTime", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsArray)(),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], MonitorAwsBuildFilesVerificationTaskPayload.prototype, "files", void 0);
|
|
32
|
+
class MonitorAwsBuildFilesVerificationTask extends ludeo_event_1.LudeoEvent {
|
|
33
|
+
constructor(payload) {
|
|
34
|
+
super(MonitorAwsBuildFilesVerificationTask.EVENT_NAME);
|
|
35
|
+
this.payload = payload;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.MonitorAwsBuildFilesVerificationTask = MonitorAwsBuildFilesVerificationTask;
|
|
39
|
+
MonitorAwsBuildFilesVerificationTask.EVENT_NAME = "cloud-builds.monitor-aws-build-files-verification-task";
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => MonitorAwsBuildFilesVerificationTaskPayload),
|
|
42
|
+
__metadata("design:type", MonitorAwsBuildFilesVerificationTaskPayload)
|
|
43
|
+
], MonitorAwsBuildFilesVerificationTask.prototype, "payload", void 0);
|
|
44
|
+
//# sourceMappingURL=monitor-aws-build-files-verification-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-aws-build-files-verification-task.js","sourceRoot":"","sources":["../../../src/v4/events/monitor-aws-build-files-verification-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AACpD,oGAAqF;AACrF,yDAAqD;AACrD,0CAA4C;AAE5C,MAAa,2CAA2C;CASvD;AATD,kGASC;AAPC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;0EAAC;AAGlB;IADC,IAAA,0BAAQ,GAAE;;8EACO;AAGlB;IADC,IAAA,yBAAO,GAAE;;0EACM;AAGlB,MAAa,oCAAqC,SAAQ,wBAAU;IAIlE,YAAY,OAAoD;QAC9D,KAAK,CAAC,oCAAoC,CAAC,UAAU,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oFAaC;AAZiB,+CAAU,GACxB,wDAAwD,CAAC;AAU3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAA2C,CAAC;8BAC7D,2CAA2C;qEAAC"}
|
package/dist/v4/types/build.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ import { AWSProviderSettings, CloudProvider } from "./cloud";
|
|
|
2
2
|
export declare enum BuildStatus {
|
|
3
3
|
DRAFT = "draft",
|
|
4
4
|
UPLOADED = "uploaded",
|
|
5
|
+
UPLOAD_FAILED = "upload-failed",
|
|
6
|
+
VERIFYING_FILES = "verifying-files",
|
|
7
|
+
FILES_VERIFIED = "files-verified",
|
|
8
|
+
FILES_VERIFICATION_FAILED = "files-verification-failed",
|
|
5
9
|
DISTRIBUTING = "distributing",
|
|
6
10
|
DISTRIBUTED = "distributed",
|
|
7
11
|
FAILED = "failed",
|
package/dist/v4/types/build.js
CHANGED
|
@@ -16,6 +16,10 @@ var BuildStatus;
|
|
|
16
16
|
(function (BuildStatus) {
|
|
17
17
|
BuildStatus["DRAFT"] = "draft";
|
|
18
18
|
BuildStatus["UPLOADED"] = "uploaded";
|
|
19
|
+
BuildStatus["UPLOAD_FAILED"] = "upload-failed";
|
|
20
|
+
BuildStatus["VERIFYING_FILES"] = "verifying-files";
|
|
21
|
+
BuildStatus["FILES_VERIFIED"] = "files-verified";
|
|
22
|
+
BuildStatus["FILES_VERIFICATION_FAILED"] = "files-verification-failed";
|
|
19
23
|
BuildStatus["DISTRIBUTING"] = "distributing";
|
|
20
24
|
BuildStatus["DISTRIBUTED"] = "distributed";
|
|
21
25
|
BuildStatus["FAILED"] = "failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,mCAA6D;AAE7D,IAAY,
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,mCAA6D;AAE7D,IAAY,WAaX;AAbD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,8CAA+B,CAAA;IAC/B,kDAAmC,CAAA;IACnC,gDAAiC,CAAA;IACjC,sEAAuD,CAAA;IACvD,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,wDAAyC,CAAA;IACzC,sDAAuC,CAAA;IACvC,oCAAqB,CAAA;AACvB,CAAC,EAbW,WAAW,2BAAX,W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AG;AAGpB,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,8CAAyB,CAAA;IACzB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,oCAAe,CAAA;AACjB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B;AAED,MAAa,8BAA8B;CAO1C;AAPD,wEAOC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;sDACU;AAGvB,MAAa,aAAa;CAIzB;AAJD,sCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACE;AAGjB,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,kDAA2B,CAAA;IAC3B,4CAAqB,CAAA;IACrB,8DAAuC,CAAA;IACvC,4DAAqC,CAAA;AACvC,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAED,MAAa,SAAS;CAMrB;AAND,8BAMC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAID,MAAa,mBAAmB;CAO/B;AAPD,kDAOC;AAED,MAAa,kBAAmB,SAAQ,gBAAgB;CAEvD;AAFD,gDAEC;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,gDAAuB,CAAA;IACvB,kDAAyB,CAAA;AAC3B,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IsArray, IsEnum, IsUUID } from "class-validator";
|
|
2
|
+
import { CloudProvider } from "../types";
|
|
3
|
+
import { BuildContext } from "../contexts/build-context";
|
|
4
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
5
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
6
|
+
|
|
7
|
+
import { CloudBuild } from "../types/build";
|
|
8
|
+
|
|
9
|
+
export class BuildFilesVerificationJobFailedPayload {
|
|
10
|
+
@ValidateNestedType(() => CloudBuild)
|
|
11
|
+
build: CloudBuild;
|
|
12
|
+
|
|
13
|
+
@IsArray()
|
|
14
|
+
files: string[];
|
|
15
|
+
|
|
16
|
+
@IsEnum(CloudProvider)
|
|
17
|
+
cloudProvider: CloudProvider;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class BuildFilesVerificationJobFailed extends LudeoEvent {
|
|
21
|
+
static readonly EVENT_NAME =
|
|
22
|
+
"cloud-builds.build-files-verification-job-failed";
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
payload: BuildFilesVerificationJobFailedPayload,
|
|
26
|
+
context: BuildContext
|
|
27
|
+
) {
|
|
28
|
+
super(BuildFilesVerificationJobFailed.EVENT_NAME);
|
|
29
|
+
this.payload = payload;
|
|
30
|
+
this.context = context;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@ValidateNestedType(() => BuildContext)
|
|
34
|
+
context: BuildContext;
|
|
35
|
+
|
|
36
|
+
@ValidateNestedType(() => BuildFilesVerificationJobFailedPayload)
|
|
37
|
+
payload: BuildFilesVerificationJobFailedPayload;
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IsArray, IsEnum, IsUUID } from "class-validator";
|
|
2
|
+
import { CloudProvider } from "../types";
|
|
3
|
+
import { BuildContext } from "../contexts/build-context";
|
|
4
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
5
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
6
|
+
|
|
7
|
+
import { CloudBuild } from "../types/build";
|
|
8
|
+
|
|
9
|
+
export class BuildFilesVerificationJobFinishedPayload {
|
|
10
|
+
@ValidateNestedType(() => CloudBuild)
|
|
11
|
+
build: CloudBuild;
|
|
12
|
+
|
|
13
|
+
@IsEnum(CloudProvider)
|
|
14
|
+
cloudProvider: CloudProvider;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class BuildFilesVerificationJobFinished extends LudeoEvent {
|
|
18
|
+
static readonly EVENT_NAME =
|
|
19
|
+
"cloud-builds.build-files-verification-job-finished";
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
payload: BuildFilesVerificationJobFinishedPayload,
|
|
23
|
+
context: BuildContext
|
|
24
|
+
) {
|
|
25
|
+
super(BuildFilesVerificationJobFinished.EVENT_NAME);
|
|
26
|
+
this.payload = payload;
|
|
27
|
+
this.context = context;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@ValidateNestedType(() => BuildContext)
|
|
31
|
+
context: BuildContext;
|
|
32
|
+
|
|
33
|
+
@ValidateNestedType(() => BuildFilesVerificationJobFinishedPayload)
|
|
34
|
+
payload: BuildFilesVerificationJobFinishedPayload;
|
|
35
|
+
}
|