@ludeo/cloud-common 1.2.75 → 1.2.76-beta-yahil-1
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-created-successfully.d.ts +15 -0
- package/dist/v4/events/build-artifacts-created-successfully.js +51 -0
- package/dist/v4/events/build-artifacts-created-successfully.js.map +1 -0
- package/dist/v4/events/build-artifacts-creation-failed-response.d.ts +13 -0
- package/dist/v4/events/build-artifacts-creation-failed-response.js +46 -0
- package/dist/v4/events/build-artifacts-creation-failed-response.js.map +1 -0
- package/dist/v4/events/create-build-artifacts-request.d.ts +14 -0
- package/dist/v4/events/create-build-artifacts-request.js +47 -0
- package/dist/v4/events/create-build-artifacts-request.js.map +1 -0
- package/dist/v4/events/index.d.ts +3 -0
- package/dist/v4/events/index.js +3 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/types/build.d.ts +25 -0
- package/dist/v4/types/build.js +10 -1
- package/dist/v4/types/build.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/build-artifacts-created-successfully.ts +40 -0
- package/src/v4/events/build-artifacts-creation-failed-response.ts +33 -0
- package/src/v4/events/create-build-artifacts-request.ts +33 -0
- package/src/v4/events/index.ts +3 -0
- package/src/v4/types/build.ts +30 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { CloudProvider } from "../types";
|
|
3
|
+
import { BuildArtifactorResponse } from "../types/build";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
export declare class BuildArtifactsCreatedSuccessfullyPayload {
|
|
6
|
+
cloudProvider: CloudProvider;
|
|
7
|
+
buildArtifactorResponse: BuildArtifactorResponse;
|
|
8
|
+
buildId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class BuildArtifactsCreatedSuccessfully extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.build-artifacts-created-successfully";
|
|
12
|
+
constructor(payload: BuildArtifactsCreatedSuccessfullyPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: BuildArtifactsCreatedSuccessfullyPayload;
|
|
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.BuildArtifactsCreatedSuccessfully = exports.BuildArtifactsCreatedSuccessfullyPayload = 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 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 BuildArtifactsCreatedSuccessfullyPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.BuildArtifactsCreatedSuccessfullyPayload = BuildArtifactsCreatedSuccessfullyPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BuildArtifactsCreatedSuccessfullyPayload.prototype, "cloudProvider", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.AwsBuildArtifactorResponse),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], BuildArtifactsCreatedSuccessfullyPayload.prototype, "buildArtifactorResponse", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsUUID)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BuildArtifactsCreatedSuccessfullyPayload.prototype, "buildId", void 0);
|
|
34
|
+
class BuildArtifactsCreatedSuccessfully extends ludeo_event_1.LudeoEvent {
|
|
35
|
+
constructor(payload, context) {
|
|
36
|
+
super(BuildArtifactsCreatedSuccessfully.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.BuildArtifactsCreatedSuccessfully = BuildArtifactsCreatedSuccessfully;
|
|
42
|
+
BuildArtifactsCreatedSuccessfully.EVENT_NAME = "cloud-builds.build-artifacts-created-successfully";
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
+
], BuildArtifactsCreatedSuccessfully.prototype, "context", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildArtifactsCreatedSuccessfullyPayload),
|
|
49
|
+
__metadata("design:type", BuildArtifactsCreatedSuccessfullyPayload)
|
|
50
|
+
], BuildArtifactsCreatedSuccessfully.prototype, "payload", void 0);
|
|
51
|
+
//# sourceMappingURL=build-artifacts-created-successfully.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-artifacts-created-successfully.js","sourceRoot":"","sources":["../../../src/v4/events/build-artifacts-created-successfully.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,6DAAyD;AACzD,oCAAyC;AACzC,0CAGwB;AACxB,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,wCAAwC;CASpD;AATD,4FASC;AAPC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;+EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAA0B,CAAC;;yFACJ;AAGjD;IADC,IAAA,wBAAM,GAAE;;yEACO;AAGlB,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,mDAAmD,CAAC;AAYtD;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,13 @@
|
|
|
1
|
+
import { CloudProvider } from "../types";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
export declare class BuildArtifactsCreationFailedResponsePayload {
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
buildId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class BuildArtifactsCreationFailedResponse extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.build-artifacts-createion-failed-response";
|
|
10
|
+
constructor(payload: BuildArtifactsCreationFailedResponsePayload, context: BuildContext);
|
|
11
|
+
context: BuildContext;
|
|
12
|
+
payload: BuildArtifactsCreationFailedResponsePayload;
|
|
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.BuildArtifactsCreationFailedResponse = exports.BuildArtifactsCreationFailedResponsePayload = 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 BuildArtifactsCreationFailedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.BuildArtifactsCreationFailedResponsePayload = BuildArtifactsCreationFailedResponsePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], BuildArtifactsCreationFailedResponsePayload.prototype, "cloudProvider", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], BuildArtifactsCreationFailedResponsePayload.prototype, "buildId", void 0);
|
|
29
|
+
class BuildArtifactsCreationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(BuildArtifactsCreationFailedResponse.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.BuildArtifactsCreationFailedResponse = BuildArtifactsCreationFailedResponse;
|
|
37
|
+
BuildArtifactsCreationFailedResponse.EVENT_NAME = "cloud-builds.build-artifacts-createion-failed-response";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
+
], BuildArtifactsCreationFailedResponse.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildArtifactsCreationFailedResponsePayload),
|
|
44
|
+
__metadata("design:type", BuildArtifactsCreationFailedResponsePayload)
|
|
45
|
+
], BuildArtifactsCreationFailedResponse.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=build-artifacts-creation-failed-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-artifacts-creation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/build-artifacts-creation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,2CAA2C;CAMvD;AAND,kGAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;kFACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;4EACO;AAGlB,MAAa,oCAAqC,SAAQ,wBAAU;IAIlE,YACE,OAAoD,EACpD,OAAqB;QAErB,KAAK,CAAC,oCAAoC,CAAC,UAAU,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oFAkBC;AAjBiB,+CAAU,GACxB,wDAAwD,CAAC;AAY3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;qEAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAA2C,CAAC;8BAC7D,2CAA2C;qEAAC"}
|
|
@@ -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 CreateBuildArtifactsRequestPayload {
|
|
6
|
+
build: CloudBuild;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
}
|
|
9
|
+
export declare class CreateBuildArtifactsRequest extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-builds.create-build-artifacts-request";
|
|
11
|
+
constructor(payload: CreateBuildArtifactsRequestPayload, context: BuildContext);
|
|
12
|
+
context: BuildContext;
|
|
13
|
+
payload: CreateBuildArtifactsRequestPayload;
|
|
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.CreateBuildArtifactsRequest = exports.CreateBuildArtifactsRequestPayload = 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 CreateBuildArtifactsRequestPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateBuildArtifactsRequestPayload = CreateBuildArtifactsRequestPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
+
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
+
], CreateBuildArtifactsRequestPayload.prototype, "build", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateBuildArtifactsRequestPayload.prototype, "cloudProvider", void 0);
|
|
30
|
+
class CreateBuildArtifactsRequest extends ludeo_event_1.LudeoEvent {
|
|
31
|
+
constructor(payload, context) {
|
|
32
|
+
super(CreateBuildArtifactsRequest.EVENT_NAME);
|
|
33
|
+
this.payload = payload;
|
|
34
|
+
this.context = context;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.CreateBuildArtifactsRequest = CreateBuildArtifactsRequest;
|
|
38
|
+
CreateBuildArtifactsRequest.EVENT_NAME = "cloud-builds.create-build-artifacts-request";
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
41
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
42
|
+
], CreateBuildArtifactsRequest.prototype, "context", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateBuildArtifactsRequestPayload),
|
|
45
|
+
__metadata("design:type", CreateBuildArtifactsRequestPayload)
|
|
46
|
+
], CreateBuildArtifactsRequest.prototype, "payload", void 0);
|
|
47
|
+
//# sourceMappingURL=create-build-artifacts-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-build-artifacts-request.js","sourceRoot":"","sources":["../../../src/v4/events/create-build-artifacts-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,oCAAyC;AACzC,6DAAyD;AACzD,0CAA4C;AAC5C,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;iEAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yEACO;AAG/B,MAAa,2BAA4B,SAAQ,wBAAU;IAGzD,YACE,OAA2C,EAC3C,OAAqB;QAErB,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;4DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;8BACpD,kCAAkC;4DAAC"}
|
|
@@ -106,3 +106,6 @@ export * from "./monitor-stream-groups-task";
|
|
|
106
106
|
export * from "./build-distributed-successfully";
|
|
107
107
|
export * from "./build-distribution-failed-response";
|
|
108
108
|
export * from "./distribute-build-request";
|
|
109
|
+
export * from "./create-build-artifacts-request";
|
|
110
|
+
export * from "./build-artifacts-created-successfully";
|
|
111
|
+
export * from "./build-artifacts-creation-failed-response";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -122,4 +122,7 @@ __exportStar(require("./monitor-stream-groups-task"), exports);
|
|
|
122
122
|
__exportStar(require("./build-distributed-successfully"), exports);
|
|
123
123
|
__exportStar(require("./build-distribution-failed-response"), exports);
|
|
124
124
|
__exportStar(require("./distribute-build-request"), exports);
|
|
125
|
+
__exportStar(require("./create-build-artifacts-request"), exports);
|
|
126
|
+
__exportStar(require("./build-artifacts-created-successfully"), exports);
|
|
127
|
+
__exportStar(require("./build-artifacts-creation-failed-response"), exports);
|
|
125
128
|
//# 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,+D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AmD;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,mEAAiD;AACjD,uEAAqD;AACrD,6DAA2C;AAC3C,mEAAiD;AACjD,yEAAuD;AACvD,6EAA2D"}
|
package/dist/v4/types/build.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export type BuildMetadata = {
|
|
|
20
20
|
studioId: string;
|
|
21
21
|
gameId: string;
|
|
22
22
|
versionId: string;
|
|
23
|
+
friendlyName?: string;
|
|
23
24
|
};
|
|
24
25
|
export type AwsArtifactData = {
|
|
25
26
|
basePath: string;
|
|
@@ -50,6 +51,7 @@ export type BuildProviderSettings = {
|
|
|
50
51
|
status?: BuildStatus;
|
|
51
52
|
artifacts?: AwsArtifacts;
|
|
52
53
|
distributions?: AwsDistributions;
|
|
54
|
+
settings?: AwsBuildSettings;
|
|
53
55
|
};
|
|
54
56
|
};
|
|
55
57
|
export declare class CloudBuild {
|
|
@@ -65,3 +67,26 @@ export declare class AwsDistributorResponse {
|
|
|
65
67
|
distributions: AwsDistributions;
|
|
66
68
|
}
|
|
67
69
|
export type DistributorResponse = AwsDistributorResponse;
|
|
70
|
+
export declare class AwsBuildArtifactorResponse {
|
|
71
|
+
artifacts: AwsArtifacts;
|
|
72
|
+
}
|
|
73
|
+
export type BuildArtifactorResponse = AwsBuildArtifactorResponse;
|
|
74
|
+
export type AwsBuildSettings = {
|
|
75
|
+
applicationName: string;
|
|
76
|
+
basePath: string;
|
|
77
|
+
executeableLaunchPath: string;
|
|
78
|
+
runtimeEnvironment: RuntimeEnvironment;
|
|
79
|
+
logPath?: string;
|
|
80
|
+
};
|
|
81
|
+
export declare enum RuntimeEnvironment {
|
|
82
|
+
WINDOWS = "windows",
|
|
83
|
+
NVIDIA_ULTRA = "nvidiaUltra",
|
|
84
|
+
NVIDIA_HIGH = "nvidiaHigh"
|
|
85
|
+
}
|
|
86
|
+
export interface RuntimeEnvironmentConfigurationMap {
|
|
87
|
+
streamClass: string;
|
|
88
|
+
runtimeEnvironment: {
|
|
89
|
+
Type: string;
|
|
90
|
+
Version: string;
|
|
91
|
+
};
|
|
92
|
+
}
|
package/dist/v4/types/build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AwsDistributorResponse = exports.CloudBuild = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
|
|
3
|
+
exports.RuntimeEnvironment = exports.AwsBuildArtifactorResponse = exports.AwsDistributorResponse = exports.CloudBuild = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
|
|
4
4
|
const cloud_1 = require("./cloud");
|
|
5
5
|
var BuildStatus;
|
|
6
6
|
(function (BuildStatus) {
|
|
@@ -28,4 +28,13 @@ exports.CloudBuild = CloudBuild;
|
|
|
28
28
|
class AwsDistributorResponse {
|
|
29
29
|
}
|
|
30
30
|
exports.AwsDistributorResponse = AwsDistributorResponse;
|
|
31
|
+
class AwsBuildArtifactorResponse {
|
|
32
|
+
}
|
|
33
|
+
exports.AwsBuildArtifactorResponse = AwsBuildArtifactorResponse;
|
|
34
|
+
var RuntimeEnvironment;
|
|
35
|
+
(function (RuntimeEnvironment) {
|
|
36
|
+
RuntimeEnvironment["WINDOWS"] = "windows";
|
|
37
|
+
RuntimeEnvironment["NVIDIA_ULTRA"] = "nvidiaUltra";
|
|
38
|
+
RuntimeEnvironment["NVIDIA_HIGH"] = "nvidiaHigh";
|
|
39
|
+
})(RuntimeEnvironment || (exports.RuntimeEnvironment = RuntimeEnvironment = {}));
|
|
31
40
|
//# sourceMappingURL=build.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACrB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACrB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAgDD,MAAa,UAAU;CAQtB;AARD,gCAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAID,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAYD,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,kDAA4B,CAAA;IAC5B,gDAA0B,CAAA;AAC5B,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IsEnum, IsUUID } from "class-validator";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { CloudProvider } from "../types";
|
|
4
|
+
import {
|
|
5
|
+
AwsBuildArtifactorResponse,
|
|
6
|
+
BuildArtifactorResponse,
|
|
7
|
+
} from "../types/build";
|
|
8
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
9
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
10
|
+
|
|
11
|
+
export class BuildArtifactsCreatedSuccessfullyPayload {
|
|
12
|
+
@IsEnum(CloudProvider)
|
|
13
|
+
cloudProvider: CloudProvider;
|
|
14
|
+
|
|
15
|
+
@ValidateNestedType(() => AwsBuildArtifactorResponse)
|
|
16
|
+
buildArtifactorResponse: BuildArtifactorResponse;
|
|
17
|
+
|
|
18
|
+
@IsUUID()
|
|
19
|
+
buildId: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class BuildArtifactsCreatedSuccessfully extends LudeoEvent {
|
|
23
|
+
static readonly EVENT_NAME =
|
|
24
|
+
"cloud-builds.build-artifacts-created-successfully";
|
|
25
|
+
|
|
26
|
+
constructor(
|
|
27
|
+
payload: BuildArtifactsCreatedSuccessfullyPayload,
|
|
28
|
+
context: BuildContext
|
|
29
|
+
) {
|
|
30
|
+
super(BuildArtifactsCreatedSuccessfully.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@ValidateNestedType(() => BuildContext)
|
|
36
|
+
context: BuildContext;
|
|
37
|
+
|
|
38
|
+
@ValidateNestedType(() => BuildArtifactsCreatedSuccessfullyPayload)
|
|
39
|
+
payload: BuildArtifactsCreatedSuccessfullyPayload;
|
|
40
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 BuildArtifactsCreationFailedResponsePayload {
|
|
8
|
+
@IsEnum(CloudProvider)
|
|
9
|
+
cloudProvider: CloudProvider;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
buildId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class BuildArtifactsCreationFailedResponse extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME =
|
|
17
|
+
"cloud-builds.build-artifacts-createion-failed-response";
|
|
18
|
+
|
|
19
|
+
constructor(
|
|
20
|
+
payload: BuildArtifactsCreationFailedResponsePayload,
|
|
21
|
+
context: BuildContext
|
|
22
|
+
) {
|
|
23
|
+
super(BuildArtifactsCreationFailedResponse.EVENT_NAME);
|
|
24
|
+
this.payload = payload;
|
|
25
|
+
this.context = context;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@ValidateNestedType(() => BuildContext)
|
|
29
|
+
context: BuildContext;
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => BuildArtifactsCreationFailedResponsePayload)
|
|
32
|
+
payload: BuildArtifactsCreationFailedResponsePayload;
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IsEnum } from "class-validator";
|
|
2
|
+
import { CloudProvider } from "../types";
|
|
3
|
+
import { BuildContext } from "../contexts/build-context";
|
|
4
|
+
import { CloudBuild } from "../types/build";
|
|
5
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
7
|
+
|
|
8
|
+
export class CreateBuildArtifactsRequestPayload {
|
|
9
|
+
@ValidateNestedType(() => CloudBuild)
|
|
10
|
+
build: CloudBuild;
|
|
11
|
+
|
|
12
|
+
@IsEnum(CloudProvider)
|
|
13
|
+
cloudProvider: CloudProvider;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class CreateBuildArtifactsRequest extends LudeoEvent {
|
|
17
|
+
static readonly EVENT_NAME = "cloud-builds.create-build-artifacts-request";
|
|
18
|
+
|
|
19
|
+
constructor(
|
|
20
|
+
payload: CreateBuildArtifactsRequestPayload,
|
|
21
|
+
context: BuildContext
|
|
22
|
+
) {
|
|
23
|
+
super(CreateBuildArtifactsRequest.EVENT_NAME);
|
|
24
|
+
this.payload = payload;
|
|
25
|
+
this.context = context;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@ValidateNestedType(() => BuildContext)
|
|
29
|
+
context: BuildContext;
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => CreateBuildArtifactsRequestPayload)
|
|
32
|
+
payload: CreateBuildArtifactsRequestPayload;
|
|
33
|
+
}
|
package/src/v4/events/index.ts
CHANGED
|
@@ -106,3 +106,6 @@ export * from "./monitor-stream-groups-task";
|
|
|
106
106
|
export * from "./build-distributed-successfully";
|
|
107
107
|
export * from "./build-distribution-failed-response";
|
|
108
108
|
export * from "./distribute-build-request";
|
|
109
|
+
export * from "./create-build-artifacts-request";
|
|
110
|
+
export * from "./build-artifacts-created-successfully";
|
|
111
|
+
export * from "./build-artifacts-creation-failed-response";
|
package/src/v4/types/build.ts
CHANGED
|
@@ -24,6 +24,7 @@ export type BuildMetadata = {
|
|
|
24
24
|
studioId: string;
|
|
25
25
|
gameId: string;
|
|
26
26
|
versionId: string;
|
|
27
|
+
friendlyName?: string;
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
export type AwsArtifactData = {
|
|
@@ -61,6 +62,7 @@ export type BuildProviderSettings = {
|
|
|
61
62
|
status?: BuildStatus;
|
|
62
63
|
artifacts?: AwsArtifacts;
|
|
63
64
|
distributions?: AwsDistributions;
|
|
65
|
+
settings?: AwsBuildSettings;
|
|
64
66
|
};
|
|
65
67
|
};
|
|
66
68
|
|
|
@@ -79,3 +81,31 @@ export class AwsDistributorResponse {
|
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
export type DistributorResponse = AwsDistributorResponse;
|
|
84
|
+
|
|
85
|
+
export class AwsBuildArtifactorResponse {
|
|
86
|
+
artifacts: AwsArtifacts;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type BuildArtifactorResponse = AwsBuildArtifactorResponse;
|
|
90
|
+
|
|
91
|
+
export type AwsBuildSettings = {
|
|
92
|
+
applicationName: string;
|
|
93
|
+
basePath: string;
|
|
94
|
+
executeableLaunchPath: string;
|
|
95
|
+
runtimeEnvironment: RuntimeEnvironment;
|
|
96
|
+
logPath?: string;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export enum RuntimeEnvironment {
|
|
100
|
+
WINDOWS = "windows",
|
|
101
|
+
NVIDIA_ULTRA = "nvidiaUltra",
|
|
102
|
+
NVIDIA_HIGH = "nvidiaHigh",
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface RuntimeEnvironmentConfigurationMap {
|
|
106
|
+
streamClass: string;
|
|
107
|
+
runtimeEnvironment: {
|
|
108
|
+
Type: string;
|
|
109
|
+
Version: string;
|
|
110
|
+
};
|
|
111
|
+
}
|