@ludeo/cloud-common 1.2.38 → 1.2.40
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/ludeo-allocation-failed.d.ts +0 -2
- package/dist/v4/events/ludeo-allocation-failed.js +0 -5
- package/dist/v4/events/ludeo-allocation-failed.js.map +1 -1
- package/dist/v4/events/ludeo-resource-allocation-failed.d.ts +0 -2
- package/dist/v4/events/ludeo-resource-allocation-failed.js +0 -5
- package/dist/v4/events/ludeo-resource-allocation-failed.js.map +1 -1
- package/dist/v4/types/cloud.d.ts +1 -1
- package/dist/v4/types/cloud.js +4 -5
- package/dist/v4/types/cloud.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/ludeo-allocation-failed.ts +0 -4
- package/src/v4/events/ludeo-resource-allocation-failed.ts +0 -3
- package/src/v4/types/cloud.ts +3 -4
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudSessionContext } from "../contexts";
|
|
3
|
-
import { AllocationRequestData } from "../types";
|
|
4
3
|
export declare class LudeoAllocationFailedPayload {
|
|
5
|
-
requestData: AllocationRequestData;
|
|
6
4
|
errorMessage: string;
|
|
7
5
|
}
|
|
8
6
|
export declare class LudeoAllocationFailed extends LudeoEvent {
|
|
@@ -13,15 +13,10 @@ exports.LudeoAllocationFailed = exports.LudeoAllocationFailedPayload = void 0;
|
|
|
13
13
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
14
14
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
15
|
const contexts_1 = require("../contexts");
|
|
16
|
-
const types_1 = require("../types");
|
|
17
16
|
const class_validator_1 = require("class-validator");
|
|
18
17
|
class LudeoAllocationFailedPayload {
|
|
19
18
|
}
|
|
20
19
|
exports.LudeoAllocationFailedPayload = LudeoAllocationFailedPayload;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
23
|
-
__metadata("design:type", types_1.AllocationRequestData)
|
|
24
|
-
], LudeoAllocationFailedPayload.prototype, "requestData", void 0);
|
|
25
20
|
__decorate([
|
|
26
21
|
(0, class_validator_1.IsString)(),
|
|
27
22
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"ludeo-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,qDAA2C;AAE3C,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;kEACU;AAGvB,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA4B;QAE5B,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,8BAAmB,CAAC;8BACrC,8BAAmB;sDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudSessionContext } from "../contexts";
|
|
3
|
-
import { AllocationRequestData } from "../types";
|
|
4
3
|
export declare class LudeoResourceAllocationFailedPayload {
|
|
5
4
|
ludeoResourceId: string;
|
|
6
5
|
ludeoPoolId: string;
|
|
7
6
|
errorMessage: string;
|
|
8
|
-
requestData: AllocationRequestData;
|
|
9
7
|
}
|
|
10
8
|
export declare class LudeoResourceAllocationFailedResponse extends LudeoEvent {
|
|
11
9
|
static readonly EVENT_NAME = "cloud-resources.ludeo-resource-allocation-failed";
|
|
@@ -14,7 +14,6 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
15
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
16
|
const contexts_1 = require("../contexts");
|
|
17
|
-
const types_1 = require("../types");
|
|
18
17
|
class LudeoResourceAllocationFailedPayload {
|
|
19
18
|
}
|
|
20
19
|
exports.LudeoResourceAllocationFailedPayload = LudeoResourceAllocationFailedPayload;
|
|
@@ -30,10 +29,6 @@ __decorate([
|
|
|
30
29
|
(0, class_validator_1.IsString)(),
|
|
31
30
|
__metadata("design:type", String)
|
|
32
31
|
], LudeoResourceAllocationFailedPayload.prototype, "errorMessage", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
35
|
-
__metadata("design:type", types_1.AllocationRequestData)
|
|
36
|
-
], LudeoResourceAllocationFailedPayload.prototype, "requestData", void 0);
|
|
37
32
|
class LudeoResourceAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
38
33
|
constructor(payload, context) {
|
|
39
34
|
super(LudeoResourceAllocationFailedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;
|
|
1
|
+
{"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAGlD,MAAa,oCAAoC;CAShD;AATD,oFASC;AAPC;IADC,IAAA,wBAAM,GAAE;;6EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;yEACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0EACU;AAGvB,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;sEAAC"}
|
package/dist/v4/types/cloud.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export declare class AllocationRequestData {
|
|
|
39
39
|
cloudProviderRequest: CloudProviderRequest;
|
|
40
40
|
clientIp?: string;
|
|
41
41
|
region?: string;
|
|
42
|
+
sessionToken: string;
|
|
42
43
|
}
|
|
43
44
|
export declare enum CloudSessionStatus {
|
|
44
45
|
Created = "created",
|
|
@@ -63,7 +64,6 @@ export declare class CloudSession {
|
|
|
63
64
|
requestData: AllocationRequestData;
|
|
64
65
|
allocationData?: CloudProviderAllocationData;
|
|
65
66
|
clientRequestId: string;
|
|
66
|
-
sessionToken?: string;
|
|
67
67
|
resourceId?: string;
|
|
68
68
|
gamePoolId?: string;
|
|
69
69
|
}
|
package/dist/v4/types/cloud.js
CHANGED
|
@@ -92,6 +92,10 @@ __decorate([
|
|
|
92
92
|
(0, class_validator_1.IsOptional)(),
|
|
93
93
|
__metadata("design:type", String)
|
|
94
94
|
], AllocationRequestData.prototype, "region", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_validator_1.IsString)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], AllocationRequestData.prototype, "sessionToken", void 0);
|
|
95
99
|
var CloudSessionStatus;
|
|
96
100
|
(function (CloudSessionStatus) {
|
|
97
101
|
CloudSessionStatus["Created"] = "created";
|
|
@@ -160,11 +164,6 @@ __decorate([
|
|
|
160
164
|
(0, class_validator_1.IsUUID)(),
|
|
161
165
|
__metadata("design:type", String)
|
|
162
166
|
], CloudSession.prototype, "clientRequestId", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
(0, class_validator_1.IsOptional)(),
|
|
165
|
-
(0, class_validator_1.IsString)(),
|
|
166
|
-
__metadata("design:type", String)
|
|
167
|
-
], CloudSession.prototype, "sessionToken", void 0);
|
|
168
167
|
__decorate([
|
|
169
168
|
(0, class_validator_1.IsOptional)(),
|
|
170
169
|
(0, class_validator_1.IsString)(),
|
|
@@ -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;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AA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4CACO;AAGhB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACnC,qBAAqB;iDAAC;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;;oDACC;AAG7C;IADC,IAAA,wBAAM,GAAE;;qDACe;AAKxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
3
|
import { CloudSessionContext } from "../contexts";
|
|
4
|
-
import { AllocationRequestData } from "../types";
|
|
5
4
|
import { IsString } from "class-validator";
|
|
6
5
|
|
|
7
6
|
export class LudeoAllocationFailedPayload {
|
|
8
|
-
@ValidateNestedType(() => AllocationRequestData)
|
|
9
|
-
requestData: AllocationRequestData;
|
|
10
|
-
|
|
11
7
|
@IsString()
|
|
12
8
|
errorMessage: string;
|
|
13
9
|
}
|
|
@@ -13,9 +13,6 @@ export class LudeoResourceAllocationFailedPayload {
|
|
|
13
13
|
|
|
14
14
|
@IsString()
|
|
15
15
|
errorMessage: string;
|
|
16
|
-
|
|
17
|
-
@ValidateNestedType(() => AllocationRequestData)
|
|
18
|
-
requestData: AllocationRequestData;
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
export class LudeoResourceAllocationFailedResponse extends LudeoEvent {
|
package/src/v4/types/cloud.ts
CHANGED
|
@@ -89,6 +89,9 @@ export class AllocationRequestData {
|
|
|
89
89
|
@IsString()
|
|
90
90
|
@IsOptional()
|
|
91
91
|
region?: string;
|
|
92
|
+
|
|
93
|
+
@IsString()
|
|
94
|
+
sessionToken: string;
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
export enum CloudSessionStatus {
|
|
@@ -144,10 +147,6 @@ export class CloudSession {
|
|
|
144
147
|
@IsUUID()
|
|
145
148
|
clientRequestId: string;
|
|
146
149
|
|
|
147
|
-
@IsOptional()
|
|
148
|
-
@IsString()
|
|
149
|
-
sessionToken?: string;
|
|
150
|
-
|
|
151
150
|
// For backwards compatability
|
|
152
151
|
@IsOptional()
|
|
153
152
|
@IsString()
|