@ludeo/cloud-common 1.2.82-ygarbage7 → 1.2.82
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 +0 -2
- package/dist/v4/events/index.js +0 -2
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/pool-status.d.ts +2 -1
- package/dist/v4/events/pool-status.js.map +1 -1
- package/dist/v4/types/cloud.d.ts +73 -0
- package/dist/v4/types/{cloud/session.js → cloud.js} +91 -9
- package/dist/v4/types/cloud.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/events/index.ts +0 -2
- package/src/v4/events/pool-status.ts +2 -2
- package/src/v4/types/cloud.ts +174 -0
- package/dist/v4/events/pool-created.event.d.ts +0 -9
- package/dist/v4/events/pool-created.event.js +0 -34
- package/dist/v4/events/pool-created.event.js.map +0 -1
- package/dist/v4/events/pool-updated.event.d.ts +0 -9
- package/dist/v4/events/pool-updated.event.js +0 -34
- package/dist/v4/events/pool-updated.event.js.map +0 -1
- package/dist/v4/types/cloud/allocation-data.d.ts +0 -3
- package/dist/v4/types/cloud/allocation-data.js +0 -3
- package/dist/v4/types/cloud/allocation-data.js.map +0 -1
- package/dist/v4/types/cloud/allocation-request.d.ts +0 -7
- package/dist/v4/types/cloud/allocation-request.js +0 -38
- package/dist/v4/types/cloud/allocation-request.js.map +0 -1
- package/dist/v4/types/cloud/aws/allocation-data.d.ts +0 -5
- package/dist/v4/types/cloud/aws/allocation-data.js +0 -29
- package/dist/v4/types/cloud/aws/allocation-data.js.map +0 -1
- package/dist/v4/types/cloud/aws/game-creation-response.d.ts +0 -3
- package/dist/v4/types/cloud/aws/game-creation-response.js +0 -22
- package/dist/v4/types/cloud/aws/game-creation-response.js.map +0 -1
- package/dist/v4/types/cloud/aws/index.d.ts +0 -5
- package/dist/v4/types/cloud/aws/index.js +0 -22
- package/dist/v4/types/cloud/aws/index.js.map +0 -1
- package/dist/v4/types/cloud/aws/provider-settings.d.ts +0 -11
- package/dist/v4/types/cloud/aws/provider-settings.js +0 -7
- package/dist/v4/types/cloud/aws/provider-settings.js.map +0 -1
- package/dist/v4/types/cloud/aws/request-data.d.ts +0 -3
- package/dist/v4/types/cloud/aws/request-data.js +0 -22
- package/dist/v4/types/cloud/aws/request-data.js.map +0 -1
- package/dist/v4/types/cloud/aws/resource-provider-settings.d.ts +0 -7
- package/dist/v4/types/cloud/aws/resource-provider-settings.js +0 -38
- package/dist/v4/types/cloud/aws/resource-provider-settings.js.map +0 -1
- package/dist/v4/types/cloud/game-creation-response.d.ts +0 -3
- package/dist/v4/types/cloud/game-creation-response.js +0 -3
- package/dist/v4/types/cloud/game-creation-response.js.map +0 -1
- package/dist/v4/types/cloud/index.d.ts +0 -10
- package/dist/v4/types/cloud/index.js +0 -27
- package/dist/v4/types/cloud/index.js.map +0 -1
- package/dist/v4/types/cloud/mock/allocation-data.d.ts +0 -5
- package/dist/v4/types/cloud/mock/allocation-data.js +0 -29
- package/dist/v4/types/cloud/mock/allocation-data.js.map +0 -1
- package/dist/v4/types/cloud/mock/game-creation-response.d.ts +0 -3
- package/dist/v4/types/cloud/mock/game-creation-response.js +0 -22
- package/dist/v4/types/cloud/mock/game-creation-response.js.map +0 -1
- package/dist/v4/types/cloud/mock/index.d.ts +0 -5
- package/dist/v4/types/cloud/mock/index.js +0 -22
- package/dist/v4/types/cloud/mock/index.js.map +0 -1
- package/dist/v4/types/cloud/mock/provider-settings.d.ts +0 -4
- package/dist/v4/types/cloud/mock/provider-settings.js +0 -7
- package/dist/v4/types/cloud/mock/provider-settings.js.map +0 -1
- package/dist/v4/types/cloud/mock/request-data.d.ts +0 -3
- package/dist/v4/types/cloud/mock/request-data.js +0 -22
- package/dist/v4/types/cloud/mock/request-data.js.map +0 -1
- package/dist/v4/types/cloud/mock/resource-provider-settings.d.ts +0 -6
- package/dist/v4/types/cloud/mock/resource-provider-settings.js +0 -33
- package/dist/v4/types/cloud/mock/resource-provider-settings.js.map +0 -1
- package/dist/v4/types/cloud/provider-request.d.ts +0 -3
- package/dist/v4/types/cloud/provider-request.js +0 -3
- package/dist/v4/types/cloud/provider-request.js.map +0 -1
- package/dist/v4/types/cloud/provider-settings.d.ts +0 -3
- package/dist/v4/types/cloud/provider-settings.js +0 -3
- package/dist/v4/types/cloud/provider-settings.js.map +0 -1
- package/dist/v4/types/cloud/provider.d.ts +0 -5
- package/dist/v4/types/cloud/provider.js +0 -10
- package/dist/v4/types/cloud/provider.js.map +0 -1
- package/dist/v4/types/cloud/resource-provider-settings.d.ts +0 -3
- package/dist/v4/types/cloud/resource-provider-settings.js +0 -3
- package/dist/v4/types/cloud/resource-provider-settings.js.map +0 -1
- package/dist/v4/types/cloud/session.d.ts +0 -32
- package/dist/v4/types/cloud/session.js.map +0 -1
- package/src/v4/events/pool-created.event.ts +0 -20
- package/src/v4/events/pool-updated.event.ts +0 -20
- package/src/v4/types/cloud/allocation-data.ts +0 -6
- package/src/v4/types/cloud/allocation-request.ts +0 -21
- package/src/v4/types/cloud/aws/allocation-data.ts +0 -12
- package/src/v4/types/cloud/aws/game-creation-response.ts +0 -7
- package/src/v4/types/cloud/aws/index.ts +0 -5
- package/src/v4/types/cloud/aws/provider-settings.ts +0 -12
- package/src/v4/types/cloud/aws/request-data.ts +0 -7
- package/src/v4/types/cloud/aws/resource-provider-settings.ts +0 -20
- package/src/v4/types/cloud/game-creation-response.ts +0 -6
- package/src/v4/types/cloud/index.ts +0 -10
- package/src/v4/types/cloud/mock/allocation-data.ts +0 -12
- package/src/v4/types/cloud/mock/game-creation-response.ts +0 -7
- package/src/v4/types/cloud/mock/index.ts +0 -5
- package/src/v4/types/cloud/mock/provider-settings.ts +0 -4
- package/src/v4/types/cloud/mock/request-data.ts +0 -7
- package/src/v4/types/cloud/mock/resource-provider-settings.ts +0 -16
- package/src/v4/types/cloud/provider-request.ts +0 -4
- package/src/v4/types/cloud/provider-settings.ts +0 -4
- package/src/v4/types/cloud/provider.ts +0 -5
- package/src/v4/types/cloud/resource-provider-settings.ts +0 -6
- package/src/v4/types/cloud/session.ts +0 -93
|
@@ -116,5 +116,3 @@ export * from "./monitor-aws-artifacts-status-task";
|
|
|
116
116
|
export * from "./build-artifacts-ready-for-creation";
|
|
117
117
|
export * from "./token-activated";
|
|
118
118
|
export * from "./cloud-session-sent-to-client";
|
|
119
|
-
export * from "./pool-updated.event";
|
|
120
|
-
export * from "./pool-created.event";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -132,6 +132,4 @@ __exportStar(require("./monitor-aws-artifacts-status-task"), exports);
|
|
|
132
132
|
__exportStar(require("./build-artifacts-ready-for-creation"), exports);
|
|
133
133
|
__exportStar(require("./token-activated"), exports);
|
|
134
134
|
__exportStar(require("./cloud-session-sent-to-client"), exports);
|
|
135
|
-
__exportStar(require("./pool-updated.event"), exports);
|
|
136
|
-
__exportStar(require("./pool-created.event"), exports);
|
|
137
135
|
//# 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,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,8E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AACrD,oDAAkC;AAClC,iEAA+C
|
|
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;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,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import { CloudResourcesStatusMap, BasePoolAttributes, LudeoPoolAttributes, MachinePoolAttributes, CloudProviderSettings
|
|
2
|
+
import { CloudResourcesStatusMap, BasePoolAttributes, LudeoPoolAttributes, MachinePoolAttributes, CloudProviderSettings } from "../types";
|
|
3
|
+
import { GamePoolAttributes } from "../../v3/types";
|
|
3
4
|
export declare class PoolStatusEventBasePool<T extends BasePoolAttributes = BasePoolAttributes> {
|
|
4
5
|
attributes: T;
|
|
5
6
|
statusMap: CloudResourcesStatusMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,yDAAqD;AACrD,oCAOkB;AAClB,oGAAqF;AAErF,4FAA4E;AAE5E,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AANC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;;2DAC/B;AAKd;IADC,IAAA,wBAAM,GAAE;;uDACM;AAGjB,MAAa,wBAAyB,SAAQ,uBAA4C;CAOzF;AAPD,4DAOC;AALC;IADC,IAAA,wBAAM,GAAE;;4DACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;yDACC;AAGnB,MAAa,uBAAwB,SAAQ,uBAA2C;CAKvF;AALD,0DAKC;AAHC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAKxB,MAAa,0BAA2B,SAAQ,uBAA8C;CAK7F;AALD,gEAKC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;oEACG;AAGnD,MAAa,sBAAsB;CAKlC;AALD,wDAKC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACS;AAGpB,MAAa,eAAgB,SAAQ,wBAAU;IAG7C,YAAY,OAA+B;QACzC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,0CAUC;AATiB,0BAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACxC,sBAAsB;gDAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { GameCast } from "@ludeo/aws-gamecast-sdk";
|
|
2
|
+
export declare class AWSRequestData {
|
|
3
|
+
signalRequest: string;
|
|
4
|
+
}
|
|
5
|
+
export type CloudProviderRequest = AWSRequestData;
|
|
6
|
+
export declare enum CloudProvider {
|
|
7
|
+
AWS = "aws",
|
|
8
|
+
NVIDIA = "nvidia"
|
|
9
|
+
}
|
|
10
|
+
export declare class AWSProviderSettings {
|
|
11
|
+
streamGroupId: GameCast.Identifier;
|
|
12
|
+
additionalEnvironmentVariables?: GameCast.EnvironmentVariables;
|
|
13
|
+
protocol?: GameCast.Protocol;
|
|
14
|
+
connectionTimeoutSeconds?: GameCast.ConnectionTimeoutSeconds;
|
|
15
|
+
sessionLengthSeconds?: GameCast.SessionLengthSeconds;
|
|
16
|
+
applicationIdentifier?: GameCast.Identifier;
|
|
17
|
+
machinePoolSize?: number;
|
|
18
|
+
region?: string;
|
|
19
|
+
}
|
|
20
|
+
export type CloudProviderSettings = AWSProviderSettings;
|
|
21
|
+
export declare class AwsAllocationData {
|
|
22
|
+
streamGroupId: string;
|
|
23
|
+
streamSessionId: string;
|
|
24
|
+
signalResponse: string;
|
|
25
|
+
}
|
|
26
|
+
export type CloudProviderAllocationData = AwsAllocationData;
|
|
27
|
+
export declare class AWSResourceProviderSettings {
|
|
28
|
+
streamSessionId?: string;
|
|
29
|
+
streamGroupId?: string;
|
|
30
|
+
cloudProvider?: CloudProvider;
|
|
31
|
+
region?: string;
|
|
32
|
+
}
|
|
33
|
+
export type CloudResourceProviderSettings = AWSResourceProviderSettings;
|
|
34
|
+
export declare class AWSGameCreationResponse {
|
|
35
|
+
streamSessionId: string;
|
|
36
|
+
}
|
|
37
|
+
export type GameCreationResponse = AWSGameCreationResponse;
|
|
38
|
+
export declare class AllocationRequestData {
|
|
39
|
+
cloudProviderRequest: CloudProviderRequest;
|
|
40
|
+
clientIp?: string;
|
|
41
|
+
region?: string;
|
|
42
|
+
sessionToken: string;
|
|
43
|
+
}
|
|
44
|
+
export declare enum CloudSessionStatus {
|
|
45
|
+
Created = "created",
|
|
46
|
+
PendingAllocation = "pending",
|
|
47
|
+
PendingConnection = "pending-connection",
|
|
48
|
+
Connected = "connected",
|
|
49
|
+
Allocated = "allocated",
|
|
50
|
+
Terminated = "terminated",
|
|
51
|
+
Failed = "failed"
|
|
52
|
+
}
|
|
53
|
+
export declare class CloudSession {
|
|
54
|
+
id: string;
|
|
55
|
+
userId: string;
|
|
56
|
+
gameId: string;
|
|
57
|
+
ludeoId: string;
|
|
58
|
+
createdAt: number;
|
|
59
|
+
updatedAt: number;
|
|
60
|
+
status: CloudSessionStatus;
|
|
61
|
+
cloudProvider: CloudProvider;
|
|
62
|
+
gameResourceId?: string;
|
|
63
|
+
poolId?: string;
|
|
64
|
+
requestData: AllocationRequestData;
|
|
65
|
+
allocationData?: CloudProviderAllocationData;
|
|
66
|
+
clientRequestId: string;
|
|
67
|
+
resourceId?: string;
|
|
68
|
+
gamePoolId?: string;
|
|
69
|
+
ludeoPoolId?: string;
|
|
70
|
+
ludeoResourceId?: string;
|
|
71
|
+
tabSessionId?: string;
|
|
72
|
+
playSessionId?: string;
|
|
73
|
+
}
|
|
@@ -9,11 +9,93 @@ 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 = void 0;
|
|
12
|
+
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
|
-
const decorators_1 = require("
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const decorators_1 = require("../../decorators");
|
|
15
|
+
class AWSRequestData {
|
|
16
|
+
}
|
|
17
|
+
exports.AWSRequestData = AWSRequestData;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], AWSRequestData.prototype, "signalRequest", void 0);
|
|
23
|
+
var CloudProvider;
|
|
24
|
+
(function (CloudProvider) {
|
|
25
|
+
CloudProvider["AWS"] = "aws";
|
|
26
|
+
CloudProvider["NVIDIA"] = "nvidia";
|
|
27
|
+
})(CloudProvider || (exports.CloudProvider = CloudProvider = {}));
|
|
28
|
+
class AWSProviderSettings {
|
|
29
|
+
}
|
|
30
|
+
exports.AWSProviderSettings = AWSProviderSettings;
|
|
31
|
+
class AwsAllocationData {
|
|
32
|
+
}
|
|
33
|
+
exports.AwsAllocationData = AwsAllocationData;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AwsAllocationData.prototype, "streamGroupId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], AwsAllocationData.prototype, "streamSessionId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], AwsAllocationData.prototype, "signalResponse", void 0);
|
|
46
|
+
class AWSResourceProviderSettings {
|
|
47
|
+
}
|
|
48
|
+
exports.AWSResourceProviderSettings = AWSResourceProviderSettings;
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], AWSResourceProviderSettings.prototype, "streamSessionId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], AWSResourceProviderSettings.prototype, "streamGroupId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsEnum)(CloudProvider),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], AWSResourceProviderSettings.prototype, "cloudProvider", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsString)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], AWSResourceProviderSettings.prototype, "region", void 0);
|
|
69
|
+
class AWSGameCreationResponse {
|
|
70
|
+
}
|
|
71
|
+
exports.AWSGameCreationResponse = AWSGameCreationResponse;
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], AWSGameCreationResponse.prototype, "streamSessionId", void 0);
|
|
77
|
+
class AllocationRequestData {
|
|
78
|
+
}
|
|
79
|
+
exports.AllocationRequestData = AllocationRequestData;
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, decorators_1.ValidateNestedType)(() => AWSRequestData),
|
|
82
|
+
(0, class_validator_1.IsDefined)(),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], AllocationRequestData.prototype, "cloudProviderRequest", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_1.IsString)(),
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], AllocationRequestData.prototype, "clientIp", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_validator_1.IsString)(),
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
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);
|
|
17
99
|
var CloudSessionStatus;
|
|
18
100
|
(function (CloudSessionStatus) {
|
|
19
101
|
CloudSessionStatus["Created"] = "created";
|
|
@@ -56,7 +138,7 @@ __decorate([
|
|
|
56
138
|
__metadata("design:type", String)
|
|
57
139
|
], CloudSession.prototype, "status", void 0);
|
|
58
140
|
__decorate([
|
|
59
|
-
(0, class_validator_1.IsEnum)(
|
|
141
|
+
(0, class_validator_1.IsEnum)(CloudProvider),
|
|
60
142
|
__metadata("design:type", String)
|
|
61
143
|
], CloudSession.prototype, "cloudProvider", void 0);
|
|
62
144
|
__decorate([
|
|
@@ -70,12 +152,12 @@ __decorate([
|
|
|
70
152
|
__metadata("design:type", String)
|
|
71
153
|
], CloudSession.prototype, "poolId", void 0);
|
|
72
154
|
__decorate([
|
|
73
|
-
(0, decorators_1.ValidateNestedType)(() =>
|
|
74
|
-
__metadata("design:type",
|
|
155
|
+
(0, decorators_1.ValidateNestedType)(() => AllocationRequestData),
|
|
156
|
+
__metadata("design:type", AllocationRequestData)
|
|
75
157
|
], CloudSession.prototype, "requestData", void 0);
|
|
76
158
|
__decorate([
|
|
77
159
|
(0, class_validator_1.IsOptional)(),
|
|
78
|
-
(0, decorators_1.ValidateNestedType)(() =>
|
|
160
|
+
(0, decorators_1.ValidateNestedType)(() => AwsAllocationData),
|
|
79
161
|
__metadata("design:type", Object)
|
|
80
162
|
], CloudSession.prototype, "allocationData", void 0);
|
|
81
163
|
__decorate([
|
|
@@ -112,4 +194,4 @@ __decorate([
|
|
|
112
194
|
(0, class_validator_1.IsUUID)(),
|
|
113
195
|
__metadata("design:type", String)
|
|
114
196
|
], CloudSession.prototype, "playSessionId", void 0);
|
|
115
|
-
//# sourceMappingURL=
|
|
197
|
+
//# sourceMappingURL=cloud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v4/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAA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IAAA,wBAAM,GAAE;;mDACc"}
|
package/package.json
CHANGED
package/src/v4/events/index.ts
CHANGED
|
@@ -116,5 +116,3 @@ export * from "./monitor-aws-artifacts-status-task";
|
|
|
116
116
|
export * from "./build-artifacts-ready-for-creation";
|
|
117
117
|
export * from "./token-activated";
|
|
118
118
|
export * from "./cloud-session-sent-to-client";
|
|
119
|
-
export * from "./pool-updated.event";
|
|
120
|
-
export * from "./pool-created.event";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
MachinePoolAttributes,
|
|
9
9
|
AWSProviderSettings,
|
|
10
10
|
CloudProviderSettings,
|
|
11
|
-
GamePoolAttributes,
|
|
12
11
|
} from "../types";
|
|
13
12
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
13
|
+
import { GamePoolAttributes } from "../../v3/types";
|
|
14
14
|
import { IsUUIDOrEmpty } from "../../decorators/is-uuid-or-empty.decorator";
|
|
15
15
|
|
|
16
16
|
export class PoolStatusEventBasePool<
|
|
17
|
-
T extends BasePoolAttributes = BasePoolAttributes
|
|
17
|
+
T extends BasePoolAttributes = BasePoolAttributes,
|
|
18
18
|
> {
|
|
19
19
|
@ValidateNestedType(() => BasePoolAttributes)
|
|
20
20
|
attributes: T;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { GameCast } from "@ludeo/aws-gamecast-sdk";
|
|
2
|
+
import {
|
|
3
|
+
IsDefined,
|
|
4
|
+
IsEnum,
|
|
5
|
+
IsNotEmpty,
|
|
6
|
+
IsNumber,
|
|
7
|
+
IsOptional,
|
|
8
|
+
IsString,
|
|
9
|
+
IsUUID,
|
|
10
|
+
} from "class-validator";
|
|
11
|
+
import { ValidateNestedType } from "../../decorators";
|
|
12
|
+
|
|
13
|
+
export class AWSRequestData {
|
|
14
|
+
@IsString()
|
|
15
|
+
@IsNotEmpty()
|
|
16
|
+
signalRequest: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type CloudProviderRequest = AWSRequestData;
|
|
20
|
+
|
|
21
|
+
export enum CloudProvider {
|
|
22
|
+
AWS = "aws",
|
|
23
|
+
NVIDIA = "nvidia",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class AWSProviderSettings {
|
|
27
|
+
streamGroupId: GameCast.Identifier;
|
|
28
|
+
additionalEnvironmentVariables?: GameCast.EnvironmentVariables;
|
|
29
|
+
protocol?: GameCast.Protocol;
|
|
30
|
+
connectionTimeoutSeconds?: GameCast.ConnectionTimeoutSeconds;
|
|
31
|
+
sessionLengthSeconds?: GameCast.SessionLengthSeconds;
|
|
32
|
+
applicationIdentifier?: GameCast.Identifier;
|
|
33
|
+
machinePoolSize?: number;
|
|
34
|
+
region?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type CloudProviderSettings = AWSProviderSettings;
|
|
38
|
+
|
|
39
|
+
export class AwsAllocationData {
|
|
40
|
+
@IsString()
|
|
41
|
+
streamGroupId: string;
|
|
42
|
+
|
|
43
|
+
@IsString()
|
|
44
|
+
streamSessionId: string;
|
|
45
|
+
|
|
46
|
+
@IsString()
|
|
47
|
+
signalResponse: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type CloudProviderAllocationData = AwsAllocationData;
|
|
51
|
+
|
|
52
|
+
export class AWSResourceProviderSettings {
|
|
53
|
+
@IsOptional()
|
|
54
|
+
@IsString()
|
|
55
|
+
streamSessionId?: string;
|
|
56
|
+
|
|
57
|
+
@IsOptional()
|
|
58
|
+
@IsString()
|
|
59
|
+
streamGroupId?: string;
|
|
60
|
+
|
|
61
|
+
@IsEnum(CloudProvider)
|
|
62
|
+
@IsOptional()
|
|
63
|
+
cloudProvider?: CloudProvider;
|
|
64
|
+
|
|
65
|
+
@IsOptional()
|
|
66
|
+
@IsString()
|
|
67
|
+
region?: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type CloudResourceProviderSettings = AWSResourceProviderSettings;
|
|
71
|
+
|
|
72
|
+
export class AWSGameCreationResponse {
|
|
73
|
+
@IsString()
|
|
74
|
+
@IsNotEmpty()
|
|
75
|
+
streamSessionId: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type GameCreationResponse = AWSGameCreationResponse;
|
|
79
|
+
|
|
80
|
+
export class AllocationRequestData {
|
|
81
|
+
@ValidateNestedType(() => AWSRequestData)
|
|
82
|
+
@IsDefined()
|
|
83
|
+
cloudProviderRequest: CloudProviderRequest;
|
|
84
|
+
|
|
85
|
+
@IsString()
|
|
86
|
+
@IsOptional()
|
|
87
|
+
clientIp?: string;
|
|
88
|
+
|
|
89
|
+
@IsString()
|
|
90
|
+
@IsOptional()
|
|
91
|
+
region?: string;
|
|
92
|
+
|
|
93
|
+
@IsString()
|
|
94
|
+
sessionToken: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export enum CloudSessionStatus {
|
|
98
|
+
Created = "created",
|
|
99
|
+
PendingAllocation = "pending",
|
|
100
|
+
PendingConnection = "pending-connection",
|
|
101
|
+
Connected = "connected",
|
|
102
|
+
Allocated = "allocated",
|
|
103
|
+
Terminated = "terminated",
|
|
104
|
+
Failed = "failed",
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export class CloudSession {
|
|
108
|
+
@IsUUID()
|
|
109
|
+
id: string;
|
|
110
|
+
|
|
111
|
+
@IsUUID()
|
|
112
|
+
userId: string;
|
|
113
|
+
|
|
114
|
+
@IsUUID()
|
|
115
|
+
gameId: string;
|
|
116
|
+
|
|
117
|
+
@IsUUID()
|
|
118
|
+
ludeoId: string;
|
|
119
|
+
|
|
120
|
+
@IsNumber()
|
|
121
|
+
createdAt: number;
|
|
122
|
+
|
|
123
|
+
@IsNumber()
|
|
124
|
+
updatedAt: number;
|
|
125
|
+
|
|
126
|
+
@IsEnum(CloudSessionStatus)
|
|
127
|
+
status: CloudSessionStatus;
|
|
128
|
+
|
|
129
|
+
@IsEnum(CloudProvider)
|
|
130
|
+
cloudProvider: CloudProvider;
|
|
131
|
+
|
|
132
|
+
@IsOptional()
|
|
133
|
+
@IsUUID()
|
|
134
|
+
gameResourceId?: string;
|
|
135
|
+
|
|
136
|
+
@IsOptional()
|
|
137
|
+
@IsUUID()
|
|
138
|
+
poolId?: string;
|
|
139
|
+
|
|
140
|
+
@ValidateNestedType(() => AllocationRequestData)
|
|
141
|
+
requestData: AllocationRequestData;
|
|
142
|
+
|
|
143
|
+
@IsOptional()
|
|
144
|
+
@ValidateNestedType(() => AwsAllocationData)
|
|
145
|
+
allocationData?: CloudProviderAllocationData;
|
|
146
|
+
|
|
147
|
+
@IsUUID()
|
|
148
|
+
clientRequestId: string;
|
|
149
|
+
|
|
150
|
+
// For backwards compatability
|
|
151
|
+
@IsOptional()
|
|
152
|
+
@IsString()
|
|
153
|
+
resourceId?: string;
|
|
154
|
+
|
|
155
|
+
@IsOptional()
|
|
156
|
+
@IsString()
|
|
157
|
+
gamePoolId?: string;
|
|
158
|
+
|
|
159
|
+
@IsOptional()
|
|
160
|
+
@IsUUID()
|
|
161
|
+
ludeoPoolId?: string;
|
|
162
|
+
|
|
163
|
+
@IsOptional()
|
|
164
|
+
@IsUUID()
|
|
165
|
+
ludeoResourceId?: string;
|
|
166
|
+
|
|
167
|
+
@IsOptional()
|
|
168
|
+
@IsUUID()
|
|
169
|
+
tabSessionId?: string;
|
|
170
|
+
|
|
171
|
+
@IsOptional()
|
|
172
|
+
@IsUUID()
|
|
173
|
+
playSessionId?: string;
|
|
174
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import { CloudPoolContext } from "../contexts/cloud-pool-context";
|
|
3
|
-
import { CloudPool } from "../types/pools";
|
|
4
|
-
export declare class PoolCreatedEvent extends LudeoEvent {
|
|
5
|
-
static readonly EVENT_NAME = "cloud-pools.pool-created";
|
|
6
|
-
constructor(payload: CloudPool, context: CloudPoolContext);
|
|
7
|
-
context: CloudPoolContext;
|
|
8
|
-
payload: CloudPool;
|
|
9
|
-
}
|
|
@@ -1,34 +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.PoolCreatedEvent = void 0;
|
|
13
|
-
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
14
|
-
const cloud_pool_context_1 = require("../contexts/cloud-pool-context");
|
|
15
|
-
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
-
const pools_1 = require("../types/pools");
|
|
17
|
-
class PoolCreatedEvent extends ludeo_event_1.LudeoEvent {
|
|
18
|
-
constructor(payload, context) {
|
|
19
|
-
super(PoolCreatedEvent.EVENT_NAME);
|
|
20
|
-
this.payload = payload;
|
|
21
|
-
this.context = context;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.PoolCreatedEvent = PoolCreatedEvent;
|
|
25
|
-
PoolCreatedEvent.EVENT_NAME = "cloud-pools.pool-created";
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_pool_context_1.CloudPoolContext),
|
|
28
|
-
__metadata("design:type", cloud_pool_context_1.CloudPoolContext)
|
|
29
|
-
], PoolCreatedEvent.prototype, "context", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => pools_1.CloudPool),
|
|
32
|
-
__metadata("design:type", pools_1.CloudPool)
|
|
33
|
-
], PoolCreatedEvent.prototype, "payload", void 0);
|
|
34
|
-
//# sourceMappingURL=pool-created.event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pool-created.event.js","sourceRoot":"","sources":["../../../src/v4/events/pool-created.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,uEAAkE;AAClE,oGAAqF;AACrF,0CAA2C;AAE3C,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAkB,EAAE,OAAyB;QACvD,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4CAcC;AAbiB,2BAAU,GAAG,0BAA0B,CAAC;AASxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAgB,CAAC;8BAClC,qCAAgB;iDAAC;AAG1B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iBAAS,CAAC;8BAC3B,iBAAS;iDAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import { CloudPool } from "../types/pools";
|
|
3
|
-
import { CloudPoolContext } from "../contexts/cloud-pool-context";
|
|
4
|
-
export declare class PoolUpdatedEvent extends LudeoEvent {
|
|
5
|
-
static readonly EVENT_NAME = "cloud-pools.pool-updated";
|
|
6
|
-
constructor(payload: CloudPool, context: CloudPoolContext);
|
|
7
|
-
context: CloudPoolContext;
|
|
8
|
-
payload: CloudPool;
|
|
9
|
-
}
|
|
@@ -1,34 +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.PoolUpdatedEvent = void 0;
|
|
13
|
-
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
14
|
-
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
-
const pools_1 = require("../types/pools");
|
|
16
|
-
const cloud_pool_context_1 = require("../contexts/cloud-pool-context");
|
|
17
|
-
class PoolUpdatedEvent extends ludeo_event_1.LudeoEvent {
|
|
18
|
-
constructor(payload, context) {
|
|
19
|
-
super(PoolUpdatedEvent.EVENT_NAME);
|
|
20
|
-
this.payload = payload;
|
|
21
|
-
this.context = context;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.PoolUpdatedEvent = PoolUpdatedEvent;
|
|
25
|
-
PoolUpdatedEvent.EVENT_NAME = "cloud-pools.pool-updated";
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_pool_context_1.CloudPoolContext),
|
|
28
|
-
__metadata("design:type", cloud_pool_context_1.CloudPoolContext)
|
|
29
|
-
], PoolUpdatedEvent.prototype, "context", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => pools_1.CloudPool),
|
|
32
|
-
__metadata("design:type", pools_1.CloudPool)
|
|
33
|
-
], PoolUpdatedEvent.prototype, "payload", void 0);
|
|
34
|
-
//# sourceMappingURL=pool-updated.event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pool-updated.event.js","sourceRoot":"","sources":["../../../src/v4/events/pool-updated.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAA2C;AAC3C,uEAAkE;AAElE,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAkB,EAAE,OAAyB;QACvD,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4CAcC;AAbiB,2BAAU,GAAG,0BAA0B,CAAC;AASxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAgB,CAAC;8BAClC,qCAAgB;iDAAC;AAG1B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iBAAS,CAAC;8BAC3B,iBAAS;iDAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-data.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +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.AllocationRequestData = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const decorators_1 = require("../../../decorators");
|
|
15
|
-
const aws_1 = require("./aws");
|
|
16
|
-
class AllocationRequestData {
|
|
17
|
-
}
|
|
18
|
-
exports.AllocationRequestData = AllocationRequestData;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, decorators_1.ValidateNestedType)(() => aws_1.AWSRequestData),
|
|
21
|
-
(0, class_validator_1.IsDefined)(),
|
|
22
|
-
__metadata("design:type", Object)
|
|
23
|
-
], AllocationRequestData.prototype, "cloudProviderRequest", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsString)(),
|
|
26
|
-
(0, class_validator_1.IsOptional)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], AllocationRequestData.prototype, "clientIp", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], AllocationRequestData.prototype, "region", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], AllocationRequestData.prototype, "sessionToken", void 0);
|
|
38
|
-
//# sourceMappingURL=allocation-request.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-request.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAC1E,oDAAyD;AACzD,+BAAuC;AAGvC,MAAa,qBAAqB;CAejC;AAfD,sDAeC;AAZC;IAFC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oBAAc,CAAC;IACxC,IAAA,2BAAS,GAAE;;mEAC+B;AAI3C;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACG;AAGhB;IADC,IAAA,0BAAQ,GAAE;;2DACU"}
|
|
@@ -1,29 +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.AwsAllocationData = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class AwsAllocationData {
|
|
15
|
-
}
|
|
16
|
-
exports.AwsAllocationData = AwsAllocationData;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], AwsAllocationData.prototype, "streamGroupId", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], AwsAllocationData.prototype, "streamSessionId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], AwsAllocationData.prototype, "signalResponse", void 0);
|
|
29
|
-
//# sourceMappingURL=allocation-data.js.map
|