@ludeo/cloud-common 1.1.32 → 1.1.34

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.
@@ -3,6 +3,8 @@ export declare class CloudResourceContext {
3
3
  streamGroupId?: string;
4
4
  streamSessionId?: string;
5
5
  cloudProvider: CloudProvider;
6
+ resourceId?: string;
7
+ poolId?: string;
6
8
  gamePoolId?: string;
7
9
  gameResourceId?: string;
8
10
  machinePoolId?: string;
@@ -29,6 +29,16 @@ __decorate([
29
29
  (0, class_validator_1.IsEnum)(cloud_1.CloudProvider),
30
30
  __metadata("design:type", String)
31
31
  ], CloudResourceContext.prototype, "cloudProvider", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.IsOptional)(),
35
+ __metadata("design:type", String)
36
+ ], CloudResourceContext.prototype, "resourceId", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ (0, class_validator_1.IsOptional)(),
40
+ __metadata("design:type", String)
41
+ ], CloudResourceContext.prototype, "poolId", void 0);
32
42
  __decorate([
33
43
  (0, class_validator_1.IsUUID)(),
34
44
  (0, class_validator_1.IsOptional)(),
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v3/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CA2BhC;AA3BD,oDA2BC;AAxBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACY;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAI7B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;wDACO;AAIpB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4DACW;AAIxB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;2DACU;AAIvB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;+DACc"}
1
+ {"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v3/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CAqChC;AArCD,oDAqCC;AAlCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACY;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACO;AAKpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACG;AAIhB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;wDACO;AAIpB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4DACW;AAIxB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;2DACU;AAIvB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;+DACc"}
@@ -3,7 +3,6 @@ import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  export declare class SwapCloudUserRequestFailedPayload {
4
4
  connectionId: string;
5
5
  defaultUserSessionToken: string;
6
- actualUserSessionToken: string;
7
6
  errorMessage: string;
8
7
  sourceService: string;
9
8
  }
@@ -25,10 +25,6 @@ __decorate([
25
25
  (0, class_validator_1.IsString)(),
26
26
  __metadata("design:type", String)
27
27
  ], SwapCloudUserRequestFailedPayload.prototype, "defaultUserSessionToken", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsString)(),
30
- __metadata("design:type", String)
31
- ], SwapCloudUserRequestFailedPayload.prototype, "actualUserSessionToken", void 0);
32
28
  __decorate([
33
29
  (0, class_validator_1.IsString)(),
34
30
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"swap-cloud-user-request-failed.js","sourceRoot":"","sources":["../../../src/v3/events/swap-cloud-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,iCAAiC;CAe7C;AAfD,8EAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;uEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;kFACqB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;iFACoB;AAG/B;IADC,IAAA,0BAAQ,GAAE;;uEACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;wEACW;AAGxB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA4B;QAE5B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;2DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,iCAAiC;2DAAC"}
1
+ {"version":3,"file":"swap-cloud-user-request-failed.js","sourceRoot":"","sources":["../../../src/v3/events/swap-cloud-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,iCAAiC;CAY7C;AAZD,8EAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;uEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;kFACqB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;uEACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;wEACW;AAGxB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA4B;QAE5B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;2DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,iCAAiC;2DAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -13,6 +13,16 @@ export class CloudResourceContext {
13
13
  @IsEnum(CloudProvider)
14
14
  cloudProvider: CloudProvider;
15
15
 
16
+ // Backwards compat
17
+ @IsString()
18
+ @IsOptional()
19
+ resourceId?: string;
20
+
21
+ // Backwards compat
22
+ @IsString()
23
+ @IsOptional()
24
+ poolId?: string;
25
+
16
26
  @IsUUID()
17
27
  @IsOptional()
18
28
  gamePoolId?: string;
@@ -11,9 +11,6 @@ export class SwapCloudUserRequestFailedPayload {
11
11
  @IsString()
12
12
  defaultUserSessionToken: string;
13
13
 
14
- @IsString()
15
- actualUserSessionToken: string;
16
-
17
14
  @IsString()
18
15
  errorMessage: string;
19
16