@ludeo/cloud-common 1.2.121-beta-yahil-3 → 1.2.121
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-status-changed.d.ts +1 -1
- package/dist/v4/events/game-resource-status-changed.js +1 -0
- package/dist/v4/events/game-resource-status-changed.js.map +1 -1
- package/dist/v4/events/index.d.ts +1 -6
- package/dist/v4/events/index.js +1 -6
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/ludeocast-stream-state-updated.d.ts +25 -0
- package/dist/v4/events/ludeocast-stream-state-updated.js +64 -0
- package/dist/v4/events/ludeocast-stream-state-updated.js.map +1 -0
- package/dist/v4/types/build.d.ts +0 -4
- package/dist/v4/types/build.js +0 -4
- package/dist/v4/types/build.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/game-resource-status-changed.ts +2 -1
- package/src/v4/events/index.ts +1 -6
- package/src/v4/events/ludeocast-stream-state-updated.ts +52 -0
- package/src/v4/types/build.ts +0 -4
- package/dist/v4/events/build-files-verification-job-failed.d.ts +0 -15
- package/dist/v4/events/build-files-verification-job-failed.js +0 -51
- package/dist/v4/events/build-files-verification-job-failed.js.map +0 -1
- package/dist/v4/events/build-files-verification-job-finished.d.ts +0 -14
- package/dist/v4/events/build-files-verification-job-finished.js +0 -47
- package/dist/v4/events/build-files-verification-job-finished.js.map +0 -1
- package/dist/v4/events/build-files-verification-job.d.ts +0 -15
- package/dist/v4/events/build-files-verification-job.js +0 -51
- package/dist/v4/events/build-files-verification-job.js.map +0 -1
- package/dist/v4/events/build-files-verified.d.ts +0 -11
- package/dist/v4/events/build-files-verified.js +0 -41
- package/dist/v4/events/build-files-verified.js.map +0 -1
- package/dist/v4/events/clean-build-distribution-job.d.ts +0 -15
- package/dist/v4/events/clean-build-distribution-job.js +0 -51
- package/dist/v4/events/clean-build-distribution-job.js.map +0 -1
- package/dist/v4/events/monitor-aws-build-files-verification-task.d.ts +0 -13
- package/dist/v4/events/monitor-aws-build-files-verification-task.js +0 -44
- package/dist/v4/events/monitor-aws-build-files-verification-task.js.map +0 -1
- package/src/v4/events/build-files-verification-job-failed.ts +0 -38
- package/src/v4/events/build-files-verification-job-finished.ts +0 -35
- package/src/v4/events/build-files-verification-job.ts +0 -37
- package/src/v4/events/build-files-verified.ts +0 -25
- package/src/v4/events/clean-build-distribution-job.ts +0 -36
- package/src/v4/events/monitor-aws-build-files-verification-task.ts +0 -30
|
@@ -4,7 +4,7 @@ import { CloudResourceProviderSettings, CloudResourceStatus } from "../types";
|
|
|
4
4
|
export declare class GameResourceStatusChangedEventPayload {
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
gamePoolId: string;
|
|
7
|
-
providerSettings
|
|
7
|
+
providerSettings?: CloudResourceProviderSettings;
|
|
8
8
|
status: CloudResourceStatus;
|
|
9
9
|
previousStatus?: CloudResourceStatus;
|
|
10
10
|
error?: string;
|
|
@@ -27,6 +27,7 @@ __decorate([
|
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], GameResourceStatusChangedEventPayload.prototype, "gamePoolId", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
31
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(types_1.getResourceProviderSettingsType),
|
|
31
32
|
__metadata("design:type", Object)
|
|
32
33
|
], GameResourceStatusChangedEventPayload.prototype, "providerSettings", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-status-changed.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAIkB;AAClB,oGAAqF;AAErF,MAAa,qCAAqC;
|
|
1
|
+
{"version":3,"file":"game-resource-status-changed.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAIkB;AAClB,oGAAqF;AAErF,MAAa,qCAAqC;CAqBjD;AArBD,sFAqBC;AAnBC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,uCAA+B,CAAC;;+EACH;AAGjD;IADC,IAAA,0BAAQ,GAAE;;qEACiB;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6EAC0B;AAIrC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACI;AAGjB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,qDAAqD,CAAC;AAYxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;+DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
|
|
@@ -97,6 +97,7 @@ export * from "./swap-cloud-user-gameplay-request-failed";
|
|
|
97
97
|
export * from "./deallocate-game-request";
|
|
98
98
|
export * from "./ludeo-available";
|
|
99
99
|
export * from "./ludeo-resource-status-changed";
|
|
100
|
+
export * from "./ludeocast-stream-state-updated";
|
|
100
101
|
export * from "./game-deallocated-response";
|
|
101
102
|
export * from "./game-deallocation-failed-response";
|
|
102
103
|
export * from "./terminate-stale-ludeos";
|
|
@@ -135,9 +136,3 @@ export * from "./pools-build-assignment-failed";
|
|
|
135
136
|
export * from "./build-assignment-failed";
|
|
136
137
|
export * from "./monitor-aws-build-replication-status-task";
|
|
137
138
|
export * from "./ludeo-build-updated";
|
|
138
|
-
export * from "./clean-build-distribution-job";
|
|
139
|
-
export * from "./monitor-aws-build-files-verification-task";
|
|
140
|
-
export * from "./build-files-verification-job";
|
|
141
|
-
export * from "./build-files-verification-job-finished";
|
|
142
|
-
export * from "./build-files-verification-job-failed";
|
|
143
|
-
export * from "./build-files-verified";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -113,6 +113,7 @@ __exportStar(require("./swap-cloud-user-gameplay-request-failed"), exports);
|
|
|
113
113
|
__exportStar(require("./deallocate-game-request"), exports);
|
|
114
114
|
__exportStar(require("./ludeo-available"), exports);
|
|
115
115
|
__exportStar(require("./ludeo-resource-status-changed"), exports);
|
|
116
|
+
__exportStar(require("./ludeocast-stream-state-updated"), exports);
|
|
116
117
|
__exportStar(require("./game-deallocated-response"), exports);
|
|
117
118
|
__exportStar(require("./game-deallocation-failed-response"), exports);
|
|
118
119
|
__exportStar(require("./terminate-stale-ludeos"), exports);
|
|
@@ -151,10 +152,4 @@ __exportStar(require("./pools-build-assignment-failed"), exports);
|
|
|
151
152
|
__exportStar(require("./build-assignment-failed"), exports);
|
|
152
153
|
__exportStar(require("./monitor-aws-build-replication-status-task"), exports);
|
|
153
154
|
__exportStar(require("./ludeo-build-updated"), exports);
|
|
154
|
-
__exportStar(require("./clean-build-distribution-job"), exports);
|
|
155
|
-
__exportStar(require("./monitor-aws-build-files-verification-task"), exports);
|
|
156
|
-
__exportStar(require("./build-files-verification-job"), exports);
|
|
157
|
-
__exportStar(require("./build-files-verification-job-finished"), exports);
|
|
158
|
-
__exportStar(require("./build-files-verification-job-failed"), exports);
|
|
159
|
-
__exportStar(require("./build-files-verified"), exports);
|
|
160
155
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceR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AC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,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;AAC5D,wDAAsC
|
|
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,6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D;AACjD,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;AAC5D,wDAAsC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare enum LudeoCastStreamState {
|
|
3
|
+
UNKNOWN = "Unknown",
|
|
4
|
+
STARTING = "Starting",
|
|
5
|
+
IDLE = "Idle",
|
|
6
|
+
CONNECTING = "Connecting",
|
|
7
|
+
CONNECTED = "Connected",
|
|
8
|
+
STOPPING = "Stopping",
|
|
9
|
+
STOPPED = "Stopped",
|
|
10
|
+
FAULTED = "Faulted"
|
|
11
|
+
}
|
|
12
|
+
export declare class LudeoCastStreamStateUpdatedPayload {
|
|
13
|
+
machineId: string;
|
|
14
|
+
runId?: string;
|
|
15
|
+
stateUpdate: LudeoCastStreamState;
|
|
16
|
+
timestamp?: string;
|
|
17
|
+
gameResourceId?: string;
|
|
18
|
+
gamePoolId?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class LudeoCastStreamStateUpdated extends LudeoEvent {
|
|
21
|
+
static readonly EVENT_NAME = "cloud-pools.ludeocast-sidecar.state-update";
|
|
22
|
+
constructor(payload: LudeoCastStreamStateUpdatedPayload);
|
|
23
|
+
payload: LudeoCastStreamStateUpdatedPayload;
|
|
24
|
+
context: never;
|
|
25
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.LudeoCastStreamStateUpdated = exports.LudeoCastStreamStateUpdatedPayload = exports.LudeoCastStreamState = 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
|
+
var LudeoCastStreamState;
|
|
17
|
+
(function (LudeoCastStreamState) {
|
|
18
|
+
LudeoCastStreamState["UNKNOWN"] = "Unknown";
|
|
19
|
+
LudeoCastStreamState["STARTING"] = "Starting";
|
|
20
|
+
LudeoCastStreamState["IDLE"] = "Idle";
|
|
21
|
+
LudeoCastStreamState["CONNECTING"] = "Connecting";
|
|
22
|
+
LudeoCastStreamState["CONNECTED"] = "Connected";
|
|
23
|
+
LudeoCastStreamState["STOPPING"] = "Stopping";
|
|
24
|
+
LudeoCastStreamState["STOPPED"] = "Stopped";
|
|
25
|
+
LudeoCastStreamState["FAULTED"] = "Faulted";
|
|
26
|
+
})(LudeoCastStreamState || (exports.LudeoCastStreamState = LudeoCastStreamState = {}));
|
|
27
|
+
class LudeoCastStreamStateUpdatedPayload {
|
|
28
|
+
}
|
|
29
|
+
exports.LudeoCastStreamStateUpdatedPayload = LudeoCastStreamStateUpdatedPayload;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], LudeoCastStreamStateUpdatedPayload.prototype, "machineId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], LudeoCastStreamStateUpdatedPayload.prototype, "runId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], LudeoCastStreamStateUpdatedPayload.prototype, "timestamp", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], LudeoCastStreamStateUpdatedPayload.prototype, "gameResourceId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], LudeoCastStreamStateUpdatedPayload.prototype, "gamePoolId", void 0);
|
|
52
|
+
class LudeoCastStreamStateUpdated extends ludeo_event_1.LudeoEvent {
|
|
53
|
+
constructor(payload) {
|
|
54
|
+
super(LudeoCastStreamStateUpdated.EVENT_NAME);
|
|
55
|
+
this.payload = payload;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.LudeoCastStreamStateUpdated = LudeoCastStreamStateUpdated;
|
|
59
|
+
LudeoCastStreamStateUpdated.EVENT_NAME = "cloud-pools.ludeocast-sidecar.state-update";
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoCastStreamStateUpdatedPayload),
|
|
62
|
+
__metadata("design:type", LudeoCastStreamStateUpdatedPayload)
|
|
63
|
+
], LudeoCastStreamStateUpdated.prototype, "payload", void 0);
|
|
64
|
+
//# sourceMappingURL=ludeocast-stream-state-updated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ludeocast-stream-state-updated.js","sourceRoot":"","sources":["../../../src/v4/events/ludeocast-stream-state-updated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yDAAqD;AACrD,oGAAqF;AAErF,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,6CAAqB,CAAA;IACrB,qCAAa,CAAA;IACb,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;IACnB,2CAAmB,CAAA;AACrB,CAAC,EATW,oBAAoB,oCAApB,oBAAoB,QAS/B;AAED,MAAa,kCAAkC;CAsB9C;AAtBD,gFAsBC;AAnBC;IADC,IAAA,0BAAQ,GAAE;;qEACO;AAKlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACI;AAOf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qEACQ;AAGnB;IADC,IAAA,0BAAQ,GAAE;;0EACa;AAGxB;IADC,IAAA,0BAAQ,GAAE;;sEACS;AAGtB,MAAa,2BAA4B,SAAQ,wBAAU;IAGzD,YAAY,OAA2C;QACrD,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,kEAYC;AAXiB,sCAAU,GAAG,4CAA4C,CAAC;AAQ1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;8BACpD,kCAAkC;4DAAC"}
|
package/dist/v4/types/build.d.ts
CHANGED
|
@@ -2,10 +2,6 @@ import { AWSProviderSettings, CloudProvider } from "./cloud";
|
|
|
2
2
|
export declare enum BuildStatus {
|
|
3
3
|
DRAFT = "draft",
|
|
4
4
|
UPLOADED = "uploaded",
|
|
5
|
-
UPLOAD_FAILED = "upload-failed",
|
|
6
|
-
VERIFYING_FILES = "verifying-files",
|
|
7
|
-
FILES_VERIFIED = "files-verified",
|
|
8
|
-
FILES_VERIFICATION_FAILED = "files-verification-failed",
|
|
9
5
|
DISTRIBUTING = "distributing",
|
|
10
6
|
DISTRIBUTED = "distributed",
|
|
11
7
|
FAILED = "failed",
|
package/dist/v4/types/build.js
CHANGED
|
@@ -16,10 +16,6 @@ var BuildStatus;
|
|
|
16
16
|
(function (BuildStatus) {
|
|
17
17
|
BuildStatus["DRAFT"] = "draft";
|
|
18
18
|
BuildStatus["UPLOADED"] = "uploaded";
|
|
19
|
-
BuildStatus["UPLOAD_FAILED"] = "upload-failed";
|
|
20
|
-
BuildStatus["VERIFYING_FILES"] = "verifying-files";
|
|
21
|
-
BuildStatus["FILES_VERIFIED"] = "files-verified";
|
|
22
|
-
BuildStatus["FILES_VERIFICATION_FAILED"] = "files-verification-failed";
|
|
23
19
|
BuildStatus["DISTRIBUTING"] = "distributing";
|
|
24
20
|
BuildStatus["DISTRIBUTED"] = "distributed";
|
|
25
21
|
BuildStatus["FAILED"] = "failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,mCAA6D;AAE7D,IAAY,
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAy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qB,qCAArB,qBAAqB,QAIhC"}
|
package/package.json
CHANGED
|
@@ -15,8 +15,9 @@ export class GameResourceStatusChangedEventPayload {
|
|
|
15
15
|
@IsUUID()
|
|
16
16
|
gamePoolId: string;
|
|
17
17
|
|
|
18
|
+
@IsOptional()
|
|
18
19
|
@ValidateNestedType(getResourceProviderSettingsType)
|
|
19
|
-
providerSettings
|
|
20
|
+
providerSettings?: CloudResourceProviderSettings;
|
|
20
21
|
|
|
21
22
|
@IsString()
|
|
22
23
|
status: CloudResourceStatus;
|
package/src/v4/events/index.ts
CHANGED
|
@@ -97,6 +97,7 @@ export * from "./swap-cloud-user-gameplay-request-failed";
|
|
|
97
97
|
export * from "./deallocate-game-request";
|
|
98
98
|
export * from "./ludeo-available";
|
|
99
99
|
export * from "./ludeo-resource-status-changed";
|
|
100
|
+
export * from "./ludeocast-stream-state-updated";
|
|
100
101
|
export * from "./game-deallocated-response";
|
|
101
102
|
export * from "./game-deallocation-failed-response";
|
|
102
103
|
export * from "./terminate-stale-ludeos";
|
|
@@ -135,9 +136,3 @@ export * from "./pools-build-assignment-failed";
|
|
|
135
136
|
export * from "./build-assignment-failed";
|
|
136
137
|
export * from "./monitor-aws-build-replication-status-task";
|
|
137
138
|
export * from "./ludeo-build-updated";
|
|
138
|
-
export * from "./clean-build-distribution-job";
|
|
139
|
-
export * from "./monitor-aws-build-files-verification-task";
|
|
140
|
-
export * from "./build-files-verification-job";
|
|
141
|
-
export * from "./build-files-verification-job-finished";
|
|
142
|
-
export * from "./build-files-verification-job-failed";
|
|
143
|
-
export * from "./build-files-verified";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IsOptional, IsString } from "class-validator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
|
|
5
|
+
export enum LudeoCastStreamState {
|
|
6
|
+
UNKNOWN = "Unknown", // Unknown state, should not occur
|
|
7
|
+
STARTING = "Starting", // Initial state during sidecar startup
|
|
8
|
+
IDLE = "Idle", // Initialized and ready for WebRTC
|
|
9
|
+
CONNECTING = "Connecting", // WebRTC connection in progress
|
|
10
|
+
CONNECTED = "Connected", // WebRTC connection established
|
|
11
|
+
STOPPING = "Stopping", // Graceful shutdown initiated
|
|
12
|
+
STOPPED = "Stopped", // Shutdown completed
|
|
13
|
+
FAULTED = "Faulted", // Error state, requires intervention
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class LudeoCastStreamStateUpdatedPayload {
|
|
17
|
+
/** Unique identifier for the machine that generated the update */
|
|
18
|
+
@IsString()
|
|
19
|
+
machineId: string;
|
|
20
|
+
/** The GUID of the sidecar's active session */
|
|
21
|
+
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsString()
|
|
24
|
+
runId?: string;
|
|
25
|
+
|
|
26
|
+
/** The new state that the system has transitioned to */
|
|
27
|
+
stateUpdate: LudeoCastStreamState;
|
|
28
|
+
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsString()
|
|
31
|
+
timestamp?: string;
|
|
32
|
+
|
|
33
|
+
@IsString()
|
|
34
|
+
gameResourceId?: string;
|
|
35
|
+
|
|
36
|
+
@IsString()
|
|
37
|
+
gamePoolId?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class LudeoCastStreamStateUpdated extends LudeoEvent {
|
|
41
|
+
static readonly EVENT_NAME = "cloud-pools.ludeocast-sidecar.state-update";
|
|
42
|
+
|
|
43
|
+
constructor(payload: LudeoCastStreamStateUpdatedPayload) {
|
|
44
|
+
super(LudeoCastStreamStateUpdated.EVENT_NAME);
|
|
45
|
+
this.payload = payload;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@ValidateNestedType(() => LudeoCastStreamStateUpdatedPayload)
|
|
49
|
+
payload: LudeoCastStreamStateUpdatedPayload;
|
|
50
|
+
|
|
51
|
+
context: never;
|
|
52
|
+
}
|
package/src/v4/types/build.ts
CHANGED
|
@@ -4,10 +4,6 @@ import { AWSProviderSettings, CloudProvider } from "./cloud";
|
|
|
4
4
|
export enum BuildStatus {
|
|
5
5
|
DRAFT = "draft",
|
|
6
6
|
UPLOADED = "uploaded",
|
|
7
|
-
UPLOAD_FAILED = "upload-failed",
|
|
8
|
-
VERIFYING_FILES = "verifying-files",
|
|
9
|
-
FILES_VERIFIED = "files-verified",
|
|
10
|
-
FILES_VERIFICATION_FAILED = "files-verification-failed",
|
|
11
7
|
DISTRIBUTING = "distributing",
|
|
12
8
|
DISTRIBUTED = "distributed",
|
|
13
9
|
FAILED = "failed",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CloudProvider } from "../types";
|
|
2
|
-
import { BuildContext } from "../contexts/build-context";
|
|
3
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import { CloudBuild } from "../types/build";
|
|
5
|
-
export declare class BuildFilesVerificationJobFailedPayload {
|
|
6
|
-
build: CloudBuild;
|
|
7
|
-
files: string[];
|
|
8
|
-
cloudProvider: CloudProvider;
|
|
9
|
-
}
|
|
10
|
-
export declare class BuildFilesVerificationJobFailed extends LudeoEvent {
|
|
11
|
-
static readonly EVENT_NAME = "cloud-builds.build-files-verification-job-failed";
|
|
12
|
-
constructor(payload: BuildFilesVerificationJobFailedPayload, context: BuildContext);
|
|
13
|
-
context: BuildContext;
|
|
14
|
-
payload: BuildFilesVerificationJobFailedPayload;
|
|
15
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
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.BuildFilesVerificationJobFailed = exports.BuildFilesVerificationJobFailedPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const types_1 = require("../types");
|
|
15
|
-
const build_context_1 = require("../contexts/build-context");
|
|
16
|
-
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
-
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
-
const build_1 = require("../types/build");
|
|
19
|
-
class BuildFilesVerificationJobFailedPayload {
|
|
20
|
-
}
|
|
21
|
-
exports.BuildFilesVerificationJobFailedPayload = BuildFilesVerificationJobFailedPayload;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
-
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
-
], BuildFilesVerificationJobFailedPayload.prototype, "build", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsArray)(),
|
|
28
|
-
__metadata("design:type", Array)
|
|
29
|
-
], BuildFilesVerificationJobFailedPayload.prototype, "files", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], BuildFilesVerificationJobFailedPayload.prototype, "cloudProvider", void 0);
|
|
34
|
-
class BuildFilesVerificationJobFailed extends ludeo_event_1.LudeoEvent {
|
|
35
|
-
constructor(payload, context) {
|
|
36
|
-
super(BuildFilesVerificationJobFailed.EVENT_NAME);
|
|
37
|
-
this.payload = payload;
|
|
38
|
-
this.context = context;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.BuildFilesVerificationJobFailed = BuildFilesVerificationJobFailed;
|
|
42
|
-
BuildFilesVerificationJobFailed.EVENT_NAME = "cloud-builds.build-files-verification-job-failed";
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
|
-
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
-
], BuildFilesVerificationJobFailed.prototype, "context", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildFilesVerificationJobFailedPayload),
|
|
49
|
-
__metadata("design:type", BuildFilesVerificationJobFailedPayload)
|
|
50
|
-
], BuildFilesVerificationJobFailed.prototype, "payload", void 0);
|
|
51
|
-
//# sourceMappingURL=build-files-verification-job-failed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-files-verification-job-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-files-verification-job-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAC1D,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,0CAA4C;AAE5C,MAAa,sCAAsC;CASlD;AATD,wFASC;AAPC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;qEAAC;AAGlB;IADC,IAAA,yBAAO,GAAE;;qEACM;AAGhB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;6EACO;AAG/B,MAAa,+BAAgC,SAAQ,wBAAU;IAI7D,YACE,OAA+C,EAC/C,OAAqB;QAErB,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,0EAkBC;AAjBiB,0CAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;gEAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;8BACxD,sCAAsC;gEAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CloudProvider } from "../types";
|
|
2
|
-
import { BuildContext } from "../contexts/build-context";
|
|
3
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import { CloudBuild } from "../types/build";
|
|
5
|
-
export declare class BuildFilesVerificationJobFinishedPayload {
|
|
6
|
-
build: CloudBuild;
|
|
7
|
-
cloudProvider: CloudProvider;
|
|
8
|
-
}
|
|
9
|
-
export declare class BuildFilesVerificationJobFinished extends LudeoEvent {
|
|
10
|
-
static readonly EVENT_NAME = "cloud-builds.build-files-verification-job-finished";
|
|
11
|
-
constructor(payload: BuildFilesVerificationJobFinishedPayload, context: BuildContext);
|
|
12
|
-
context: BuildContext;
|
|
13
|
-
payload: BuildFilesVerificationJobFinishedPayload;
|
|
14
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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.BuildFilesVerificationJobFinished = exports.BuildFilesVerificationJobFinishedPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const types_1 = require("../types");
|
|
15
|
-
const build_context_1 = require("../contexts/build-context");
|
|
16
|
-
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
-
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
-
const build_1 = require("../types/build");
|
|
19
|
-
class BuildFilesVerificationJobFinishedPayload {
|
|
20
|
-
}
|
|
21
|
-
exports.BuildFilesVerificationJobFinishedPayload = BuildFilesVerificationJobFinishedPayload;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
-
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
-
], BuildFilesVerificationJobFinishedPayload.prototype, "build", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], BuildFilesVerificationJobFinishedPayload.prototype, "cloudProvider", void 0);
|
|
30
|
-
class BuildFilesVerificationJobFinished extends ludeo_event_1.LudeoEvent {
|
|
31
|
-
constructor(payload, context) {
|
|
32
|
-
super(BuildFilesVerificationJobFinished.EVENT_NAME);
|
|
33
|
-
this.payload = payload;
|
|
34
|
-
this.context = context;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.BuildFilesVerificationJobFinished = BuildFilesVerificationJobFinished;
|
|
38
|
-
BuildFilesVerificationJobFinished.EVENT_NAME = "cloud-builds.build-files-verification-job-finished";
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
41
|
-
__metadata("design:type", build_context_1.BuildContext)
|
|
42
|
-
], BuildFilesVerificationJobFinished.prototype, "context", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildFilesVerificationJobFinishedPayload),
|
|
45
|
-
__metadata("design:type", BuildFilesVerificationJobFinishedPayload)
|
|
46
|
-
], BuildFilesVerificationJobFinished.prototype, "payload", void 0);
|
|
47
|
-
//# sourceMappingURL=build-files-verification-job-finished.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-files-verification-job-finished.js","sourceRoot":"","sources":["../../../src/v4/events/build-files-verification-job-finished.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAC1D,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,0CAA4C;AAE5C,MAAa,wCAAwC;CAMpD;AAND,4FAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;uEAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;+EACO;AAG/B,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAiD,EACjD,OAAqB;QAErB,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,oDAAoD,CAAC;AAYvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;kEAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wCAAwC,CAAC;8BAC1D,wCAAwC;kEAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CloudProvider } from "../types";
|
|
2
|
-
import { BuildContext } from "../contexts/build-context";
|
|
3
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import { CloudBuild } from "../types/build";
|
|
5
|
-
export declare class BuildFilesVerificationJobPayload {
|
|
6
|
-
build: CloudBuild;
|
|
7
|
-
files: string[];
|
|
8
|
-
cloudProvider: CloudProvider;
|
|
9
|
-
}
|
|
10
|
-
export declare class BuildFilesVerificationJob extends LudeoEvent {
|
|
11
|
-
static readonly EVENT_NAME = "cloud-builds.build-files-verification-job";
|
|
12
|
-
constructor(payload: BuildFilesVerificationJobPayload, context: BuildContext);
|
|
13
|
-
context: BuildContext;
|
|
14
|
-
payload: BuildFilesVerificationJobPayload;
|
|
15
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
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.BuildFilesVerificationJob = exports.BuildFilesVerificationJobPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const types_1 = require("../types");
|
|
15
|
-
const build_context_1 = require("../contexts/build-context");
|
|
16
|
-
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
-
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
-
const build_1 = require("../types/build");
|
|
19
|
-
class BuildFilesVerificationJobPayload {
|
|
20
|
-
}
|
|
21
|
-
exports.BuildFilesVerificationJobPayload = BuildFilesVerificationJobPayload;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
|
-
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
-
], BuildFilesVerificationJobPayload.prototype, "build", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsArray)(),
|
|
28
|
-
__metadata("design:type", Array)
|
|
29
|
-
], BuildFilesVerificationJobPayload.prototype, "files", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], BuildFilesVerificationJobPayload.prototype, "cloudProvider", void 0);
|
|
34
|
-
class BuildFilesVerificationJob extends ludeo_event_1.LudeoEvent {
|
|
35
|
-
constructor(payload, context) {
|
|
36
|
-
super(BuildFilesVerificationJob.EVENT_NAME);
|
|
37
|
-
this.payload = payload;
|
|
38
|
-
this.context = context;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.BuildFilesVerificationJob = BuildFilesVerificationJob;
|
|
42
|
-
BuildFilesVerificationJob.EVENT_NAME = "cloud-builds.build-files-verification-job";
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
|
-
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
-
], BuildFilesVerificationJob.prototype, "context", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildFilesVerificationJobPayload),
|
|
49
|
-
__metadata("design:type", BuildFilesVerificationJobPayload)
|
|
50
|
-
], BuildFilesVerificationJob.prototype, "payload", void 0);
|
|
51
|
-
//# sourceMappingURL=build-files-verification-job.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-files-verification-job.js","sourceRoot":"","sources":["../../../src/v4/events/build-files-verification-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAC1D,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,0CAA4C;AAE5C,MAAa,gCAAgC;CAS5C;AATD,4EASC;AAPC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;+DAAC;AAGlB;IADC,IAAA,yBAAO,GAAE;;+DACM;AAGhB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uEACO;AAG/B,MAAa,yBAA0B,SAAQ,wBAAU;IAGvD,YACE,OAAyC,EACzC,OAAqB;QAErB,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8DAiBC;AAhBiB,oCAAU,GAAG,2CAA2C,CAAC;AAYzE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;0DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;8BAClD,gCAAgC;0DAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BuildContext } from "../contexts/build-context";
|
|
2
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
export declare class BuildFilesVerifiedPayload {
|
|
4
|
-
buildId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class BuildFilesVerified extends LudeoEvent {
|
|
7
|
-
static readonly EVENT_NAME = "cloud-builds.build-files-verified";
|
|
8
|
-
constructor(payload: BuildFilesVerifiedPayload, context: BuildContext);
|
|
9
|
-
context: BuildContext;
|
|
10
|
-
payload: BuildFilesVerifiedPayload;
|
|
11
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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.BuildFilesVerified = exports.BuildFilesVerifiedPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const build_context_1 = require("../contexts/build-context");
|
|
15
|
-
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
-
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
-
class BuildFilesVerifiedPayload {
|
|
18
|
-
}
|
|
19
|
-
exports.BuildFilesVerifiedPayload = BuildFilesVerifiedPayload;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsUUID)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], BuildFilesVerifiedPayload.prototype, "buildId", void 0);
|
|
24
|
-
class BuildFilesVerified extends ludeo_event_1.LudeoEvent {
|
|
25
|
-
constructor(payload, context) {
|
|
26
|
-
super(BuildFilesVerified.EVENT_NAME);
|
|
27
|
-
this.payload = payload;
|
|
28
|
-
this.context = context;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.BuildFilesVerified = BuildFilesVerified;
|
|
32
|
-
BuildFilesVerified.EVENT_NAME = "cloud-builds.build-files-verified";
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
35
|
-
__metadata("design:type", build_context_1.BuildContext)
|
|
36
|
-
], BuildFilesVerified.prototype, "context", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildFilesVerifiedPayload),
|
|
39
|
-
__metadata("design:type", BuildFilesVerifiedPayload)
|
|
40
|
-
], BuildFilesVerified.prototype, "payload", void 0);
|
|
41
|
-
//# sourceMappingURL=build-files-verified.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-files-verified.js","sourceRoot":"","sources":["../../../src/v4/events/build-files-verified.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,yBAAyB;CAGrC;AAHD,8DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;0DACO;AAGlB,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAkC,EAAE,OAAqB;QACnE,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gDAcC;AAbiB,6BAAU,GAAG,mCAAmC,CAAC;AASjE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;mDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC3C,yBAAyB;mDAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CloudProvider } from "../types";
|
|
2
|
-
import { BuildContext } from "../contexts/build-context";
|
|
3
|
-
import { CloudBuild } from "../types/build";
|
|
4
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
-
export declare class CleanBuildDistributionJobPayload {
|
|
6
|
-
build: CloudBuild;
|
|
7
|
-
files: string[];
|
|
8
|
-
cloudProvider: CloudProvider;
|
|
9
|
-
}
|
|
10
|
-
export declare class CleanBuildDistributionJob extends LudeoEvent {
|
|
11
|
-
static readonly EVENT_NAME = "cloud-builds.clean-build-distribution-job";
|
|
12
|
-
constructor(payload: CleanBuildDistributionJobPayload, context: BuildContext);
|
|
13
|
-
context: BuildContext;
|
|
14
|
-
payload: CleanBuildDistributionJobPayload;
|
|
15
|
-
}
|