@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.
- 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 +4 -7
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +3 -11
- 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 +6 -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
|
@@ -2,8 +2,7 @@ import { LudeoEvent } from '../../../infra';
|
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsString, IsUUID, IsOptional } from 'class-validator';
|
|
4
4
|
import { GameCreationPayload } from '../../types/site-controller';
|
|
5
|
-
import {
|
|
6
|
-
import { LudeoCastV2ProviderSettings } from '../../types/cloud/ludeocast-v2/provider-settings';
|
|
5
|
+
import { SiteControllerContext } from '../../contexts';
|
|
7
6
|
|
|
8
7
|
export class CreateLudeocastGameRequestPayload {
|
|
9
8
|
@IsUUID()
|
|
@@ -12,28 +11,23 @@ export class CreateLudeocastGameRequestPayload {
|
|
|
12
11
|
@IsUUID()
|
|
13
12
|
gameResourceId: string;
|
|
14
13
|
|
|
15
|
-
@IsUUID()
|
|
16
|
-
gamePoolId: string;
|
|
17
|
-
|
|
18
14
|
gameCreationPayload: GameCreationPayload;
|
|
19
15
|
|
|
20
|
-
@ValidateNestedType(() => LudeoCastV2ProviderSettings)
|
|
21
|
-
providerSettings: LudeoCastV2ProviderSettings;
|
|
22
|
-
|
|
23
16
|
@IsString()
|
|
24
17
|
site: string;
|
|
25
18
|
|
|
26
19
|
@IsString()
|
|
27
20
|
region: string;
|
|
28
21
|
|
|
22
|
+
@IsOptional()
|
|
29
23
|
@IsUUID()
|
|
30
|
-
buildId
|
|
24
|
+
buildId?: string;
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
export class CreateLudeocastGameRequest extends LudeoEvent {
|
|
34
28
|
static readonly EVENT_NAME = 'cloud-resources.create-ludeocast-game-request';
|
|
35
29
|
|
|
36
|
-
constructor(payload: CreateLudeocastGameRequestPayload, context:
|
|
30
|
+
constructor(payload: CreateLudeocastGameRequestPayload, context: SiteControllerContext) {
|
|
37
31
|
super(CreateLudeocastGameRequest.EVENT_NAME);
|
|
38
32
|
this.payload = payload;
|
|
39
33
|
this.context = context;
|
|
@@ -42,7 +36,7 @@ export class CreateLudeocastGameRequest extends LudeoEvent {
|
|
|
42
36
|
@ValidateNestedType(() => CreateLudeocastGameRequestPayload)
|
|
43
37
|
payload: CreateLudeocastGameRequestPayload;
|
|
44
38
|
|
|
45
|
-
@ValidateNestedType(() =>
|
|
46
|
-
context:
|
|
39
|
+
@ValidateNestedType(() => SiteControllerContext)
|
|
40
|
+
context: SiteControllerContext;
|
|
47
41
|
}
|
|
48
42
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import { IsOptional, IsUUID } from 'class-validator';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
|
+
import { MachineMode } from '../../types/site-controller';
|
|
5
|
+
import { SiteControllerContext } from '../../contexts';
|
|
6
6
|
|
|
7
7
|
export class AndroidMachineCreationPayload {}
|
|
8
8
|
|
|
@@ -12,21 +12,27 @@ export class CreateLudeocastMachineRequestPayload {
|
|
|
12
12
|
@IsUUID()
|
|
13
13
|
machineResourceId: string;
|
|
14
14
|
|
|
15
|
-
@
|
|
16
|
-
|
|
15
|
+
@IsEnum(MachineMode)
|
|
16
|
+
mode: MachineMode;
|
|
17
17
|
|
|
18
18
|
@IsOptional()
|
|
19
19
|
@ValidateNestedType(() => AndroidMachineCreationPayload)
|
|
20
20
|
machineCreationPayload?: MachineCreationPayload;
|
|
21
21
|
|
|
22
|
-
@
|
|
23
|
-
|
|
22
|
+
@IsString()
|
|
23
|
+
site: string;
|
|
24
|
+
|
|
25
|
+
@IsString()
|
|
26
|
+
region: string;
|
|
27
|
+
|
|
28
|
+
@IsString()
|
|
29
|
+
machineType: string;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
27
33
|
static readonly EVENT_NAME = 'cloud-resources.create-ludeocast-machine-request';
|
|
28
34
|
|
|
29
|
-
constructor(payload: CreateLudeocastMachineRequestPayload, context:
|
|
35
|
+
constructor(payload: CreateLudeocastMachineRequestPayload, context: SiteControllerContext) {
|
|
30
36
|
super(CreateLudeocastMachineRequest.EVENT_NAME);
|
|
31
37
|
this.payload = payload;
|
|
32
38
|
this.context = context;
|
|
@@ -35,7 +41,7 @@ export class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
|
35
41
|
@ValidateNestedType(() => CreateLudeocastMachineRequestPayload)
|
|
36
42
|
payload: CreateLudeocastMachineRequestPayload;
|
|
37
43
|
|
|
38
|
-
@ValidateNestedType(() =>
|
|
39
|
-
context:
|
|
44
|
+
@ValidateNestedType(() => SiteControllerContext)
|
|
45
|
+
context: SiteControllerContext;
|
|
40
46
|
}
|
|
41
47
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsString, IsUUID } from 'class-validator';
|
|
4
|
-
import {
|
|
4
|
+
import { SiteControllerContext } from '../../contexts';
|
|
5
5
|
|
|
6
6
|
export class TerminateLudeocastGameRequestPayload {
|
|
7
7
|
@IsUUID()
|
|
@@ -20,7 +20,7 @@ export class TerminateLudeocastGameRequestPayload {
|
|
|
20
20
|
export class TerminateLudeocastGameRequest extends LudeoEvent {
|
|
21
21
|
static readonly EVENT_NAME = 'cloud-resources.terminate-ludeocast-game-request';
|
|
22
22
|
|
|
23
|
-
constructor(payload: TerminateLudeocastGameRequestPayload, context:
|
|
23
|
+
constructor(payload: TerminateLudeocastGameRequestPayload, context: SiteControllerContext) {
|
|
24
24
|
super(TerminateLudeocastGameRequest.EVENT_NAME);
|
|
25
25
|
this.payload = payload;
|
|
26
26
|
this.context = context;
|
|
@@ -29,7 +29,7 @@ export class TerminateLudeocastGameRequest extends LudeoEvent {
|
|
|
29
29
|
@ValidateNestedType(() => TerminateLudeocastGameRequestPayload)
|
|
30
30
|
payload: TerminateLudeocastGameRequestPayload;
|
|
31
31
|
|
|
32
|
-
@ValidateNestedType(() =>
|
|
33
|
-
context:
|
|
32
|
+
@ValidateNestedType(() => SiteControllerContext)
|
|
33
|
+
context: SiteControllerContext;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import { IsUUID } from 'class-validator';
|
|
4
|
-
import {
|
|
5
|
-
import { LudeoCastV2ProviderSettings } from '../../types';
|
|
3
|
+
import { IsString, IsUUID } from 'class-validator';
|
|
4
|
+
import { SiteControllerContext } from '../../contexts';
|
|
6
5
|
|
|
7
6
|
export class TerminateLudeocastMachineRequestPayload {
|
|
8
7
|
@IsUUID()
|
|
9
8
|
machineResourceId: string;
|
|
10
9
|
|
|
11
|
-
@
|
|
12
|
-
|
|
10
|
+
@IsString()
|
|
11
|
+
site: string;
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
region: string;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
export class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
16
18
|
static readonly EVENT_NAME = 'cloud-resources.terminate-ludeocast-machine-request';
|
|
17
19
|
|
|
18
|
-
constructor(payload: TerminateLudeocastMachineRequestPayload, context:
|
|
20
|
+
constructor(payload: TerminateLudeocastMachineRequestPayload, context: SiteControllerContext) {
|
|
19
21
|
super(TerminateLudeocastMachineRequest.EVENT_NAME);
|
|
20
22
|
this.payload = payload;
|
|
21
23
|
this.context = context;
|
|
@@ -24,7 +26,7 @@ export class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
|
24
26
|
@ValidateNestedType(() => TerminateLudeocastMachineRequestPayload)
|
|
25
27
|
payload: TerminateLudeocastMachineRequestPayload;
|
|
26
28
|
|
|
27
|
-
@ValidateNestedType(() =>
|
|
28
|
-
context:
|
|
29
|
+
@ValidateNestedType(() => SiteControllerContext)
|
|
30
|
+
context: SiteControllerContext;
|
|
29
31
|
}
|
|
30
32
|
|
|
@@ -1,41 +1,34 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
|
-
import {
|
|
4
|
+
import { SiteControllerContext } from '../../contexts';
|
|
5
5
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
-
import { CloudResourceStatus } from '../../types/pools';
|
|
7
6
|
|
|
8
|
-
export class
|
|
7
|
+
export class GameCreationEndedPayload {
|
|
9
8
|
@IsUUID()
|
|
10
9
|
gameResourceId: string;
|
|
11
10
|
|
|
12
|
-
@IsUUID()
|
|
13
|
-
gamePoolId: string;
|
|
14
|
-
|
|
15
11
|
@IsEnum(SiteOperationStatus)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@IsEnum(CloudResourceStatus)
|
|
19
|
-
status: CloudResourceStatus;
|
|
12
|
+
status: SiteOperationStatus;
|
|
20
13
|
|
|
21
14
|
@IsOptional()
|
|
22
15
|
@IsString()
|
|
23
16
|
reason?: string;
|
|
24
17
|
}
|
|
25
18
|
|
|
26
|
-
export class
|
|
27
|
-
static readonly EVENT_NAME = 'site-controller.game-
|
|
19
|
+
export class GameCreationEnded extends LudeoEvent {
|
|
20
|
+
static readonly EVENT_NAME = 'site-controller.game-creation-ended';
|
|
28
21
|
|
|
29
|
-
constructor(payload:
|
|
30
|
-
super(
|
|
22
|
+
constructor(payload: GameCreationEndedPayload, context: SiteControllerContext) {
|
|
23
|
+
super(GameCreationEnded.EVENT_NAME);
|
|
31
24
|
this.payload = payload;
|
|
32
25
|
this.context = context;
|
|
33
26
|
}
|
|
34
27
|
|
|
35
|
-
@ValidateNestedType(() =>
|
|
36
|
-
payload:
|
|
28
|
+
@ValidateNestedType(() => GameCreationEndedPayload)
|
|
29
|
+
payload: GameCreationEndedPayload;
|
|
37
30
|
|
|
38
|
-
@ValidateNestedType(() =>
|
|
39
|
-
context:
|
|
31
|
+
@ValidateNestedType(() => SiteControllerContext)
|
|
32
|
+
context: SiteControllerContext;
|
|
40
33
|
}
|
|
41
34
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
export * from './machine-ludeocast-creation-ended';
|
|
3
3
|
export * from './game-ludeocast-creation-ended';
|
|
4
|
-
export * from './game-ludeocast-termination-ended';
|
|
5
|
-
export * from './machine-ludeocast-termination-ended';
|
|
6
4
|
|
|
7
5
|
export * from './snapshot-ludeocast-creation-ended';
|
|
8
6
|
export * from './snapshot-ludeocast-termination-ended';
|
|
@@ -1,41 +1,34 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
|
-
import {
|
|
4
|
+
import { SiteControllerContext } from '../../contexts';
|
|
5
5
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
-
import { CloudResourceStatus } from '../../types/pools';
|
|
7
6
|
|
|
8
|
-
export class
|
|
7
|
+
export class MachineCreationEndedPayload {
|
|
9
8
|
@IsUUID()
|
|
10
9
|
machineResourceId: string;
|
|
11
10
|
|
|
12
|
-
@IsUUID()
|
|
13
|
-
machinePoolId: string;
|
|
14
|
-
|
|
15
11
|
@IsEnum(SiteOperationStatus)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@IsEnum(CloudResourceStatus)
|
|
19
|
-
status: CloudResourceStatus;
|
|
12
|
+
status: SiteOperationStatus;
|
|
20
13
|
|
|
21
14
|
@IsOptional()
|
|
22
15
|
@IsString()
|
|
23
16
|
reason?: string;
|
|
24
17
|
}
|
|
25
18
|
|
|
26
|
-
export class
|
|
27
|
-
static readonly EVENT_NAME = 'site-controller.machine-
|
|
19
|
+
export class MachineCreationEnded extends LudeoEvent {
|
|
20
|
+
static readonly EVENT_NAME = 'site-controller.machine-creation-ended';
|
|
28
21
|
|
|
29
|
-
constructor(payload:
|
|
30
|
-
super(
|
|
22
|
+
constructor(payload: MachineCreationEndedPayload, context: SiteControllerContext) {
|
|
23
|
+
super(MachineCreationEnded.EVENT_NAME);
|
|
31
24
|
this.payload = payload;
|
|
32
25
|
this.context = context;
|
|
33
26
|
}
|
|
34
27
|
|
|
35
|
-
@ValidateNestedType(() =>
|
|
36
|
-
payload:
|
|
28
|
+
@ValidateNestedType(() => MachineCreationEndedPayload)
|
|
29
|
+
payload: MachineCreationEndedPayload;
|
|
37
30
|
|
|
38
|
-
@ValidateNestedType(() =>
|
|
39
|
-
context:
|
|
31
|
+
@ValidateNestedType(() => SiteControllerContext)
|
|
32
|
+
context: SiteControllerContext;
|
|
40
33
|
}
|
|
41
34
|
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { BaseCommand, BaseCommandPayload } from '../base/base';
|
|
2
2
|
import { GameCreationPayload, MachineMode } from '../../types/site-controller';
|
|
3
3
|
import { ValidateNestedType } from '../../../decorators';
|
|
4
|
-
import { IsEnum
|
|
4
|
+
import { IsEnum } from 'class-validator';
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
export class StartGameCommandPayload extends BaseCommandPayload {
|
|
8
8
|
payload: GameCreationPayload;
|
|
9
9
|
|
|
10
|
-
@IsString()
|
|
11
|
-
gameResourceId: string;
|
|
12
|
-
|
|
13
10
|
@IsEnum(MachineMode)
|
|
14
11
|
machineMode: MachineMode;
|
|
15
12
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import { CloudResourceContext } from '../../contexts';
|
|
3
|
-
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
-
import { CloudResourceStatus } from '../../types/pools';
|
|
5
|
-
export declare class GameLudeocastTerminationEndedPayload {
|
|
6
|
-
gameResourceId: string;
|
|
7
|
-
gamePoolId: string;
|
|
8
|
-
operationStatus: SiteOperationStatus;
|
|
9
|
-
status: CloudResourceStatus;
|
|
10
|
-
reason?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class GameLudeocastTerminationEnded extends LudeoEvent {
|
|
13
|
-
static readonly EVENT_NAME = "site-controller.game-ludeocast-termination-ended";
|
|
14
|
-
constructor(payload: GameLudeocastTerminationEndedPayload, context: CloudResourceContext);
|
|
15
|
-
payload: GameLudeocastTerminationEndedPayload;
|
|
16
|
-
context: CloudResourceContext;
|
|
17
|
-
}
|
|
@@ -1,60 +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.GameLudeocastTerminationEnded = exports.GameLudeocastTerminationEndedPayload = void 0;
|
|
13
|
-
const infra_1 = require("../../../infra");
|
|
14
|
-
const decorators_1 = require("../../../decorators");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
const contexts_1 = require("../../contexts");
|
|
17
|
-
const site_controller_1 = require("../../types/site-controller");
|
|
18
|
-
const pools_1 = require("../../types/pools");
|
|
19
|
-
class GameLudeocastTerminationEndedPayload {
|
|
20
|
-
}
|
|
21
|
-
exports.GameLudeocastTerminationEndedPayload = GameLudeocastTerminationEndedPayload;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsUUID)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], GameLudeocastTerminationEndedPayload.prototype, "gameResourceId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsUUID)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], GameLudeocastTerminationEndedPayload.prototype, "gamePoolId", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], GameLudeocastTerminationEndedPayload.prototype, "operationStatus", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], GameLudeocastTerminationEndedPayload.prototype, "status", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
(0, class_validator_1.IsString)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], GameLudeocastTerminationEndedPayload.prototype, "reason", void 0);
|
|
43
|
-
class GameLudeocastTerminationEnded extends infra_1.LudeoEvent {
|
|
44
|
-
constructor(payload, context) {
|
|
45
|
-
super(GameLudeocastTerminationEnded.EVENT_NAME);
|
|
46
|
-
this.payload = payload;
|
|
47
|
-
this.context = context;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.GameLudeocastTerminationEnded = GameLudeocastTerminationEnded;
|
|
51
|
-
GameLudeocastTerminationEnded.EVENT_NAME = 'site-controller.game-ludeocast-termination-ended';
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, decorators_1.ValidateNestedType)(() => GameLudeocastTerminationEndedPayload),
|
|
54
|
-
__metadata("design:type", GameLudeocastTerminationEndedPayload)
|
|
55
|
-
], GameLudeocastTerminationEnded.prototype, "payload", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
58
|
-
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
59
|
-
], GameLudeocastTerminationEnded.prototype, "context", void 0);
|
|
60
|
-
//# sourceMappingURL=game-ludeocast-termination-ended.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"game-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,oCAAoC;CAgBhD;AAhBD,oFAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;wEACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGlB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import { CloudResourceContext } from '../../contexts';
|
|
3
|
-
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
-
import { CloudResourceStatus } from '../../types/pools';
|
|
5
|
-
export declare class MachineLudeocastTerminationEndedPayload {
|
|
6
|
-
machineResourceId: string;
|
|
7
|
-
machinePoolId: string;
|
|
8
|
-
operationStatus: SiteOperationStatus;
|
|
9
|
-
status: CloudResourceStatus;
|
|
10
|
-
reason?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class MachineLudeocastTerminationEnded extends LudeoEvent {
|
|
13
|
-
static readonly EVENT_NAME = "site-controller.machine-ludeocast-termination-ended";
|
|
14
|
-
constructor(payload: MachineLudeocastTerminationEndedPayload, context: CloudResourceContext);
|
|
15
|
-
payload: MachineLudeocastTerminationEndedPayload;
|
|
16
|
-
context: CloudResourceContext;
|
|
17
|
-
}
|
|
@@ -1,60 +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.MachineLudeocastTerminationEnded = exports.MachineLudeocastTerminationEndedPayload = void 0;
|
|
13
|
-
const infra_1 = require("../../../infra");
|
|
14
|
-
const decorators_1 = require("../../../decorators");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
const contexts_1 = require("../../contexts");
|
|
17
|
-
const site_controller_1 = require("../../types/site-controller");
|
|
18
|
-
const pools_1 = require("../../types/pools");
|
|
19
|
-
class MachineLudeocastTerminationEndedPayload {
|
|
20
|
-
}
|
|
21
|
-
exports.MachineLudeocastTerminationEndedPayload = MachineLudeocastTerminationEndedPayload;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsUUID)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], MachineLudeocastTerminationEndedPayload.prototype, "machineResourceId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsUUID)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], MachineLudeocastTerminationEndedPayload.prototype, "machinePoolId", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], MachineLudeocastTerminationEndedPayload.prototype, "operationStatus", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], MachineLudeocastTerminationEndedPayload.prototype, "status", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
(0, class_validator_1.IsString)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], MachineLudeocastTerminationEndedPayload.prototype, "reason", void 0);
|
|
43
|
-
class MachineLudeocastTerminationEnded extends infra_1.LudeoEvent {
|
|
44
|
-
constructor(payload, context) {
|
|
45
|
-
super(MachineLudeocastTerminationEnded.EVENT_NAME);
|
|
46
|
-
this.payload = payload;
|
|
47
|
-
this.context = context;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.MachineLudeocastTerminationEnded = MachineLudeocastTerminationEnded;
|
|
51
|
-
MachineLudeocastTerminationEnded.EVENT_NAME = 'site-controller.machine-ludeocast-termination-ended';
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, decorators_1.ValidateNestedType)(() => MachineLudeocastTerminationEndedPayload),
|
|
54
|
-
__metadata("design:type", MachineLudeocastTerminationEndedPayload)
|
|
55
|
-
], MachineLudeocastTerminationEnded.prototype, "payload", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
58
|
-
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
59
|
-
], MachineLudeocastTerminationEnded.prototype, "context", void 0);
|
|
60
|
-
//# sourceMappingURL=machine-ludeocast-termination-ended.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"machine-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,uCAAuC;CAgBnD;AAhBD,0FAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;8EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;gFACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;uEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uEACK;AAGlB,MAAa,gCAAiC,SAAQ,kBAAU;IAG9D,YAAY,OAAgD,EAAE,OAA6B;QACzF,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4EAcC;AAbiB,2CAAU,GAAG,qDAAqD,CAAC;AASnF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC;AAGjD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;iEAAC"}
|
|
@@ -1,21 +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.LudeoCastV2AllocationData = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class LudeoCastV2AllocationData {
|
|
15
|
-
}
|
|
16
|
-
exports.LudeoCastV2AllocationData = LudeoCastV2AllocationData;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], LudeoCastV2AllocationData.prototype, "signalingURI", void 0);
|
|
21
|
-
//# sourceMappingURL=allocation-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/allocation-data.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,yBAAyB;CAGrC;AAHD,8DAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;+DACU"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LudeoCastV2GameCreationResponse = void 0;
|
|
4
|
-
class LudeoCastV2GameCreationResponse {
|
|
5
|
-
}
|
|
6
|
-
exports.LudeoCastV2GameCreationResponse = LudeoCastV2GameCreationResponse;
|
|
7
|
-
//# sourceMappingURL=game-creation-response.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"game-creation-response.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/game-creation-response.ts"],"names":[],"mappings":";;;AAAA,MAAa,+BAA+B;CAAG;AAA/C,0EAA+C"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./resource-provider-settings"), exports);
|
|
18
|
-
__exportStar(require("./provider-settings"), exports);
|
|
19
|
-
__exportStar(require("./request-data"), exports);
|
|
20
|
-
__exportStar(require("./game-creation-response"), exports);
|
|
21
|
-
__exportStar(require("./allocation-data"), exports);
|
|
22
|
-
__exportStar(require("./machine-provider-settings"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,sDAAoC;AACpC,iDAA+B;AAC/B,2DAAyC;AACzC,oDAAkC;AAClC,8DAA4C"}
|
|
@@ -1,21 +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.LudeoCastV2MachineResourceProviderSettings = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class LudeoCastV2MachineResourceProviderSettings {
|
|
15
|
-
}
|
|
16
|
-
exports.LudeoCastV2MachineResourceProviderSettings = LudeoCastV2MachineResourceProviderSettings;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], LudeoCastV2MachineResourceProviderSettings.prototype, "machineId", void 0);
|
|
21
|
-
//# sourceMappingURL=machine-provider-settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"machine-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/machine-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,0CAA0C;CAGtD;AAHD,gGAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;6EACO"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MachineMode } from "../..";
|
|
2
|
-
import { CloudProviderSettings } from "../provider-settings";
|
|
3
|
-
import { LudeoCastSite } from "../ludeocast/site";
|
|
4
|
-
export declare class LudeoCastV2ProviderSettings {
|
|
5
|
-
site: LudeoCastSite;
|
|
6
|
-
region?: string;
|
|
7
|
-
mode?: MachineMode;
|
|
8
|
-
executableLaunchPath?: string;
|
|
9
|
-
machineClass?: string;
|
|
10
|
-
additionalEnvironmentVariables?: Record<string, string>;
|
|
11
|
-
additionalLaunchArgs?: string[];
|
|
12
|
-
}
|
|
13
|
-
export declare const isLudeoCastV2ProviderSettings: (settings: CloudProviderSettings) => settings is LudeoCastV2ProviderSettings;
|