@ludeo/cloud-common 1.2.166-beta-yahil-2 → 1.2.166-beta-yahil-4
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/delete-build-job-failed.d.ts +14 -0
- package/dist/v4/events/delete-build-job-failed.js +50 -0
- package/dist/v4/events/delete-build-job-failed.js.map +1 -0
- package/dist/v4/events/delete-build-job-finished.d.ts +13 -0
- package/dist/v4/events/delete-build-job-finished.js +46 -0
- package/dist/v4/events/delete-build-job-finished.js.map +1 -0
- package/dist/v4/events/delete-build-job.d.ts +13 -0
- package/dist/v4/events/delete-build-job.js +46 -0
- package/dist/v4/events/delete-build-job.js.map +1 -0
- package/dist/v4/events/delete-pools-for-build.d.ts +15 -0
- package/dist/v4/events/delete-pools-for-build.js +55 -0
- package/dist/v4/events/delete-pools-for-build.js.map +1 -0
- 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/delete-build-job-failed.ts +32 -0
- package/src/v4/events/delete-build-job-finished.ts +29 -0
- package/src/v4/events/delete-build-job.ts +29 -0
- package/src/v4/events/delete-pools-for-build.ts +36 -0
- package/src/v4/events/index.ts +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CloudProvider } from "../types";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
export declare class DeleteBuildJobFailedPayload {
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
buildId: string;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class DeleteBuildJobFailed extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-builds.delete-build-job-failed";
|
|
11
|
+
constructor(payload: DeleteBuildJobFailedPayload, context: BuildContext);
|
|
12
|
+
context: BuildContext;
|
|
13
|
+
payload: DeleteBuildJobFailedPayload;
|
|
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.DeleteBuildJobFailed = exports.DeleteBuildJobFailedPayload = 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 DeleteBuildJobFailedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.DeleteBuildJobFailedPayload = DeleteBuildJobFailedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DeleteBuildJobFailedPayload.prototype, "cloudProvider", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], DeleteBuildJobFailedPayload.prototype, "buildId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], DeleteBuildJobFailedPayload.prototype, "errorMessage", void 0);
|
|
33
|
+
class DeleteBuildJobFailed extends ludeo_event_1.LudeoEvent {
|
|
34
|
+
constructor(payload, context) {
|
|
35
|
+
super(DeleteBuildJobFailed.EVENT_NAME);
|
|
36
|
+
this.payload = payload;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.DeleteBuildJobFailed = DeleteBuildJobFailed;
|
|
41
|
+
DeleteBuildJobFailed.EVENT_NAME = "cloud-builds.delete-build-job-failed";
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
44
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
45
|
+
], DeleteBuildJobFailed.prototype, "context", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => DeleteBuildJobFailedPayload),
|
|
48
|
+
__metadata("design:type", DeleteBuildJobFailedPayload)
|
|
49
|
+
], DeleteBuildJobFailed.prototype, "payload", void 0);
|
|
50
|
+
//# sourceMappingURL=delete-build-job-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-build-job-failed.js","sourceRoot":"","sources":["../../../src/v4/events/delete-build-job-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,2BAA2B;CASvC;AATD,kEASC;AAPC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;kEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;4DACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;iEACU;AAGvB,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YAAY,OAAoC,EAAE,OAAqB;QACrE,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oDAcC;AAbiB,+BAAU,GAAG,sCAAsC,CAAC;AASpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;qDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
|
@@ -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 DeleteBuildJobFinishedPayload {
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
buildId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class DeleteBuildJobFinished extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.delete-build-job-finished";
|
|
10
|
+
constructor(payload: DeleteBuildJobFinishedPayload, context: BuildContext);
|
|
11
|
+
context: BuildContext;
|
|
12
|
+
payload: DeleteBuildJobFinishedPayload;
|
|
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.DeleteBuildJobFinished = exports.DeleteBuildJobFinishedPayload = 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 DeleteBuildJobFinishedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.DeleteBuildJobFinishedPayload = DeleteBuildJobFinishedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DeleteBuildJobFinishedPayload.prototype, "cloudProvider", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], DeleteBuildJobFinishedPayload.prototype, "buildId", void 0);
|
|
29
|
+
class DeleteBuildJobFinished extends ludeo_event_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(DeleteBuildJobFinished.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteBuildJobFinished = DeleteBuildJobFinished;
|
|
37
|
+
DeleteBuildJobFinished.EVENT_NAME = "cloud-builds.delete-build-job-finished";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
+
], DeleteBuildJobFinished.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => DeleteBuildJobFinishedPayload),
|
|
44
|
+
__metadata("design:type", DeleteBuildJobFinishedPayload)
|
|
45
|
+
], DeleteBuildJobFinished.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=delete-build-job-finished.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-build-job-finished.js","sourceRoot":"","sources":["../../../src/v4/events/delete-build-job-finished.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;oEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;8DACO;AAGlB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YAAY,OAAsC,EAAE,OAAqB;QACvE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,wDAcC;AAbiB,iCAAU,GAAG,wCAAwC,CAAC;AAStE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;uDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -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 DeleteBuildJobPayload {
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
buildId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class DeleteBuildJob extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.delete-build-job";
|
|
10
|
+
constructor(payload: DeleteBuildJobPayload, context: BuildContext);
|
|
11
|
+
context: BuildContext;
|
|
12
|
+
payload: DeleteBuildJobPayload;
|
|
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.DeleteBuildJob = exports.DeleteBuildJobPayload = 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 DeleteBuildJobPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.DeleteBuildJobPayload = DeleteBuildJobPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DeleteBuildJobPayload.prototype, "cloudProvider", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], DeleteBuildJobPayload.prototype, "buildId", void 0);
|
|
29
|
+
class DeleteBuildJob extends ludeo_event_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(DeleteBuildJob.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteBuildJob = DeleteBuildJob;
|
|
37
|
+
DeleteBuildJob.EVENT_NAME = "cloud-builds.delete-build-job";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
+
], DeleteBuildJob.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => DeleteBuildJobPayload),
|
|
44
|
+
__metadata("design:type", DeleteBuildJobPayload)
|
|
45
|
+
], DeleteBuildJob.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=delete-build-job.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-build-job.js","sourceRoot":"","sources":["../../../src/v4/events/delete-build-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;4DACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;sDACO;AAGlB,MAAa,cAAe,SAAQ,wBAAU;IAG5C,YAAY,OAA8B,EAAE,OAAqB;QAC/D,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,wCAcC;AAbiB,yBAAU,GAAG,+BAA+B,CAAC;AAS7D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;+CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACvC,qBAAqB;+CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { CloudProvider } from "../types";
|
|
4
|
+
export declare class DeletePoolsForBuildPayload {
|
|
5
|
+
buildId: string;
|
|
6
|
+
cloudProvider: CloudProvider;
|
|
7
|
+
buildVersion: string;
|
|
8
|
+
envIds: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare class DeletePoolsForBuild extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.delete-pools-for-build";
|
|
12
|
+
constructor(payload: DeletePoolsForBuildPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: DeletePoolsForBuildPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.DeletePoolsForBuild = exports.DeletePoolsForBuildPayload = 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_context_1 = require("../contexts/build-context");
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
class DeletePoolsForBuildPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.DeletePoolsForBuildPayload = DeletePoolsForBuildPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DeletePoolsForBuildPayload.prototype, "buildId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], DeletePoolsForBuildPayload.prototype, "cloudProvider", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], DeletePoolsForBuildPayload.prototype, "buildVersion", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsArray)(),
|
|
35
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], DeletePoolsForBuildPayload.prototype, "envIds", void 0);
|
|
38
|
+
class DeletePoolsForBuild extends ludeo_event_1.LudeoEvent {
|
|
39
|
+
constructor(payload, context) {
|
|
40
|
+
super(DeletePoolsForBuild.EVENT_NAME);
|
|
41
|
+
this.payload = payload;
|
|
42
|
+
this.context = context;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DeletePoolsForBuild = DeletePoolsForBuild;
|
|
46
|
+
DeletePoolsForBuild.EVENT_NAME = "cloud-builds.delete-pools-for-build";
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
49
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
50
|
+
], DeletePoolsForBuild.prototype, "context", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => DeletePoolsForBuildPayload),
|
|
53
|
+
__metadata("design:type", DeletePoolsForBuildPayload)
|
|
54
|
+
], DeletePoolsForBuild.prototype, "payload", void 0);
|
|
55
|
+
//# sourceMappingURL=delete-pools-for-build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-pools-for-build.js","sourceRoot":"","sources":["../../../src/v4/events/delete-pools-for-build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4D;AAC5D,oGAAqF;AACrF,yDAAqD;AACrD,6DAAyD;AACzD,oCAAyC;AAEzC,MAAa,0BAA0B;CAatC;AAbD,gEAaC;AAXC;IADC,IAAA,0BAAQ,GAAE;;2DACK;AAGhB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;iEACO;AAG7B;IADC,IAAA,0BAAQ,GAAE;;gEACU;AAIrB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;0DACR;AAGnB,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,qCAAqC,CAAC;AASnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;oDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
|
package/dist/v4/events/index.js
CHANGED
|
@@ -179,4 +179,5 @@ __exportStar(require("./game-session-activation-failed"), exports);
|
|
|
179
179
|
__exportStar(require("./delete-build"), exports);
|
|
180
180
|
__exportStar(require("./build-deleted"), exports);
|
|
181
181
|
__exportStar(require("./build-deletion-failed"), exports);
|
|
182
|
+
__exportStar(require("./delete-pools-for-build"), exports);
|
|
182
183
|
//# 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,8E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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,iEAA+C;AAC/C,8EAA4D;AAC5D,iEAA+C;AAC/C,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,mDAAiC;AACjC,4EAA0D;AAC1D,+EAA6D;AAC7D,uDAAqC;AACrC,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,4DAA0C;AAC1C,sEAAoD;AACpD,oEAAkD;AAClD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,iDAA+B;AAC/B,kDAAgC;AAChC,0DAAwC"}
|
|
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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+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,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,iEAA+C;AAC/C,8EAA4D;AAC5D,iEAA+C;AAC/C,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,mDAAiC;AACjC,4EAA0D;AAC1D,+EAA6D;AAC7D,uDAAqC;AACrC,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,4DAA0C;AAC1C,sEAAoD;AACpD,oEAAkD;AAClD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,iDAA+B;AAC/B,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IsEnum, IsUUID, IsString } 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
|
+
export class DeleteBuildJobFailedPayload {
|
|
8
|
+
@IsEnum(CloudProvider)
|
|
9
|
+
cloudProvider: CloudProvider;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
buildId: string;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
errorMessage: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class DeleteBuildJobFailed extends LudeoEvent {
|
|
19
|
+
static readonly EVENT_NAME = "cloud-builds.delete-build-job-failed";
|
|
20
|
+
|
|
21
|
+
constructor(payload: DeleteBuildJobFailedPayload, context: BuildContext) {
|
|
22
|
+
super(DeleteBuildJobFailed.EVENT_NAME);
|
|
23
|
+
this.payload = payload;
|
|
24
|
+
this.context = context;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => BuildContext)
|
|
28
|
+
context: BuildContext;
|
|
29
|
+
|
|
30
|
+
@ValidateNestedType(() => DeleteBuildJobFailedPayload)
|
|
31
|
+
payload: DeleteBuildJobFailedPayload;
|
|
32
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { 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
|
+
export class DeleteBuildJobFinishedPayload {
|
|
8
|
+
@IsEnum(CloudProvider)
|
|
9
|
+
cloudProvider: CloudProvider;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
buildId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class DeleteBuildJobFinished extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME = "cloud-builds.delete-build-job-finished";
|
|
17
|
+
|
|
18
|
+
constructor(payload: DeleteBuildJobFinishedPayload, context: BuildContext) {
|
|
19
|
+
super(DeleteBuildJobFinished.EVENT_NAME);
|
|
20
|
+
this.payload = payload;
|
|
21
|
+
this.context = context;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@ValidateNestedType(() => BuildContext)
|
|
25
|
+
context: BuildContext;
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => DeleteBuildJobFinishedPayload)
|
|
28
|
+
payload: DeleteBuildJobFinishedPayload;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { 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
|
+
export class DeleteBuildJobPayload {
|
|
8
|
+
@IsEnum(CloudProvider)
|
|
9
|
+
cloudProvider: CloudProvider;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
buildId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class DeleteBuildJob extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME = "cloud-builds.delete-build-job";
|
|
17
|
+
|
|
18
|
+
constructor(payload: DeleteBuildJobPayload, context: BuildContext) {
|
|
19
|
+
super(DeleteBuildJob.EVENT_NAME);
|
|
20
|
+
this.payload = payload;
|
|
21
|
+
this.context = context;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@ValidateNestedType(() => BuildContext)
|
|
25
|
+
context: BuildContext;
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => DeleteBuildJobPayload)
|
|
28
|
+
payload: DeleteBuildJobPayload;
|
|
29
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IsArray, IsEnum, IsString } from "class-validator";
|
|
2
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
import { BuildContext } from "../contexts/build-context";
|
|
5
|
+
import { CloudProvider } from "../types";
|
|
6
|
+
|
|
7
|
+
export class DeletePoolsForBuildPayload {
|
|
8
|
+
@IsString()
|
|
9
|
+
buildId: string;
|
|
10
|
+
|
|
11
|
+
@IsEnum(CloudProvider)
|
|
12
|
+
cloudProvider: CloudProvider;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
buildVersion: string;
|
|
16
|
+
|
|
17
|
+
@IsArray()
|
|
18
|
+
@IsString({ each: true })
|
|
19
|
+
envIds: string[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class DeletePoolsForBuild extends LudeoEvent {
|
|
23
|
+
static readonly EVENT_NAME = "cloud-builds.delete-pools-for-build";
|
|
24
|
+
|
|
25
|
+
constructor(payload: DeletePoolsForBuildPayload, context: BuildContext) {
|
|
26
|
+
super(DeletePoolsForBuild.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => BuildContext)
|
|
32
|
+
context: BuildContext;
|
|
33
|
+
|
|
34
|
+
@ValidateNestedType(() => DeletePoolsForBuildPayload)
|
|
35
|
+
payload: DeletePoolsForBuildPayload;
|
|
36
|
+
}
|
package/src/v4/events/index.ts
CHANGED