@ludeo/cloud-common 1.2.77 → 1.2.79-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-job-failed.d.ts +13 -0
- package/dist/v4/events/{build-distribution-failed-response.js → build-artifacts-job-failed.js} +14 -14
- package/dist/v4/events/build-artifacts-job-failed.js.map +1 -0
- package/dist/v4/events/build-artifacts-job-finished.d.ts +15 -0
- package/dist/v4/events/{build-distributed-successfully.js → build-artifacts-job-finished.js} +16 -16
- package/dist/v4/events/build-artifacts-job-finished.js.map +1 -0
- package/dist/v4/events/build-created.d.ts +11 -0
- package/dist/v4/events/build-created.js +41 -0
- package/dist/v4/events/build-created.js.map +1 -0
- package/dist/v4/events/build-distributed.d.ts +11 -0
- package/dist/v4/events/build-distributed.js +41 -0
- package/dist/v4/events/build-distributed.js.map +1 -0
- package/dist/v4/events/{build-distribution-failed-response.d.ts → build-distribution-job-failed.d.ts} +5 -5
- package/dist/v4/events/build-distribution-job-failed.js +46 -0
- package/dist/v4/events/build-distribution-job-failed.js.map +1 -0
- package/dist/v4/events/build-distribution-job-finished.d.ts +14 -0
- package/dist/v4/events/build-distribution-job-finished.js +50 -0
- package/dist/v4/events/build-distribution-job-finished.js.map +1 -0
- package/dist/v4/events/create-build-artifacts-job.d.ts +14 -0
- package/dist/v4/events/create-build-artifacts-job.js +47 -0
- package/dist/v4/events/create-build-artifacts-job.js.map +1 -0
- package/dist/v4/events/{distribute-build-request.d.ts → distribute-build-job.d.ts} +5 -5
- package/dist/v4/events/{distribute-build-request.js → distribute-build-job.js} +14 -14
- package/dist/v4/events/distribute-build-job.js.map +1 -0
- package/dist/v4/events/index.d.ts +9 -3
- package/dist/v4/events/index.js +9 -3
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/post-game-creation-delay-task.d.ts +11 -0
- package/dist/v4/events/post-game-creation-delay-task.js +40 -0
- package/dist/v4/events/post-game-creation-delay-task.js.map +1 -0
- package/dist/v4/types/build.d.ts +41 -27
- package/dist/v4/types/build.js +36 -6
- package/dist/v4/types/build.js.map +1 -1
- package/dist/v4/types/pools/configuration/game.d.ts +1 -1
- package/dist/v4/types/pools/configuration/game.js +1 -1
- package/dist/v4/types/pools/configuration/game.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/build-artifacts-job-failed.ts +29 -0
- package/src/v4/events/build-artifacts-job-finished.ts +36 -0
- package/src/v4/events/build-created.ts +25 -0
- package/src/v4/events/build-distributed.ts +25 -0
- package/src/v4/events/{build-distribution-failed-response.ts → build-distribution-job-failed.ts} +7 -8
- package/src/v4/events/build-distribution-job-finished.ts +35 -0
- package/src/v4/events/create-build-artifacts-job.ts +30 -0
- package/src/v4/events/{distribute-build-request.ts → distribute-build-job.ts} +7 -7
- package/src/v4/events/index.ts +9 -3
- package/src/v4/events/post-game-creation-delay-task.ts +27 -0
- package/src/v4/types/build.ts +43 -27
- package/src/v4/types/pools/configuration/game.ts +1 -1
- package/dist/v4/events/build-distributed-successfully.d.ts +0 -15
- package/dist/v4/events/build-distributed-successfully.js.map +0 -1
- package/dist/v4/events/build-distribution-failed-response.js.map +0 -1
- package/dist/v4/events/distribute-build-request.js.map +0 -1
- package/src/v4/events/build-distributed-successfully.ts +0 -36
package/src/v4/types/build.ts
CHANGED
|
@@ -6,8 +6,9 @@ export enum BuildStatus {
|
|
|
6
6
|
DISTRIBUTING = "distributing",
|
|
7
7
|
DISTRIBUTED = "distributed",
|
|
8
8
|
FAILED = "failed",
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
CREATING_ARTIFACTS = "creating-artifacts",
|
|
10
|
+
ARTIFACTS_CREATED = "artifacts-created",
|
|
11
|
+
ASSIGNED = "assigned",
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export enum DistributionStatus {
|
|
@@ -16,54 +17,55 @@ export enum DistributionStatus {
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export enum ArtifactStatus {
|
|
19
|
-
|
|
20
|
+
READY = "ready",
|
|
20
21
|
CREATED = "created",
|
|
22
|
+
FAILED = "failed",
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
export
|
|
25
|
+
export class BuildMetadata {
|
|
24
26
|
studioId: string;
|
|
25
27
|
gameId: string;
|
|
26
28
|
versionId: string;
|
|
27
29
|
friendlyName?: string;
|
|
28
|
-
}
|
|
30
|
+
}
|
|
29
31
|
|
|
30
|
-
export
|
|
32
|
+
export class AwsArtifactData {
|
|
31
33
|
basePath: string;
|
|
32
34
|
executeableLaunchPath: string;
|
|
33
|
-
|
|
35
|
+
runtimeEnvironmentConfigurationMap: RuntimeEnvironmentConfigurationMap;
|
|
34
36
|
applicationName: string;
|
|
35
37
|
applicationIdentifier?: string;
|
|
36
38
|
status?: ArtifactStatus;
|
|
37
|
-
}
|
|
39
|
+
}
|
|
38
40
|
|
|
39
|
-
export
|
|
41
|
+
export class GamecastRuntimeEnvironment {
|
|
42
|
+
Type: string;
|
|
43
|
+
Version: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class AwsDistributionData {
|
|
40
47
|
path: string; // URL or path to the build in the specific region
|
|
41
|
-
|
|
42
|
-
};
|
|
48
|
+
}
|
|
43
49
|
|
|
44
|
-
export
|
|
50
|
+
export class AwsDistributions {
|
|
45
51
|
[region: string]: AwsDistributionData;
|
|
46
|
-
}
|
|
52
|
+
}
|
|
47
53
|
|
|
48
|
-
export type
|
|
49
|
-
[region: string]: AwsArtifactData;
|
|
50
|
-
};
|
|
54
|
+
export type Distributions = AwsDistributions;
|
|
51
55
|
|
|
52
|
-
export
|
|
53
|
-
[
|
|
54
|
-
}
|
|
56
|
+
export class AwsArtifacts {
|
|
57
|
+
[region: string]: AwsArtifactData;
|
|
58
|
+
}
|
|
55
59
|
|
|
56
|
-
export type
|
|
57
|
-
[CloudProvider.AWS]: AwsDistributions;
|
|
58
|
-
};
|
|
60
|
+
export type Artifacts = AwsArtifacts;
|
|
59
61
|
|
|
60
|
-
export
|
|
62
|
+
export class BuildProviderSettings {
|
|
61
63
|
[CloudProvider.AWS]: {
|
|
62
64
|
status?: BuildStatus;
|
|
63
65
|
artifacts?: AwsArtifacts;
|
|
64
66
|
distributions?: AwsDistributions;
|
|
65
67
|
};
|
|
66
|
-
}
|
|
68
|
+
}
|
|
67
69
|
|
|
68
70
|
export class CloudBuild {
|
|
69
71
|
id: string;
|
|
@@ -72,11 +74,25 @@ export class CloudBuild {
|
|
|
72
74
|
status: BuildStatus;
|
|
73
75
|
centralizedPath?: string;
|
|
74
76
|
meta?: BuildMetadata;
|
|
77
|
+
creationInput?: BuildCreationInput;
|
|
75
78
|
providers?: Partial<BuildProviderSettings>;
|
|
76
79
|
}
|
|
77
80
|
|
|
78
|
-
export class
|
|
79
|
-
|
|
81
|
+
export class BuildCreationInput {
|
|
82
|
+
applicationName: string;
|
|
83
|
+
basePath: string;
|
|
84
|
+
executeableLaunchPath: string;
|
|
85
|
+
runtimeEnvironment: RuntimeEnvironment;
|
|
86
|
+
logPath?: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export enum RuntimeEnvironment {
|
|
90
|
+
WINDOWS = "windows",
|
|
91
|
+
NVIDIA_ULTRA = "nvidiaUltra",
|
|
92
|
+
NVIDIA_HIGH = "nvidiaHigh",
|
|
80
93
|
}
|
|
81
94
|
|
|
82
|
-
export
|
|
95
|
+
export interface RuntimeEnvironmentConfigurationMap {
|
|
96
|
+
streamClass: string;
|
|
97
|
+
runtimeEnvironment: GamecastRuntimeEnvironment;
|
|
98
|
+
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BuildContext } from "../contexts/build-context";
|
|
2
|
-
import { CloudProvider } from "../types";
|
|
3
|
-
import { DistributorResponse } from "../types/build";
|
|
4
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-distributed-successfully.js","sourceRoot":"","sources":["../../../src/v4/events/build-distributed-successfully.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,6DAAyD;AACzD,oCAAyC;AACzC,0CAA6E;AAC7E,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAPC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAsB,CAAC;;gFACR;AAGzC;IADC,IAAA,wBAAM,GAAE;;oEACO;AAGlB,MAAa,4BAA6B,SAAQ,wBAAU;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,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;6DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-distribution-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/build-distribution-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,sCAAsC;CAMlD;AAND,wFAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;6EACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;uEACO;AAGlB,MAAa,+BAAgC,SAAQ,wBAAU;IAI7D,YACE,OAA+C,EAC/C,OAAqB;QAErB,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,0EAkBC;AAjBiB,0CAAU,GACxB,iDAAiD,CAAC;AAYpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;gEAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;8BACxD,sCAAsC;gEAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"distribute-build-request.js","sourceRoot":"","sources":["../../../src/v4/events/distribute-build-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,oCAAyC;AACzC,6DAAyD;AACzD,0CAA4C;AAC5C,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;4DAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;oEACO;AAG/B,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YAAY,OAAsC,EAAE,OAAqB;QACvE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,wDAcC;AAbiB,iCAAU,GAAG,uCAAuC,CAAC;AASrE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;uDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IsEnum, IsUUID } from "class-validator";
|
|
2
|
-
import { BuildContext } from "../contexts/build-context";
|
|
3
|
-
import { CloudProvider } from "../types";
|
|
4
|
-
import { AwsDistributorResponse, DistributorResponse } from "../types/build";
|
|
5
|
-
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
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
|
-
}
|