@ludeo/cloud-common 1.2.74 → 1.2.75-beta-yahil-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/contexts/build-context.d.ts +3 -0
- package/dist/v4/contexts/build-context.js +21 -0
- package/dist/v4/contexts/build-context.js.map +1 -0
- package/dist/v4/contexts/index.d.ts +1 -0
- package/dist/v4/contexts/index.js +1 -0
- package/dist/v4/contexts/index.js.map +1 -1
- package/dist/v4/events/build-distributed-successfully.d.ts +15 -0
- package/dist/v4/events/build-distributed-successfully.js +51 -0
- package/dist/v4/events/build-distributed-successfully.js.map +1 -0
- package/dist/v4/events/build-distribution-failed-response.d.ts +13 -0
- package/dist/v4/events/build-distribution-failed-response.js +46 -0
- package/dist/v4/events/build-distribution-failed-response.js.map +1 -0
- package/dist/v4/events/distribute-build-request.d.ts +14 -0
- package/dist/v4/events/distribute-build-request.js +47 -0
- package/dist/v4/events/distribute-build-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 +67 -0
- package/dist/v4/types/build.js +31 -0
- package/dist/v4/types/build.js.map +1 -0
- package/dist/v4/types/index.d.ts +1 -0
- package/dist/v4/types/index.js +1 -0
- package/dist/v4/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/contexts/build-context.ts +6 -0
- package/src/v4/contexts/index.ts +1 -0
- package/src/v4/events/build-distributed-successfully.ts +36 -0
- package/src/v4/events/build-distribution-failed-response.ts +33 -0
- package/src/v4/events/distribute-build-request.ts +30 -0
- package/src/v4/events/index.ts +3 -0
- package/src/v4/types/build.ts +81 -0
- package/src/v4/types/index.ts +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
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.BuildContext = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class BuildContext {
|
|
15
|
+
}
|
|
16
|
+
exports.BuildContext = BuildContext;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsUUID)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], BuildContext.prototype, "buildId", void 0);
|
|
21
|
+
//# sourceMappingURL=build-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/build-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,MAAa,YAAY;CAGxB;AAHD,oCAGC;AADC;IADC,IAAA,wBAAM,GAAE;;6CACO"}
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./cloud-pool-context"), exports);
|
|
|
18
18
|
__exportStar(require("./cloud-resource-context"), exports);
|
|
19
19
|
__exportStar(require("./cloud-session-context"), exports);
|
|
20
20
|
__exportStar(require("./getCloudContextType"), exports);
|
|
21
|
+
__exportStar(require("./build-context"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC;AACtC,kDAAgC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LudeoEvent } from "@ludeo/cloud-common";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { CloudProvider } from "../types";
|
|
4
|
+
import { DistributorResponse } from "../types/build";
|
|
5
|
+
export declare class BuildDistributedSuccessfullyPayload {
|
|
6
|
+
cloudProvider: CloudProvider;
|
|
7
|
+
distributorResponse: DistributorResponse;
|
|
8
|
+
buildId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class BuildDistributedSuccessfully extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.build-distributed-successfully";
|
|
12
|
+
constructor(payload: BuildDistributedSuccessfullyPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: BuildDistributedSuccessfullyPayload;
|
|
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.BuildDistributedSuccessfully = exports.BuildDistributedSuccessfullyPayload = void 0;
|
|
13
|
+
const cloud_common_1 = require("@ludeo/cloud-common");
|
|
14
|
+
const decorators_1 = require("@ludeo/cloud-common/dist/decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const build_context_1 = require("../contexts/build-context");
|
|
17
|
+
const types_1 = require("../types");
|
|
18
|
+
const build_1 = require("../types/build");
|
|
19
|
+
class BuildDistributedSuccessfullyPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.BuildDistributedSuccessfullyPayload = BuildDistributedSuccessfullyPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BuildDistributedSuccessfullyPayload.prototype, "cloudProvider", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, decorators_1.ValidateNestedType)(() => build_1.AwsDistributorResponse),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], BuildDistributedSuccessfullyPayload.prototype, "distributorResponse", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsUUID)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BuildDistributedSuccessfullyPayload.prototype, "buildId", void 0);
|
|
34
|
+
class BuildDistributedSuccessfully extends cloud_common_1.LudeoEvent {
|
|
35
|
+
constructor(payload, context) {
|
|
36
|
+
super(BuildDistributedSuccessfully.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.BuildDistributedSuccessfully = BuildDistributedSuccessfully;
|
|
42
|
+
BuildDistributedSuccessfully.EVENT_NAME = "cloud-builds.build-distributed-successfully";
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, decorators_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
+
], BuildDistributedSuccessfully.prototype, "context", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, decorators_1.ValidateNestedType)(() => BuildDistributedSuccessfullyPayload),
|
|
49
|
+
__metadata("design:type", BuildDistributedSuccessfullyPayload)
|
|
50
|
+
], BuildDistributedSuccessfully.prototype, "payload", void 0);
|
|
51
|
+
//# sourceMappingURL=build-distributed-successfully.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-distributed-successfully.js","sourceRoot":"","sources":["../../../src/v4/events/build-distributed-successfully.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAiD;AACjD,oEAAyE;AACzE,qDAAiD;AACjD,6DAAyD;AACzD,oCAAyC;AACzC,0CAA6E;AAE7E,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAPC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8BAAsB,CAAC;;gFACR;AAGzC;IADC,IAAA,wBAAM,GAAE;;oEACO;AAGlB,MAAa,4BAA6B,SAAQ,yBAAU;IAG1D,YACE,OAA4C,EAC5C,OAAqB;QAErB,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;6DAAC;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LudeoEvent } from "@ludeo/cloud-common";
|
|
2
|
+
import { CloudProvider } from "../types";
|
|
3
|
+
import { BuildContext } from "../contexts/build-context";
|
|
4
|
+
export declare class BuildDistributionFailedResponsePayload {
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
buildId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class BuildDistributionFailedResponse extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.build-distribution-failed-response";
|
|
10
|
+
constructor(payload: BuildDistributionFailedResponsePayload, context: BuildContext);
|
|
11
|
+
context: BuildContext;
|
|
12
|
+
payload: BuildDistributionFailedResponsePayload;
|
|
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.BuildDistributionFailedResponse = exports.BuildDistributionFailedResponsePayload = void 0;
|
|
13
|
+
const cloud_common_1 = require("@ludeo/cloud-common");
|
|
14
|
+
const decorators_1 = require("@ludeo/cloud-common/dist/decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const types_1 = require("../types");
|
|
17
|
+
const build_context_1 = require("../contexts/build-context");
|
|
18
|
+
class BuildDistributionFailedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.BuildDistributionFailedResponsePayload = BuildDistributionFailedResponsePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], BuildDistributionFailedResponsePayload.prototype, "cloudProvider", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], BuildDistributionFailedResponsePayload.prototype, "buildId", void 0);
|
|
29
|
+
class BuildDistributionFailedResponse extends cloud_common_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(BuildDistributionFailedResponse.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.BuildDistributionFailedResponse = BuildDistributionFailedResponse;
|
|
37
|
+
BuildDistributionFailedResponse.EVENT_NAME = "cloud-builds.build-distribution-failed-response";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, decorators_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
+
], BuildDistributionFailedResponse.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, decorators_1.ValidateNestedType)(() => BuildDistributionFailedResponsePayload),
|
|
44
|
+
__metadata("design:type", BuildDistributionFailedResponsePayload)
|
|
45
|
+
], BuildDistributionFailedResponse.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=build-distribution-failed-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-distribution-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/build-distribution-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAiD;AACjD,oEAAyE;AACzE,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AAEzD,MAAa,sCAAsC;CAMlD;AAND,wFAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;6EACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;uEACO;AAGlB,MAAa,+BAAgC,SAAQ,yBAAU;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,iDAAiD,CAAC;AAYpD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;gEAAC;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;8BACxD,sCAAsC;gEAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from "@ludeo/cloud-common";
|
|
2
|
+
import { CloudProvider } from "../types";
|
|
3
|
+
import { BuildContext } from "../contexts/build-context";
|
|
4
|
+
import { CloudBuild } from "../types/build";
|
|
5
|
+
export declare class DistributeBuildRequestPayload {
|
|
6
|
+
build: CloudBuild;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
}
|
|
9
|
+
export declare class DistributeBuildRequest extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-builds.distribute-build-request";
|
|
11
|
+
constructor(payload: DistributeBuildRequestPayload, context: BuildContext);
|
|
12
|
+
context: BuildContext;
|
|
13
|
+
payload: DistributeBuildRequestPayload;
|
|
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.DistributeBuildRequest = exports.DistributeBuildRequestPayload = void 0;
|
|
13
|
+
const cloud_common_1 = require("@ludeo/cloud-common");
|
|
14
|
+
const decorators_1 = require("@ludeo/cloud-common/dist/decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const types_1 = require("../types");
|
|
17
|
+
const build_context_1 = require("../contexts/build-context");
|
|
18
|
+
const build_1 = require("../types/build");
|
|
19
|
+
class DistributeBuildRequestPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.DistributeBuildRequestPayload = DistributeBuildRequestPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, decorators_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
+
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
+
], DistributeBuildRequestPayload.prototype, "build", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DistributeBuildRequestPayload.prototype, "cloudProvider", void 0);
|
|
30
|
+
class DistributeBuildRequest extends cloud_common_1.LudeoEvent {
|
|
31
|
+
constructor(payload, context) {
|
|
32
|
+
super(DistributeBuildRequest.EVENT_NAME);
|
|
33
|
+
this.payload = payload;
|
|
34
|
+
this.context = context;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.DistributeBuildRequest = DistributeBuildRequest;
|
|
38
|
+
DistributeBuildRequest.EVENT_NAME = "cloud-builds.distribute-build-request";
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, decorators_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
41
|
+
__metadata("design:type", build_context_1.BuildContext)
|
|
42
|
+
], DistributeBuildRequest.prototype, "context", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, decorators_1.ValidateNestedType)(() => DistributeBuildRequestPayload),
|
|
45
|
+
__metadata("design:type", DistributeBuildRequestPayload)
|
|
46
|
+
], DistributeBuildRequest.prototype, "payload", void 0);
|
|
47
|
+
//# sourceMappingURL=distribute-build-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distribute-build-request.js","sourceRoot":"","sources":["../../../src/v4/events/distribute-build-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAiD;AACjD,oEAAyE;AACzE,qDAAyC;AACzC,oCAAyC;AACzC,6DAAyD;AACzD,0CAA4C;AAE5C,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;4DAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;oEACO;AAG/B,MAAa,sBAAuB,SAAQ,yBAAU;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,uCAAuC,CAAC;AASrE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;uDAAC;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -103,3 +103,6 @@ export * from "./terminate-stale-ludeos";
|
|
|
103
103
|
export * from "./terminate-ludeo-request";
|
|
104
104
|
export * from "./ludeo-allocation-timeout-task";
|
|
105
105
|
export * from "./monitor-stream-groups-task";
|
|
106
|
+
export * from "./build-distributed-successfully";
|
|
107
|
+
export * from "./build-distribution-failed-response";
|
|
108
|
+
export * from "./distribute-build-request";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -119,4 +119,7 @@ __exportStar(require("./terminate-stale-ludeos"), exports);
|
|
|
119
119
|
__exportStar(require("./terminate-ludeo-request"), exports);
|
|
120
120
|
__exportStar(require("./ludeo-allocation-timeout-task"), exports);
|
|
121
121
|
__exportStar(require("./monitor-stream-groups-task"), exports);
|
|
122
|
+
__exportStar(require("./build-distributed-successfully"), exports);
|
|
123
|
+
__exportStar(require("./build-distribution-failed-response"), exports);
|
|
124
|
+
__exportStar(require("./distribute-build-request"), exports);
|
|
122
125
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,+DAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,+DAA6C;AAC7C,mEAAiD;AACjD,uEAAqD;AACrD,6DAA2C"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { V4 } from "@ludeo/cloud-common";
|
|
2
|
+
export declare enum BuildStatus {
|
|
3
|
+
DRAFT = "draft",
|
|
4
|
+
UPLOADED = "uploaded",
|
|
5
|
+
DISTRIBUTING = "distributing",
|
|
6
|
+
DISTRIBUTED = "distributed",
|
|
7
|
+
FAILED = "failed",
|
|
8
|
+
CREATING = "creating",
|
|
9
|
+
CREATED = "created"
|
|
10
|
+
}
|
|
11
|
+
export declare enum DistributionStatus {
|
|
12
|
+
DISTRIBUTING = "distributing",
|
|
13
|
+
DISTRIBUTED = "distributed"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ArtifactStatus {
|
|
16
|
+
CREATING = "creating",
|
|
17
|
+
CREATED = "created"
|
|
18
|
+
}
|
|
19
|
+
export type BuildMetadata = {
|
|
20
|
+
studioId: string;
|
|
21
|
+
gameId: string;
|
|
22
|
+
versionId: string;
|
|
23
|
+
};
|
|
24
|
+
export type AwsArtifactData = {
|
|
25
|
+
basePath: string;
|
|
26
|
+
executeableLaunchPath: string;
|
|
27
|
+
runtimeEnvironment: string;
|
|
28
|
+
applicationName: string;
|
|
29
|
+
applicationIdentifier?: string;
|
|
30
|
+
status?: ArtifactStatus;
|
|
31
|
+
};
|
|
32
|
+
export type AwsDistributionData = {
|
|
33
|
+
path: string;
|
|
34
|
+
status?: DistributionStatus;
|
|
35
|
+
};
|
|
36
|
+
export type AwsDistributions = {
|
|
37
|
+
[region: string]: AwsDistributionData;
|
|
38
|
+
};
|
|
39
|
+
export type AwsArtifacts = {
|
|
40
|
+
[region: string]: AwsArtifactData;
|
|
41
|
+
};
|
|
42
|
+
export type Artifacts = {
|
|
43
|
+
[V4.Types.CloudProvider.AWS]: AwsArtifacts;
|
|
44
|
+
};
|
|
45
|
+
export type Distributions = {
|
|
46
|
+
[V4.Types.CloudProvider.AWS]: AwsDistributions;
|
|
47
|
+
};
|
|
48
|
+
export type BuildProviderSettings = {
|
|
49
|
+
[V4.Types.CloudProvider.AWS]: {
|
|
50
|
+
status?: BuildStatus;
|
|
51
|
+
artifacts?: AwsArtifacts;
|
|
52
|
+
distributions?: AwsDistributions;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare class CloudBuild {
|
|
56
|
+
id: string;
|
|
57
|
+
createdAt: number;
|
|
58
|
+
updatedAt?: number;
|
|
59
|
+
status: BuildStatus;
|
|
60
|
+
centralizedPath?: string;
|
|
61
|
+
meta?: BuildMetadata;
|
|
62
|
+
providers?: Partial<BuildProviderSettings>;
|
|
63
|
+
}
|
|
64
|
+
export declare class AwsDistributorResponse {
|
|
65
|
+
distributions: AwsDistributions;
|
|
66
|
+
}
|
|
67
|
+
export type DistributorResponse = AwsDistributorResponse;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AwsDistributorResponse = exports.CloudBuild = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
|
|
4
|
+
const cloud_common_1 = require("@ludeo/cloud-common");
|
|
5
|
+
var BuildStatus;
|
|
6
|
+
(function (BuildStatus) {
|
|
7
|
+
BuildStatus["DRAFT"] = "draft";
|
|
8
|
+
BuildStatus["UPLOADED"] = "uploaded";
|
|
9
|
+
BuildStatus["DISTRIBUTING"] = "distributing";
|
|
10
|
+
BuildStatus["DISTRIBUTED"] = "distributed";
|
|
11
|
+
BuildStatus["FAILED"] = "failed";
|
|
12
|
+
BuildStatus["CREATING"] = "creating";
|
|
13
|
+
BuildStatus["CREATED"] = "created";
|
|
14
|
+
})(BuildStatus || (exports.BuildStatus = BuildStatus = {}));
|
|
15
|
+
var DistributionStatus;
|
|
16
|
+
(function (DistributionStatus) {
|
|
17
|
+
DistributionStatus["DISTRIBUTING"] = "distributing";
|
|
18
|
+
DistributionStatus["DISTRIBUTED"] = "distributed";
|
|
19
|
+
})(DistributionStatus || (exports.DistributionStatus = DistributionStatus = {}));
|
|
20
|
+
var ArtifactStatus;
|
|
21
|
+
(function (ArtifactStatus) {
|
|
22
|
+
ArtifactStatus["CREATING"] = "creating";
|
|
23
|
+
ArtifactStatus["CREATED"] = "created";
|
|
24
|
+
})(ArtifactStatus || (exports.ArtifactStatus = ArtifactStatus = {}));
|
|
25
|
+
class CloudBuild {
|
|
26
|
+
}
|
|
27
|
+
exports.CloudBuild = CloudBuild;
|
|
28
|
+
class AwsDistributorResponse {
|
|
29
|
+
}
|
|
30
|
+
exports.AwsDistributorResponse = AwsDistributorResponse;
|
|
31
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;AAAA,sDAAyC;AAEzC,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;AA8CD,MAAa,UAAU;CAQtB;AARD,gCAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC"}
|
package/dist/v4/types/index.d.ts
CHANGED
package/dist/v4/types/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./cloud"), exports);
|
|
18
18
|
__exportStar(require("./pools"), exports);
|
|
19
|
+
__exportStar(require("./build"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB"}
|
package/package.json
CHANGED
package/src/v4/contexts/index.ts
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LudeoEvent } from "@ludeo/cloud-common";
|
|
2
|
+
import { ValidateNestedType } from "@ludeo/cloud-common/dist/decorators";
|
|
3
|
+
import { IsEnum, IsUUID } from "class-validator";
|
|
4
|
+
import { BuildContext } from "../contexts/build-context";
|
|
5
|
+
import { CloudProvider } from "../types";
|
|
6
|
+
import { AwsDistributorResponse, DistributorResponse } from "../types/build";
|
|
7
|
+
|
|
8
|
+
export class BuildDistributedSuccessfullyPayload {
|
|
9
|
+
@IsEnum(CloudProvider)
|
|
10
|
+
cloudProvider: CloudProvider;
|
|
11
|
+
|
|
12
|
+
@ValidateNestedType(() => AwsDistributorResponse)
|
|
13
|
+
distributorResponse: DistributorResponse;
|
|
14
|
+
|
|
15
|
+
@IsUUID()
|
|
16
|
+
buildId: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class BuildDistributedSuccessfully extends LudeoEvent {
|
|
20
|
+
static readonly EVENT_NAME = "cloud-builds.build-distributed-successfully";
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
payload: BuildDistributedSuccessfullyPayload,
|
|
24
|
+
context: BuildContext
|
|
25
|
+
) {
|
|
26
|
+
super(BuildDistributedSuccessfully.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => BuildContext)
|
|
32
|
+
context: BuildContext;
|
|
33
|
+
|
|
34
|
+
@ValidateNestedType(() => BuildDistributedSuccessfullyPayload)
|
|
35
|
+
payload: BuildDistributedSuccessfullyPayload;
|
|
36
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { LudeoEvent } from "@ludeo/cloud-common";
|
|
2
|
+
import { ValidateNestedType } from "@ludeo/cloud-common/dist/decorators";
|
|
3
|
+
import { IsEnum, IsUUID } from "class-validator";
|
|
4
|
+
import { CloudProvider } from "../types";
|
|
5
|
+
import { BuildContext } from "../contexts/build-context";
|
|
6
|
+
|
|
7
|
+
export class BuildDistributionFailedResponsePayload {
|
|
8
|
+
@IsEnum(CloudProvider)
|
|
9
|
+
cloudProvider: CloudProvider;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
buildId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class BuildDistributionFailedResponse extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME =
|
|
17
|
+
"cloud-builds.build-distribution-failed-response";
|
|
18
|
+
|
|
19
|
+
constructor(
|
|
20
|
+
payload: BuildDistributionFailedResponsePayload,
|
|
21
|
+
context: BuildContext
|
|
22
|
+
) {
|
|
23
|
+
super(BuildDistributionFailedResponse.EVENT_NAME);
|
|
24
|
+
this.payload = payload;
|
|
25
|
+
this.context = context;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@ValidateNestedType(() => BuildContext)
|
|
29
|
+
context: BuildContext;
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => BuildDistributionFailedResponsePayload)
|
|
32
|
+
payload: BuildDistributionFailedResponsePayload;
|
|
33
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LudeoEvent } from "@ludeo/cloud-common";
|
|
2
|
+
import { ValidateNestedType } from "@ludeo/cloud-common/dist/decorators";
|
|
3
|
+
import { IsEnum } from "class-validator";
|
|
4
|
+
import { CloudProvider } from "../types";
|
|
5
|
+
import { BuildContext } from "../contexts/build-context";
|
|
6
|
+
import { CloudBuild } from "../types/build";
|
|
7
|
+
|
|
8
|
+
export class DistributeBuildRequestPayload {
|
|
9
|
+
@ValidateNestedType(() => CloudBuild)
|
|
10
|
+
build: CloudBuild;
|
|
11
|
+
|
|
12
|
+
@IsEnum(CloudProvider)
|
|
13
|
+
cloudProvider: CloudProvider;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class DistributeBuildRequest extends LudeoEvent {
|
|
17
|
+
static readonly EVENT_NAME = "cloud-builds.distribute-build-request";
|
|
18
|
+
|
|
19
|
+
constructor(payload: DistributeBuildRequestPayload, context: BuildContext) {
|
|
20
|
+
super(DistributeBuildRequest.EVENT_NAME);
|
|
21
|
+
this.payload = payload;
|
|
22
|
+
this.context = context;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@ValidateNestedType(() => BuildContext)
|
|
26
|
+
context: BuildContext;
|
|
27
|
+
|
|
28
|
+
@ValidateNestedType(() => DistributeBuildRequestPayload)
|
|
29
|
+
payload: DistributeBuildRequestPayload;
|
|
30
|
+
}
|
package/src/v4/events/index.ts
CHANGED
|
@@ -103,3 +103,6 @@ export * from "./terminate-stale-ludeos";
|
|
|
103
103
|
export * from "./terminate-ludeo-request";
|
|
104
104
|
export * from "./ludeo-allocation-timeout-task";
|
|
105
105
|
export * from "./monitor-stream-groups-task";
|
|
106
|
+
export * from "./build-distributed-successfully";
|
|
107
|
+
export * from "./build-distribution-failed-response";
|
|
108
|
+
export * from "./distribute-build-request";
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { V4 } from "@ludeo/cloud-common";
|
|
2
|
+
|
|
3
|
+
export enum BuildStatus {
|
|
4
|
+
DRAFT = "draft",
|
|
5
|
+
UPLOADED = "uploaded",
|
|
6
|
+
DISTRIBUTING = "distributing",
|
|
7
|
+
DISTRIBUTED = "distributed",
|
|
8
|
+
FAILED = "failed",
|
|
9
|
+
CREATING = "creating",
|
|
10
|
+
CREATED = "created",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum DistributionStatus {
|
|
14
|
+
DISTRIBUTING = "distributing",
|
|
15
|
+
DISTRIBUTED = "distributed",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum ArtifactStatus {
|
|
19
|
+
CREATING = "creating",
|
|
20
|
+
CREATED = "created",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type BuildMetadata = {
|
|
24
|
+
studioId: string;
|
|
25
|
+
gameId: string;
|
|
26
|
+
versionId: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type AwsArtifactData = {
|
|
30
|
+
basePath: string;
|
|
31
|
+
executeableLaunchPath: string;
|
|
32
|
+
runtimeEnvironment: string;
|
|
33
|
+
applicationName: string;
|
|
34
|
+
applicationIdentifier?: string;
|
|
35
|
+
status?: ArtifactStatus;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type AwsDistributionData = {
|
|
39
|
+
path: string; // URL or path to the build in the specific region
|
|
40
|
+
status?: DistributionStatus;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type AwsDistributions = {
|
|
44
|
+
[region: string]: AwsDistributionData;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type AwsArtifacts = {
|
|
48
|
+
[region: string]: AwsArtifactData;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type Artifacts = {
|
|
52
|
+
[V4.Types.CloudProvider.AWS]: AwsArtifacts;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type Distributions = {
|
|
56
|
+
[V4.Types.CloudProvider.AWS]: AwsDistributions;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type BuildProviderSettings = {
|
|
60
|
+
[V4.Types.CloudProvider.AWS]: {
|
|
61
|
+
status?: BuildStatus;
|
|
62
|
+
artifacts?: AwsArtifacts;
|
|
63
|
+
distributions?: AwsDistributions;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export class CloudBuild {
|
|
68
|
+
id: string;
|
|
69
|
+
createdAt: number;
|
|
70
|
+
updatedAt?: number;
|
|
71
|
+
status: BuildStatus;
|
|
72
|
+
centralizedPath?: string;
|
|
73
|
+
meta?: BuildMetadata;
|
|
74
|
+
providers?: Partial<BuildProviderSettings>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export class AwsDistributorResponse {
|
|
78
|
+
distributions: AwsDistributions;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type DistributorResponse = AwsDistributorResponse;
|
package/src/v4/types/index.ts
CHANGED