@ludeo/cloud-common 1.1.113-beta-yahil → 1.1.113-beta1

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.
@@ -5,7 +5,7 @@ declare class CloudAuthReadyPayload {
5
5
  authToken: string;
6
6
  sessionToken: string;
7
7
  resourceId: string;
8
- gameResourceCreationPayload?: CreateGameResourceRequestPayload;
8
+ gameResourceCreationPayload: CreateGameResourceRequestPayload;
9
9
  }
10
10
  export declare class CloudMachineAuthReady extends LudeoEvent {
11
11
  static readonly EVENT_NAME = "authentication.cloud-machine-auth-ready";
@@ -30,7 +30,6 @@ __decorate([
30
30
  __metadata("design:type", String)
31
31
  ], CloudAuthReadyPayload.prototype, "resourceId", void 0);
32
32
  __decorate([
33
- (0, class_validator_1.IsOptional)(),
34
33
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
35
34
  __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
36
35
  ], CloudAuthReadyPayload.prototype, "gameResourceCreationPayload", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-machine-auth-ready.js","sourceRoot":"","sources":["../../../src/v3/events/cloud-machine-auth-ready.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAM,qBAAqB;CAc1B;AAZC;IADC,IAAA,wBAAM,GAAE;;wDACS;AAGlB;IADC,IAAA,0BAAQ,GAAE;;2DACU;AAIrB;IADC,IAAA,wBAAM,GAAE;;yDACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC7B,+DAAgC;0EAAC;AAGjE,MAAa,qBAAsB,SAAQ,kBAAU;IAGnD,YAAY,OAA8B,EAAE,OAA6B;QACvE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAExC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AARH,sDAeC;AAdiB,gCAAU,GAAG,yCAAyC,CAAC;AAUhE;IADN,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BAChC,qBAAqB;sDAAC;AAG/B;IADN,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BAC/B,+BAAoB;sDAAC"}
1
+ {"version":3,"file":"cloud-machine-auth-ready.js","sourceRoot":"","sources":["../../../src/v3/events/cloud-machine-auth-ready.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAM,qBAAqB;CAa1B;AAXC;IADC,IAAA,wBAAM,GAAE;;wDACS;AAGlB;IADC,IAAA,0BAAQ,GAAE;;2DACU;AAIrB;IADC,IAAA,wBAAM,GAAE;;yDACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC9B,+DAAgC;0EAAC;AAGhE,MAAa,qBAAsB,SAAQ,kBAAU;IAGnD,YAAY,OAA8B,EAAE,OAA6B;QACvE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAExC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AARH,sDAeC;AAdiB,gCAAU,GAAG,yCAAyC,CAAC;AAUhE;IADN,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BAChC,qBAAqB;sDAAC;AAG/B;IADN,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BAC/B,+BAAoB;sDAAC"}
@@ -3,7 +3,7 @@ import { CloudResourceContext } from "../contexts";
3
3
  import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
4
4
  export declare class PrepareCloudMachineAuthFailedPayload {
5
5
  errorMessage?: string;
6
- gameResourceCreationPayload?: CreateGameResourceRequestPayload;
6
+ gameResourceCreationPayload: CreateGameResourceRequestPayload;
7
7
  }
8
8
  export declare class PrepareCloudMachineAuthFailed extends LudeoEvent {
9
9
  static readonly EVENT_NAME = "cloud-pools.prepare-cloud-machine-auth-failed";
@@ -24,7 +24,6 @@ __decorate([
24
24
  __metadata("design:type", String)
25
25
  ], PrepareCloudMachineAuthFailedPayload.prototype, "errorMessage", void 0);
26
26
  __decorate([
27
- (0, class_validator_1.IsOptional)(),
28
27
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
29
28
  __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
30
29
  ], PrepareCloudMachineAuthFailedPayload.prototype, "gameResourceCreationPayload", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-cloud-machine-auth-failed.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,qDAAuD;AACvD,iFAAkF;AAElF,MAAa,oCAAoC;CAQhD;AARD,oFAQC;AALC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACS;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC7B,+DAAgC;yFAAC;AAGjE,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YACE,OAA6C,EAC7C,OAA6B;QAE7B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sEAiBC;AAhBiB,wCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
1
+ {"version":3,"file":"prepare-cloud-machine-auth-failed.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,qDAAuD;AACvD,iFAAkF;AAElF,MAAa,oCAAoC;CAOhD;AAPD,oFAOC;AAJC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACS;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC9B,+DAAgC;yFAAC;AAGhE,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YACE,OAA6C,EAC7C,OAA6B;QAE7B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sEAiBC;AAhBiB,wCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
@@ -6,7 +6,7 @@ export declare class PrepareCloudMachineAuthPayload {
6
6
  authTokenId: string;
7
7
  resourceId: string;
8
8
  gameId: string;
9
- gameResourceCreationPayload?: CreateGameResourceRequestPayload;
9
+ gameResourceCreationPayload: CreateGameResourceRequestPayload;
10
10
  }
11
11
  export declare class PrepareCloudMachineAuth extends LudeoEvent {
12
12
  static readonly EVENT_NAME = "cloud-pools.prepare-cloud-machine-auth";
@@ -36,7 +36,6 @@ __decorate([
36
36
  __metadata("design:type", String)
37
37
  ], PrepareCloudMachineAuthPayload.prototype, "gameId", void 0);
38
38
  __decorate([
39
- (0, class_validator_1.IsOptional)(),
40
39
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
41
40
  __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
42
41
  ], PrepareCloudMachineAuthPayload.prototype, "gameResourceCreationPayload", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAa,8BAA8B;CAiB1C;AAjBD,wEAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC7B,+DAAgC;mFAAC;AAGjE,MAAa,uBAAwB,SAAQ,kBAAU;IAGrD,YACE,OAAuC,EACvC,OAA6B;QAE7B,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0DAiBC;AAhBiB,kCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;wDAAC"}
1
+ {"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAa,8BAA8B;CAiB1C;AAjBD,wEAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;mEACW;AAIpB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACM;AAGf;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC9B,+DAAgC;mFAAC;AAGhE,MAAa,uBAAwB,SAAQ,kBAAU;IAGrD,YACE,OAAuC,EACvC,OAA6B;QAE7B,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0DAiBC;AAhBiB,kCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;wDAAC"}
@@ -4,7 +4,6 @@ export declare class BaseCloudResource {
4
4
  id: string;
5
5
  status: CloudResourceStatus;
6
6
  createdAt: number;
7
- poolId: string;
8
7
  updatedAt?: number;
9
8
  settings?: AWSResourceProviderSettings;
10
9
  }
@@ -29,10 +29,6 @@ __decorate([
29
29
  (0, class_validator_1.IsNumber)(),
30
30
  __metadata("design:type", Number)
31
31
  ], BaseCloudResource.prototype, "createdAt", void 0);
32
- __decorate([
33
- (0, class_validator_1.IsUUID)(),
34
- __metadata("design:type", String)
35
- ], BaseCloudResource.prototype, "poolId", void 0);
36
32
  __decorate([
37
33
  (0, class_validator_1.IsNumber)(),
38
34
  (0, class_validator_1.IsOptional)(),
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/resource/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,qCAA+C;AAC/C,uCAA0D;AAC1D,uDAA4D;AAE5D,MAAa,iBAAiB;CAmB7B;AAnBD,8CAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;6CACE;AAGX;IADC,IAAA,wBAAM,EAAC,4BAAmB,CAAC;;iDACA;AAG5B;IADC,IAAA,0BAAQ,GAAE;;oDACO;AAGlB;IADC,IAAA,wBAAM,GAAE;;iDACM;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACM;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BAC3C,mCAA2B;mDAAC"}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/resource/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,qCAA+C;AAC/C,uCAA0D;AAC1D,uDAA4D;AAE5D,MAAa,iBAAiB;CAgB7B;AAhBD,8CAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;6CACE;AAGX;IADC,IAAA,wBAAM,EAAC,4BAAmB,CAAC;;iDACA;AAG5B;IADC,IAAA,0BAAQ,GAAE;;oDACO;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACM;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BAC3C,mCAA2B;mDAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.113-beta-yahil",
3
+ "version": "1.1.113-beta1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,4 +1,4 @@
1
- import { IsOptional, IsString, IsUUID } from "class-validator";
1
+ import { IsString, IsUUID } from "class-validator";
2
2
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
3
3
  import { LudeoEvent } from "../../infra";
4
4
  import { CloudResourceContext } from "../contexts";
@@ -15,9 +15,8 @@ class CloudAuthReadyPayload {
15
15
  @IsUUID()
16
16
  resourceId: string;
17
17
 
18
- @IsOptional()
19
18
  @ValidateNestedType(() => CreateGameResourceRequestPayload)
20
- gameResourceCreationPayload?: CreateGameResourceRequestPayload;
19
+ gameResourceCreationPayload: CreateGameResourceRequestPayload;
21
20
  }
22
21
 
23
22
  export class CloudMachineAuthReady extends LudeoEvent {
@@ -9,9 +9,8 @@ export class PrepareCloudMachineAuthFailedPayload {
9
9
  @IsOptional()
10
10
  errorMessage?: string;
11
11
 
12
- @IsOptional()
13
12
  @ValidateNestedType(() => CreateGameResourceRequestPayload)
14
- gameResourceCreationPayload?: CreateGameResourceRequestPayload;
13
+ gameResourceCreationPayload: CreateGameResourceRequestPayload;
15
14
  }
16
15
 
17
16
  export class PrepareCloudMachineAuthFailed extends LudeoEvent {
@@ -11,6 +11,7 @@ export class PrepareCloudMachineAuthPayload {
11
11
  @IsUUID()
12
12
  authTokenId: string;
13
13
 
14
+ // Backwards compatibility - remove once ticket is done
14
15
  @IsUUID()
15
16
  resourceId: string;
16
17
 
@@ -18,9 +19,8 @@ export class PrepareCloudMachineAuthPayload {
18
19
  @IsUUID()
19
20
  gameId: string;
20
21
 
21
- @IsOptional()
22
22
  @ValidateNestedType(() => CreateGameResourceRequestPayload)
23
- gameResourceCreationPayload?: CreateGameResourceRequestPayload;
23
+ gameResourceCreationPayload: CreateGameResourceRequestPayload;
24
24
  }
25
25
 
26
26
  export class PrepareCloudMachineAuth extends LudeoEvent {
@@ -14,9 +14,6 @@ export class BaseCloudResource {
14
14
  @IsNumber()
15
15
  createdAt: number;
16
16
 
17
- @IsUUID()
18
- poolId: string;
19
-
20
17
  @IsNumber()
21
18
  @IsOptional()
22
19
  updatedAt?: number;