@ludeo/cloud-common 1.2.32 → 1.2.33-beta-yahil
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/connection-id-timeout-task.d.ts +1 -0
- package/dist/v4/events/connection-id-timeout-task.js +4 -0
- package/dist/v4/events/connection-id-timeout-task.js.map +1 -1
- package/dist/v4/events/game-resource-created-response.d.ts +2 -1
- package/dist/v4/events/game-resource-created-response.js +4 -0
- package/dist/v4/events/game-resource-created-response.js.map +1 -1
- package/dist/v4/events/game-resource-ready-for-creation.d.ts +2 -1
- package/dist/v4/events/game-resource-ready-for-creation.js +4 -0
- package/dist/v4/events/game-resource-ready-for-creation.js.map +1 -1
- package/dist/v4/types/cloud.d.ts +5 -0
- package/dist/v4/types/cloud.js +12 -1
- package/dist/v4/types/cloud.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/connection-id-timeout-task.ts +3 -0
- package/src/v4/events/game-resource-created-response.ts +4 -0
- package/src/v4/events/game-resource-ready-for-creation.ts +5 -1
- package/src/v4/types/cloud.ts +10 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
export declare class ConnectionIdTimeoutTaskPayload {
|
|
3
3
|
gameResourceId: string;
|
|
4
|
+
gamePoolId: string;
|
|
4
5
|
}
|
|
5
6
|
export declare class ConnectionIdTimeoutTask extends LudeoEvent {
|
|
6
7
|
static readonly EVENT_NAME = "cloud-resources.connection-id-timeout-task";
|
|
@@ -20,6 +20,10 @@ __decorate([
|
|
|
20
20
|
(0, class_validator_1.IsUUID)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], ConnectionIdTimeoutTaskPayload.prototype, "gameResourceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsUUID)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ConnectionIdTimeoutTaskPayload.prototype, "gamePoolId", void 0);
|
|
23
27
|
class ConnectionIdTimeoutTask extends ludeo_event_1.LudeoEvent {
|
|
24
28
|
constructor(payload, context) {
|
|
25
29
|
super(ConnectionIdTimeoutTask.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-id-timeout-task.js","sourceRoot":"","sources":["../../../src/v4/events/connection-id-timeout-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,qDAAyC;AAEzC,MAAa,8BAA8B;
|
|
1
|
+
{"version":3,"file":"connection-id-timeout-task.js","sourceRoot":"","sources":["../../../src/v4/events/connection-id-timeout-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,qDAAyC;AAEzC,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;sEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAGrB,MAAa,uBAAwB,SAAQ,wBAAU;IAGrD,YAAY,OAAuC,EAAE,OAAc;QACjE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,0DAaC;AAZiB,kCAAU,GAAG,4CAA4C,CAAC;AAW1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
import { CloudProvider, CloudResourceProviderSettings } from "../types";
|
|
3
|
+
import { CloudProvider, CloudResourceProviderSettings, ResourceCreatedSettings } from "../types";
|
|
4
4
|
export declare class GameResourceCreatedResponsePayload {
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
gamePoolId: string;
|
|
7
7
|
cloudProvider: CloudProvider;
|
|
8
8
|
resourceProviderSettings: CloudResourceProviderSettings;
|
|
9
|
+
settings: ResourceCreatedSettings;
|
|
9
10
|
}
|
|
10
11
|
export declare class GameResourceCreatedResponse extends LudeoEvent {
|
|
11
12
|
static readonly EVENT_NAME = "cloud-resources.game-resource-created-response";
|
|
@@ -34,6 +34,10 @@ __decorate([
|
|
|
34
34
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
|
|
35
35
|
__metadata("design:type", Object)
|
|
36
36
|
], GameResourceCreatedResponsePayload.prototype, "resourceProviderSettings", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.ResourceCreatedSettings),
|
|
39
|
+
__metadata("design:type", types_1.ResourceCreatedSettings)
|
|
40
|
+
], GameResourceCreatedResponsePayload.prototype, "settings", void 0);
|
|
37
41
|
class GameResourceCreatedResponse extends ludeo_event_1.LudeoEvent {
|
|
38
42
|
constructor(payload, context) {
|
|
39
43
|
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,
|
|
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,oCAKkB;AAElB,MAAa,kCAAkC;CAe9C;AAfD,gFAeC;AAbC;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,mCAA2B,CAAC;;oFACE;AAGxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC;8BACxC,+BAAuB;oEAAC;AAGpC,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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
|
-
import { CloudResourceProviderSettings } from "../types";
|
|
3
|
+
import { CloudResourceCreatedSettings, CloudResourceProviderSettings } from "../types";
|
|
4
4
|
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
5
5
|
export declare class GameResourceReadyForCreationPayload {
|
|
6
6
|
providerSettings: CloudResourceProviderSettings;
|
|
7
7
|
creationPayload: CreateGameResourceRequestPayload;
|
|
8
|
+
settings: CloudResourceCreatedSettings;
|
|
8
9
|
}
|
|
9
10
|
export declare class GameResourceReadyForCreation extends LudeoEvent {
|
|
10
11
|
static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation";
|
|
@@ -26,6 +26,10 @@ __decorate([
|
|
|
26
26
|
(0, decorators_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
|
|
27
27
|
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
28
28
|
], GameResourceReadyForCreationPayload.prototype, "creationPayload", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.ResourceCreatedSettings),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], GameResourceReadyForCreationPayload.prototype, "settings", void 0);
|
|
29
33
|
class GameResourceReadyForCreation extends infra_1.LudeoEvent {
|
|
30
34
|
constructor(payload, context) {
|
|
31
35
|
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,
|
|
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,oCAKkB;AAClB,iFAAkF;AAElF,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;6EACN;AAGhD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;4EAAC;AAGlD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC;;qEACX;AAGzC,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/dist/v4/types/cloud.d.ts
CHANGED
|
@@ -67,3 +67,8 @@ export declare class CloudSession {
|
|
|
67
67
|
resourceId?: string;
|
|
68
68
|
gamePoolId?: string;
|
|
69
69
|
}
|
|
70
|
+
export declare class ResourceCreatedSettings {
|
|
71
|
+
sessionToken: string;
|
|
72
|
+
connectionId: string;
|
|
73
|
+
}
|
|
74
|
+
export type CloudResourceCreatedSettings = ResourceCreatedSettings;
|
package/dist/v4/types/cloud.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CloudSession = exports.CloudSessionStatus = exports.AllocationRequestData = exports.AWSGameCreationResponse = exports.AWSResourceProviderSettings = exports.AwsAllocationData = exports.AWSProviderSettings = exports.CloudProvider = exports.AWSRequestData = void 0;
|
|
12
|
+
exports.ResourceCreatedSettings = exports.CloudSession = exports.CloudSessionStatus = exports.AllocationRequestData = exports.AWSGameCreationResponse = exports.AWSResourceProviderSettings = exports.AwsAllocationData = exports.AWSProviderSettings = exports.CloudProvider = exports.AWSRequestData = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const decorators_1 = require("../../decorators");
|
|
15
15
|
class AWSRequestData {
|
|
@@ -175,4 +175,15 @@ __decorate([
|
|
|
175
175
|
(0, class_validator_1.IsString)(),
|
|
176
176
|
__metadata("design:type", String)
|
|
177
177
|
], CloudSession.prototype, "gamePoolId", void 0);
|
|
178
|
+
class ResourceCreatedSettings {
|
|
179
|
+
}
|
|
180
|
+
exports.ResourceCreatedSettings = ResourceCreatedSettings;
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, class_validator_1.IsString)(),
|
|
183
|
+
__metadata("design:type", String)
|
|
184
|
+
], ResourceCreatedSettings.prototype, "sessionToken", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, class_validator_1.IsUUID)(),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], ResourceCreatedSettings.prototype, "connectionId", void 0);
|
|
178
189
|
//# sourceMappingURL=cloud.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v4/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAKxB,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,mBAAmB;CAS/B;AATD,kDASC;AAID,MAAa,iBAAiB;CAS7B;AATD,8CASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;wDACW;AAGtB;IADC,IAAA,0BAAQ,GAAE;;0DACa;AAGxB;IADC,IAAA,0BAAQ,GAAE;;yDACY;AAKzB,MAAa,2BAA2B;CAgBvC;AAhBD,kEAgBC;AAbC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACc;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACY;AAIvB;IAFC,IAAA,wBAAM,EAAC,aAAa,CAAC;IACrB,IAAA,4B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AAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;;oDACC;AAG7C;IADC,IAAA,wBAAM,GAAE;;qDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACW;AAKtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAGtB,MAAa,uBAAuB;CAMnC;AAND,0DAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;6DACU;AAGrB;IADC,IAAA,wBAAM,GAAE;;6DACY"}
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
AWSResourceProviderSettings,
|
|
8
8
|
CloudProvider,
|
|
9
9
|
CloudResourceProviderSettings,
|
|
10
|
+
ResourceCreatedSettings,
|
|
10
11
|
} from "../types";
|
|
11
12
|
|
|
12
13
|
export class GameResourceCreatedResponsePayload {
|
|
@@ -21,6 +22,9 @@ export class GameResourceCreatedResponsePayload {
|
|
|
21
22
|
|
|
22
23
|
@ValidateNestedType(() => AWSResourceProviderSettings)
|
|
23
24
|
resourceProviderSettings: CloudResourceProviderSettings;
|
|
25
|
+
|
|
26
|
+
@ValidateNestedType(() => ResourceCreatedSettings)
|
|
27
|
+
settings: ResourceCreatedSettings;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
export class GameResourceCreatedResponse extends LudeoEvent {
|
|
@@ -3,8 +3,9 @@ import { ValidateNestedType } from "../../decorators";
|
|
|
3
3
|
import { CloudResourceContext } from "../contexts";
|
|
4
4
|
import {
|
|
5
5
|
AWSResourceProviderSettings,
|
|
6
|
-
|
|
6
|
+
CloudResourceCreatedSettings,
|
|
7
7
|
CloudResourceProviderSettings,
|
|
8
|
+
ResourceCreatedSettings,
|
|
8
9
|
} from "../types";
|
|
9
10
|
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
10
11
|
|
|
@@ -14,6 +15,9 @@ export class GameResourceReadyForCreationPayload {
|
|
|
14
15
|
|
|
15
16
|
@ValidateNestedType(() => CreateGameResourceRequestPayload)
|
|
16
17
|
creationPayload: CreateGameResourceRequestPayload;
|
|
18
|
+
|
|
19
|
+
@ValidateNestedType(() => ResourceCreatedSettings)
|
|
20
|
+
settings: CloudResourceCreatedSettings;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
export class GameResourceReadyForCreation extends LudeoEvent {
|
package/src/v4/types/cloud.ts
CHANGED
|
@@ -157,3 +157,13 @@ export class CloudSession {
|
|
|
157
157
|
@IsString()
|
|
158
158
|
gamePoolId?: string;
|
|
159
159
|
}
|
|
160
|
+
|
|
161
|
+
export class ResourceCreatedSettings {
|
|
162
|
+
@IsString()
|
|
163
|
+
sessionToken: string;
|
|
164
|
+
|
|
165
|
+
@IsUUID()
|
|
166
|
+
connectionId: string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type CloudResourceCreatedSettings = ResourceCreatedSettings;
|