@ludeo/cloud-common 1.2.198 → 1.2.199-ygbeta0

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 (30) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.d.ts +13 -0
  3. package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js +49 -0
  4. package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js.map +1 -0
  5. package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.d.ts +3 -3
  6. package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.js +1 -2
  7. package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.js.map +1 -1
  8. package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.d.ts +4 -4
  9. package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.js +1 -2
  10. package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.js.map +1 -1
  11. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.d.ts +5 -4
  12. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +5 -1
  13. package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js.map +1 -1
  14. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.d.ts +4 -3
  15. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +5 -1
  16. package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js.map +1 -1
  17. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.d.ts +4 -3
  18. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js +5 -1
  19. package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js.map +1 -1
  20. package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.d.ts +16 -0
  21. package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.js +61 -0
  22. package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.js.map +1 -0
  23. package/package.json +1 -1
  24. package/src/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.ts +36 -0
  25. package/src/v4/events/cloud-builds/create-ludeocast-build-distribution-request.ts +11 -9
  26. package/src/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.ts +13 -11
  27. package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +14 -9
  28. package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +14 -8
  29. package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +14 -8
  30. package/src/v4/events/site-controller/ludeocast-build-distribution-copy-ended.ts +46 -0
@@ -1,8 +1,8 @@
1
- import { LudeoEvent } from '../../../infra';
2
- import { ValidateNestedType } from '../../../decorators';
3
- import { IsUUID } from 'class-validator';
4
- import { CloudResourceContext } from '../../contexts';
5
- import { LudeoCastV2ProviderSettings } from '../../types';
1
+ import { LudeoEvent } from "../../../infra";
2
+ import { ValidateNestedType } from "../../../decorators";
3
+ import { IsString, IsUUID } from "class-validator";
4
+ import { CloudResourceContext } from "../../contexts";
5
+ import { LudeoCastV2ProviderSettings } from "../../types";
6
6
 
7
7
  export class TerminateLudeocastMachineRequestPayload {
8
8
  @IsUUID()
@@ -10,12 +10,19 @@ export class TerminateLudeocastMachineRequestPayload {
10
10
 
11
11
  @ValidateNestedType(() => LudeoCastV2ProviderSettings)
12
12
  providerSettings: LudeoCastV2ProviderSettings;
13
+
14
+ @IsString()
15
+ site: string;
13
16
  }
14
17
 
15
18
  export class TerminateLudeocastMachineRequest extends LudeoEvent {
16
- static readonly EVENT_NAME = 'cloud-resources.terminate-ludeocast-machine-request';
19
+ static readonly EVENT_NAME =
20
+ "cloud-resources.terminate-ludeocast-machine-request";
17
21
 
18
- constructor(payload: TerminateLudeocastMachineRequestPayload, context: CloudResourceContext) {
22
+ constructor(
23
+ payload: TerminateLudeocastMachineRequestPayload,
24
+ context: CloudResourceContext
25
+ ) {
19
26
  super(TerminateLudeocastMachineRequest.EVENT_NAME);
20
27
  this.payload = payload;
21
28
  this.context = context;
@@ -27,4 +34,3 @@ export class TerminateLudeocastMachineRequest extends LudeoEvent {
27
34
  @ValidateNestedType(() => CloudResourceContext)
28
35
  context: CloudResourceContext;
29
36
  }
30
-
@@ -0,0 +1,46 @@
1
+ import { IsEnum, IsOptional, IsString } from "class-validator";
2
+
3
+ import { ValidateNestedType } from "../../../decorators";
4
+ import { LudeoEvent } from "../../../infra";
5
+ import { BuildContext } from "../../contexts";
6
+ import { SiteOperationStatus } from "../../types";
7
+
8
+ export class LudeocastBuildDistributionCopyEndedPayload {
9
+ @IsString()
10
+ buildId: string;
11
+
12
+ @IsEnum(SiteOperationStatus)
13
+ status: SiteOperationStatus;
14
+
15
+ @IsOptional()
16
+ @IsString()
17
+ reason?: string;
18
+
19
+ @IsOptional()
20
+ @IsString()
21
+ imageName?: string;
22
+
23
+ @IsOptional()
24
+ @IsString()
25
+ region?: string;
26
+ }
27
+
28
+ export class LudeocastBuildDistributionCopyEnded extends LudeoEvent {
29
+ static readonly EVENT_NAME =
30
+ "site-controller.ludeocast-build-distribution-copy-ended";
31
+
32
+ constructor(
33
+ payload: LudeocastBuildDistributionCopyEndedPayload,
34
+ context: BuildContext
35
+ ) {
36
+ super(LudeocastBuildDistributionCopyEnded.EVENT_NAME);
37
+ this.payload = payload;
38
+ this.context = context;
39
+ }
40
+
41
+ @ValidateNestedType(() => LudeocastBuildDistributionCopyEndedPayload)
42
+ payload: LudeocastBuildDistributionCopyEndedPayload;
43
+
44
+ @ValidateNestedType(() => BuildContext)
45
+ context: BuildContext;
46
+ }