@ludeo/cloud-common 1.2.188-ygbeta-0 → 1.2.189-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/site-controller/machine-ludeocast-creation-ended.d.ts +3 -1
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +4 -0
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js.map +1 -1
- package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.d.ts +5 -1
- package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js +22 -1
- package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js.map +1 -1
- package/dist/v4/types/cloud/machine-provider-settings.d.ts +2 -1
- package/dist/v4/types/site-controller/types.d.ts +5 -3
- package/dist/v4/types/site-controller/types.js +0 -1
- package/dist/v4/types/site-controller/types.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +5 -1
- package/src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts +19 -2
- package/src/v4/types/cloud/machine-provider-settings.ts +4 -1
- package/src/v4/types/site-controller/types.ts +27 -27
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { CloudResourceContext } from '../../contexts';
|
|
3
3
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
-
import { CloudResourceStatus } from '../../types/pools';
|
|
4
|
+
import { CloudResourceStatus, MachineResourceSettings } from '../../types/pools';
|
|
5
|
+
import { MachineResourceProviderSettings } from '../../types/cloud/machine-provider-settings';
|
|
5
6
|
export declare class MachineLudeocastCreationEndedPayload {
|
|
6
7
|
machineResourceId: string;
|
|
7
8
|
machinePoolId: string;
|
|
8
9
|
operationStatus: SiteOperationStatus;
|
|
9
10
|
status: CloudResourceStatus;
|
|
10
11
|
reason?: string;
|
|
12
|
+
machineResourceSettings?: MachineResourceSettings<MachineResourceProviderSettings>;
|
|
11
13
|
}
|
|
12
14
|
export declare class MachineLudeocastCreationEnded extends LudeoEvent {
|
|
13
15
|
static readonly EVENT_NAME = "site-controller.machine-ludeocast-creation-ended";
|
|
@@ -40,6 +40,10 @@ __decorate([
|
|
|
40
40
|
(0, class_validator_1.IsString)(),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], MachineLudeocastCreationEndedPayload.prototype, "reason", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", pools_1.MachineResourceSettings)
|
|
46
|
+
], MachineLudeocastCreationEndedPayload.prototype, "machineResourceSettings", void 0);
|
|
43
47
|
class MachineLudeocastCreationEnded extends infra_1.LudeoEvent {
|
|
44
48
|
constructor(payload, context) {
|
|
45
49
|
super(MachineLudeocastCreationEnded.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAiF;AAGjF,MAAa,oCAAoC;CAmBhD;AAnBD,oFAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGhB;IADC,IAAA,4BAAU,GAAE;8BACa,+BAAuB;qFAAiC;AAGpF,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
|
|
@@ -15,7 +15,28 @@ class LudeoCastV2MachineResourceProviderSettings {
|
|
|
15
15
|
}
|
|
16
16
|
exports.LudeoCastV2MachineResourceProviderSettings = LudeoCastV2MachineResourceProviderSettings;
|
|
17
17
|
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
18
19
|
(0, class_validator_1.IsString)(),
|
|
19
20
|
__metadata("design:type", String)
|
|
20
|
-
], LudeoCastV2MachineResourceProviderSettings.prototype, "
|
|
21
|
+
], LudeoCastV2MachineResourceProviderSettings.prototype, "region", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], LudeoCastV2MachineResourceProviderSettings.prototype, "site", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], LudeoCastV2MachineResourceProviderSettings.prototype, "zone", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], LudeoCastV2MachineResourceProviderSettings.prototype, "publicIp", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], LudeoCastV2MachineResourceProviderSettings.prototype, "url", void 0);
|
|
21
42
|
//# sourceMappingURL=machine-provider-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"machine-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,0CAA0C;CAoBtD;AApBD,gGAoBC;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0EACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wEACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wEACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4EACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uEACE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { MockMachineResourceProviderSettings } from "./mock";
|
|
2
2
|
import { LudeoCastMachineResourceProviderSettings } from "./ludeocast";
|
|
3
|
-
|
|
3
|
+
import { LudeoCastV2MachineResourceProviderSettings } from "./ludeocast-v2/machine-provider-settings";
|
|
4
|
+
export type MachineResourceProviderSettings = MockMachineResourceProviderSettings | LudeoCastMachineResourceProviderSettings | LudeoCastV2MachineResourceProviderSettings;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { LudeocastV2DistributionData } from
|
|
1
|
+
import { LudeocastV2DistributionData } from '../build';
|
|
2
|
+
import { MachineResourceSettings } from '../pools';
|
|
3
|
+
import { MachineResourceProviderSettings } from '../cloud';
|
|
2
4
|
export declare enum MachineMode {
|
|
3
5
|
PROTON = "proton",
|
|
4
|
-
ANDROID = "android"
|
|
5
|
-
PROTON_V2 = "proton-v2"
|
|
6
|
+
ANDROID = "android"
|
|
6
7
|
}
|
|
7
8
|
export declare class ProtonGameCreationPayload {
|
|
8
9
|
exeRelativePath: string;
|
|
@@ -46,6 +47,7 @@ export interface SiteAdapterStatusPayload {
|
|
|
46
47
|
}
|
|
47
48
|
export interface MachineSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
48
49
|
reason?: MachineStatusReason;
|
|
50
|
+
machineResourceSettings?: MachineResourceSettings<MachineResourceProviderSettings>;
|
|
49
51
|
}
|
|
50
52
|
export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
51
53
|
reason?: GameStatusReason;
|
|
@@ -15,7 +15,6 @@ var MachineMode;
|
|
|
15
15
|
(function (MachineMode) {
|
|
16
16
|
MachineMode["PROTON"] = "proton";
|
|
17
17
|
MachineMode["ANDROID"] = "android";
|
|
18
|
-
MachineMode["PROTON_V2"] = "proton-v2";
|
|
19
18
|
})(MachineMode || (exports.MachineMode = MachineMode = {}));
|
|
20
19
|
class ProtonGameCreationPayload {
|
|
21
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;
|
|
1
|
+
{"version":3,"file":"types.js","s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AY,eAAe;IACzB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;AAC7B,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,8 @@ import { ValidateNestedType } from '../../../decorators';
|
|
|
3
3
|
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
4
|
import { CloudResourceContext } from '../../contexts';
|
|
5
5
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
-
import { CloudResourceStatus } from '../../types/pools';
|
|
6
|
+
import { CloudResourceStatus, MachineResourceSettings } from '../../types/pools';
|
|
7
|
+
import { MachineResourceProviderSettings } from '../../types/cloud/machine-provider-settings';
|
|
7
8
|
|
|
8
9
|
export class MachineLudeocastCreationEndedPayload {
|
|
9
10
|
@IsUUID()
|
|
@@ -21,6 +22,9 @@ export class MachineLudeocastCreationEndedPayload {
|
|
|
21
22
|
@IsOptional()
|
|
22
23
|
@IsString()
|
|
23
24
|
reason?: string;
|
|
25
|
+
|
|
26
|
+
@IsOptional()
|
|
27
|
+
machineResourceSettings?: MachineResourceSettings<MachineResourceProviderSettings>
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
export class MachineLudeocastCreationEnded extends LudeoEvent {
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import { IsString } from "class-validator";
|
|
1
|
+
import { IsOptional, IsString } from "class-validator";
|
|
2
2
|
|
|
3
3
|
export class LudeoCastV2MachineResourceProviderSettings {
|
|
4
|
+
@IsOptional()
|
|
4
5
|
@IsString()
|
|
5
|
-
|
|
6
|
+
region?: string;
|
|
7
|
+
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsString()
|
|
10
|
+
site?: string;
|
|
11
|
+
|
|
12
|
+
@IsOptional()
|
|
13
|
+
@IsString()
|
|
14
|
+
zone?: string;
|
|
15
|
+
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsString()
|
|
18
|
+
publicIp?: string;
|
|
19
|
+
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsString()
|
|
22
|
+
url?: string;
|
|
6
23
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { MockMachineResourceProviderSettings } from "./mock";
|
|
2
2
|
import { LudeoCastMachineResourceProviderSettings } from "./ludeocast";
|
|
3
|
+
import { LudeoCastV2MachineResourceProviderSettings } from "./ludeocast-v2/machine-provider-settings";
|
|
3
4
|
|
|
4
5
|
export type MachineResourceProviderSettings =
|
|
5
6
|
| MockMachineResourceProviderSettings
|
|
6
|
-
| LudeoCastMachineResourceProviderSettings
|
|
7
|
+
| LudeoCastMachineResourceProviderSettings
|
|
8
|
+
| LudeoCastV2MachineResourceProviderSettings
|
|
9
|
+
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { IsString, IsOptional, IsObject, IsArray } from
|
|
2
|
-
import { LudeocastV2DistributionData } from
|
|
1
|
+
import { IsString, IsOptional, IsObject, IsArray } from 'class-validator';
|
|
2
|
+
import { LudeocastV2DistributionData } from '../build';
|
|
3
|
+
import { MachineResourceSettings } from '../pools';
|
|
4
|
+
import { MachineResourceProviderSettings } from '../cloud';
|
|
3
5
|
|
|
4
6
|
export enum MachineMode {
|
|
5
|
-
PROTON =
|
|
6
|
-
ANDROID =
|
|
7
|
-
PROTON_V2 = "proton-v2",
|
|
7
|
+
PROTON = 'proton',
|
|
8
|
+
ANDROID = 'android',
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export class ProtonGameCreationPayload {
|
|
@@ -32,57 +33,56 @@ export class AndroidGameCreationPayload {
|
|
|
32
33
|
additionalEnvironmentVariables?: Record<string, string>;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
export type GameCreationPayload =
|
|
36
|
-
|
|
37
|
-
| AndroidGameCreationPayload;
|
|
36
|
+
export type GameCreationPayload = ProtonGameCreationPayload | AndroidGameCreationPayload;
|
|
37
|
+
|
|
38
38
|
|
|
39
39
|
export enum SiteOperationStatus {
|
|
40
|
-
Success =
|
|
41
|
-
Error =
|
|
40
|
+
Success = 'success',
|
|
41
|
+
Error = 'error',
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export enum MachineStatusReason {
|
|
45
|
-
VMReady =
|
|
46
|
-
AgentReadyForCommands =
|
|
47
|
-
AgentModeInitialized =
|
|
48
|
-
VMTerminated =
|
|
45
|
+
VMReady = 'VMReady',
|
|
46
|
+
AgentReadyForCommands = 'AgentReadyForCommands',
|
|
47
|
+
AgentModeInitialized = 'AgentModeInitialized',
|
|
48
|
+
VMTerminated = 'VMTerminated',
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export enum GameStatusReason {
|
|
52
|
-
DiskAttached =
|
|
53
|
-
GameLaunched =
|
|
54
|
-
GameTerminated =
|
|
55
|
-
DiskDetached =
|
|
52
|
+
DiskAttached = 'DiskAttached',
|
|
53
|
+
GameLaunched = 'GameLaunched',
|
|
54
|
+
GameTerminated = 'GameTerminated',
|
|
55
|
+
DiskDetached = 'DiskDetached',
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export enum AgentRunMode {
|
|
59
|
-
CONTROLLED =
|
|
60
|
-
UNCONTROLLED =
|
|
59
|
+
CONTROLLED = 'controlled',
|
|
60
|
+
UNCONTROLLED = 'uncontrolled',
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export enum SiteAdapterFlow {
|
|
64
|
-
Creation =
|
|
65
|
-
Termination =
|
|
64
|
+
Creation = 'creation',
|
|
65
|
+
Termination = 'termination',
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
|
|
68
69
|
export interface SiteAdapterStatusPayload {
|
|
69
70
|
status: SiteOperationStatus;
|
|
70
71
|
flow: SiteAdapterFlow;
|
|
71
72
|
message?: string;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
export interface MachineSiteAdapterStatusPayload
|
|
75
|
-
extends SiteAdapterStatusPayload {
|
|
75
|
+
export interface MachineSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
76
76
|
reason?: MachineStatusReason;
|
|
77
|
+
machineResourceSettings?: MachineResourceSettings<MachineResourceProviderSettings>;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
80
81
|
reason?: GameStatusReason;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
export interface BuildSnapshotAdapterStatusPayload
|
|
84
|
-
extends SiteAdapterStatusPayload {
|
|
84
|
+
export interface BuildSnapshotAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
85
85
|
buildId?: string;
|
|
86
86
|
distributionData?: LudeocastV2DistributionData;
|
|
87
87
|
envIds?: string[];
|
|
88
|
-
}
|
|
88
|
+
}
|