@ludeo/cloud-common 1.1.127-beta-yahil → 1.1.127-beta2

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,15 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
3
+ import { CloudResourceContext } from "../contexts";
4
+ import { AWSResourceProviderSettings } from "../types";
5
+ export declare class AwsStreamSessionActivePayload {
6
+ creationPayload: CreateGameResourceRequestPayload;
7
+ resourceProviderSettings: AWSResourceProviderSettings;
8
+ streamSessionId: string;
9
+ }
10
+ export declare class AwsStreamSessionActive extends LudeoEvent {
11
+ static readonly EVENT_NAME = "cloud-resources.aws-stream-session-active";
12
+ constructor(payload: AwsStreamSessionActivePayload, context: CloudResourceContext);
13
+ context: CloudResourceContext;
14
+ payload: AwsStreamSessionActivePayload;
15
+ }
@@ -0,0 +1,51 @@
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.AwsStreamSessionActive = exports.AwsStreamSessionActivePayload = void 0;
13
+ const infra_1 = require("../../infra");
14
+ const decorators_1 = require("../../decorators");
15
+ const create_game_resource_request_1 = require("./create-game-resource-request");
16
+ const class_validator_1 = require("class-validator");
17
+ const contexts_1 = require("../contexts");
18
+ const types_1 = require("../types");
19
+ class AwsStreamSessionActivePayload {
20
+ }
21
+ exports.AwsStreamSessionActivePayload = AwsStreamSessionActivePayload;
22
+ __decorate([
23
+ (0, decorators_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
24
+ __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
25
+ ], AwsStreamSessionActivePayload.prototype, "creationPayload", void 0);
26
+ __decorate([
27
+ (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
28
+ __metadata("design:type", types_1.AWSResourceProviderSettings)
29
+ ], AwsStreamSessionActivePayload.prototype, "resourceProviderSettings", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], AwsStreamSessionActivePayload.prototype, "streamSessionId", void 0);
34
+ class AwsStreamSessionActive extends infra_1.LudeoEvent {
35
+ constructor(payload, context) {
36
+ super(AwsStreamSessionActive.EVENT_NAME);
37
+ this.payload = payload;
38
+ this.context = context;
39
+ }
40
+ }
41
+ exports.AwsStreamSessionActive = AwsStreamSessionActive;
42
+ AwsStreamSessionActive.EVENT_NAME = "cloud-resources.aws-stream-session-active";
43
+ __decorate([
44
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
45
+ __metadata("design:type", contexts_1.CloudResourceContext)
46
+ ], AwsStreamSessionActive.prototype, "context", void 0);
47
+ __decorate([
48
+ (0, decorators_1.ValidateNestedType)(() => AwsStreamSessionActivePayload),
49
+ __metadata("design:type", AwsStreamSessionActivePayload)
50
+ ], AwsStreamSessionActive.prototype, "payload", void 0);
51
+ //# sourceMappingURL=aws-stream-session-active.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-stream-session-active.js","sourceRoot":"","sources":["../../../src/v3/events/aws-stream-session-active.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,iFAAkF;AAClF,qDAA2C;AAC3C,0CAAmD;AACnD,oCAAuD;AAEvD,MAAa,6BAA6B;CASzC;AATD,sEASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;sEAAC;AAGlD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BAC5B,mCAA2B;+EAAC;AAGtD;IADC,IAAA,0BAAQ,GAAE;;sEACa;AAG1B,MAAa,sBAAuB,SAAQ,kBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,2CAA2C,CAAC;AAYzE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
@@ -64,3 +64,4 @@ export * from "./game-resource-allocation-timeout-task";
64
64
  export * from "./aws-poll-stream-session-task";
65
65
  export * from "./game-resource-ready-for-creation";
66
66
  export * from "./game-resource-ready-for-creation-failed";
67
+ export * from "./aws-stream-session-active";
@@ -80,4 +80,5 @@ __exportStar(require("./game-resource-allocation-timeout-task"), exports);
80
80
  __exportStar(require("./aws-poll-stream-session-task"), exports);
81
81
  __exportStar(require("./game-resource-ready-for-creation"), exports);
82
82
  __exportStar(require("./game-resource-ready-for-creation-failed"), exports);
83
+ __exportStar(require("./aws-stream-session-active"), exports);
83
84
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0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AA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;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,10 +1,9 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { AWSResourceProviderSettings, CloudProvider, CloudProviderSettings } from "../types";
2
+ import { AWSResourceProviderSettings, CloudProvider } from "../types";
3
3
  export declare class MonitorGameResourceTaskEventPayload {
4
4
  gameResourceId: string;
5
5
  gamePoolId: string;
6
- resourceProviderSettings: AWSResourceProviderSettings;
7
- providerSettings: CloudProviderSettings;
6
+ providerSettings: AWSResourceProviderSettings;
8
7
  cloudProvider: CloudProvider;
9
8
  }
10
9
  export declare class MonitorGameResourceTaskEvent extends LudeoEvent {
@@ -28,10 +28,6 @@ __decorate([
28
28
  __decorate([
29
29
  (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
30
30
  __metadata("design:type", types_1.AWSResourceProviderSettings)
31
- ], MonitorGameResourceTaskEventPayload.prototype, "resourceProviderSettings", void 0);
32
- __decorate([
33
- (0, decorators_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
34
- __metadata("design:type", Object)
35
31
  ], MonitorGameResourceTaskEventPayload.prototype, "providerSettings", void 0);
36
32
  __decorate([
37
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,oCAKkB;AAClB,iDAAsD;AAEtD,MAAa,mCAAmC;CAe/C;AAfD,kFAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BAC5B,mCAA2B;qFAAC;AAGtD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;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,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"}
@@ -2,5 +2,4 @@ import { CloudProvider } from "../../../cloud";
2
2
  export declare class BasePoolAttributes {
3
3
  cloudProvider: CloudProvider;
4
4
  friendlyName?: string;
5
- region?: string;
6
5
  }
@@ -24,8 +24,4 @@ __decorate([
24
24
  (0, class_validator_1.IsString)(),
25
25
  __metadata("design:type", String)
26
26
  ], BasePoolAttributes.prototype, "friendlyName", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsOptional)(),
29
- __metadata("design:type", String)
30
- ], BasePoolAttributes.prototype, "region", void 0);
31
27
  //# sourceMappingURL=base.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,0CAA+C;AAE/C,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AARC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yDACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACW;AAGtB;IADC,IAAA,4BAAU,GAAE;;kDACG"}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,0CAA+C;AAE/C,MAAa,kBAAkB;CAO9B;AAPD,gDAOC;AALC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yDACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACW"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.127-beta-yahil",
3
+ "version": "1.1.127-beta2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,36 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { ValidateNestedType } from "../../decorators";
3
+ import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
4
+ import { IsString } from "class-validator";
5
+ import { CloudResourceContext } from "../contexts";
6
+ import { AWSResourceProviderSettings } from "../types";
7
+
8
+ export class AwsStreamSessionActivePayload {
9
+ @ValidateNestedType(() => CreateGameResourceRequestPayload)
10
+ creationPayload: CreateGameResourceRequestPayload;
11
+
12
+ @ValidateNestedType(() => AWSResourceProviderSettings)
13
+ resourceProviderSettings: AWSResourceProviderSettings;
14
+
15
+ @IsString()
16
+ streamSessionId: string;
17
+ }
18
+
19
+ export class AwsStreamSessionActive extends LudeoEvent {
20
+ static readonly EVENT_NAME = "cloud-resources.aws-stream-session-active";
21
+
22
+ constructor(
23
+ payload: AwsStreamSessionActivePayload,
24
+ context: CloudResourceContext,
25
+ ) {
26
+ super(AwsStreamSessionActive.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+
31
+ @ValidateNestedType(() => CloudResourceContext)
32
+ context: CloudResourceContext;
33
+
34
+ @ValidateNestedType(() => AwsStreamSessionActivePayload)
35
+ payload: AwsStreamSessionActivePayload;
36
+ }
@@ -64,3 +64,4 @@ export * from "./game-resource-allocation-timeout-task";
64
64
  export * from "./aws-poll-stream-session-task";
65
65
  export * from "./game-resource-ready-for-creation";
66
66
  export * from "./game-resource-ready-for-creation-failed";
67
+ export * from "./aws-stream-session-active";
@@ -1,11 +1,6 @@
1
1
  import { IsEnum, IsUUID } from "class-validator";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import {
4
- AWSProviderSettings,
5
- AWSResourceProviderSettings,
6
- CloudProvider,
7
- CloudProviderSettings,
8
- } from "../types";
3
+ import { AWSResourceProviderSettings, CloudProvider } from "../types";
9
4
  import { ValidateNestedType } from "../../decorators";
10
5
 
11
6
  export class MonitorGameResourceTaskEventPayload {
@@ -16,10 +11,7 @@ export class MonitorGameResourceTaskEventPayload {
16
11
  gamePoolId: string;
17
12
 
18
13
  @ValidateNestedType(() => AWSResourceProviderSettings)
19
- resourceProviderSettings: AWSResourceProviderSettings;
20
-
21
- @ValidateNestedType(() => AWSProviderSettings)
22
- providerSettings: CloudProviderSettings;
14
+ providerSettings: AWSResourceProviderSettings;
23
15
 
24
16
  @IsEnum(CloudProvider)
25
17
  cloudProvider: CloudProvider;
@@ -8,7 +8,4 @@ export class BasePoolAttributes {
8
8
  @IsOptional()
9
9
  @IsString()
10
10
  friendlyName?: string;
11
-
12
- @IsOptional()
13
- region?: string;
14
11
  }