@ludeo/cloud-common 1.2.65 → 1.2.67-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.
Files changed (24) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/events/allocate-ludeo-request.d.ts +1 -1
  3. package/dist/v4/events/allocate-ludeo-request.js +2 -1
  4. package/dist/v4/events/allocate-ludeo-request.js.map +1 -1
  5. package/dist/v4/events/allocate-ludeo-resource-request.d.ts +1 -0
  6. package/dist/v4/events/allocate-ludeo-resource-request.js +5 -0
  7. package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -1
  8. package/dist/v4/events/game-resource-creation-failed-response.d.ts +1 -1
  9. package/dist/v4/events/game-resource-creation-failed-response.js.map +1 -1
  10. package/dist/v4/events/game-resource-ready-for-creation-failed.d.ts +1 -1
  11. package/dist/v4/events/game-resource-ready-for-creation-failed.js.map +1 -1
  12. package/dist/v4/events/ludeo-allocation-failed.d.ts +1 -0
  13. package/dist/v4/events/ludeo-allocation-failed.js +5 -0
  14. package/dist/v4/events/ludeo-allocation-failed.js.map +1 -1
  15. package/dist/v4/events/ludeo-resource-allocation-failed.d.ts +1 -0
  16. package/dist/v4/events/ludeo-resource-allocation-failed.js +5 -0
  17. package/dist/v4/events/ludeo-resource-allocation-failed.js.map +1 -1
  18. package/package.json +1 -1
  19. package/src/v4/events/allocate-ludeo-request.ts +3 -2
  20. package/src/v4/events/allocate-ludeo-resource-request.ts +5 -1
  21. package/src/v4/events/game-resource-creation-failed-response.ts +1 -1
  22. package/src/v4/events/game-resource-ready-for-creation-failed.ts +1 -1
  23. package/src/v4/events/ludeo-allocation-failed.ts +5 -1
  24. package/src/v4/events/ludeo-resource-allocation-failed.ts +5 -1
@@ -5,7 +5,7 @@ export declare class AllocateLudeoRequestPayload {
5
5
  ludeoPoolId: string;
6
6
  ludeoId: string;
7
7
  requestData: AllocationRequestData;
8
- attempt: number;
8
+ allocationAttempt?: number;
9
9
  }
10
10
  export declare class AllocateLudeoRequest extends LudeoEvent {
11
11
  static readonly EVENT_NAME = "cloud-session-allocator.allocate-ludeo-request";
@@ -32,8 +32,9 @@ __decorate([
32
32
  ], AllocateLudeoRequestPayload.prototype, "requestData", void 0);
33
33
  __decorate([
34
34
  (0, class_validator_1.IsNumber)(),
35
+ (0, class_validator_1.IsOptional)(),
35
36
  __metadata("design:type", Number)
36
- ], AllocateLudeoRequestPayload.prototype, "attempt", void 0);
37
+ ], AllocateLudeoRequestPayload.prototype, "allocationAttempt", void 0);
37
38
  class AllocateLudeoRequest extends ludeo_event_1.LudeoEvent {
38
39
  constructor(payload, context) {
39
40
  super(AllocateLudeoRequest.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"allocate-ludeo-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAAiD;AAEjD,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;gEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;4DACO;AAGhB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;gEAAC;AAGnC;IADC,IAAA,0BAAQ,GAAE;;4DACK;AAGlB,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAA4B;QAE5B,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oDAiBC;AAhBiB,+BAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
1
+ {"version":3,"file":"allocate-ludeo-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAAiD;AAEjD,MAAa,2BAA2B;CAavC;AAbD,kEAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;gEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;4DACO;AAGhB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;gEAAC;AAInC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACc;AAG7B,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAA4B;QAE5B,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oDAiBC;AAhBiB,+BAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
@@ -11,6 +11,7 @@ export declare class AllocateLudeoResourceRequestPayload {
11
11
  ludeoResourceSettings: LudeoResourceSettings;
12
12
  requestedLudeoId: string;
13
13
  preloadedLudeoId?: string;
14
+ allocationAttempt?: number;
14
15
  }
15
16
  export declare class AllocateLudeoResourceRequest extends LudeoEvent {
16
17
  static readonly EVENT_NAME = "cloud-pools.allocate-ludeo-resource-request";
@@ -56,6 +56,11 @@ __decorate([
56
56
  (0, is_uuid_or_empty_decorator_1.IsUUIDOrEmpty)(),
57
57
  __metadata("design:type", String)
58
58
  ], AllocateLudeoResourceRequestPayload.prototype, "preloadedLudeoId", void 0);
59
+ __decorate([
60
+ (0, class_validator_1.IsOptional)(),
61
+ (0, class_validator_1.IsNumber)(),
62
+ __metadata("design:type", Number)
63
+ ], AllocateLudeoResourceRequestPayload.prototype, "allocationAttempt", void 0);
59
64
  class AllocateLudeoResourceRequest extends ludeo_event_1.LudeoEvent {
60
65
  constructor(payload, context) {
61
66
  super(AllocateLudeoResourceRequest.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6D;AAC7D,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAOkB;AAClB,4FAA4E;AAE5E,MAAa,mCAAmC;CA4B/C;AA5BD,kFA4BC;AA1BC;IADC,IAAA,wBAAM,GAAE;;4EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;wEAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;iFAAC;AAG3C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACzB,6BAAqB;kFAAC;AAG7C;IADC,IAAA,wBAAM,GAAE;;6EACgB;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;6EACU;AAG5B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA4B;QAE5B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;6DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
1
+ {"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAOkB;AAClB,4FAA4E;AAE5E,MAAa,mCAAmC;CAgC/C;AAhCD,kFAgCC;AA9BC;IADC,IAAA,wBAAM,GAAE;;4EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;wEAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;iFAAC;AAG3C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACzB,6BAAqB;kFAAC;AAG7C;IADC,IAAA,wBAAM,GAAE;;6EACgB;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;6EACU;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8EACgB;AAG7B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA4B;QAE5B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;6DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
@@ -5,7 +5,7 @@ export declare class GameResourceCreationFailedResponsePayload {
5
5
  gameResourceId: string;
6
6
  gamePoolId: string;
7
7
  errorMessage: string;
8
- gameResourceSettings: GameResourceSettings;
8
+ gameResourceSettings?: GameResourceSettings;
9
9
  }
10
10
  export declare class GameResourceCreationFailedResponse extends LudeoEvent {
11
11
  static readonly EVENT_NAME = "cloud-resources.game-resource-creation-failed-response";
@@ -1 +1 @@
1
- {"version":3,"file":"game-resource-creation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-creation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAAgD;AAEhD,MAAa,yCAAyC;CAarD;AAbD,8FAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;6EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;+EACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;uFAAC;AAG7C,MAAa,kCAAmC,SAAQ,wBAAU;IAIhE,YACE,OAAkD,EAClD,OAA6B;QAE7B,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gFAkBC;AAjBiB,6CAAU,GACxB,wDAAwD,CAAC;AAY3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC;8BAC3D,yCAAyC;mEAAC"}
1
+ {"version":3,"file":"game-resource-creation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-creation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAAgD;AAEhD,MAAa,yCAAyC;CAarD;AAbD,8FAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;6EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;+EACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACxB,4BAAoB;uFAAC;AAG9C,MAAa,kCAAmC,SAAQ,wBAAU;IAIhE,YACE,OAAkD,EAClD,OAA6B;QAE7B,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gFAkBC;AAjBiB,6CAAU,GACxB,wDAAwD,CAAC;AAY3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC;8BAC3D,yCAAyC;mEAAC"}
@@ -5,7 +5,7 @@ export declare class GameResourceReadyForCreationFailedPayload {
5
5
  gamePoolId: string;
6
6
  gameResourceId: string;
7
7
  errorMessage: string;
8
- gameResourceSettings: GameResourceSettings;
8
+ gameResourceSettings?: GameResourceSettings;
9
9
  }
10
10
  export declare class GameResourceReadyForCreationFailed extends LudeoEvent {
11
11
  static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation-failed";
@@ -1 +1 @@
1
- {"version":3,"file":"game-resource-ready-for-creation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,qDAA+D;AAC/D,iDAAsD;AACtD,0CAAmD;AACnD,oCAAgD;AAEhD,MAAa,yCAAyC;CAarD;AAbD,8FAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;6EACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;+EACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;uFAAC;AAG7C,MAAa,kCAAmC,SAAQ,kBAAU;IAIhE,YACE,OAAkD,EAClD,OAA6B;QAE7B,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gFAkBC;AAjBiB,6CAAU,GACxB,yDAAyD,CAAC;AAY5D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mEAAC;AAG9B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC;8BAC3D,yCAAyC;mEAAC"}
1
+ {"version":3,"file":"game-resource-ready-for-creation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,qDAA+D;AAC/D,iDAAsD;AACtD,0CAAmD;AACnD,oCAAgD;AAEhD,MAAa,yCAAyC;CAarD;AAbD,8FAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;6EACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;iFACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;+EACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACxB,4BAAoB;uFAAC;AAG9C,MAAa,kCAAmC,SAAQ,kBAAU;IAIhE,YACE,OAAkD,EAClD,OAA6B;QAE7B,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gFAkBC;AAjBiB,6CAAU,GACxB,yDAAyD,CAAC;AAY5D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mEAAC;AAG9B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC;8BAC3D,yCAAyC;mEAAC"}
@@ -2,6 +2,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
2
2
  import { CloudSessionContext } from "../contexts";
3
3
  export declare class LudeoAllocationFailedPayload {
4
4
  errorMessage: string;
5
+ allocationAttempt?: number;
5
6
  }
6
7
  export declare class LudeoAllocationFailed extends LudeoEvent {
7
8
  static readonly EVENT_NAME = "cloud-pools.ludeo-allocation-failed";
@@ -21,6 +21,11 @@ __decorate([
21
21
  (0, class_validator_1.IsString)(),
22
22
  __metadata("design:type", String)
23
23
  ], LudeoAllocationFailedPayload.prototype, "errorMessage", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsNumber)(),
26
+ (0, class_validator_1.IsOptional)(),
27
+ __metadata("design:type", Number)
28
+ ], LudeoAllocationFailedPayload.prototype, "allocationAttempt", void 0);
24
29
  class LudeoAllocationFailed extends ludeo_event_1.LudeoEvent {
25
30
  constructor(payload, context) {
26
31
  super(LudeoAllocationFailed.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"ludeo-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,qDAA2C;AAE3C,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;kEACU;AAGvB,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA4B;QAE5B,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sDAiBC;AAhBiB,gCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
1
+ {"version":3,"file":"ludeo-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,qDAAiE;AAEjE,MAAa,4BAA4B;CAOxC;AAPD,oEAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;kEACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACc;AAG7B,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA4B;QAE5B,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sDAiBC;AAhBiB,gCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
@@ -4,6 +4,7 @@ export declare class LudeoResourceAllocationFailedPayload {
4
4
  ludeoResourceId: string;
5
5
  ludeoPoolId: string;
6
6
  errorMessage: string;
7
+ allocationAttempt?: number;
7
8
  }
8
9
  export declare class LudeoResourceAllocationFailedResponse extends LudeoEvent {
9
10
  static readonly EVENT_NAME = "cloud-resources.ludeo-resource-allocation-failed";
@@ -29,6 +29,11 @@ __decorate([
29
29
  (0, class_validator_1.IsString)(),
30
30
  __metadata("design:type", String)
31
31
  ], LudeoResourceAllocationFailedPayload.prototype, "errorMessage", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsNumber)(),
35
+ __metadata("design:type", Number)
36
+ ], LudeoResourceAllocationFailedPayload.prototype, "allocationAttempt", void 0);
32
37
  class LudeoResourceAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
33
38
  constructor(payload, context) {
34
39
  super(LudeoResourceAllocationFailedResponse.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAGlD,MAAa,oCAAoC;CAShD;AATD,oFASC;AAPC;IADC,IAAA,wBAAM,GAAE;;6EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;yEACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0EACU;AAGvB,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;sEAAC"}
1
+ {"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAGlD,MAAa,oCAAoC;CAahD;AAbD,oFAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;6EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;yEACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0EACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+EACgB;AAG7B,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;sEAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.65",
3
+ "version": "1.2.67-beta-yahil-1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,4 +1,4 @@
1
- import { IsNumber, IsUUID } from "class-validator";
1
+ import { IsNumber, IsOptional, IsUUID } from "class-validator";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
4
4
  import { CloudSessionContext } from "../contexts";
@@ -15,7 +15,8 @@ export class AllocateLudeoRequestPayload {
15
15
  requestData: AllocationRequestData;
16
16
 
17
17
  @IsNumber()
18
- attempt: number;
18
+ @IsOptional()
19
+ allocationAttempt?: number;
19
20
  }
20
21
 
21
22
  export class AllocateLudeoRequest extends LudeoEvent {
@@ -1,4 +1,4 @@
1
- import { IsEnum, IsOptional, IsUUID } from "class-validator";
1
+ import { IsEnum, IsNumber, IsOptional, IsUUID } from "class-validator";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
4
4
  import { CloudSessionContext } from "../contexts";
@@ -40,6 +40,10 @@ export class AllocateLudeoResourceRequestPayload {
40
40
  @IsOptional()
41
41
  @IsUUIDOrEmpty()
42
42
  preloadedLudeoId?: string;
43
+
44
+ @IsOptional()
45
+ @IsNumber()
46
+ allocationAttempt?: number;
43
47
  }
44
48
 
45
49
  export class AllocateLudeoResourceRequest extends LudeoEvent {
@@ -17,7 +17,7 @@ export class GameResourceCreationFailedResponsePayload {
17
17
 
18
18
  @IsOptional()
19
19
  @ValidateNestedType(() => GameResourceSettings)
20
- gameResourceSettings: GameResourceSettings;
20
+ gameResourceSettings?: GameResourceSettings;
21
21
  }
22
22
 
23
23
  export class GameResourceCreationFailedResponse extends LudeoEvent {
@@ -16,7 +16,7 @@ export class GameResourceReadyForCreationFailedPayload {
16
16
 
17
17
  @IsOptional()
18
18
  @ValidateNestedType(() => GameResourceSettings)
19
- gameResourceSettings: GameResourceSettings;
19
+ gameResourceSettings?: GameResourceSettings;
20
20
  }
21
21
 
22
22
  export class GameResourceReadyForCreationFailed extends LudeoEvent {
@@ -1,11 +1,15 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
2
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
3
3
  import { CloudSessionContext } from "../contexts";
4
- import { IsString } from "class-validator";
4
+ import { IsNumber, IsOptional, IsString } from "class-validator";
5
5
 
6
6
  export class LudeoAllocationFailedPayload {
7
7
  @IsString()
8
8
  errorMessage: string;
9
+
10
+ @IsNumber()
11
+ @IsOptional()
12
+ allocationAttempt?: number;
9
13
  }
10
14
 
11
15
  export class LudeoAllocationFailed extends LudeoEvent {
@@ -1,4 +1,4 @@
1
- import { IsString, IsUUID } from "class-validator";
1
+ import { IsString, IsUUID, IsOptional, IsNumber } from "class-validator";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
4
4
  import { CloudSessionContext } from "../contexts";
@@ -13,6 +13,10 @@ export class LudeoResourceAllocationFailedPayload {
13
13
 
14
14
  @IsString()
15
15
  errorMessage: string;
16
+
17
+ @IsOptional()
18
+ @IsNumber()
19
+ allocationAttempt?: number;
16
20
  }
17
21
 
18
22
  export class LudeoResourceAllocationFailedResponse extends LudeoEvent {