@ludeo/cloud-common 1.2.33-beta-yahil-6 → 1.2.33-beta-yahil-7
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/allocate-ludeo-resource-request.d.ts +2 -2
- package/dist/v4/events/allocate-ludeo-resource-request.js +3 -3
- package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -1
- package/dist/v4/events/game-allocated-response.d.ts +2 -1
- package/dist/v4/events/game-allocated-response.js +4 -0
- package/dist/v4/events/game-allocated-response.js.map +1 -1
- package/dist/v4/events/load-ludeo-resource.d.ts +2 -1
- package/dist/v4/events/load-ludeo-resource.js +4 -0
- package/dist/v4/events/load-ludeo-resource.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/allocate-ludeo-resource-request.ts +3 -4
- package/src/v4/events/game-allocated-response.ts +4 -0
- package/src/v4/events/load-ludeo-resource.ts +4 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudSessionContext } from "../contexts";
|
|
3
|
-
import { AllocationRequestData, CloudProvider, CloudProviderSettings,
|
|
3
|
+
import { AllocationRequestData, CloudProvider, CloudProviderSettings, GameResourceSettings } from "../types";
|
|
4
4
|
export declare class AllocateLudeoResourceRequestPayload {
|
|
5
5
|
ludeoResourceId: string;
|
|
6
6
|
ludeoPoolId: string;
|
|
7
7
|
providerSettings: CloudProviderSettings;
|
|
8
8
|
cloudProvider: CloudProvider;
|
|
9
9
|
requestData: AllocationRequestData;
|
|
10
|
-
|
|
10
|
+
settings: GameResourceSettings;
|
|
11
11
|
requestedLudeoId: string;
|
|
12
12
|
preloadedLudeoId: string;
|
|
13
13
|
}
|
|
@@ -39,9 +39,9 @@ __decorate([
|
|
|
39
39
|
__metadata("design:type", types_1.AllocationRequestData)
|
|
40
40
|
], AllocateLudeoResourceRequestPayload.prototype, "requestData", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.
|
|
43
|
-
__metadata("design:type",
|
|
44
|
-
], AllocateLudeoResourceRequestPayload.prototype, "
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
43
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
44
|
+
], AllocateLudeoResourceRequestPayload.prototype, "settings", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, class_validator_1.IsUUID)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAMkB;AAElB,MAAa,mCAAmC;CAwB/C;AAxBD,kFAwBC;AAtBC;IADC,IAAA,wBAAM,GAAE;;4EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;wEAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACrC,4BAAoB;qEAAC;AAG/B;IADC,IAAA,wBAAM,GAAE;;6EACgB;AAGzB;IADC,IAAA,wBAAM,GAAE;;6EACgB;AAG3B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA4B;QAE5B,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,8BAAmB,CAAC;8BACrC,8BAAmB;6DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings, GameResourceSettings } from "../types";
|
|
4
4
|
export declare class GameAllocatedResponsePayload {
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
gamePoolId: string;
|
|
@@ -9,6 +9,7 @@ export declare class GameAllocatedResponsePayload {
|
|
|
9
9
|
ludeoId: string;
|
|
10
10
|
providerSettings: CloudProviderSettings;
|
|
11
11
|
gameId: string;
|
|
12
|
+
settings: GameResourceSettings;
|
|
12
13
|
cloudProvider: CloudProvider;
|
|
13
14
|
}
|
|
14
15
|
export declare class GameAllocatedResponse extends LudeoEvent {
|
|
@@ -46,6 +46,10 @@ __decorate([
|
|
|
46
46
|
(0, class_validator_1.IsUUID)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], GameAllocatedResponsePayload.prototype, "gameId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
51
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
52
|
+
], GameAllocatedResponsePayload.prototype, "settings", void 0);
|
|
49
53
|
__decorate([
|
|
50
54
|
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
51
55
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAmD;AACnD,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAmD;AACnD,yDAAqD;AACrD,oCAKkB;AAClB,oGAAqF;AACrF,qDAAiD;AAEjD,MAAa,4BAA4B;CA2BxC;AA3BD,oEA2BC;AAzBC;IADC,IAAA,wBAAM,GAAE;;oEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;qEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;iEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;6DACO;AAGhB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;sEACN;AAGxC;IADC,IAAA,wBAAM,GAAE;;4DACM;AAGf;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACrC,4BAAoB;8DAAC;AAG/B;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;mEACO;AAG/B,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA6B;QAE7B,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sDAiBC;AAhBiB,gCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;sDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
|
-
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings, GameResourceSettings } from "../types";
|
|
4
4
|
export declare class LoadLudeoResourcePayload {
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
gamePoolId: string;
|
|
@@ -9,6 +9,7 @@ export declare class LoadLudeoResourcePayload {
|
|
|
9
9
|
gameId: string;
|
|
10
10
|
ludeoId: string;
|
|
11
11
|
ludeoPoolId: string;
|
|
12
|
+
settings: GameResourceSettings;
|
|
12
13
|
providerSettings: CloudProviderSettings;
|
|
13
14
|
cloudProvider: CloudProvider;
|
|
14
15
|
}
|
|
@@ -46,6 +46,10 @@ __decorate([
|
|
|
46
46
|
(0, class_validator_1.IsUUID)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], LoadLudeoResourcePayload.prototype, "ludeoPoolId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
51
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
52
|
+
], LoadLudeoResourcePayload.prototype, "settings", void 0);
|
|
49
53
|
__decorate([
|
|
50
54
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
51
55
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-ludeo-resource.js","sourceRoot":"","sources":["../../../src/v4/events/load-ludeo-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"load-ludeo-resource.js","sourceRoot":"","sources":["../../../src/v4/events/load-ludeo-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AACnD,oCAKkB;AAElB,MAAa,wBAAwB;CA8BpC;AA9BD,4DA8BC;AA5BC;IADC,IAAA,wBAAM,GAAE;;gEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;4DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;iEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;wDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;yDACO;AAGhB;IADC,IAAA,wBAAM,GAAE;;6DACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACrC,4BAAoB;0DAAC;AAG/B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;kEACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;+DACO;AAG/B,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YACE,OAAiC,EACjC,OAA6B;QAE7B,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8CAiBC;AAhBiB,4BAAU,GAAG,iCAAiC,CAAC;AAY/D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
package/package.json
CHANGED
|
@@ -5,10 +5,9 @@ import { CloudSessionContext } from "../contexts";
|
|
|
5
5
|
import {
|
|
6
6
|
AllocationRequestData,
|
|
7
7
|
AWSProviderSettings,
|
|
8
|
-
AWSResourceProviderSettings,
|
|
9
8
|
CloudProvider,
|
|
10
9
|
CloudProviderSettings,
|
|
11
|
-
|
|
10
|
+
GameResourceSettings,
|
|
12
11
|
} from "../types";
|
|
13
12
|
|
|
14
13
|
export class AllocateLudeoResourceRequestPayload {
|
|
@@ -27,8 +26,8 @@ export class AllocateLudeoResourceRequestPayload {
|
|
|
27
26
|
@ValidateNestedType(() => AllocationRequestData)
|
|
28
27
|
requestData: AllocationRequestData;
|
|
29
28
|
|
|
30
|
-
@ValidateNestedType(() =>
|
|
31
|
-
|
|
29
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
30
|
+
settings: GameResourceSettings;
|
|
32
31
|
|
|
33
32
|
@IsUUID()
|
|
34
33
|
requestedLudeoId: string;
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
AWSProviderSettings,
|
|
5
5
|
CloudProvider,
|
|
6
6
|
CloudProviderSettings,
|
|
7
|
+
GameResourceSettings,
|
|
7
8
|
} from "../types";
|
|
8
9
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
9
10
|
import { IsEnum, IsUUID } from "class-validator";
|
|
@@ -30,6 +31,9 @@ export class GameAllocatedResponsePayload {
|
|
|
30
31
|
@IsUUID()
|
|
31
32
|
gameId: string;
|
|
32
33
|
|
|
34
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
35
|
+
settings: GameResourceSettings;
|
|
36
|
+
|
|
33
37
|
@IsEnum(CloudProvider)
|
|
34
38
|
cloudProvider: CloudProvider;
|
|
35
39
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
AWSProviderSettings,
|
|
7
7
|
CloudProvider,
|
|
8
8
|
CloudProviderSettings,
|
|
9
|
+
GameResourceSettings,
|
|
9
10
|
} from "../types";
|
|
10
11
|
|
|
11
12
|
export class LoadLudeoResourcePayload {
|
|
@@ -30,6 +31,9 @@ export class LoadLudeoResourcePayload {
|
|
|
30
31
|
@IsUUID()
|
|
31
32
|
ludeoPoolId: string;
|
|
32
33
|
|
|
34
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
35
|
+
settings: GameResourceSettings;
|
|
36
|
+
|
|
33
37
|
@ValidateNestedType(() => AWSProviderSettings)
|
|
34
38
|
providerSettings: CloudProviderSettings;
|
|
35
39
|
|