@ludeo/cloud-common 1.1.132 → 1.1.133-beta-yahil-2

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.
@@ -0,0 +1,13 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { AWSResourceProviderSettings } from "../types";
3
+ export declare class AwsStreamSessionReactivationStartedPayload {
4
+ gameResourceId: string;
5
+ gamePoolId: string;
6
+ providerSettings: AWSResourceProviderSettings;
7
+ }
8
+ export declare class AwsStreamSessionReactivationStarted extends LudeoEvent {
9
+ static readonly EVENT_NAME = "cloud-resources.aws-reactivate-stream-session-reactivation-started";
10
+ constructor(payload: AwsStreamSessionReactivationStartedPayload);
11
+ context: never;
12
+ payload: AwsStreamSessionReactivationStartedPayload;
13
+ }
@@ -0,0 +1,44 @@
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.AwsStreamSessionReactivationStarted = exports.AwsStreamSessionReactivationStartedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const infra_1 = require("../../infra");
15
+ const decorators_1 = require("../../decorators");
16
+ const types_1 = require("../types");
17
+ class AwsStreamSessionReactivationStartedPayload {
18
+ }
19
+ exports.AwsStreamSessionReactivationStartedPayload = AwsStreamSessionReactivationStartedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], AwsStreamSessionReactivationStartedPayload.prototype, "gameResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], AwsStreamSessionReactivationStartedPayload.prototype, "gamePoolId", void 0);
28
+ __decorate([
29
+ (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
30
+ __metadata("design:type", types_1.AWSResourceProviderSettings)
31
+ ], AwsStreamSessionReactivationStartedPayload.prototype, "providerSettings", void 0);
32
+ class AwsStreamSessionReactivationStarted extends infra_1.LudeoEvent {
33
+ constructor(payload) {
34
+ super(AwsStreamSessionReactivationStarted.EVENT_NAME);
35
+ this.payload = payload;
36
+ }
37
+ }
38
+ exports.AwsStreamSessionReactivationStarted = AwsStreamSessionReactivationStarted;
39
+ AwsStreamSessionReactivationStarted.EVENT_NAME = "cloud-resources.aws-reactivate-stream-session-reactivation-started";
40
+ __decorate([
41
+ (0, decorators_1.ValidateNestedType)(() => AwsStreamSessionReactivationStartedPayload),
42
+ __metadata("design:type", AwsStreamSessionReactivationStartedPayload)
43
+ ], AwsStreamSessionReactivationStarted.prototype, "payload", void 0);
44
+ //# sourceMappingURL=aws-stream-session-reactivation-started.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-stream-session-reactivation-started.js","sourceRoot":"","sources":["../../../src/v3/events/aws-stream-session-reactivation-started.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,uCAAyC;AACzC,iDAAsD;AACtD,oCAAuD;AAEvD,MAAa,0CAA0C;CAStD;AATD,gGASC;AAPC;IADC,IAAA,wBAAM,GAAE;;kFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;8EACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;oFAAC;AAGhD,MAAa,mCAAoC,SAAQ,kBAAU;IAIjE,YAAY,OAAmD;QAC7D,KAAK,CAAC,mCAAmC,CAAC,UAAU,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,kFAaC;AAZiB,8CAAU,GACxB,oEAAoE,CAAC;AAUvE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,0CAA0C,CAAC;8BAC5D,0CAA0C;oEAAC"}
@@ -2,6 +2,7 @@ export * from "./allocate-game-request";
2
2
  export * from "./allocate-game-resource-request";
3
3
  export * from "./allocate-machine-request";
4
4
  export * from "./aws-reactivate-stream-session-task";
5
+ export * from "./aws-stream-session-reactivation-started";
5
6
  export * from "./cloud-machine-auth-ready";
6
7
  export * from "./create-game-resource-request";
7
8
  export * from "./create-games-request";
@@ -18,6 +18,7 @@ __exportStar(require("./allocate-game-request"), exports);
18
18
  __exportStar(require("./allocate-game-resource-request"), exports);
19
19
  __exportStar(require("./allocate-machine-request"), exports);
20
20
  __exportStar(require("./aws-reactivate-stream-session-task"), exports);
21
+ __exportStar(require("./aws-stream-session-reactivation-started"), exports);
21
22
  __exportStar(require("./cloud-machine-auth-ready"), exports);
22
23
  __exportStar(require("./create-game-resource-request"), exports);
23
24
  __exportStar(require("./create-games-request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C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;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,0EAAwD;AACxD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C"}
@@ -1,9 +1,9 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { AWSResourceProviderSettings, CloudProvider } from "../types";
2
+ import { CloudProvider, CloudResourceProviderSettings } from "../types";
3
3
  export declare class MonitorGameResourceTaskEventPayload {
4
4
  gameResourceId: string;
5
5
  gamePoolId: string;
6
- providerSettings: AWSResourceProviderSettings;
6
+ providerSettings: CloudResourceProviderSettings;
7
7
  cloudProvider: CloudProvider;
8
8
  }
9
9
  export declare class MonitorGameResourceTaskEvent extends LudeoEvent {
@@ -27,7 +27,7 @@ __decorate([
27
27
  ], MonitorGameResourceTaskEventPayload.prototype, "gamePoolId", void 0);
28
28
  __decorate([
29
29
  (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
30
- __metadata("design:type", types_1.AWSResourceProviderSettings)
30
+ __metadata("design:type", Object)
31
31
  ], MonitorGameResourceTaskEventPayload.prototype, "providerSettings", void 0);
32
32
  __decorate([
33
33
  (0, class_validator_1.IsEnum)(types_1.CloudProvider),
@@ -1 +1 @@
1
- {"version":3,"file":"monitor-game-resource-task.js","sourceRoot":"","sources":["../../../src/v3/events/monitor-game-resource-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oCAAsE;AACtE,iDAAsD;AAEtD,MAAa,mCAAmC;CAY/C;AAZD,kFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;6EAAC;AAG9C;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG/B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YAAY,OAA4C;QACtD,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,oEAYC;AAXiB,uCAAU,GAAG,4CAA4C,CAAC;AAU1E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
1
+ {"version":3,"file":"monitor-game-resource-task.js","sourceRoot":"","sources":["../../../src/v3/events/monitor-game-resource-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oCAMkB;AAClB,iDAAsD;AAEtD,MAAa,mCAAmC;CAY/C;AAZD,kFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;6EACN;AAGhD;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG/B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YAAY,OAA4C;QACtD,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,oEAYC;AAXiB,uCAAU,GAAG,4CAA4C,CAAC;AAU1E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
@@ -13,7 +13,6 @@ export declare class SetPoolsStateEventRequestId {
13
13
  export declare class SetPoolStateEventPayload {
14
14
  machines: MachinePoolAttributesWithQuantity[];
15
15
  games: GamePoolAttributesWithQuantity[];
16
- error_message?: string;
17
16
  requestId?: SetPoolsStateEventRequestId;
18
17
  }
19
18
  export declare class SetPoolsStateEvent extends LudeoEvent {
@@ -44,11 +44,6 @@ __decorate([
44
44
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => Array),
45
45
  __metadata("design:type", Array)
46
46
  ], SetPoolStateEventPayload.prototype, "games", void 0);
47
- __decorate([
48
- (0, class_validator_1.IsOptional)(),
49
- (0, class_validator_1.IsString)(),
50
- __metadata("design:type", String)
51
- ], SetPoolStateEventPayload.prototype, "error_message", void 0);
52
47
  __decorate([
53
48
  (0, class_validator_1.IsOptional)(),
54
49
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => SetPoolsStateEventRequestId),
@@ -1 +1 @@
1
- {"version":3,"file":"set-pools-state.js","sourceRoot":"","sources":["../../../src/v3/events/set-pools-state.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwE;AAExE,yDAAqD;AACrD,oCAAqE;AACrE,oGAAqF;AAErF,MAAa,iCAAkC,SAAQ,6BAAqB;CAE3E;AAFD,8EAEC;AAED,MAAa,8BAA+B,SAAQ,0BAAkB;CAErE;AAFD,wEAEC;AAED,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;yEACoB;AAG7B;IADC,IAAA,wBAAM,GAAE;;4EACuB;AAGlC,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAbC;IAFC,IAAA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C,GAAG,EAAE,CAAC,KAAqC,CAAC;;uDACxB;AAIxC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC1C,2BAA2B;2DAAC;AAG1C,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAiC;QAC3C,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,gDAUC;AATiB,6BAAU,GAAG,2BAA2B,CAAC;AAQzD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;mDAAC"}
@@ -27,6 +27,7 @@ export declare class AWSResourceProviderSettings {
27
27
  streamSessionId?: string;
28
28
  streamGroupId?: string;
29
29
  cloudProvider?: CloudProvider;
30
+ region?: string;
30
31
  }
31
32
  export type CloudResourceProviderSettings = AWSResourceProviderSettings;
32
33
  export declare class AWSGameCreationResponse {
@@ -60,6 +60,11 @@ __decorate([
60
60
  (0, class_validator_1.IsOptional)(),
61
61
  __metadata("design:type", String)
62
62
  ], AWSResourceProviderSettings.prototype, "cloudProvider", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsOptional)(),
65
+ (0, class_validator_1.IsString)(),
66
+ __metadata("design:type", String)
67
+ ], AWSResourceProviderSettings.prototype, "region", void 0);
63
68
  class AWSGameCreationResponse {
64
69
  }
65
70
  exports.AWSGameCreationResponse = AWSGameCreationResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v3/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAKxB,IAAY,aAEX;AAFD,WAAY,aAAa;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AG,EAAE,CAAC,qBAAqB,CAAC;8BACnC,qBAAqB;iDAAC;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;;oDACC;AAG7C;IADC,IAAA,wBAAM,GAAE;;qDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACW;AAKtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.132",
3
+ "version": "1.1.133-beta-yahil-2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,31 @@
1
+ import { IsUUID } from "class-validator";
2
+
3
+ import { LudeoEvent } from "../../infra";
4
+ import { ValidateNestedType } from "../../decorators";
5
+ import { AWSResourceProviderSettings } from "../types";
6
+
7
+ export class AwsStreamSessionReactivationStartedPayload {
8
+ @IsUUID()
9
+ gameResourceId: string;
10
+
11
+ @IsUUID()
12
+ gamePoolId: string;
13
+
14
+ @ValidateNestedType(() => AWSResourceProviderSettings)
15
+ providerSettings: AWSResourceProviderSettings;
16
+ }
17
+
18
+ export class AwsStreamSessionReactivationStarted extends LudeoEvent {
19
+ static readonly EVENT_NAME =
20
+ "cloud-resources.aws-reactivate-stream-session-reactivation-started";
21
+
22
+ constructor(payload: AwsStreamSessionReactivationStartedPayload) {
23
+ super(AwsStreamSessionReactivationStarted.EVENT_NAME);
24
+ this.payload = payload;
25
+ }
26
+
27
+ context: never;
28
+
29
+ @ValidateNestedType(() => AwsStreamSessionReactivationStartedPayload)
30
+ payload: AwsStreamSessionReactivationStartedPayload;
31
+ }
@@ -22,7 +22,7 @@ export class GameResourceReadyForCreation extends LudeoEvent {
22
22
 
23
23
  constructor(
24
24
  payload: GameResourceReadyForCreationPayload,
25
- context: CloudResourceContext,
25
+ context: CloudResourceContext
26
26
  ) {
27
27
  super(GameResourceReadyForCreation.EVENT_NAME);
28
28
  this.payload = payload;
@@ -2,6 +2,7 @@ export * from "./allocate-game-request";
2
2
  export * from "./allocate-game-resource-request";
3
3
  export * from "./allocate-machine-request";
4
4
  export * from "./aws-reactivate-stream-session-task";
5
+ export * from "./aws-stream-session-reactivation-started";
5
6
  export * from "./cloud-machine-auth-ready";
6
7
  export * from "./create-game-resource-request";
7
8
  export * from "./create-games-request";
@@ -1,6 +1,12 @@
1
1
  import { IsEnum, IsUUID } from "class-validator";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { AWSResourceProviderSettings, CloudProvider } from "../types";
3
+ import {
4
+ AWSProviderSettings,
5
+ AWSResourceProviderSettings,
6
+ CloudProvider,
7
+ CloudProviderSettings,
8
+ CloudResourceProviderSettings,
9
+ } from "../types";
4
10
  import { ValidateNestedType } from "../../decorators";
5
11
 
6
12
  export class MonitorGameResourceTaskEventPayload {
@@ -11,7 +17,7 @@ export class MonitorGameResourceTaskEventPayload {
11
17
  gamePoolId: string;
12
18
 
13
19
  @ValidateNestedType(() => AWSResourceProviderSettings)
14
- providerSettings: AWSResourceProviderSettings;
20
+ providerSettings: CloudResourceProviderSettings;
15
21
 
16
22
  @IsEnum(CloudProvider)
17
23
  cloudProvider: CloudProvider;
@@ -29,10 +29,6 @@ export class SetPoolStateEventPayload {
29
29
  @ValidateNestedType(() => Array<GamePoolAttributesWithQuantity>)
30
30
  games: GamePoolAttributesWithQuantity[];
31
31
 
32
- @IsOptional()
33
- @IsString()
34
- error_message?: string;
35
-
36
32
  @IsOptional()
37
33
  @ValidateNestedType(() => SetPoolsStateEventRequestId)
38
34
  requestId?: SetPoolsStateEventRequestId;
@@ -60,6 +60,10 @@ export class AWSResourceProviderSettings {
60
60
  @IsEnum(CloudProvider)
61
61
  @IsOptional()
62
62
  cloudProvider?: CloudProvider;
63
+
64
+ @IsOptional()
65
+ @IsString()
66
+ region?: string;
63
67
  }
64
68
 
65
69
  export type CloudResourceProviderSettings = AWSResourceProviderSettings;