@ludeo/cloud-common 1.2.257 → 1.2.258-ygbeta2
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/types/cloud/cloud-configuration-settings.d.ts +12 -1
- package/dist/v4/types/cloud/cloud-configuration-settings.js +14 -2
- package/dist/v4/types/cloud/cloud-configuration-settings.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/types/cloud/cloud-configuration-settings.ts +22 -3
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { LudeoCastV2MachineClass } from "./ludeocast-v2";
|
|
2
|
+
export declare enum CloudScalingMode {
|
|
3
|
+
MARKETING = "Marketing",
|
|
4
|
+
AUTO_SCALING = "Auto Scaling"
|
|
5
|
+
}
|
|
2
6
|
export declare enum CloudSettingsKeys {
|
|
3
7
|
GAME_LOADING_TIME = "gameLoadingTime",
|
|
4
8
|
FIRST_TIME_LUDEO_LOAD = "firstTimeLudeoLoad",
|
|
@@ -7,7 +11,8 @@ export declare enum CloudSettingsKeys {
|
|
|
7
11
|
ADDITIONAL_LAUNCH_ARGS = "additionalLaunchArgs",
|
|
8
12
|
ADDITIONAL_ENVIRONMENT_VARIABLES = "additionalEnvironmentVariables",
|
|
9
13
|
MACHINE_CLASS_PRIORITY = "machineClassPriority",
|
|
10
|
-
SPOT_ROLLOUT = "spotRollout"
|
|
14
|
+
SPOT_ROLLOUT = "spotRollout",
|
|
15
|
+
SCALING = "scaling"
|
|
11
16
|
}
|
|
12
17
|
export interface CloudSettingsTypeMap {
|
|
13
18
|
[CloudSettingsKeys.GAME_LOADING_TIME]: number;
|
|
@@ -18,6 +23,7 @@ export interface CloudSettingsTypeMap {
|
|
|
18
23
|
[CloudSettingsKeys.ADDITIONAL_ENVIRONMENT_VARIABLES]: Record<string, string>;
|
|
19
24
|
[CloudSettingsKeys.MACHINE_CLASS_PRIORITY]: LudeoCastV2MachineClass[];
|
|
20
25
|
[CloudSettingsKeys.SPOT_ROLLOUT]: number;
|
|
26
|
+
[CloudSettingsKeys.SCALING]: CloudScalingMode;
|
|
21
27
|
}
|
|
22
28
|
export declare const MACHINE_CLASS_PRIORITY_DEFAULT_VALUES: LudeoCastV2MachineClass[];
|
|
23
29
|
export type CloudSettings = {
|
|
@@ -49,5 +55,10 @@ export type CloudSettingConfig = {
|
|
|
49
55
|
key: CloudSettingsKeys;
|
|
50
56
|
displayKey: string;
|
|
51
57
|
defaultValue: LudeoCastV2MachineClass[];
|
|
58
|
+
} | {
|
|
59
|
+
type: "enum";
|
|
60
|
+
key: CloudSettingsKeys;
|
|
61
|
+
displayKey: string;
|
|
62
|
+
defaultValue: CloudScalingMode;
|
|
52
63
|
};
|
|
53
64
|
export declare const CLOUD_SETTINGS_DEFAULT_VALUES: Record<CloudSettingsKeys, CloudSettingConfig>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CLOUD_SETTINGS_DEFAULT_VALUES = exports.getCloudSettingsByKey = exports.MACHINE_CLASS_PRIORITY_DEFAULT_VALUES = exports.CloudSettingsKeys = void 0;
|
|
3
|
+
exports.CLOUD_SETTINGS_DEFAULT_VALUES = exports.getCloudSettingsByKey = exports.MACHINE_CLASS_PRIORITY_DEFAULT_VALUES = exports.CloudSettingsKeys = exports.CloudScalingMode = void 0;
|
|
4
4
|
const ludeocast_v2_1 = require("./ludeocast-v2");
|
|
5
|
+
var CloudScalingMode;
|
|
6
|
+
(function (CloudScalingMode) {
|
|
7
|
+
CloudScalingMode["MARKETING"] = "Marketing";
|
|
8
|
+
CloudScalingMode["AUTO_SCALING"] = "Auto Scaling";
|
|
9
|
+
})(CloudScalingMode || (exports.CloudScalingMode = CloudScalingMode = {}));
|
|
5
10
|
var CloudSettingsKeys;
|
|
6
11
|
(function (CloudSettingsKeys) {
|
|
7
12
|
CloudSettingsKeys["GAME_LOADING_TIME"] = "gameLoadingTime";
|
|
@@ -12,6 +17,7 @@ var CloudSettingsKeys;
|
|
|
12
17
|
CloudSettingsKeys["ADDITIONAL_ENVIRONMENT_VARIABLES"] = "additionalEnvironmentVariables";
|
|
13
18
|
CloudSettingsKeys["MACHINE_CLASS_PRIORITY"] = "machineClassPriority";
|
|
14
19
|
CloudSettingsKeys["SPOT_ROLLOUT"] = "spotRollout";
|
|
20
|
+
CloudSettingsKeys["SCALING"] = "scaling";
|
|
15
21
|
})(CloudSettingsKeys || (exports.CloudSettingsKeys = CloudSettingsKeys = {}));
|
|
16
22
|
exports.MACHINE_CLASS_PRIORITY_DEFAULT_VALUES = [
|
|
17
23
|
ludeocast_v2_1.LudeoCastV2MachineClass.N1_STANDARD_8,
|
|
@@ -75,7 +81,7 @@ exports.CLOUD_SETTINGS_DEFAULT_VALUES = {
|
|
|
75
81
|
type: "array",
|
|
76
82
|
key: CloudSettingsKeys.MACHINE_CLASS_PRIORITY,
|
|
77
83
|
displayKey: "Machine Class Priority",
|
|
78
|
-
defaultValue: exports.MACHINE_CLASS_PRIORITY_DEFAULT_VALUES
|
|
84
|
+
defaultValue: exports.MACHINE_CLASS_PRIORITY_DEFAULT_VALUES,
|
|
79
85
|
},
|
|
80
86
|
[CloudSettingsKeys.SPOT_ROLLOUT]: {
|
|
81
87
|
type: "number",
|
|
@@ -83,5 +89,11 @@ exports.CLOUD_SETTINGS_DEFAULT_VALUES = {
|
|
|
83
89
|
displayKey: "Spot Rollout (%)",
|
|
84
90
|
defaultValue: 100,
|
|
85
91
|
},
|
|
92
|
+
[CloudSettingsKeys.SCALING]: {
|
|
93
|
+
type: "enum",
|
|
94
|
+
key: CloudSettingsKeys.SCALING,
|
|
95
|
+
displayKey: "Scaling",
|
|
96
|
+
defaultValue: CloudScalingMode.AUTO_SCALING,
|
|
97
|
+
},
|
|
86
98
|
};
|
|
87
99
|
//# sourceMappingURL=cloud-configuration-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-configuration-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/cloud-configuration-settings.ts"],"names":[],"mappings":";;;AAAA,iDAAyD;
|
|
1
|
+
{"version":3,"file":"cloud-configuration-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/cloud-configuration-settings.ts"],"names":[],"mappings":";;;AAAA,iDAAyD;AAGzD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,iBAUX;AAVD,WAAY,iBAAiB;IAC3B,0DAAqC,CAAA;IACrC,iEAA4C,CAAA;IAC5C,uEAAkD,CAAA;IAClD,+DAA0C,CAAA;IAC1C,oEAA+C,CAAA;IAC/C,wFAAmE,CAAA;IACnE,oEAA+C,CAAA;IAC/C,iDAA4B,CAAA;IAC5B,wCAAmB,CAAA;AACrB,CAAC,EAVW,iBAAiB,iCAAjB,iBAAiB,QAU5B;AAeY,QAAA,qCAAqC,GAAG;IACnD,sCAAuB,CAAC,aAAa;IACrC,sCAAuB,CAAC,YAAY;IACpC,sCAAuB,CAAC,cAAc;IACtC,sCAAuB,CAAC,YAAY;IACpC,sCAAuB,CAAC,UAAU;IAClC,sCAAuB,CAAC,UAAU;IAClC,sCAAuB,CAAC,cAAc;IACtC,sCAAuB,CAAC,UAAU;IAClC,sCAAuB,CAAC,UAAU;IAClC,sCAAuB,CAAC,WAAW;IACnC,sCAAuB,CAAC,WAAW;IACnC,sCAAuB,CAAC,cAAc;IACtC,sCAAuB,CAAC,WAAW;IACnC,sCAAuB,CAAC,WAAW;CAEpC,CAAC;AASK,MAAM,qBAAqB,GAAG,CACnC,GAAM,EACN,aAA4B,EACH,EAAE;IAC3B,MAAM,GAAG,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IAC/B,OAAO,CAAC,GAAG,IAAI,qCAA6B,CAAC,GAAG,CA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C,UAAU,EAAE,wBAAwB;QACpC,YAAY,EAAE,6CAAqC;KACpD;IACD,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE;QAChC,IAAI,EAAE,QAAQ;QACd,GAAG,EAAE,iBAAiB,CAAC,YAAY;QACnC,UAAU,EAAE,kBAAkB;QAC9B,YAAY,EAAE,GAAG;KAClB;IACD,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE;QAC3B,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,iBAAiB,CAAC,OAAO;QAC9B,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,gBAAgB,CAAC,YAAY;KAC5C;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { LudeoCastV2MachineClass } from "./ludeocast-v2";
|
|
2
2
|
|
|
3
|
+
/** Stored values match UI labels for persistence and APIs. */
|
|
4
|
+
export enum CloudScalingMode {
|
|
5
|
+
MARKETING = "Marketing",
|
|
6
|
+
AUTO_SCALING = "Auto Scaling",
|
|
7
|
+
}
|
|
8
|
+
|
|
3
9
|
export enum CloudSettingsKeys {
|
|
4
10
|
GAME_LOADING_TIME = "gameLoadingTime",
|
|
5
11
|
FIRST_TIME_LUDEO_LOAD = "firstTimeLudeoLoad",
|
|
@@ -9,6 +15,7 @@ export enum CloudSettingsKeys {
|
|
|
9
15
|
ADDITIONAL_ENVIRONMENT_VARIABLES = "additionalEnvironmentVariables",
|
|
10
16
|
MACHINE_CLASS_PRIORITY = "machineClassPriority",
|
|
11
17
|
SPOT_ROLLOUT = "spotRollout",
|
|
18
|
+
SCALING = "scaling",
|
|
12
19
|
}
|
|
13
20
|
|
|
14
21
|
// Define the mapping of setting keys to their actual value types
|
|
@@ -21,9 +28,9 @@ export interface CloudSettingsTypeMap {
|
|
|
21
28
|
[CloudSettingsKeys.ADDITIONAL_ENVIRONMENT_VARIABLES]: Record<string, string>;
|
|
22
29
|
[CloudSettingsKeys.MACHINE_CLASS_PRIORITY]: LudeoCastV2MachineClass[];
|
|
23
30
|
[CloudSettingsKeys.SPOT_ROLLOUT]: number;
|
|
31
|
+
[CloudSettingsKeys.SCALING]: CloudScalingMode;
|
|
24
32
|
}
|
|
25
33
|
|
|
26
|
-
|
|
27
34
|
export const MACHINE_CLASS_PRIORITY_DEFAULT_VALUES = [
|
|
28
35
|
LudeoCastV2MachineClass.N1_STANDARD_8,
|
|
29
36
|
LudeoCastV2MachineClass.G4DN_2XLARGE,
|
|
@@ -88,6 +95,12 @@ export type CloudSettingConfig =
|
|
|
88
95
|
key: CloudSettingsKeys;
|
|
89
96
|
displayKey: string;
|
|
90
97
|
defaultValue: LudeoCastV2MachineClass[];
|
|
98
|
+
}
|
|
99
|
+
| {
|
|
100
|
+
type: "enum";
|
|
101
|
+
key: CloudSettingsKeys;
|
|
102
|
+
displayKey: string;
|
|
103
|
+
defaultValue: CloudScalingMode;
|
|
91
104
|
};
|
|
92
105
|
|
|
93
106
|
export const CLOUD_SETTINGS_DEFAULT_VALUES: Record<
|
|
@@ -134,7 +147,7 @@ export const CLOUD_SETTINGS_DEFAULT_VALUES: Record<
|
|
|
134
147
|
type: "array",
|
|
135
148
|
key: CloudSettingsKeys.MACHINE_CLASS_PRIORITY,
|
|
136
149
|
displayKey: "Machine Class Priority",
|
|
137
|
-
defaultValue: MACHINE_CLASS_PRIORITY_DEFAULT_VALUES
|
|
150
|
+
defaultValue: MACHINE_CLASS_PRIORITY_DEFAULT_VALUES,
|
|
138
151
|
},
|
|
139
152
|
[CloudSettingsKeys.SPOT_ROLLOUT]: {
|
|
140
153
|
type: "number",
|
|
@@ -142,4 +155,10 @@ export const CLOUD_SETTINGS_DEFAULT_VALUES: Record<
|
|
|
142
155
|
displayKey: "Spot Rollout (%)",
|
|
143
156
|
defaultValue: 100,
|
|
144
157
|
},
|
|
145
|
-
|
|
158
|
+
[CloudSettingsKeys.SCALING]: {
|
|
159
|
+
type: "enum",
|
|
160
|
+
key: CloudSettingsKeys.SCALING,
|
|
161
|
+
displayKey: "Scaling",
|
|
162
|
+
defaultValue: CloudScalingMode.AUTO_SCALING,
|
|
163
|
+
},
|
|
164
|
+
};
|