@ludeo/cloud-common 1.2.192-beta-yahil-5 → 1.2.192-beta-yahil-7

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/contexts/index.d.ts +0 -1
  3. package/dist/v4/contexts/index.js +0 -1
  4. package/dist/v4/contexts/index.js.map +1 -1
  5. package/dist/v4/events/cloud-builds/create-build-distribution-request.d.ts +5 -5
  6. package/dist/v4/events/cloud-builds/create-build-distribution-request.js +16 -16
  7. package/dist/v4/events/cloud-builds/create-build-distribution-request.js.map +1 -1
  8. package/dist/v4/events/cloud-builds/terminate-build-distribution-request.d.ts +5 -5
  9. package/dist/v4/events/cloud-builds/terminate-build-distribution-request.js +16 -16
  10. package/dist/v4/events/cloud-builds/terminate-build-distribution-request.js.map +1 -1
  11. package/dist/v4/events/site-controller/build-distribution-creation-ended.d.ts +5 -5
  12. package/dist/v4/events/site-controller/build-distribution-creation-ended.js +15 -15
  13. package/dist/v4/events/site-controller/build-distribution-creation-ended.js.map +1 -1
  14. package/dist/v4/events/site-controller/build-distribution-termination-ended.d.ts +5 -5
  15. package/dist/v4/events/site-controller/build-distribution-termination-ended.js +15 -15
  16. package/dist/v4/events/site-controller/build-distribution-termination-ended.js.map +1 -1
  17. package/dist/v4/events/site-controller/resource-status-update.d.ts +3 -3
  18. package/dist/v4/events/site-controller/resource-status-update.js +2 -2
  19. package/dist/v4/events/site-controller/resource-status-update.js.map +1 -1
  20. package/package.json +1 -1
  21. package/src/v4/contexts/index.ts +0 -1
  22. package/src/v4/events/cloud-builds/create-build-distribution-request.ts +7 -7
  23. package/src/v4/events/cloud-builds/terminate-build-distribution-request.ts +7 -7
  24. package/src/v4/events/site-controller/build-distribution-creation-ended.ts +7 -7
  25. package/src/v4/events/site-controller/build-distribution-termination-ended.ts +7 -7
  26. package/src/v4/events/site-controller/resource-status-update.ts +4 -4
  27. package/dist/v4/contexts/site-controller-context.d.ts +0 -8
  28. package/dist/v4/contexts/site-controller-context.js +0 -47
  29. package/dist/v4/contexts/site-controller-context.js.map +0 -1
  30. package/src/v4/contexts/site-controller-context.ts +0 -32
@@ -1,7 +1,7 @@
1
1
  import { LudeoEvent } from '../../../infra';
2
2
  import { ValidateNestedType } from '../../../decorators';
3
3
  import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
4
- import { SiteControllerContext } from '../../contexts';
4
+ import { CloudResourceContext } from '../../contexts';
5
5
  import { CloudResourceStatus } from '../../types';
6
6
 
7
7
  export class ResourceStatusUpdatePayload {
@@ -25,7 +25,7 @@ export class ResourceStatusUpdatePayload {
25
25
  export class ResourceStatusUpdate extends LudeoEvent {
26
26
  static readonly EVENT_NAME = 'site-controller.resource-status-update';
27
27
 
28
- constructor(payload: ResourceStatusUpdatePayload, context: SiteControllerContext) {
28
+ constructor(payload: ResourceStatusUpdatePayload, context: CloudResourceContext) {
29
29
  super(ResourceStatusUpdate.EVENT_NAME);
30
30
  this.payload = payload;
31
31
  this.context = context;
@@ -34,7 +34,7 @@ export class ResourceStatusUpdate extends LudeoEvent {
34
34
  @ValidateNestedType(() => ResourceStatusUpdatePayload)
35
35
  payload: ResourceStatusUpdatePayload;
36
36
 
37
- @ValidateNestedType(() => SiteControllerContext)
38
- context: SiteControllerContext;
37
+ @ValidateNestedType(() => CloudResourceContext)
38
+ context: CloudResourceContext;
39
39
  }
40
40
 
@@ -1,8 +0,0 @@
1
- export declare class SiteControllerContext {
2
- site?: string;
3
- region?: string;
4
- machineResourceId?: string;
5
- gameResourceId?: string;
6
- buildId?: string;
7
- distributionId?: string;
8
- }
@@ -1,47 +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.SiteControllerContext = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class SiteControllerContext {
15
- }
16
- exports.SiteControllerContext = SiteControllerContext;
17
- __decorate([
18
- (0, class_validator_1.IsOptional)(),
19
- (0, class_validator_1.IsString)(),
20
- __metadata("design:type", String)
21
- ], SiteControllerContext.prototype, "site", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsOptional)(),
24
- (0, class_validator_1.IsString)(),
25
- __metadata("design:type", String)
26
- ], SiteControllerContext.prototype, "region", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsOptional)(),
29
- (0, class_validator_1.IsUUID)(),
30
- __metadata("design:type", String)
31
- ], SiteControllerContext.prototype, "machineResourceId", void 0);
32
- __decorate([
33
- (0, class_validator_1.IsOptional)(),
34
- (0, class_validator_1.IsUUID)(),
35
- __metadata("design:type", String)
36
- ], SiteControllerContext.prototype, "gameResourceId", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsOptional)(),
39
- (0, class_validator_1.IsString)(),
40
- __metadata("design:type", String)
41
- ], SiteControllerContext.prototype, "buildId", void 0);
42
- __decorate([
43
- (0, class_validator_1.IsOptional)(),
44
- (0, class_validator_1.IsString)(),
45
- __metadata("design:type", String)
46
- ], SiteControllerContext.prototype, "distributionId", void 0);
47
- //# sourceMappingURL=site-controller-context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"site-controller-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/site-controller-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAM/D,MAAa,qBAAqB;CAwBjC;AAxBD,sDAwBC;AArBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACa"}
@@ -1,32 +0,0 @@
1
- import { IsOptional, IsString, IsUUID } from 'class-validator';
2
-
3
- /**
4
- * Context for site-controller events
5
- * Contains information about the resources involved in the operation
6
- */
7
- export class SiteControllerContext {
8
- @IsOptional()
9
- @IsString()
10
- site?: string;
11
-
12
- @IsOptional()
13
- @IsString()
14
- region?: string;
15
-
16
- @IsOptional()
17
- @IsUUID()
18
- machineResourceId?: string;
19
-
20
- @IsOptional()
21
- @IsUUID()
22
- gameResourceId?: string;
23
-
24
- @IsOptional()
25
- @IsString()
26
- buildId?: string;
27
-
28
- @IsOptional()
29
- @IsString()
30
- distributionId?: string;
31
- }
32
-