@ludeo/cloud-common 1.2.170 → 1.2.171-ygbeta0
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/v3/events/index.d.ts +1 -0
- package/dist/v3/events/index.js +1 -0
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/ludeocast-resource-error-timeout-task.d.ts +10 -0
- package/dist/v3/events/ludeocast-resource-error-timeout-task.js +36 -0
- package/dist/v3/events/ludeocast-resource-error-timeout-task.js.map +1 -0
- package/dist/v4/contexts/cloud-session-context.d.ts +1 -0
- package/dist/v4/contexts/cloud-session-context.js +6 -0
- package/dist/v4/contexts/cloud-session-context.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/index.ts +1 -0
- package/src/v3/events/ludeocast-resource-error-timeout-task.ts +27 -0
- package/src/v4/contexts/cloud-session-context.ts +5 -0
package/dist/v3/events/index.js
CHANGED
|
@@ -89,4 +89,5 @@ __exportStar(require("./cloud-session-optimal-region-selected"), exports);
|
|
|
89
89
|
__exportStar(require("./mark-game-available"), exports);
|
|
90
90
|
__exportStar(require("./gameplay-ready-timeout-task"), exports);
|
|
91
91
|
__exportStar(require("./no-user-connection-timeout-task"), exports);
|
|
92
|
+
__exportStar(require("./ludeocast-resource-error-timeout-task"), exports);
|
|
92
93
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,0EAAwD;AACxD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,0EAAwD;AACxD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,0EAAwD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare class LudeocastResourceErrorTimeoutTaskEventPayload {
|
|
3
|
+
resourceId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class LudeocastResourceErrorTimeoutTask extends LudeoEvent {
|
|
6
|
+
static readonly EVENT_NAME = "cloud-resource-monitor.ludeocast-resource-error-timeout";
|
|
7
|
+
constructor(payload: LudeocastResourceErrorTimeoutTaskEventPayload, context: never);
|
|
8
|
+
context: never;
|
|
9
|
+
payload: LudeocastResourceErrorTimeoutTaskEventPayload;
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LudeocastResourceErrorTimeoutTask = exports.LudeocastResourceErrorTimeoutTaskEventPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
class LudeocastResourceErrorTimeoutTaskEventPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.LudeocastResourceErrorTimeoutTaskEventPayload = LudeocastResourceErrorTimeoutTaskEventPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], LudeocastResourceErrorTimeoutTaskEventPayload.prototype, "resourceId", void 0);
|
|
23
|
+
class LudeocastResourceErrorTimeoutTask extends ludeo_event_1.LudeoEvent {
|
|
24
|
+
constructor(payload, context) {
|
|
25
|
+
super(LudeocastResourceErrorTimeoutTask.EVENT_NAME);
|
|
26
|
+
this.payload = payload;
|
|
27
|
+
this.context = context;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.LudeocastResourceErrorTimeoutTask = LudeocastResourceErrorTimeoutTask;
|
|
31
|
+
LudeocastResourceErrorTimeoutTask.EVENT_NAME = "cloud-resource-monitor.ludeocast-resource-error-timeout";
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeocastResourceErrorTimeoutTaskEventPayload),
|
|
34
|
+
__metadata("design:type", LudeocastResourceErrorTimeoutTaskEventPayload)
|
|
35
|
+
], LudeocastResourceErrorTimeoutTask.prototype, "payload", void 0);
|
|
36
|
+
//# sourceMappingURL=ludeocast-resource-error-timeout-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ludeocast-resource-error-timeout-task.js","sourceRoot":"","sources":["../../../src/v3/events/ludeocast-resource-error-timeout-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,6CAA6C;CAGzD;AAHD,sGAGC;AADC;IADC,IAAA,wBAAM,GAAE;;iFACU;AAGrB,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAsD,EACtD,OAAc;QAEd,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAiBC;AAhBiB,4CAAU,GACxB,yDAAyD,CAAC;AAc5D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAA6C,CAAC;8BAC/D,6CAA6C;kEAAC"}
|
|
@@ -90,6 +90,7 @@ __decorate([
|
|
|
90
90
|
], CloudSessionContext.prototype, "tabSessionId", void 0);
|
|
91
91
|
__decorate([
|
|
92
92
|
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, class_validator_1.IsUUID)(),
|
|
93
94
|
__metadata("design:type", String)
|
|
94
95
|
], CloudSessionContext.prototype, "playSessionId", void 0);
|
|
95
96
|
__decorate([
|
|
@@ -120,4 +121,9 @@ __decorate([
|
|
|
120
121
|
(0, class_validator_1.IsUUID)(),
|
|
121
122
|
__metadata("design:type", String)
|
|
122
123
|
], CloudSessionContext.prototype, "gameplayId", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
(0, class_validator_1.IsUUID)(),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], CloudSessionContext.prototype, "atpId", void 0);
|
|
123
129
|
//# sourceMappingURL=cloud-session-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,mBAAmB;CAwF/B;AAxFD,kDAwFC;AArFC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAG7B;IADC,IAAA,4BAAU,GAAE;;4DACY;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;oDACI;AAGjB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAKzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kDACM"}
|
package/package.json
CHANGED
package/src/v3/events/index.ts
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IsUUID } from "class-validator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
|
|
5
|
+
export class LudeocastResourceErrorTimeoutTaskEventPayload {
|
|
6
|
+
@IsUUID()
|
|
7
|
+
resourceId: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export class LudeocastResourceErrorTimeoutTask extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME =
|
|
12
|
+
"cloud-resource-monitor.ludeocast-resource-error-timeout";
|
|
13
|
+
|
|
14
|
+
constructor(
|
|
15
|
+
payload: LudeocastResourceErrorTimeoutTaskEventPayload,
|
|
16
|
+
context: never
|
|
17
|
+
) {
|
|
18
|
+
super(LudeocastResourceErrorTimeoutTask.EVENT_NAME);
|
|
19
|
+
this.payload = payload;
|
|
20
|
+
this.context = context;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
context: never;
|
|
24
|
+
|
|
25
|
+
@ValidateNestedType(() => LudeocastResourceErrorTimeoutTaskEventPayload)
|
|
26
|
+
payload: LudeocastResourceErrorTimeoutTaskEventPayload;
|
|
27
|
+
}
|
|
@@ -61,6 +61,7 @@ export class CloudSessionContext {
|
|
|
61
61
|
tabSessionId?: string;
|
|
62
62
|
|
|
63
63
|
@IsOptional()
|
|
64
|
+
@IsUUID()
|
|
64
65
|
playSessionId?: string;
|
|
65
66
|
|
|
66
67
|
@IsOptional()
|
|
@@ -84,4 +85,8 @@ export class CloudSessionContext {
|
|
|
84
85
|
@IsOptional()
|
|
85
86
|
@IsUUID()
|
|
86
87
|
gameplayId?: string;
|
|
88
|
+
|
|
89
|
+
@IsOptional()
|
|
90
|
+
@IsUUID()
|
|
91
|
+
atpId?: string;
|
|
87
92
|
}
|