@ludeo/cloud-common 1.2.138 → 1.2.140

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.
@@ -22,4 +22,5 @@ export declare class CloudSessionContext {
22
22
  ludeoResourceId?: string;
23
23
  connectionId?: string;
24
24
  roomId?: string;
25
+ gameplayId?: string;
25
26
  }
@@ -115,4 +115,9 @@ __decorate([
115
115
  (0, class_validator_1.IsOptional)(),
116
116
  __metadata("design:type", String)
117
117
  ], CloudSessionContext.prototype, "roomId", void 0);
118
+ __decorate([
119
+ (0, class_validator_1.IsOptional)(),
120
+ (0, class_validator_1.IsUUID)(),
121
+ __metadata("design:type", String)
122
+ ], CloudSessionContext.prototype, "gameplayId", void 0);
118
123
  //# sourceMappingURL=cloud-session-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,mBAAmB;CA+E/B;AA/ED,kDA+EC;AA5EC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAG7B;IADC,IAAA,4BAAU,GAAE;;4DACY;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;oDACI;AAGjB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAKzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;0DACU;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;mDACG"}
1
+ {"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,mBAAmB;CAmF/B;AAnFD,kDAmFC;AAhFC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAG7B;IADC,IAAA,4BAAU,GAAE;;4DACY;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;oDACI;AAGjB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAKzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;0DACU;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW"}
@@ -1,7 +1,9 @@
1
1
  import { CloudProviderRequest } from "./provider-request";
2
+ import { CloudProvider } from "./provider";
2
3
  export declare class AllocationRequestData {
3
4
  cloudProviderRequest: CloudProviderRequest;
4
5
  clientIp?: string;
5
6
  region?: string;
6
7
  sessionToken: string;
8
+ cloudProvider?: CloudProvider;
7
9
  }
@@ -13,6 +13,7 @@ exports.AllocationRequestData = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const decorators_1 = require("../../../decorators");
15
15
  const provider_request_1 = require("./provider-request");
16
+ const provider_1 = require("./provider");
16
17
  class AllocationRequestData {
17
18
  }
18
19
  exports.AllocationRequestData = AllocationRequestData;
@@ -35,4 +36,9 @@ __decorate([
35
36
  (0, class_validator_1.IsString)(),
36
37
  __metadata("design:type", String)
37
38
  ], AllocationRequestData.prototype, "sessionToken", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.IsOptional)(),
42
+ __metadata("design:type", String)
43
+ ], AllocationRequestData.prototype, "cloudProvider", void 0);
38
44
  //# sourceMappingURL=allocation-request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allocation-request.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,oDAAyD;AACzD,yDAG4B;AAE5B,MAAa,qBAAqB;CAejC;AAfD,sDAeC;AAZC;IAFC,IAAA,+BAAkB,EAAC,yCAAsB,CAAC;IAC1C,IAAA,2BAAS,GAAE;;mEAC+B;AAI3C;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACG;AAGhB;IADC,IAAA,0BAAQ,GAAE;;2DACU"}
1
+ {"version":3,"file":"allocation-request.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,oDAAyD;AACzD,yDAG4B;AAC5B,yCAA2C;AAE3C,MAAa,qBAAqB;CAmBjC;AAnBD,sDAmBC;AAhBC;IAFC,IAAA,+BAAkB,EAAC,yCAAsB,CAAC;IAC1C,IAAA,2BAAS,GAAE;;mEAC+B;AAI3C;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACG;AAGhB;IADC,IAAA,0BAAQ,GAAE;;2DACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACiB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.138",
3
+ "version": "1.2.140",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -80,4 +80,8 @@ export class CloudSessionContext {
80
80
 
81
81
  @IsOptional()
82
82
  roomId?: string;
83
+
84
+ @IsOptional()
85
+ @IsUUID()
86
+ gameplayId?: string;
83
87
  }
@@ -1,9 +1,11 @@
1
1
  import { IsDefined, IsOptional, IsString } from "class-validator";
2
+
2
3
  import { ValidateNestedType } from "../../../decorators";
3
4
  import {
4
5
  CloudProviderRequest,
5
6
  getProviderRequestType,
6
7
  } from "./provider-request";
8
+ import { CloudProvider } from "./provider";
7
9
 
8
10
  export class AllocationRequestData {
9
11
  @ValidateNestedType(getProviderRequestType)
@@ -20,4 +22,8 @@ export class AllocationRequestData {
20
22
 
21
23
  @IsString()
22
24
  sessionToken: string;
25
+
26
+ @IsString()
27
+ @IsOptional()
28
+ cloudProvider?: CloudProvider;
23
29
  }