@ludeo/cloud-common 1.2.34 → 1.2.35
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 +3 -2
- package/dist/v4/events/allocate-ludeo-resource-request.js +5 -1
- package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -1
- package/dist/v4/events/game-allocated-response.d.ts +1 -1
- package/dist/v4/events/game-allocated-response.js +1 -1
- package/dist/v4/events/game-allocated-response.js.map +1 -1
- package/dist/v4/events/game-resource-created-response.d.ts +1 -1
- package/dist/v4/events/game-resource-created-response.js +1 -1
- package/dist/v4/events/game-resource-created-response.js.map +1 -1
- package/dist/v4/events/game-resource-ready-for-creation.d.ts +1 -1
- package/dist/v4/events/game-resource-ready-for-creation.js +1 -1
- package/dist/v4/events/game-resource-ready-for-creation.js.map +1 -1
- package/dist/v4/events/gameplay-waiting-for-user.d.ts +2 -0
- package/dist/v4/events/gameplay-waiting-for-user.js +9 -0
- package/dist/v4/events/gameplay-waiting-for-user.js.map +1 -1
- package/dist/v4/events/load-ludeo-resource.d.ts +1 -1
- package/dist/v4/events/load-ludeo-resource.js +1 -1
- package/dist/v4/events/load-ludeo-resource.js.map +1 -1
- package/dist/v4/events/ludeo-resource-loaded.d.ts +1 -0
- package/dist/v4/events/ludeo-resource-loaded.js +4 -0
- package/dist/v4/events/ludeo-resource-loaded.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/allocate-ludeo-resource-request.ts +5 -1
- package/src/v4/events/game-allocated-response.ts +1 -1
- package/src/v4/events/game-resource-created-response.ts +1 -1
- package/src/v4/events/game-resource-ready-for-creation.ts +1 -1
- package/src/v4/events/gameplay-waiting-for-user.ts +8 -1
- package/src/v4/events/load-ludeo-resource.ts +1 -1
- package/src/v4/events/ludeo-resource-loaded.ts +3 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudSessionContext } from "../contexts";
|
|
3
|
-
import { AllocationRequestData, CloudProvider, CloudProviderSettings, GameResourceSettings } from "../types";
|
|
3
|
+
import { AllocationRequestData, CloudProvider, CloudProviderSettings, GameResourceSettings, LudeoResourceSettings } 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
|
+
gameResourceSettings: GameResourceSettings;
|
|
11
|
+
ludeoResourceSettings: LudeoResourceSettings;
|
|
11
12
|
requestedLudeoId: string;
|
|
12
13
|
preloadedLudeoId: string;
|
|
13
14
|
}
|
|
@@ -41,7 +41,11 @@ __decorate([
|
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
43
43
|
__metadata("design:type", types_1.GameResourceSettings)
|
|
44
|
-
], AllocateLudeoResourceRequestPayload.prototype, "
|
|
44
|
+
], AllocateLudeoResourceRequestPayload.prototype, "gameResourceSettings", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.LudeoResourceSettings),
|
|
47
|
+
__metadata("design:type", types_1.LudeoResourceSettings)
|
|
48
|
+
], AllocateLudeoResourceRequestPayload.prototype, "ludeoResourceSettings", void 0);
|
|
45
49
|
__decorate([
|
|
46
50
|
(0, class_validator_1.IsUUID)(),
|
|
47
51
|
__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,oCAOkB;AAElB,MAAa,mCAAmC;CA2B/C;AA3BD,kFA2BC;AAzBC;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;8BACzB,4BAAoB;iFAAC;AAG3C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACzB,6BAAqB;kFAAC;AAG7C;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"}
|
|
@@ -9,7 +9,7 @@ export declare class GameAllocatedResponsePayload {
|
|
|
9
9
|
ludeoId: string;
|
|
10
10
|
providerSettings: CloudProviderSettings;
|
|
11
11
|
gameId: string;
|
|
12
|
-
|
|
12
|
+
gameResourceSettings: GameResourceSettings;
|
|
13
13
|
cloudProvider: CloudProvider;
|
|
14
14
|
}
|
|
15
15
|
export declare class GameAllocatedResponse extends LudeoEvent {
|
|
@@ -49,7 +49,7 @@ __decorate([
|
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
51
51
|
__metadata("design:type", types_1.GameResourceSettings)
|
|
52
|
-
], GameAllocatedResponsePayload.prototype, "
|
|
52
|
+
], GameAllocatedResponsePayload.prototype, "gameResourceSettings", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
55
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,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;
|
|
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;8BACzB,4BAAoB;0EAAC;AAG3C;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"}
|
|
@@ -5,7 +5,7 @@ export declare class GameResourceCreatedResponsePayload {
|
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
gamePoolId: string;
|
|
7
7
|
cloudProvider: CloudProvider;
|
|
8
|
-
|
|
8
|
+
gameResourceSettings: GameResourceSettings;
|
|
9
9
|
}
|
|
10
10
|
export declare class GameResourceCreatedResponse extends LudeoEvent {
|
|
11
11
|
static readonly EVENT_NAME = "cloud-resources.game-resource-created-response";
|
|
@@ -33,7 +33,7 @@ __decorate([
|
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
35
35
|
__metadata("design:type", types_1.GameResourceSettings)
|
|
36
|
-
], GameResourceCreatedResponsePayload.prototype, "
|
|
36
|
+
], GameResourceCreatedResponsePayload.prototype, "gameResourceSettings", void 0);
|
|
37
37
|
class GameResourceCreatedResponse extends ludeo_event_1.LudeoEvent {
|
|
38
38
|
constructor(payload, context) {
|
|
39
39
|
super(GameResourceCreatedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-created-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAA+D;AAE/D,MAAa,kCAAkC;CAY9C;AAZD,gFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;0EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;sEACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yEACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"game-resource-created-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAA+D;AAE/D,MAAa,kCAAkC;CAY9C;AAZD,gFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;0EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;sEACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yEACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;gFAAC;AAG7C,MAAa,2BAA4B,SAAQ,wBAAU;IAGzD,YACE,OAA2C,EAC3C,OAA6B;QAE7B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;4DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;8BACpD,kCAAkC;4DAAC"}
|
|
@@ -4,7 +4,7 @@ import { GameResourceSettings } from "../types";
|
|
|
4
4
|
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
5
5
|
export declare class GameResourceReadyForCreationPayload {
|
|
6
6
|
creationPayload: CreateGameResourceRequestPayload;
|
|
7
|
-
|
|
7
|
+
gameResourceSettings: GameResourceSettings;
|
|
8
8
|
}
|
|
9
9
|
export declare class GameResourceReadyForCreation extends LudeoEvent {
|
|
10
10
|
static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation";
|
|
@@ -25,7 +25,7 @@ __decorate([
|
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, decorators_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
27
27
|
__metadata("design:type", types_1.GameResourceSettings)
|
|
28
|
-
], GameResourceReadyForCreationPayload.prototype, "
|
|
28
|
+
], GameResourceReadyForCreationPayload.prototype, "gameResourceSettings", void 0);
|
|
29
29
|
class GameResourceReadyForCreation extends infra_1.LudeoEvent {
|
|
30
30
|
constructor(payload, context) {
|
|
31
31
|
super(GameResourceReadyForCreation.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-ready-for-creation.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,0CAAmD;AACnD,oCAAgD;AAChD,iFAAkF;AAElF,MAAa,mCAAmC;CAM/C;AAND,kFAMC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;4EAAC;AAGlD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"game-resource-ready-for-creation.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,0CAAmD;AACnD,oCAAgD;AAChD,iFAAkF;AAElF,MAAa,mCAAmC;CAM/C;AAND,kFAMC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;4EAAC;AAGlD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;iFAAC;AAG7C,MAAa,4BAA6B,SAAQ,kBAAU;IAI1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oEAkBC;AAjBiB,uCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC;AAG7C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC"}
|
|
@@ -2,6 +2,8 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
3
|
export declare class GameplayWaitingForUserPayload {
|
|
4
4
|
ludeoResourceId: string;
|
|
5
|
+
gameResourceId?: string;
|
|
6
|
+
gameplayId: string;
|
|
5
7
|
}
|
|
6
8
|
export declare class GameplayWaitingForUser extends LudeoEvent {
|
|
7
9
|
static readonly EVENT_NAME = "gameplays.gameplay-waiting-for-user";
|
|
@@ -21,6 +21,15 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsUUID)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], GameplayWaitingForUserPayload.prototype, "ludeoResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GameplayWaitingForUserPayload.prototype, "gameResourceId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsUUID)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GameplayWaitingForUserPayload.prototype, "gameplayId", void 0);
|
|
24
33
|
class GameplayWaitingForUser extends ludeo_event_1.LudeoEvent {
|
|
25
34
|
constructor(payload, context) {
|
|
26
35
|
super(GameplayWaitingForUser.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gameplay-waiting-for-user.js","sourceRoot":"","sources":["../../../src/v4/events/gameplay-waiting-for-user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"gameplay-waiting-for-user.js","sourceRoot":"","sources":["../../../src/v4/events/gameplay-waiting-for-user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,6BAA6B;CAUzC;AAVD,sEAUC;AARC;IADC,IAAA,wBAAM,GAAE;;sEACe;AAIxB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;qEACW;AAGxB;IADC,IAAA,wBAAM,GAAE;;iEACU;AAGrB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -9,7 +9,7 @@ export declare class LoadLudeoResourcePayload {
|
|
|
9
9
|
gameId: string;
|
|
10
10
|
ludeoId: string;
|
|
11
11
|
ludeoPoolId: string;
|
|
12
|
-
|
|
12
|
+
gameResourceSettings: GameResourceSettings;
|
|
13
13
|
providerSettings: CloudProviderSettings;
|
|
14
14
|
cloudProvider: CloudProvider;
|
|
15
15
|
}
|
|
@@ -49,7 +49,7 @@ __decorate([
|
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
51
51
|
__metadata("design:type", types_1.GameResourceSettings)
|
|
52
|
-
], LoadLudeoResourcePayload.prototype, "
|
|
52
|
+
], LoadLudeoResourcePayload.prototype, "gameResourceSettings", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
55
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,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;
|
|
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;8BACzB,4BAAoB;sEAAC;AAG3C;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"}
|
|
@@ -2,6 +2,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
3
|
export declare class LudeoResourceLoadedPayload {
|
|
4
4
|
ludeoResourceId: string;
|
|
5
|
+
gameplayId: string;
|
|
5
6
|
}
|
|
6
7
|
export declare class LudeoResourceLoaded extends LudeoEvent {
|
|
7
8
|
static readonly EVENT_NAME = "cloud-resources.ludeo-resource-loaded";
|
|
@@ -21,6 +21,10 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsUUID)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], LudeoResourceLoadedPayload.prototype, "ludeoResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], LudeoResourceLoadedPayload.prototype, "gameplayId", void 0);
|
|
24
28
|
class LudeoResourceLoaded extends ludeo_event_1.LudeoEvent {
|
|
25
29
|
constructor(payload, context) {
|
|
26
30
|
super(LudeoResourceLoaded.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo-resource-loaded.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-loaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,0BAA0B;
|
|
1
|
+
{"version":3,"file":"ludeo-resource-loaded.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-loaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;mEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;8DACU;AAGrB,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YACE,OAAmC,EACnC,OAA6B;QAE7B,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kDAiBC;AAhBiB,8BAAU,GAAG,uCAAuC,CAAC;AAYrE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;oDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
CloudProvider,
|
|
9
9
|
CloudProviderSettings,
|
|
10
10
|
GameResourceSettings,
|
|
11
|
+
LudeoResourceSettings,
|
|
11
12
|
} from "../types";
|
|
12
13
|
|
|
13
14
|
export class AllocateLudeoResourceRequestPayload {
|
|
@@ -27,7 +28,10 @@ export class AllocateLudeoResourceRequestPayload {
|
|
|
27
28
|
requestData: AllocationRequestData;
|
|
28
29
|
|
|
29
30
|
@ValidateNestedType(() => GameResourceSettings)
|
|
30
|
-
|
|
31
|
+
gameResourceSettings: GameResourceSettings;
|
|
32
|
+
|
|
33
|
+
@ValidateNestedType(() => LudeoResourceSettings)
|
|
34
|
+
ludeoResourceSettings: LudeoResourceSettings;
|
|
31
35
|
|
|
32
36
|
@IsUUID()
|
|
33
37
|
requestedLudeoId: string;
|
|
@@ -32,7 +32,7 @@ export class GameAllocatedResponsePayload {
|
|
|
32
32
|
gameId: string;
|
|
33
33
|
|
|
34
34
|
@ValidateNestedType(() => GameResourceSettings)
|
|
35
|
-
|
|
35
|
+
gameResourceSettings: GameResourceSettings;
|
|
36
36
|
|
|
37
37
|
@IsEnum(CloudProvider)
|
|
38
38
|
cloudProvider: CloudProvider;
|
|
@@ -16,7 +16,7 @@ export class GameResourceCreatedResponsePayload {
|
|
|
16
16
|
cloudProvider: CloudProvider;
|
|
17
17
|
|
|
18
18
|
@ValidateNestedType(() => GameResourceSettings)
|
|
19
|
-
|
|
19
|
+
gameResourceSettings: GameResourceSettings;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export class GameResourceCreatedResponse extends LudeoEvent {
|
|
@@ -9,7 +9,7 @@ export class GameResourceReadyForCreationPayload {
|
|
|
9
9
|
creationPayload: CreateGameResourceRequestPayload;
|
|
10
10
|
|
|
11
11
|
@ValidateNestedType(() => GameResourceSettings)
|
|
12
|
-
|
|
12
|
+
gameResourceSettings: GameResourceSettings;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export class GameResourceReadyForCreation extends LudeoEvent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsOptional, IsUUID } from "class-validator";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { CloudResourceContext } from "../contexts";
|
|
@@ -6,6 +6,13 @@ import { CloudResourceContext } from "../contexts";
|
|
|
6
6
|
export class GameplayWaitingForUserPayload {
|
|
7
7
|
@IsUUID()
|
|
8
8
|
ludeoResourceId: string;
|
|
9
|
+
|
|
10
|
+
@IsUUID()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
gameResourceId?: string;
|
|
13
|
+
|
|
14
|
+
@IsUUID()
|
|
15
|
+
gameplayId: string;
|
|
9
16
|
}
|
|
10
17
|
|
|
11
18
|
export class GameplayWaitingForUser extends LudeoEvent {
|
|
@@ -32,7 +32,7 @@ export class LoadLudeoResourcePayload {
|
|
|
32
32
|
ludeoPoolId: string;
|
|
33
33
|
|
|
34
34
|
@ValidateNestedType(() => GameResourceSettings)
|
|
35
|
-
|
|
35
|
+
gameResourceSettings: GameResourceSettings;
|
|
36
36
|
|
|
37
37
|
@ValidateNestedType(() => AWSProviderSettings)
|
|
38
38
|
providerSettings: CloudProviderSettings;
|