@ludeo/cloud-common 1.2.184-beta-yahil-7 → 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.
Files changed (87) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/contexts/cloud-resource-context.d.ts +0 -1
  3. package/dist/v4/contexts/cloud-resource-context.js +0 -5
  4. package/dist/v4/contexts/cloud-resource-context.js.map +1 -1
  5. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.d.ts +4 -7
  6. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +3 -11
  7. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js.map +1 -1
  8. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.d.ts +8 -6
  9. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +16 -8
  10. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js.map +1 -1
  11. package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.d.ts +3 -3
  12. package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.js +2 -2
  13. package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.js.map +1 -1
  14. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.d.ts +5 -5
  15. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js +9 -6
  16. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js.map +1 -1
  17. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.d.ts +8 -11
  18. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js +16 -25
  19. package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js.map +1 -1
  20. package/dist/v4/events/site-controller/index.d.ts +0 -2
  21. package/dist/v4/events/site-controller/index.js +0 -2
  22. package/dist/v4/events/site-controller/index.js.map +1 -1
  23. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.d.ts +8 -11
  24. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +16 -25
  25. package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js.map +1 -1
  26. package/dist/v4/events/site-controller/start-game.command.d.ts +0 -1
  27. package/dist/v4/events/site-controller/start-game.command.js +0 -4
  28. package/dist/v4/events/site-controller/start-game.command.js.map +1 -1
  29. package/dist/v4/types/cloud/index.d.ts +0 -1
  30. package/dist/v4/types/cloud/index.js +0 -1
  31. package/dist/v4/types/cloud/index.js.map +1 -1
  32. package/dist/v4/types/cloud/provider.d.ts +0 -1
  33. package/dist/v4/types/cloud/provider.js +0 -1
  34. package/dist/v4/types/cloud/provider.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/v4/contexts/cloud-resource-context.ts +0 -4
  37. package/src/v4/events/base/base.ts +1 -1
  38. package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +6 -12
  39. package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +16 -10
  40. package/src/v4/events/cloud-resources/terminate-ludeocast-game-request.ts +4 -4
  41. package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +10 -8
  42. package/src/v4/events/site-controller/game-ludeocast-creation-ended.ts +11 -18
  43. package/src/v4/events/site-controller/index.ts +0 -2
  44. package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +11 -18
  45. package/src/v4/events/site-controller/start-game.command.ts +1 -4
  46. package/src/v4/types/cloud/index.ts +0 -1
  47. package/src/v4/types/cloud/provider.ts +0 -1
  48. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.d.ts +0 -17
  49. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js +0 -60
  50. package/dist/v4/events/site-controller/game-ludeocast-termination-ended.js.map +0 -1
  51. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.d.ts +0 -17
  52. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js +0 -60
  53. package/dist/v4/events/site-controller/machine-ludeocast-termination-ended.js.map +0 -1
  54. package/dist/v4/types/cloud/ludeocast-v2/allocation-data.d.ts +0 -3
  55. package/dist/v4/types/cloud/ludeocast-v2/allocation-data.js +0 -21
  56. package/dist/v4/types/cloud/ludeocast-v2/allocation-data.js.map +0 -1
  57. package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.d.ts +0 -2
  58. package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.js +0 -7
  59. package/dist/v4/types/cloud/ludeocast-v2/game-creation-response.js.map +0 -1
  60. package/dist/v4/types/cloud/ludeocast-v2/index.d.ts +0 -6
  61. package/dist/v4/types/cloud/ludeocast-v2/index.js +0 -23
  62. package/dist/v4/types/cloud/ludeocast-v2/index.js.map +0 -1
  63. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.d.ts +0 -3
  64. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js +0 -21
  65. package/dist/v4/types/cloud/ludeocast-v2/machine-provider-settings.js.map +0 -1
  66. package/dist/v4/types/cloud/ludeocast-v2/provider-settings.d.ts +0 -13
  67. package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js +0 -13
  68. package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js.map +0 -1
  69. package/dist/v4/types/cloud/ludeocast-v2/request-data.d.ts +0 -3
  70. package/dist/v4/types/cloud/ludeocast-v2/request-data.js +0 -22
  71. package/dist/v4/types/cloud/ludeocast-v2/request-data.js.map +0 -1
  72. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.d.ts +0 -7
  73. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js +0 -34
  74. package/dist/v4/types/cloud/ludeocast-v2/resource-provider-settings.js.map +0 -1
  75. package/dist/v4/types/cloud/ludeocast-v2/site.d.ts +0 -0
  76. package/dist/v4/types/cloud/ludeocast-v2/site.js +0 -1
  77. package/dist/v4/types/cloud/ludeocast-v2/site.js.map +0 -1
  78. package/src/v4/events/site-controller/game-ludeocast-termination-ended.ts +0 -41
  79. package/src/v4/events/site-controller/machine-ludeocast-termination-ended.ts +0 -41
  80. package/src/v4/types/cloud/ludeocast-v2/allocation-data.ts +0 -6
  81. package/src/v4/types/cloud/ludeocast-v2/game-creation-response.ts +0 -1
  82. package/src/v4/types/cloud/ludeocast-v2/index.ts +0 -6
  83. package/src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts +0 -6
  84. package/src/v4/types/cloud/ludeocast-v2/provider-settings.ts +0 -29
  85. package/src/v4/types/cloud/ludeocast-v2/request-data.ts +0 -7
  86. package/src/v4/types/cloud/ludeocast-v2/resource-provider-settings.ts +0 -18
  87. 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,3 +0,0 @@
1
- export declare class LudeoCastV2RequestData {
2
- signalRequest: string;
3
- }
@@ -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,7 +0,0 @@
1
- import { CloudProvider } from "../provider";
2
- import { LudeoCastSite } from "../ludeocast/site";
3
- export declare class LudeoCastV2ResourceProviderSettings {
4
- machineId?: string;
5
- cloudProvider?: CloudProvider;
6
- site?: LudeoCastSite;
7
- }
@@ -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,6 +0,0 @@
1
- import { IsString } from "class-validator";
2
-
3
- export class LudeoCastV2AllocationData {
4
- @IsString()
5
- signalingURI: string;
6
- }
@@ -1 +0,0 @@
1
- export class LudeoCastV2GameCreationResponse {}
@@ -1,6 +0,0 @@
1
- export * from "./resource-provider-settings";
2
- export * from "./provider-settings";
3
- export * from "./request-data";
4
- export * from "./game-creation-response";
5
- export * from "./allocation-data";
6
- export * from "./machine-provider-settings";
@@ -1,6 +0,0 @@
1
- import { IsString } from "class-validator";
2
-
3
- export class LudeoCastV2MachineResourceProviderSettings {
4
- @IsString()
5
- machineId: string;
6
- }
@@ -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,7 +0,0 @@
1
- import { IsNotEmpty, IsString } from "class-validator";
2
-
3
- export class LudeoCastV2RequestData {
4
- @IsString()
5
- @IsNotEmpty()
6
- signalRequest: string; // not neccessary probably
7
- }
@@ -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
- }
@@ -1,7 +0,0 @@
1
- // export enum LudeoCastSite {
2
- // GCP_ME_WEST1 = "gcp-me-west1",
3
- // GCP_US_EAST_2 = "gcp-us-east2",
4
- // GCP_US_WEST_2 = "gcp-us-west2",
5
- // GCP_EU_CENTRAL_1 = "gcp-eu-central1",
6
- // GCP_AP_NORTHEAST_1 = "gcp-ap-northeast1",
7
- // }