@ludeo/cloud-common 1.2.184-beta-yahil-8 → 1.2.184
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/contexts/cloud-resource-context.d.ts +0 -1
- package/dist/v4/contexts/cloud-resource-context.js +0 -5
- package/dist/v4/contexts/cloud-resource-context.js.map +1 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.d.ts +7 -8
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +8 -12
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.d.ts +8 -6
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +16 -8
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.d.ts +3 -3
- package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.js +2 -2
- package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.d.ts +5 -5
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js +9 -6
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js.map +1 -1
- package/dist/v4/events/site-controller/game-ludeocast-creation-ended.d.ts +8 -11
- package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js +16 -25
- package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js.map +1 -1
- package/dist/v4/events/site-controller/index.d.ts +0 -2
- package/dist/v4/events/site-controller/index.js +0 -2
- package/dist/v4/events/site-controller/index.js.map +1 -1
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.d.ts +8 -11
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +16 -25
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js.map +1 -1
- package/dist/v4/events/site-controller/start-game.command.d.ts +0 -1
- package/dist/v4/events/site-controller/start-game.command.js +0 -4
- package/dist/v4/events/site-controller/start-game.command.js.map +1 -1
- package/dist/v4/types/cloud/index.d.ts +0 -1
- package/dist/v4/types/cloud/index.js +0 -1
- package/dist/v4/types/cloud/index.js.map +1 -1
- package/dist/v4/types/cloud/provider.d.ts +0 -1
- package/dist/v4/types/cloud/provider.js +0 -1
- package/dist/v4/types/cloud/provider.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/contexts/cloud-resource-context.ts +0 -4
- package/src/v4/events/base/base.ts +1 -1
- package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +11 -12
- package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +16 -10
- package/src/v4/events/cloud-resources/terminate-ludeocast-game-request.ts +4 -4
- package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +10 -8
- package/src/v4/events/site-controller/game-ludeocast-creation-ended.ts +11 -18
- package/src/v4/events/site-controller/index.ts +0 -2
- package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +11 -18
- package/src/v4/events/site-controller/start-game.command.ts +1 -4
- package/src/v4/types/cloud/index.ts +0 -1
- package/src/v4/types/cloud/provider.ts +0 -1
- package/dist/v4/events/site-controller/game-ludeocast-termination-ended.d.ts +0 -17
- package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js +0 -60
- package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js.map +0 -1
- package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.d.ts +0 -17
- package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js +0 -60
- package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js.map +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/allocation-data.d.ts +0 -3
- package/dist/v4/types/cloud/ludeocast-v2/allocation-data.js +0 -21
- package/dist/v4/types/cloud/ludeocast-v2/allocation-data.js.map +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.d.ts +0 -2
- package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.js +0 -7
- package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.js.map +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/index.d.ts +0 -6
- package/dist/v4/types/cloud/ludeocast-v2/index.js +0 -23
- package/dist/v4/types/cloud/ludeocast-v2/index.js.map +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.d.ts +0 -3
- package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js +0 -21
- package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js.map +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/provider-settings.d.ts +0 -13
- package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js +0 -13
- package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js.map +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/request-data.d.ts +0 -3
- package/dist/v4/types/cloud/ludeocast-v2/request-data.js +0 -22
- package/dist/v4/types/cloud/ludeocast-v2/request-data.js.map +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.d.ts +0 -7
- package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js +0 -34
- package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js.map +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/site.d.ts +0 -0
- package/dist/v4/types/cloud/ludeocast-v2/site.js +0 -1
- package/dist/v4/types/cloud/ludeocast-v2/site.js.map +0 -1
- package/src/v4/events/site-controller/game-ludeocast-termination-ended.ts +0 -41
- package/src/v4/events/site-controller/machine-ludeocast-termination-ended.ts +0 -41
- package/src/v4/types/cloud/ludeocast-v2/allocation-data.ts +0 -6
- package/src/v4/types/cloud/ludeocast-v2/game-creation-response.ts +0 -1
- package/src/v4/types/cloud/ludeocast-v2/index.ts +0 -6
- package/src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts +0 -6
- package/src/v4/types/cloud/ludeocast-v2/provider-settings.ts +0 -29
- package/src/v4/types/cloud/ludeocast-v2/request-data.ts +0 -7
- package/src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts +0 -18
- package/src/v4/types/cloud/ludeocast-v2/site.ts +0 -7
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isLudeoCastV2ProviderSettings = exports.LudeoCastV2ProviderSettings = void 0;
|
|
4
|
-
class LudeoCastV2ProviderSettings {
|
|
5
|
-
}
|
|
6
|
-
exports.LudeoCastV2ProviderSettings = LudeoCastV2ProviderSettings;
|
|
7
|
-
const isLudeoCastV2ProviderSettings = (settings) => {
|
|
8
|
-
return (settings &&
|
|
9
|
-
"mode" in settings &&
|
|
10
|
-
typeof settings.mode === "string");
|
|
11
|
-
};
|
|
12
|
-
exports.isLudeoCastV2ProviderSettings = isLudeoCastV2ProviderSettings;
|
|
13
|
-
//# sourceMappingURL=provider-settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/provider-settings.ts"],"names":[],"mappings":";;;AAIA,MAAa,2BAA2B;CAcvC;AAdD,kEAcC;AAEM,MAAM,6BAA6B,GAAG,CAC3C,QAA+B,EACU,EAAE;IAC3C,OAAO,CACL,QAAQ;QACR,MAAM,IAAI,QAAQ;QAClB,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAClC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,6BAA6B,iCAQxC"}
|
|
@@ -1,22 +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.LudeoCastV2RequestData = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class LudeoCastV2RequestData {
|
|
15
|
-
}
|
|
16
|
-
exports.LudeoCastV2RequestData = LudeoCastV2RequestData;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], LudeoCastV2RequestData.prototype, "signalRequest", void 0);
|
|
22
|
-
//# sourceMappingURL=request-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-data.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/request-data.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACS"}
|
|
@@ -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.LudeoCastV2ResourceProviderSettings = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const provider_1 = require("../provider");
|
|
15
|
-
const site_1 = require("../ludeocast/site");
|
|
16
|
-
class LudeoCastV2ResourceProviderSettings {
|
|
17
|
-
}
|
|
18
|
-
exports.LudeoCastV2ResourceProviderSettings = LudeoCastV2ResourceProviderSettings;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsOptional)(),
|
|
21
|
-
(0, class_validator_1.IsString)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], LudeoCastV2ResourceProviderSettings.prototype, "machineId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
|
26
|
-
(0, class_validator_1.IsEnum)(provider_1.CloudProvider),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], LudeoCastV2ResourceProviderSettings.prototype, "cloudProvider", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
|
31
|
-
(0, class_validator_1.IsString)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], LudeoCastV2ResourceProviderSettings.prototype, "site", void 0);
|
|
34
|
-
//# sourceMappingURL=resource-provider-settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,0CAA4C;AAC5C,4CAAkD;AAElD,MAAa,mCAAmC;CAa/C;AAbD,kFAaC;AAVC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sEACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAa,CAAC;;0EACQ;AAK9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACU"}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=site.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/site.ts"],"names":[],"mappings":""}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
|
-
import { CloudResourceContext } from '../../contexts';
|
|
5
|
-
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
-
import { CloudResourceStatus } from '../../types/pools';
|
|
7
|
-
|
|
8
|
-
export class GameLudeocastTerminationEndedPayload {
|
|
9
|
-
@IsUUID()
|
|
10
|
-
gameResourceId: string;
|
|
11
|
-
|
|
12
|
-
@IsUUID()
|
|
13
|
-
gamePoolId: string;
|
|
14
|
-
|
|
15
|
-
@IsEnum(SiteOperationStatus)
|
|
16
|
-
operationStatus: SiteOperationStatus;
|
|
17
|
-
|
|
18
|
-
@IsEnum(CloudResourceStatus)
|
|
19
|
-
status: CloudResourceStatus;
|
|
20
|
-
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@IsString()
|
|
23
|
-
reason?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export class GameLudeocastTerminationEnded extends LudeoEvent {
|
|
27
|
-
static readonly EVENT_NAME = 'site-controller.game-ludeocast-termination-ended';
|
|
28
|
-
|
|
29
|
-
constructor(payload: GameLudeocastTerminationEndedPayload, context: CloudResourceContext) {
|
|
30
|
-
super(GameLudeocastTerminationEnded.EVENT_NAME);
|
|
31
|
-
this.payload = payload;
|
|
32
|
-
this.context = context;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@ValidateNestedType(() => GameLudeocastTerminationEndedPayload)
|
|
36
|
-
payload: GameLudeocastTerminationEndedPayload;
|
|
37
|
-
|
|
38
|
-
@ValidateNestedType(() => CloudResourceContext)
|
|
39
|
-
context: CloudResourceContext;
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
|
-
import { CloudResourceContext } from '../../contexts';
|
|
5
|
-
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
-
import { CloudResourceStatus } from '../../types/pools';
|
|
7
|
-
|
|
8
|
-
export class MachineLudeocastTerminationEndedPayload {
|
|
9
|
-
@IsUUID()
|
|
10
|
-
machineResourceId: string;
|
|
11
|
-
|
|
12
|
-
@IsUUID()
|
|
13
|
-
machinePoolId: string;
|
|
14
|
-
|
|
15
|
-
@IsEnum(SiteOperationStatus)
|
|
16
|
-
operationStatus: SiteOperationStatus;
|
|
17
|
-
|
|
18
|
-
@IsEnum(CloudResourceStatus)
|
|
19
|
-
status: CloudResourceStatus;
|
|
20
|
-
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@IsString()
|
|
23
|
-
reason?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export class MachineLudeocastTerminationEnded extends LudeoEvent {
|
|
27
|
-
static readonly EVENT_NAME = 'site-controller.machine-ludeocast-termination-ended';
|
|
28
|
-
|
|
29
|
-
constructor(payload: MachineLudeocastTerminationEndedPayload, context: CloudResourceContext) {
|
|
30
|
-
super(MachineLudeocastTerminationEnded.EVENT_NAME);
|
|
31
|
-
this.payload = payload;
|
|
32
|
-
this.context = context;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@ValidateNestedType(() => MachineLudeocastTerminationEndedPayload)
|
|
36
|
-
payload: MachineLudeocastTerminationEndedPayload;
|
|
37
|
-
|
|
38
|
-
@ValidateNestedType(() => CloudResourceContext)
|
|
39
|
-
context: CloudResourceContext;
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class LudeoCastV2GameCreationResponse {}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { MachineMode } from "../..";
|
|
2
|
-
import { CloudProviderSettings } from "../provider-settings";
|
|
3
|
-
import { LudeoCastSite } from "../ludeocast/site";
|
|
4
|
-
|
|
5
|
-
export class LudeoCastV2ProviderSettings {
|
|
6
|
-
site: LudeoCastSite;
|
|
7
|
-
|
|
8
|
-
region?: string;
|
|
9
|
-
|
|
10
|
-
mode?: MachineMode;
|
|
11
|
-
|
|
12
|
-
executableLaunchPath?: string;
|
|
13
|
-
|
|
14
|
-
machineClass?: string;
|
|
15
|
-
|
|
16
|
-
additionalEnvironmentVariables?: Record<string, string>;
|
|
17
|
-
|
|
18
|
-
additionalLaunchArgs?: string[];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const isLudeoCastV2ProviderSettings = (
|
|
22
|
-
settings: CloudProviderSettings
|
|
23
|
-
): settings is LudeoCastV2ProviderSettings => {
|
|
24
|
-
return (
|
|
25
|
-
settings &&
|
|
26
|
-
"mode" in settings &&
|
|
27
|
-
typeof settings.mode === "string"
|
|
28
|
-
);
|
|
29
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IsEnum, IsOptional, IsString } from "class-validator";
|
|
2
|
-
import { CloudProvider } from "../provider";
|
|
3
|
-
import { LudeoCastSite } from "../ludeocast/site";
|
|
4
|
-
|
|
5
|
-
export class LudeoCastV2ResourceProviderSettings {
|
|
6
|
-
@IsOptional()
|
|
7
|
-
@IsString()
|
|
8
|
-
machineId?: string;
|
|
9
|
-
|
|
10
|
-
@IsOptional()
|
|
11
|
-
@IsEnum(CloudProvider)
|
|
12
|
-
cloudProvider?: CloudProvider;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@IsOptional()
|
|
16
|
-
@IsString()
|
|
17
|
-
site?: LudeoCastSite;
|
|
18
|
-
}
|