@ludeo/cloud-common 1.2.115 → 1.2.116-ygbeta1
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/index.d.ts +1 -0
- package/dist/v4/events/index.js +1 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/ludeo-build-updated.d.ts +15 -0
- package/dist/v4/events/ludeo-build-updated.js +57 -0
- package/dist/v4/events/ludeo-build-updated.js.map +1 -0
- package/dist/v4/types/cloud/ludeocast/allocation-data.d.ts +0 -4
- package/dist/v4/types/cloud/ludeocast/allocation-data.js +0 -16
- package/dist/v4/types/cloud/ludeocast/allocation-data.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/index.ts +1 -0
- package/src/v4/events/ludeo-build-updated.ts +38 -0
- package/src/v4/types/cloud/ludeocast/allocation-data.ts +0 -12
package/dist/v4/events/index.js
CHANGED
|
@@ -150,4 +150,5 @@ __exportStar(require("./build-assignment-settings-ready"), exports);
|
|
|
150
150
|
__exportStar(require("./pools-build-assignment-failed"), exports);
|
|
151
151
|
__exportStar(require("./build-assignment-failed"), exports);
|
|
152
152
|
__exportStar(require("./monitor-aws-build-replication-status-task"), exports);
|
|
153
|
+
__exportStar(require("./ludeo-build-updated"), exports);
|
|
153
154
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/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,qEAA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AChD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,+DAA6C;AAC7C,oEAAkD;AAClD,kEAAgD;AAChD,yDAAuC;AACvC,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,kDAAgC;AAChC,kEAAgD;AAChD,sEAAoD;AACpD,uEAAqD;AACrD,oDAAkC;AAClC,iEAA+C;AAC/C,mDAAiC;AACjC,iDAA+B;AAC/B,0DAAwC;AACxC,uDAAqC;AACrC,uDAAqC;AACrC,iFAA+D;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/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;A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AqC;AACrC,uDAAqC;AACrC,iFAA+D;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { BuildContext } from "../contexts";
|
|
3
|
+
export declare class LudeoBuildUpdatedPayload {
|
|
4
|
+
ludeoId: string;
|
|
5
|
+
gameId: string;
|
|
6
|
+
buildId: string;
|
|
7
|
+
buildVersion: string;
|
|
8
|
+
gameVersion: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class LudeoBuildUpdated extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.ludeo-build-updated";
|
|
12
|
+
constructor(payload: LudeoBuildUpdatedPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: LudeoBuildUpdatedPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.LudeoBuildUpdated = exports.LudeoBuildUpdatedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const contexts_1 = require("../contexts");
|
|
17
|
+
class LudeoBuildUpdatedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.LudeoBuildUpdatedPayload = LudeoBuildUpdatedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], LudeoBuildUpdatedPayload.prototype, "ludeoId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], LudeoBuildUpdatedPayload.prototype, "gameId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], LudeoBuildUpdatedPayload.prototype, "buildId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], LudeoBuildUpdatedPayload.prototype, "buildVersion", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], LudeoBuildUpdatedPayload.prototype, "gameVersion", void 0);
|
|
40
|
+
class LudeoBuildUpdated extends ludeo_event_1.LudeoEvent {
|
|
41
|
+
constructor(payload, context) {
|
|
42
|
+
super(LudeoBuildUpdated.EVENT_NAME);
|
|
43
|
+
this.payload = payload;
|
|
44
|
+
this.context = context;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.LudeoBuildUpdated = LudeoBuildUpdated;
|
|
48
|
+
LudeoBuildUpdated.EVENT_NAME = "cloud-builds.ludeo-build-updated";
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
|
|
51
|
+
__metadata("design:type", contexts_1.BuildContext)
|
|
52
|
+
], LudeoBuildUpdated.prototype, "context", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoBuildUpdatedPayload),
|
|
55
|
+
__metadata("design:type", LudeoBuildUpdatedPayload)
|
|
56
|
+
], LudeoBuildUpdated.prototype, "payload", void 0);
|
|
57
|
+
//# sourceMappingURL=ludeo-build-updated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ludeo-build-updated.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-build-updated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,oGAAqF;AACrF,yDAAqD;AACrD,0CAA6D;AAE7D,MAAa,wBAAwB;CAepC;AAfD,4DAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;yDACO;AAGhB;IADC,IAAA,wBAAM,GAAE;;wDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;yDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;8DACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;6DACS;AAGtB,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YAAY,OAAiC,EAAE,OAAqB;QAClE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,8CAcC;AAbiB,4BAAU,GAAG,kCAAkC,CAAC;AAShE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,uBAAY;kDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
|
@@ -18,20 +18,4 @@ __decorate([
|
|
|
18
18
|
(0, class_validator_1.IsString)(),
|
|
19
19
|
__metadata("design:type", String)
|
|
20
20
|
], LudeoCastAllocationData.prototype, "signalingURI", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], LudeoCastAllocationData.prototype, "stunURL", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], LudeoCastAllocationData.prototype, "turnURL", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], LudeoCastAllocationData.prototype, "turnUsername", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsString)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], LudeoCastAllocationData.prototype, "turnPassword", void 0);
|
|
37
21
|
//# sourceMappingURL=allocation-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast/allocation-data.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,uBAAuB;
|
|
1
|
+
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast/allocation-data.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;6DACU"}
|
package/package.json
CHANGED
package/src/v4/events/index.ts
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IsString, IsUUID } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { CloudPoolContext, BuildContext } from "../contexts";
|
|
6
|
+
|
|
7
|
+
export class LudeoBuildUpdatedPayload {
|
|
8
|
+
@IsUUID()
|
|
9
|
+
ludeoId: string;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
gameId: string;
|
|
13
|
+
|
|
14
|
+
@IsUUID()
|
|
15
|
+
buildId: string;
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
buildVersion: string;
|
|
19
|
+
|
|
20
|
+
@IsString()
|
|
21
|
+
gameVersion: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class LudeoBuildUpdated extends LudeoEvent {
|
|
25
|
+
static readonly EVENT_NAME = "cloud-builds.ludeo-build-updated";
|
|
26
|
+
|
|
27
|
+
constructor(payload: LudeoBuildUpdatedPayload, context: BuildContext) {
|
|
28
|
+
super(LudeoBuildUpdated.EVENT_NAME);
|
|
29
|
+
this.payload = payload;
|
|
30
|
+
this.context = context;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@ValidateNestedType(() => CloudPoolContext)
|
|
34
|
+
context: BuildContext;
|
|
35
|
+
|
|
36
|
+
@ValidateNestedType(() => LudeoBuildUpdatedPayload)
|
|
37
|
+
payload: LudeoBuildUpdatedPayload;
|
|
38
|
+
}
|
|
@@ -3,16 +3,4 @@ import { IsString } from "class-validator";
|
|
|
3
3
|
export class LudeoCastAllocationData {
|
|
4
4
|
@IsString()
|
|
5
5
|
signalingURI: string;
|
|
6
|
-
|
|
7
|
-
@IsString()
|
|
8
|
-
stunURL: string;
|
|
9
|
-
|
|
10
|
-
@IsString()
|
|
11
|
-
turnURL: string;
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
turnUsername: string;
|
|
15
|
-
|
|
16
|
-
@IsString()
|
|
17
|
-
turnPassword: string;
|
|
18
6
|
}
|