@ludeo/cloud-common 1.2.83-ygarbage4 → 1.2.83-ygarbage5
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/game-resource-ready-for-creation.d.ts +2 -2
- package/dist/v4/events/game-resource-ready-for-creation.js +2 -2
- package/dist/v4/events/game-resource-ready-for-creation.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/game-resource-ready-for-creation.ts +9 -4
|
@@ -2,9 +2,9 @@ import { LudeoEvent } from "../../infra";
|
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
3
|
import { CloudProviderSettings, GameResourceSettings } from "../types";
|
|
4
4
|
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
5
|
-
export declare class GameResourceReadyForCreationPayload<T extends CloudProviderSettings = CloudProviderSettings> {
|
|
5
|
+
export declare class GameResourceReadyForCreationPayload<T extends CloudProviderSettings = CloudProviderSettings, K extends GameResourceSettings = GameResourceSettings> {
|
|
6
6
|
creationPayload: CreateGameResourceRequestPayload<T>;
|
|
7
|
-
gameResourceSettings:
|
|
7
|
+
gameResourceSettings: K;
|
|
8
8
|
}
|
|
9
9
|
export declare class GameResourceReadyForCreation extends LudeoEvent {
|
|
10
10
|
static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation";
|
|
@@ -23,8 +23,8 @@ __decorate([
|
|
|
23
23
|
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
24
24
|
], GameResourceReadyForCreationPayload.prototype, "creationPayload", void 0);
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, decorators_1.ValidateNestedType)(
|
|
27
|
-
__metadata("design:type",
|
|
26
|
+
(0, decorators_1.ValidateNestedType)(types_1.getResourceProviderSettingsType),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
28
|
], GameResourceReadyForCreationPayload.prototype, "gameResourceSettings", void 0);
|
|
29
29
|
class GameResourceReadyForCreation extends infra_1.LudeoEvent {
|
|
30
30
|
constructor(payload, context) {
|
|
@@ -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,
|
|
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,oCAIkB;AAClB,iFAAkF;AAElF,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAmC,CAAC;8BAC7C,+DAAgC;4EAAI;AAGrD;IADC,IAAA,+BAAkB,EAAC,uCAA+B,CAAC;;iFAC5B;AAG1B,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"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra";
|
|
2
2
|
import { ValidateNestedType } from "../../decorators";
|
|
3
3
|
import { CloudResourceContext } from "../contexts";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
CloudProviderSettings,
|
|
6
|
+
GameResourceSettings,
|
|
7
|
+
getResourceProviderSettingsType,
|
|
8
|
+
} from "../types";
|
|
5
9
|
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
6
10
|
|
|
7
11
|
export class GameResourceReadyForCreationPayload<
|
|
8
|
-
T extends CloudProviderSettings = CloudProviderSettings
|
|
12
|
+
T extends CloudProviderSettings = CloudProviderSettings,
|
|
13
|
+
K extends GameResourceSettings = GameResourceSettings
|
|
9
14
|
> {
|
|
10
15
|
@ValidateNestedType(() => CreateGameResourceRequestPayload<T>)
|
|
11
16
|
creationPayload: CreateGameResourceRequestPayload<T>;
|
|
12
17
|
|
|
13
|
-
@ValidateNestedType(
|
|
14
|
-
gameResourceSettings:
|
|
18
|
+
@ValidateNestedType(getResourceProviderSettingsType)
|
|
19
|
+
gameResourceSettings: K;
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
export class GameResourceReadyForCreation extends LudeoEvent {
|