@ludeo/cloud-common 1.2.192 → 1.2.194
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/.github/workflows/main.yaml +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/contexts/index.d.ts +0 -1
- package/dist/v4/contexts/index.js +0 -1
- package/dist/v4/contexts/index.js.map +1 -1
- package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.d.ts +15 -0
- package/dist/v4/events/cloud-builds/{create-build-snapshot-request.js → create-ludeocast-build-distribution-request.js} +20 -20
- package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.js.map +1 -0
- package/dist/v4/events/cloud-builds/index.d.ts +2 -2
- package/dist/v4/events/cloud-builds/index.js +2 -2
- package/dist/v4/events/cloud-builds/index.js.map +1 -1
- package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.d.ts +16 -0
- package/dist/v4/events/cloud-builds/{terminate-build-snapshot-request.js → terminate-ludeocast-build-distribution-request.js} +19 -19
- package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.js.map +1 -0
- package/dist/v4/events/site-controller/index.d.ts +3 -3
- package/dist/v4/events/site-controller/index.js +3 -3
- package/dist/v4/events/site-controller/index.js.map +1 -1
- package/dist/v4/events/site-controller/ludeocast-build-distribution-creation-ended.d.ts +16 -0
- package/dist/v4/events/site-controller/{build-snapshot-creation-ended.js → ludeocast-build-distribution-creation-ended.js} +18 -18
- package/dist/v4/events/site-controller/ludeocast-build-distribution-creation-ended.js.map +1 -0
- package/dist/v4/events/site-controller/ludeocast-build-distribution-termination-ended.d.ts +15 -0
- package/dist/v4/events/site-controller/{build-snapshot-termination-ended.js → ludeocast-build-distribution-termination-ended.js} +16 -16
- package/dist/v4/events/site-controller/ludeocast-build-distribution-termination-ended.js.map +1 -0
- package/dist/v4/events/site-controller/{resource-status-update.d.ts → ludeocast-resource-status-update.d.ts} +5 -5
- package/dist/v4/events/site-controller/{resource-status-update.js → ludeocast-resource-status-update.js} +19 -20
- package/dist/v4/events/site-controller/ludeocast-resource-status-update.js.map +1 -0
- package/dist/v4/types/build.d.ts +9 -5
- package/dist/v4/types/build.js +6 -12
- package/dist/v4/types/build.js.map +1 -1
- package/dist/v4/types/site-controller/create-distribution.dto.d.ts +12 -0
- package/dist/v4/types/site-controller/{create-snapshot.dto.js → create-distribution.dto.js} +18 -13
- package/dist/v4/types/site-controller/create-distribution.dto.js.map +1 -0
- package/dist/v4/types/site-controller/create-game.dto.d.ts +1 -1
- package/dist/v4/types/site-controller/create-game.dto.js +1 -1
- package/dist/v4/types/site-controller/create-game.dto.js.map +1 -1
- package/dist/v4/types/site-controller/index.d.ts +2 -2
- package/dist/v4/types/site-controller/index.js +2 -2
- package/dist/v4/types/site-controller/index.js.map +1 -1
- package/dist/v4/types/site-controller/terminate-build-distribution.dto.d.ts +6 -0
- package/dist/v4/types/site-controller/{terminate-build-snapshot.dto.js → terminate-build-distribution.dto.js} +9 -9
- package/dist/v4/types/site-controller/terminate-build-distribution.dto.js.map +1 -0
- package/dist/v4/types/site-controller/types.d.ts +3 -3
- package/package.json +1 -1
- package/src/v4/contexts/index.ts +0 -1
- package/src/v4/events/cloud-builds/create-ludeocast-build-distribution-request.ts +40 -0
- package/src/v4/events/cloud-builds/index.ts +2 -2
- package/src/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.ts +44 -0
- package/src/v4/events/site-controller/index.ts +3 -3
- package/src/v4/events/site-controller/ludeocast-build-distribution-creation-ended.ts +39 -0
- package/src/v4/events/site-controller/{build-snapshot-termination-ended.ts → ludeocast-build-distribution-termination-ended.ts} +7 -7
- package/src/v4/events/site-controller/{resource-status-update.ts → ludeocast-resource-status-update.ts} +8 -8
- package/src/v4/types/build.ts +12 -8
- package/src/v4/types/site-controller/create-distribution.dto.ts +29 -0
- package/src/v4/types/site-controller/create-game.dto.ts +1 -1
- package/src/v4/types/site-controller/index.ts +2 -2
- package/src/v4/types/site-controller/{terminate-build-snapshot.dto.ts → terminate-build-distribution.dto.ts} +4 -5
- package/src/v4/types/site-controller/types.ts +3 -3
- package/dist/v4/contexts/site-controller-context.d.ts +0 -8
- package/dist/v4/contexts/site-controller-context.js +0 -47
- package/dist/v4/contexts/site-controller-context.js.map +0 -1
- package/dist/v4/events/cloud-builds/create-build-snapshot-request.d.ts +0 -15
- package/dist/v4/events/cloud-builds/create-build-snapshot-request.js.map +0 -1
- package/dist/v4/events/cloud-builds/terminate-build-snapshot-request.d.ts +0 -16
- package/dist/v4/events/cloud-builds/terminate-build-snapshot-request.js.map +0 -1
- package/dist/v4/events/site-controller/build-snapshot-creation-ended.d.ts +0 -16
- package/dist/v4/events/site-controller/build-snapshot-creation-ended.js.map +0 -1
- package/dist/v4/events/site-controller/build-snapshot-termination-ended.d.ts +0 -15
- package/dist/v4/events/site-controller/build-snapshot-termination-ended.js.map +0 -1
- package/dist/v4/events/site-controller/resource-status-update.js.map +0 -1
- package/dist/v4/types/site-controller/create-snapshot.dto.d.ts +0 -10
- package/dist/v4/types/site-controller/create-snapshot.dto.js.map +0 -1
- package/dist/v4/types/site-controller/terminate-build-snapshot.dto.d.ts +0 -6
- package/dist/v4/types/site-controller/terminate-build-snapshot.dto.js.map +0 -1
- package/src/v4/contexts/site-controller-context.ts +0 -32
- package/src/v4/events/cloud-builds/create-build-snapshot-request.ts +0 -40
- package/src/v4/events/cloud-builds/terminate-build-snapshot-request.ts +0 -44
- package/src/v4/events/site-controller/build-snapshot-creation-ended.ts +0 -39
- package/src/v4/types/site-controller/create-snapshot.dto.ts +0 -25
package/dist/v4/types/build.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ProgressiveRolloutStep = exports.BuildAssignmentStatus = exports.MinorBuildsRollout = exports.BuildAssignmentData = exports.BuildsAssignmentsData = exports.EnvBuilds = exports.BuildAssignmentCase = exports.RolloutConfig = exports.BuildVersionMeta = exports.StreamGroupStatus = exports.AwsBuildAssignmentSettings = exports.LudeoCastBuildAssignmentSettings = exports.BuildAssignmentProvidersSettings = exports.MachineClass = exports.BuildCreationInput = exports.RuntimeEnvironmentType = exports.CloudBuild = exports.BuildProviderSettings = exports.AwsArtifacts = exports.LudeocastV2Distributions = exports.LudeocastV2Artifacts = exports.LudeocastV2DistributionData = exports.LudeocastDistributions = exports.LudeocastArtifacts = exports.LudeocastDistributionData = exports.AwsDistributions = exports.AwsDistributionData = exports.AwsArtifactData = exports.BuildMetadata = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
|
|
12
|
+
exports.ProgressiveRolloutStep = exports.BuildAssignmentStatus = exports.MinorBuildsRollout = exports.BuildAssignmentData = exports.BuildsAssignmentsData = exports.EnvBuilds = exports.BuildAssignmentCase = exports.RolloutConfig = exports.BuildVersionMeta = exports.StreamGroupStatus = exports.LudeoCastV2BuildAssignmentSettings = exports.AwsBuildAssignmentSettings = exports.LudeoCastBuildAssignmentSettings = exports.BuildAssignmentProvidersSettings = exports.MachineClass = exports.BuildCreationInput = exports.RuntimeEnvironmentType = exports.CloudBuild = exports.BuildProviderSettings = exports.AwsArtifacts = exports.LudeocastV2Distributions = exports.LudeocastV2Artifacts = exports.LudeocastV2DistributionData = exports.LudeocastDistributions = exports.LudeocastArtifacts = exports.LudeocastDistributionData = exports.AwsDistributions = exports.AwsDistributionData = exports.AwsArtifactData = exports.BuildMetadata = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const cloud_1 = require("./cloud");
|
|
15
15
|
var BuildStatus;
|
|
@@ -102,19 +102,10 @@ exports.LudeocastDistributions = LudeocastDistributions;
|
|
|
102
102
|
class LudeocastV2DistributionData {
|
|
103
103
|
}
|
|
104
104
|
exports.LudeocastV2DistributionData = LudeocastV2DistributionData;
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, class_validator_1.IsString)(),
|
|
107
|
-
__metadata("design:type", String)
|
|
108
|
-
], LudeocastV2DistributionData.prototype, "snapshotName", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, class_validator_1.IsArray)(),
|
|
111
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
112
|
-
__metadata("design:type", Array)
|
|
113
|
-
], LudeocastV2DistributionData.prototype, "storageLocations", void 0);
|
|
114
105
|
class LudeocastV2Artifacts {
|
|
115
106
|
}
|
|
116
107
|
exports.LudeocastV2Artifacts = LudeocastV2Artifacts;
|
|
117
|
-
class LudeocastV2Distributions
|
|
108
|
+
class LudeocastV2Distributions {
|
|
118
109
|
}
|
|
119
110
|
exports.LudeocastV2Distributions = LudeocastV2Distributions;
|
|
120
111
|
class AwsArtifacts {
|
|
@@ -145,13 +136,16 @@ var MachineClass;
|
|
|
145
136
|
class BuildAssignmentProvidersSettings {
|
|
146
137
|
}
|
|
147
138
|
exports.BuildAssignmentProvidersSettings = BuildAssignmentProvidersSettings;
|
|
148
|
-
cloud_1.CloudProvider.GAMELIFT, cloud_1.CloudProvider.AWS, cloud_1.CloudProvider.LUDEOCAST;
|
|
139
|
+
cloud_1.CloudProvider.GAMELIFT, cloud_1.CloudProvider.AWS, cloud_1.CloudProvider.LUDEOCAST, cloud_1.CloudProvider.LUDEOCAST_V2;
|
|
149
140
|
class LudeoCastBuildAssignmentSettings {
|
|
150
141
|
}
|
|
151
142
|
exports.LudeoCastBuildAssignmentSettings = LudeoCastBuildAssignmentSettings;
|
|
152
143
|
class AwsBuildAssignmentSettings {
|
|
153
144
|
}
|
|
154
145
|
exports.AwsBuildAssignmentSettings = AwsBuildAssignmentSettings;
|
|
146
|
+
class LudeoCastV2BuildAssignmentSettings {
|
|
147
|
+
}
|
|
148
|
+
exports.LudeoCastV2BuildAssignmentSettings = LudeoCastV2BuildAssignmentSettings;
|
|
155
149
|
var StreamGroupStatus;
|
|
156
150
|
(function (StreamGroupStatus) {
|
|
157
151
|
StreamGroupStatus["ACTIVATING"] = "ACTIVATING";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,mCAKiB;AAGjB,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,8CAA+B,CAAA;IAC/B,kDAAmC,CAAA;IACnC,gDAAiC,CAAA;IACjC,sEAAuD,CAAA;IACvD,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,wDAAyC,CAAA;IACzC,sDAAuC,CAAA;IACvC,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;AACvB,CAAC,EAfW,WAAW,2BAAX,WAAW,QAetB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,MAAa,aAAa;CA8BzB;AA9BD,sCA8BC;AA3BC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACS;AAGtB;IADC,IAAA,0BAAQ,GAAE;;kDACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;6CACI;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACM;AAGrB,MAAa,eAAe;CAQ3B;AARD,0CAQC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,kBAAkB;CAAG;AAAlC,gDAAkC;AAElC,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED,MAAa,oBAAoB;CAAG;AAApC,oDAAoC;AAEpC,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAID,MAAa,YAAY;CAExB;AAFD,oCAEC;AAID,MAAa,qBAAqB;CAqBjC;AArBD,sDAqBC;AApBE,qBAAa,CAAC,QAAQ,EAKtB,qBAAa,CAAC,GAAG,EAKjB,qBAAa,CAAC,SAAS,EAKvB,qBAAa,CAAC,YAAY;AAO7B,MAAa,UAAU;CAStB;AATD,gCASC;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAED,MAAa,kBAAkB;CAO9B;AAPD,gDAOC;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,0CAA0B,CAAA;AAC5B,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,MAAa,gCAAgC;CAK5C;AALD,4EAKC;AAJE,qBAAa,CAAC,QAAQ,EACtB,qBAAa,CAAC,GAAG,EACjB,qBAAa,CAAC,SAAS,EACvB,qBAAa,CAAC,YAAY;AAG7B,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,8CAAyB,CAAA;IACzB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,oCAAe,CAAA;AACjB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;sDACU;AAGvB,MAAa,aAAa;CAIzB;AAJD,sCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACE;AAGjB,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,kDAA2B,CAAA;IAC3B,4CAAqB,CAAA;IACrB,8DAAuC,CAAA;IACvC,4DAAqC,CAAA;AACvC,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAED,MAAa,SAAS;CAMrB;AAND,8BAMC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAOD,MAAa,mBAAmB;CAO/B;AAPD,kDAOC;AAED,MAAa,kBAAmB,SAAQ,gBAAgB;CAEvD;AAFD,gDAEC;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,gDAAuB,CAAA;IACvB,gEAAuC,CAAA;IACvC,kDAAyB,CAAA;AAC3B,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LudeocastV2Distributions } from '../build';
|
|
2
|
+
export declare class CreateBuildDistributionRequestDto {
|
|
3
|
+
downloadURL: string;
|
|
4
|
+
sizeGB: number;
|
|
5
|
+
buildId: string;
|
|
6
|
+
regions: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare class CreateBuildDistributionResponseDto {
|
|
9
|
+
status: 'success' | 'error';
|
|
10
|
+
message?: string;
|
|
11
|
+
distributions?: LudeocastV2Distributions;
|
|
12
|
+
}
|
|
@@ -9,34 +9,39 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CreateBuildDistributionResponseDto = exports.CreateBuildDistributionRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
14
|
+
const build_1 = require("../build");
|
|
15
|
+
class CreateBuildDistributionRequestDto {
|
|
15
16
|
}
|
|
16
|
-
exports.
|
|
17
|
+
exports.CreateBuildDistributionRequestDto = CreateBuildDistributionRequestDto;
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, class_validator_1.IsString)(),
|
|
19
20
|
__metadata("design:type", String)
|
|
20
|
-
],
|
|
21
|
+
], CreateBuildDistributionRequestDto.prototype, "downloadURL", void 0);
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, class_validator_1.IsNumber)(),
|
|
23
24
|
__metadata("design:type", Number)
|
|
24
|
-
],
|
|
25
|
+
], CreateBuildDistributionRequestDto.prototype, "sizeGB", void 0);
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, class_validator_1.IsString)(),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
29
|
-
|
|
29
|
+
], CreateBuildDistributionRequestDto.prototype, "buildId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsArray)(),
|
|
32
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], CreateBuildDistributionRequestDto.prototype, "regions", void 0);
|
|
35
|
+
class CreateBuildDistributionResponseDto {
|
|
30
36
|
}
|
|
31
|
-
exports.
|
|
37
|
+
exports.CreateBuildDistributionResponseDto = CreateBuildDistributionResponseDto;
|
|
32
38
|
__decorate([
|
|
33
39
|
(0, class_validator_1.IsOptional)(),
|
|
34
40
|
(0, class_validator_1.IsString)(),
|
|
35
41
|
__metadata("design:type", String)
|
|
36
|
-
],
|
|
42
|
+
], CreateBuildDistributionResponseDto.prototype, "message", void 0);
|
|
37
43
|
__decorate([
|
|
38
44
|
(0, class_validator_1.IsOptional)(),
|
|
39
|
-
(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
//# sourceMappingURL=create-snapshot.dto.js.map
|
|
45
|
+
__metadata("design:type", build_1.LudeocastV2Distributions)
|
|
46
|
+
], CreateBuildDistributionResponseDto.prototype, "distributions", void 0);
|
|
47
|
+
//# sourceMappingURL=create-distribution.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-distribution.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-distribution.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAC1E,oCAAoD;AAEpD,MAAa,iCAAiC;CAa7C;AAbD,8EAaC;AAXC;IADC,IAAA,0BAAQ,GAAE;;sEACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;iEACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;kEACK;AAIhB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACP;AAGpB,MAAa,kCAAkC;CAS9C;AATD,gFASC;AAJC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACM;AAGjB;IADC,IAAA,4BAAU,GAAE;8BACG,gCAAwB;yEAAC"}
|
|
@@ -5,7 +5,7 @@ export declare class CreateGameRequestDto {
|
|
|
5
5
|
region: string;
|
|
6
6
|
machineMode: MachineMode;
|
|
7
7
|
machineType: string;
|
|
8
|
-
|
|
8
|
+
distributionName: string;
|
|
9
9
|
additionalEnvironmentVariables?: Record<string, string>;
|
|
10
10
|
metadata?: Record<string, string>;
|
|
11
11
|
buildId: string;
|
|
@@ -38,7 +38,7 @@ __decorate([
|
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, class_validator_1.IsString)(),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
|
-
], CreateGameRequestDto.prototype, "
|
|
41
|
+
], CreateGameRequestDto.prototype, "distributionName", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, class_validator_1.IsOptional)(),
|
|
44
44
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-game.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-game.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,mCAAsC;AAEtC,MAAa,oBAAoB;CA2BhC;AA3BD,oDA2BC;AAzBC;IADC,IAAA,0BAAQ,GAAE;;4DACY;AAGvB;IADC,IAAA,0BAAQ,GAAE;;+DACe;AAG1B;IADC,IAAA,0BAAQ,GAAE;;oDACI;AAGf;IADC,IAAA,wBAAM,EAAC,mBAAW,CAAC;;yDACK;AAGzB;IADC,IAAA,0BAAQ,GAAE;;yDACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;
|
|
1
|
+
{"version":3,"file":"create-game.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-game.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,mCAAsC;AAEtC,MAAa,oBAAoB;CA2BhC;AA3BD,oDA2BC;AAzBC;IADC,IAAA,0BAAQ,GAAE;;4DACY;AAGvB;IADC,IAAA,0BAAQ,GAAE;;+DACe;AAG1B;IADC,IAAA,0BAAQ,GAAE;;oDACI;AAGf;IADC,IAAA,wBAAM,EAAC,mBAAW,CAAC;;yDACK;AAGzB;IADC,IAAA,0BAAQ,GAAE;;yDACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;8DACc;AAGzB;IADC,IAAA,4BAAU,GAAE;;4EAC2C;AAGxD;IADC,IAAA,4BAAU,GAAE;;sDACqB;AAGlC;IADC,IAAA,0BAAQ,GAAE;;qDACK"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
2
|
export * from "./create-machine.dto";
|
|
3
3
|
export * from "./create-game.dto";
|
|
4
|
-
export * from "./create-
|
|
5
|
-
export * from "./terminate-build-
|
|
4
|
+
export * from "./create-distribution.dto";
|
|
5
|
+
export * from "./terminate-build-distribution.dto";
|
|
6
6
|
export * from "./terminate-machine.dto";
|
|
7
7
|
export * from "./terminate-game.dto";
|
|
@@ -17,8 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./types"), exports);
|
|
18
18
|
__exportStar(require("./create-machine.dto"), exports);
|
|
19
19
|
__exportStar(require("./create-game.dto"), exports);
|
|
20
|
-
__exportStar(require("./create-
|
|
21
|
-
__exportStar(require("./terminate-build-
|
|
20
|
+
__exportStar(require("./create-distribution.dto"), exports);
|
|
21
|
+
__exportStar(require("./terminate-build-distribution.dto"), exports);
|
|
22
22
|
__exportStar(require("./terminate-machine.dto"), exports);
|
|
23
23
|
__exportStar(require("./terminate-game.dto"), exports);
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,uDAAqC;AACrC,oDAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qEAAmD;AACnD,0DAAwC;AACxC,uDAAqC"}
|
|
@@ -9,26 +9,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.TerminateBuildDistributionRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const decorators_1 = require("../../../decorators");
|
|
15
15
|
const build_1 = require("../build");
|
|
16
|
-
class
|
|
16
|
+
class TerminateBuildDistributionRequestDto {
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.TerminateBuildDistributionRequestDto = TerminateBuildDistributionRequestDto;
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, class_validator_1.IsString)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
22
|
+
], TerminateBuildDistributionRequestDto.prototype, "buildId", void 0);
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, class_validator_1.IsOptional)(),
|
|
25
|
-
(0, decorators_1.ValidateNestedType)(() => build_1.
|
|
26
|
-
__metadata("design:type", build_1.
|
|
27
|
-
],
|
|
25
|
+
(0, decorators_1.ValidateNestedType)(() => build_1.LudeocastV2Distributions),
|
|
26
|
+
__metadata("design:type", build_1.LudeocastV2Distributions)
|
|
27
|
+
], TerminateBuildDistributionRequestDto.prototype, "distributions", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsOptional)(),
|
|
30
30
|
(0, class_validator_1.IsArray)(),
|
|
31
31
|
(0, class_validator_1.IsString)({ each: true }),
|
|
32
32
|
__metadata("design:type", Array)
|
|
33
|
-
],
|
|
34
|
-
//# sourceMappingURL=terminate-build-
|
|
33
|
+
], TerminateBuildDistributionRequestDto.prototype, "envIds", void 0);
|
|
34
|
+
//# sourceMappingURL=terminate-build-distribution.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminate-build-distribution.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/terminate-build-distribution.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,oDAAyD;AACzD,oCAAoD;AAEpD,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;IADC,IAAA,0BAAQ,GAAE;;qEACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAwB,CAAC;8BACnC,gCAAwB;2EAAC;AAKzC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;oEACP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LudeocastV2Distributions } from '../build';
|
|
2
2
|
import { MachineResourceSettings } from '../pools';
|
|
3
3
|
import { LudeoCastV2MachineResourceProviderSettings } from '../cloud';
|
|
4
4
|
export declare enum MachineMode {
|
|
@@ -53,8 +53,8 @@ export interface MachineSiteAdapterStatusPayload extends SiteAdapterStatusPayloa
|
|
|
53
53
|
export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
54
54
|
reason?: GameStatusReason;
|
|
55
55
|
}
|
|
56
|
-
export interface
|
|
56
|
+
export interface BuildDistributionAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
57
57
|
buildId?: string;
|
|
58
|
-
|
|
58
|
+
distributions?: LudeocastV2Distributions;
|
|
59
59
|
envIds?: string[];
|
|
60
60
|
}
|
package/package.json
CHANGED
package/src/v4/contexts/index.ts
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
+
import { IsString, IsOptional, IsNumber, IsArray } from 'class-validator';
|
|
4
|
+
import { BuildContext } from '../../contexts';
|
|
5
|
+
|
|
6
|
+
export class CreateLudeocastBuildDistributionRequestPayload {
|
|
7
|
+
@IsString()
|
|
8
|
+
buildId: string;
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
downloadURL: string;
|
|
12
|
+
|
|
13
|
+
@IsNumber()
|
|
14
|
+
sizeGB: number;
|
|
15
|
+
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsString()
|
|
18
|
+
site?: string;
|
|
19
|
+
|
|
20
|
+
@IsArray()
|
|
21
|
+
@IsString({ each: true })
|
|
22
|
+
regions: string[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class CreateLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
26
|
+
static readonly EVENT_NAME = 'cloud-builds.create-ludeocast-build-distribution-request';
|
|
27
|
+
|
|
28
|
+
constructor(payload: CreateLudeocastBuildDistributionRequestPayload, context: BuildContext) {
|
|
29
|
+
super(CreateLudeocastBuildDistributionRequest.EVENT_NAME);
|
|
30
|
+
this.payload = payload;
|
|
31
|
+
this.context = context;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@ValidateNestedType(() => CreateLudeocastBuildDistributionRequestPayload)
|
|
35
|
+
payload: CreateLudeocastBuildDistributionRequestPayload;
|
|
36
|
+
|
|
37
|
+
@ValidateNestedType(() => BuildContext)
|
|
38
|
+
context: BuildContext;
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./create-build-
|
|
2
|
-
export * from "./terminate-build-
|
|
1
|
+
export * from "./create-ludeocast-build-distribution-request";
|
|
2
|
+
export * from "./terminate-ludeocast-build-distribution-request";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
+
import { IsArray, IsOptional, IsString } from 'class-validator';
|
|
4
|
+
import { BuildContext } from '../../contexts';
|
|
5
|
+
import { LudeocastV2Distributions } from '../../types/build';
|
|
6
|
+
|
|
7
|
+
export class TerminateLudeocastBuildDistributionRequestPayload {
|
|
8
|
+
@IsString()
|
|
9
|
+
buildId: string;
|
|
10
|
+
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsString()
|
|
13
|
+
site?: string;
|
|
14
|
+
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsString()
|
|
17
|
+
region?: string;
|
|
18
|
+
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@ValidateNestedType(() => LudeocastV2Distributions)
|
|
21
|
+
distributions?: LudeocastV2Distributions;
|
|
22
|
+
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsArray()
|
|
25
|
+
@IsString({ each: true })
|
|
26
|
+
envIds?: string[];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class TerminateLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
30
|
+
static readonly EVENT_NAME = 'cloud-builds.terminate-ludeocast-build-distribution-request';
|
|
31
|
+
|
|
32
|
+
constructor(payload: TerminateLudeocastBuildDistributionRequestPayload, context: BuildContext) {
|
|
33
|
+
super(TerminateLudeocastBuildDistributionRequest.EVENT_NAME);
|
|
34
|
+
this.payload = payload;
|
|
35
|
+
this.context = context;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@ValidateNestedType(() => TerminateLudeocastBuildDistributionRequestPayload)
|
|
39
|
+
payload: TerminateLudeocastBuildDistributionRequestPayload;
|
|
40
|
+
|
|
41
|
+
@ValidateNestedType(() => BuildContext)
|
|
42
|
+
context: BuildContext;
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -4,10 +4,10 @@ export * from './game-ludeocast-creation-ended';
|
|
|
4
4
|
export * from './game-ludeocast-termination-ended';
|
|
5
5
|
export * from './machine-ludeocast-termination-ended';
|
|
6
6
|
|
|
7
|
-
export * from './build-
|
|
8
|
-
export * from './build-
|
|
7
|
+
export * from './ludeocast-build-distribution-creation-ended';
|
|
8
|
+
export * from './ludeocast-build-distribution-termination-ended';
|
|
9
9
|
|
|
10
|
-
export * from './resource-status-update';
|
|
10
|
+
export * from './ludeocast-resource-status-update';
|
|
11
11
|
|
|
12
12
|
//commands
|
|
13
13
|
export * from '../base/base';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
+
import { IsEnum, IsOptional, IsString } from 'class-validator';
|
|
4
|
+
import { BuildContext } from '../../contexts';
|
|
5
|
+
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
+
import { LudeocastV2Distributions } from '../../types/build';
|
|
7
|
+
|
|
8
|
+
export class LudeocastBuildDistributionCreationEndedPayload {
|
|
9
|
+
@IsString()
|
|
10
|
+
buildId: string;
|
|
11
|
+
|
|
12
|
+
@IsEnum(SiteOperationStatus)
|
|
13
|
+
status: SiteOperationStatus;
|
|
14
|
+
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsString()
|
|
17
|
+
reason?: string;
|
|
18
|
+
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@ValidateNestedType(() => LudeocastV2Distributions)
|
|
21
|
+
distributions?: LudeocastV2Distributions;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class LudeocastBuildDistributionCreationEnded extends LudeoEvent {
|
|
25
|
+
static readonly EVENT_NAME = 'site-controller.ludeocast-build-distribution-creation-ended';
|
|
26
|
+
|
|
27
|
+
constructor(payload: LudeocastBuildDistributionCreationEndedPayload, context: BuildContext) {
|
|
28
|
+
super(LudeocastBuildDistributionCreationEnded.EVENT_NAME);
|
|
29
|
+
this.payload = payload;
|
|
30
|
+
this.context = context;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@ValidateNestedType(() => LudeocastBuildDistributionCreationEndedPayload)
|
|
34
|
+
payload: LudeocastBuildDistributionCreationEndedPayload;
|
|
35
|
+
|
|
36
|
+
@ValidateNestedType(() => BuildContext)
|
|
37
|
+
context: BuildContext;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -4,7 +4,7 @@ import { IsEnum, IsOptional, IsString, IsArray } from 'class-validator';
|
|
|
4
4
|
import { BuildContext } from '../../contexts';
|
|
5
5
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
6
|
|
|
7
|
-
export class
|
|
7
|
+
export class LudeocastBuildDistributionTerminationEndedPayload {
|
|
8
8
|
@IsString()
|
|
9
9
|
buildId: string;
|
|
10
10
|
|
|
@@ -21,17 +21,17 @@ export class BuildSnapshotTerminationEndedPayload {
|
|
|
21
21
|
envIds?: string[];
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export class
|
|
25
|
-
static readonly EVENT_NAME = 'site-controller.build-
|
|
24
|
+
export class LudeocastBuildDistributionTerminationEnded extends LudeoEvent {
|
|
25
|
+
static readonly EVENT_NAME = 'site-controller.ludeocast-build-distribution-termination-ended';
|
|
26
26
|
|
|
27
|
-
constructor(payload:
|
|
28
|
-
super(
|
|
27
|
+
constructor(payload: LudeocastBuildDistributionTerminationEndedPayload, context: BuildContext) {
|
|
28
|
+
super(LudeocastBuildDistributionTerminationEnded.EVENT_NAME);
|
|
29
29
|
this.payload = payload;
|
|
30
30
|
this.context = context;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
@ValidateNestedType(() =>
|
|
34
|
-
payload:
|
|
33
|
+
@ValidateNestedType(() => LudeocastBuildDistributionTerminationEndedPayload)
|
|
34
|
+
payload: LudeocastBuildDistributionTerminationEndedPayload;
|
|
35
35
|
|
|
36
36
|
@ValidateNestedType(() => BuildContext)
|
|
37
37
|
context: BuildContext;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator'
|
|
3
|
+
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
4
|
import { CloudResourceContext } from '../../contexts';
|
|
5
5
|
import { CloudResourceStatus } from '../../types';
|
|
6
6
|
import { LudeoCastStreamState } from '../ludeocast-stream-state-updated';
|
|
7
7
|
|
|
8
|
-
export class
|
|
8
|
+
export class LudeocastResourceStatusUpdatePayload {
|
|
9
9
|
@IsUUID()
|
|
10
10
|
@IsOptional()
|
|
11
11
|
machineResourceId?: string;
|
|
@@ -36,17 +36,17 @@ export class ResourceStatusUpdatePayload {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
export class
|
|
40
|
-
static readonly EVENT_NAME = 'site-controller.resource-status-update';
|
|
39
|
+
export class LudeocastResourceStatusUpdate extends LudeoEvent {
|
|
40
|
+
static readonly EVENT_NAME = 'site-controller.ludeocast-resource-status-update';
|
|
41
41
|
|
|
42
|
-
constructor(payload:
|
|
43
|
-
super(
|
|
42
|
+
constructor(payload: LudeocastResourceStatusUpdatePayload, context: CloudResourceContext) {
|
|
43
|
+
super(LudeocastResourceStatusUpdate.EVENT_NAME);
|
|
44
44
|
this.payload = payload;
|
|
45
45
|
this.context = context;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
@ValidateNestedType(() =>
|
|
49
|
-
payload:
|
|
48
|
+
@ValidateNestedType(() => LudeocastResourceStatusUpdatePayload)
|
|
49
|
+
payload: LudeocastResourceStatusUpdatePayload;
|
|
50
50
|
|
|
51
51
|
@ValidateNestedType(() => CloudResourceContext)
|
|
52
52
|
context: CloudResourceContext;
|
package/src/v4/types/build.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
AWSProviderSettings,
|
|
4
4
|
CloudProvider,
|
|
5
5
|
LudeoCastProviderSettings,
|
|
6
|
+
LudeoCastV2ProviderSettings,
|
|
6
7
|
} from "./cloud";
|
|
7
8
|
import * as GameLift from "@aws-sdk/client-gameliftstreams";
|
|
8
9
|
|
|
@@ -95,17 +96,14 @@ export class LudeocastDistributions {
|
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
export class LudeocastV2DistributionData {
|
|
98
|
-
|
|
99
|
-
snapshotName: string;
|
|
100
|
-
|
|
101
|
-
@IsArray()
|
|
102
|
-
@IsString({ each: true })
|
|
103
|
-
storageLocations: string[]; // Multi-regional storage locations (e.g., ["us", "eu", "asia"])
|
|
99
|
+
name: string;
|
|
104
100
|
}
|
|
105
101
|
|
|
106
102
|
export class LudeocastV2Artifacts {}
|
|
107
103
|
|
|
108
|
-
export class LudeocastV2Distributions
|
|
104
|
+
export class LudeocastV2Distributions {
|
|
105
|
+
[region: string]: LudeocastV2DistributionData;
|
|
106
|
+
}
|
|
109
107
|
|
|
110
108
|
export type Distributions = AwsDistributions | LudeocastDistributions | LudeocastV2Distributions;
|
|
111
109
|
|
|
@@ -174,6 +172,7 @@ export class BuildAssignmentProvidersSettings {
|
|
|
174
172
|
[CloudProvider.GAMELIFT]?: AwsBuildAssignmentSettings;
|
|
175
173
|
[CloudProvider.AWS]?: AwsBuildAssignmentSettings;
|
|
176
174
|
[CloudProvider.LUDEOCAST]?: LudeoCastBuildAssignmentSettings;
|
|
175
|
+
[CloudProvider.LUDEOCAST_V2]?: LudeoCastV2BuildAssignmentSettings;
|
|
177
176
|
}
|
|
178
177
|
|
|
179
178
|
export class LudeoCastBuildAssignmentSettings {
|
|
@@ -184,6 +183,10 @@ export class AwsBuildAssignmentSettings {
|
|
|
184
183
|
[region: string]: AWSProviderSettings;
|
|
185
184
|
}
|
|
186
185
|
|
|
186
|
+
export class LudeoCastV2BuildAssignmentSettings {
|
|
187
|
+
[region: string]: LudeoCastV2ProviderSettings[];
|
|
188
|
+
}
|
|
189
|
+
|
|
187
190
|
export enum StreamGroupStatus {
|
|
188
191
|
ACTIVATING = "ACTIVATING",
|
|
189
192
|
ACTIVE = "ACTIVE",
|
|
@@ -228,7 +231,8 @@ export class BuildsAssignmentsData {
|
|
|
228
231
|
|
|
229
232
|
export type BuildAssignmentProviderSettings =
|
|
230
233
|
| AwsBuildAssignmentSettings
|
|
231
|
-
| LudeoCastBuildAssignmentSettings
|
|
234
|
+
| LudeoCastBuildAssignmentSettings
|
|
235
|
+
| LudeoCastV2BuildAssignmentSettings;
|
|
232
236
|
|
|
233
237
|
export class BuildAssignmentData {
|
|
234
238
|
buildVersion: string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { LudeocastV2Distributions } from '../build';
|
|
3
|
+
|
|
4
|
+
export class CreateBuildDistributionRequestDto {
|
|
5
|
+
@IsString()
|
|
6
|
+
downloadURL: string; // S3 URL (e.g., s3://bucket/path)
|
|
7
|
+
|
|
8
|
+
@IsNumber()
|
|
9
|
+
sizeGB: number;
|
|
10
|
+
|
|
11
|
+
@IsString()
|
|
12
|
+
buildId: string; // Build ID for distribution naming (e.g., 'build-{buildId}')
|
|
13
|
+
|
|
14
|
+
@IsArray()
|
|
15
|
+
@IsString({ each: true })
|
|
16
|
+
regions: string[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class CreateBuildDistributionResponseDto {
|
|
20
|
+
status: 'success' | 'error';
|
|
21
|
+
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsString()
|
|
24
|
+
message?: string;
|
|
25
|
+
|
|
26
|
+
@IsOptional()
|
|
27
|
+
distributions?: LudeocastV2Distributions;
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
2
|
export * from "./create-machine.dto";
|
|
3
3
|
export * from "./create-game.dto";
|
|
4
|
-
export * from "./create-
|
|
5
|
-
export * from "./terminate-build-
|
|
4
|
+
export * from "./create-distribution.dto";
|
|
5
|
+
export * from "./terminate-build-distribution.dto";
|
|
6
6
|
export * from "./terminate-machine.dto";
|
|
7
7
|
export * from "./terminate-game.dto";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { IsArray, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import {
|
|
3
|
+
import { LudeocastV2Distributions } from '../build';
|
|
4
4
|
|
|
5
|
-
export class
|
|
5
|
+
export class TerminateBuildDistributionRequestDto {
|
|
6
6
|
@IsString()
|
|
7
7
|
buildId: string;
|
|
8
8
|
|
|
9
9
|
@IsOptional()
|
|
10
|
-
@ValidateNestedType(() =>
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
@ValidateNestedType(() => LudeocastV2Distributions)
|
|
11
|
+
distributions?: LudeocastV2Distributions;
|
|
13
12
|
|
|
14
13
|
@IsOptional()
|
|
15
14
|
@IsArray()
|