@ludeo/cloud-common 1.2.167 → 1.2.169-beta-yahil-1

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,2 @@
1
+ import { CloudSettingsState } from "../types/cloud/cloud-settings";
2
+ export declare const DEFAULT_CLOUD_SETTINGS: CloudSettingsState;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_CLOUD_SETTINGS = void 0;
4
+ exports.DEFAULT_CLOUD_SETTINGS = {
5
+ gameLoadingTime: 180000,
6
+ firstTimeLudeoLoad: 40000,
7
+ nonPreloadedLudeoLoad: 40000,
8
+ postGameLoadDelay: 0,
9
+ additionalLaunchArgs: [],
10
+ additionalEnvironmentVariables: {},
11
+ };
12
+ //# sourceMappingURL=cloud-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-settings.js","sourceRoot":"","sources":["../../../src/v4/consts/cloud-settings.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAuB;IACxD,eAAe,EAAE,MAAM;IACvB,kBAAkB,EAAE,KAAK;IACzB,qBAAqB,EAAE,KAAK;IAC5B,iBAAiB,EAAE,CAAC;IACpB,oBAAoB,EAAE,EAAE;IACxB,8BAA8B,EAAE,EAAE;CACnC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./cloud-settings";
@@ -0,0 +1,18 @@
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("./cloud-settings"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -2,6 +2,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
2
2
  import { CloudResourceContext, CloudSessionContext } from "../contexts";
3
3
  export declare class CloudLogUploadFailedPayload {
4
4
  gameResourceId?: string;
5
+ gameId?: string;
5
6
  path: string;
6
7
  errorMessage: string;
7
8
  }
@@ -22,6 +22,11 @@ __decorate([
22
22
  (0, class_validator_1.IsOptional)(),
23
23
  __metadata("design:type", String)
24
24
  ], CloudLogUploadFailedPayload.prototype, "gameResourceId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.IsOptional)(),
28
+ __metadata("design:type", String)
29
+ ], CloudLogUploadFailedPayload.prototype, "gameId", void 0);
25
30
  __decorate([
26
31
  (0, class_validator_1.IsString)(),
27
32
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-log-upload-failed.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-log-upload-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,oGAAqF;AACrF,yDAAqD;AACrD,0CAAwE;AAExE,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAPC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mEACW;AAGxB;IADC,IAAA,0BAAQ,GAAE;;yDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;iEACU;AAGvB,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,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AG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
@@ -4,6 +4,7 @@ export declare class CloudLogUploadedPayload {
4
4
  path: string;
5
5
  region: string;
6
6
  gameResourceId?: string;
7
+ gameId?: string;
7
8
  }
8
9
  export declare class CloudLogUploaded extends LudeoEvent {
9
10
  static readonly EVENT_NAME = "cloud-resources.cloud-log-uploaded";
@@ -30,6 +30,11 @@ __decorate([
30
30
  (0, class_validator_1.IsOptional)(),
31
31
  __metadata("design:type", String)
32
32
  ], CloudLogUploadedPayload.prototype, "gameResourceId", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ (0, class_validator_1.IsOptional)(),
36
+ __metadata("design:type", String)
37
+ ], CloudLogUploadedPayload.prototype, "gameId", void 0);
33
38
  class CloudLogUploaded extends ludeo_event_1.LudeoEvent {
34
39
  constructor(payload, context) {
35
40
  super(CloudLogUploaded.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-log-uploaded.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-log-uploaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,oGAAqF;AACrF,yDAAqD;AACrD,0CAAwE;AAExE,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AARC;IADC,IAAA,0BAAQ,GAAE;;qDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;uDACI;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACW;AAG1B,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YACE,OAAgC,EAChC,OAAmD;QAEnD,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,4CAiBC;AAhBiB,2BAAU,GAAG,oCAAoC,CAAC;AAYlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,CAAC,+BAAoB,EAAE,8BAAmB,CAAC,CAAC;;iDAClB;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
1
+ {"version":3,"file":"cloud-log-uploaded.js","sourceRoot":"","sources":["../../../src/v4/events/cloud-log-uploaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,oGAAqF;AACrF,yDAAqD;AACrD,0CAAwE;AAExE,MAAa,uBAAuB;CAcnC;AAdD,0DAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;qDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;uDACI;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACG;AAGlB,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YACE,OAAgC,EAChC,OAAmD;QAEnD,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,4CAiBC;AAhBiB,2BAAU,GAAG,oCAAoC,CAAC;AAYlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,CAAC,+BAAoB,EAAE,8BAAmB,CAAC,CAAC;;iDAClB;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
@@ -3,6 +3,7 @@ import { CloudProvider, CloudResourceProviderSettings } from "../types";
3
3
  export declare class MonitorGameResourceTaskEventPayload<T extends CloudResourceProviderSettings = CloudResourceProviderSettings> {
4
4
  gameResourceId: string;
5
5
  gamePoolId: string;
6
+ gameId: string;
6
7
  providerSettings: T;
7
8
  cloudProvider: CloudProvider;
8
9
  }
@@ -25,6 +25,10 @@ __decorate([
25
25
  (0, class_validator_1.IsUUID)(),
26
26
  __metadata("design:type", String)
27
27
  ], MonitorGameResourceTaskEventPayload.prototype, "gamePoolId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], MonitorGameResourceTaskEventPayload.prototype, "gameId", void 0);
28
32
  __decorate([
29
33
  (0, decorators_1.ValidateNestedType)(types_1.getResourceProviderSettingsType),
30
34
  __metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"monitor-game-resource-task.js","sourceRoot":"","sources":["../../../src/v4/events/monitor-game-resource-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oCAIkB;AAClB,iDAAsD;AAEtD,MAAa,mCAAmC;CAc/C;AAdD,kFAcC;AAVC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,uCAA+B,CAAC;;6EAChC;AAGpB;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/v4/events/monitor-game-resource-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oCAIkB;AAClB,iDAAsD;AAEtD,MAAa,mCAAmC;CAiB/C;AAjBD,kFAiBC;AAbC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;mEACM;AAGf;IADC,IAAA,+BAAkB,EAAC,uCAA+B,CAAC;;6EAChC;AAGpB;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,3 +1,4 @@
1
1
  export * as Events from "./events";
2
2
  export * as Types from "./types";
3
3
  export * as Contexts from "./contexts";
4
+ export * as Consts from "./consts";
package/dist/v4/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Contexts = exports.Types = exports.Events = void 0;
3
+ exports.Consts = exports.Contexts = exports.Types = exports.Events = void 0;
4
4
  exports.Events = require("./events");
5
5
  exports.Types = require("./types");
6
6
  exports.Contexts = require("./contexts");
7
+ exports.Consts = require("./consts");
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v4/index.ts"],"names":[],"mappings":";;;AAAA,qCAAmC;AACnC,mCAAiC;AACjC,yCAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v4/index.ts"],"names":[],"mappings":";;;AAAA,qCAAmC;AACnC,mCAAiC;AACjC,yCAAuC;AACvC,qCAAmC"}
@@ -0,0 +1,8 @@
1
+ export interface CloudSettingsState {
2
+ gameLoadingTime?: number;
3
+ additionalLaunchArgs?: Array<string>;
4
+ additionalEnvironmentVariables?: Record<string, string>;
5
+ firstTimeLudeoLoad?: number;
6
+ nonPreloadedLudeoLoad?: number;
7
+ postGameLoadDelay?: number;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=cloud-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/cloud-settings.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.167",
3
+ "version": "1.2.169-beta-yahil-1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,10 @@
1
+ import { CloudSettingsState } from "../types/cloud/cloud-settings";
2
+
3
+ export const DEFAULT_CLOUD_SETTINGS: CloudSettingsState = {
4
+ gameLoadingTime: 180000,
5
+ firstTimeLudeoLoad: 40000,
6
+ nonPreloadedLudeoLoad: 40000,
7
+ postGameLoadDelay: 0,
8
+ additionalLaunchArgs: [],
9
+ additionalEnvironmentVariables: {},
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./cloud-settings";
@@ -8,6 +8,10 @@ export class CloudLogUploadFailedPayload {
8
8
  @IsOptional()
9
9
  gameResourceId?: string;
10
10
 
11
+ @IsString()
12
+ @IsOptional()
13
+ gameId?: string;
14
+
11
15
  @IsString()
12
16
  path: string;
13
17
 
@@ -13,6 +13,10 @@ export class CloudLogUploadedPayload {
13
13
  @IsString()
14
14
  @IsOptional()
15
15
  gameResourceId?: string;
16
+
17
+ @IsString()
18
+ @IsOptional()
19
+ gameId?: string;
16
20
  }
17
21
 
18
22
  export class CloudLogUploaded extends LudeoEvent {
@@ -16,6 +16,9 @@ export class MonitorGameResourceTaskEventPayload<
16
16
  @IsUUID()
17
17
  gamePoolId: string;
18
18
 
19
+ @IsUUID()
20
+ gameId: string;
21
+
19
22
  @ValidateNestedType(getResourceProviderSettingsType)
20
23
  providerSettings: T;
21
24
 
package/src/v4/index.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * as Events from "./events";
2
2
  export * as Types from "./types";
3
3
  export * as Contexts from "./contexts";
4
+ export * as Consts from "./consts";
@@ -0,0 +1,8 @@
1
+ export interface CloudSettingsState {
2
+ gameLoadingTime?: number;
3
+ additionalLaunchArgs?: Array<string>;
4
+ additionalEnvironmentVariables?: Record<string, string>;
5
+ firstTimeLudeoLoad?: number;
6
+ nonPreloadedLudeoLoad?: number;
7
+ postGameLoadDelay?: number;
8
+ }