@ludeo/cloud-common 1.2.84 → 1.2.86-ygarbage1

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 (151) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/events/allocate-game-resource-request.d.ts +3 -3
  3. package/dist/v4/events/allocate-game-resource-request.js +2 -2
  4. package/dist/v4/events/allocate-game-resource-request.js.map +1 -1
  5. package/dist/v4/events/allocate-ludeo-resource-request.d.ts +4 -4
  6. package/dist/v4/events/allocate-ludeo-resource-request.js +1 -1
  7. package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -1
  8. package/dist/v4/events/aws-reactivate-stream-session-task.d.ts +2 -2
  9. package/dist/v4/events/aws-reactivate-stream-session-task.js +2 -2
  10. package/dist/v4/events/aws-reactivate-stream-session-task.js.map +1 -1
  11. package/dist/v4/events/aws-stream-session-active.d.ts +2 -2
  12. package/dist/v4/events/aws-stream-session-active.js +2 -2
  13. package/dist/v4/events/aws-stream-session-active.js.map +1 -1
  14. package/dist/v4/events/aws-stream-session-reactivation-started.d.ts +2 -2
  15. package/dist/v4/events/aws-stream-session-reactivation-started.js +2 -2
  16. package/dist/v4/events/aws-stream-session-reactivation-started.js.map +1 -1
  17. package/dist/v4/events/build-created.d.ts +2 -1
  18. package/dist/v4/events/build-created.js +4 -4
  19. package/dist/v4/events/build-created.js.map +1 -1
  20. package/dist/v4/events/build-creation-failed.d.ts +12 -0
  21. package/dist/v4/events/build-creation-failed.js +46 -0
  22. package/dist/v4/events/build-creation-failed.js.map +1 -0
  23. package/dist/v4/events/build-uploaded.d.ts +12 -0
  24. package/dist/v4/events/build-uploaded.js +45 -0
  25. package/dist/v4/events/build-uploaded.js.map +1 -0
  26. package/dist/v4/events/create-build.d.ts +15 -0
  27. package/dist/v4/events/create-build.js +51 -0
  28. package/dist/v4/events/create-build.js.map +1 -0
  29. package/dist/v4/events/create-game-resource-request.d.ts +2 -2
  30. package/dist/v4/events/create-game-resource-request.js +1 -1
  31. package/dist/v4/events/create-game-resource-request.js.map +1 -1
  32. package/dist/v4/events/create-machine-resource-batch-request.d.ts +2 -2
  33. package/dist/v4/events/create-machine-resource-batch-request.js +1 -1
  34. package/dist/v4/events/create-machine-resource-batch-request.js.map +1 -1
  35. package/dist/v4/events/create-machine-resource-request.d.ts +2 -2
  36. package/dist/v4/events/create-machine-resource-request.js +1 -1
  37. package/dist/v4/events/create-machine-resource-request.js.map +1 -1
  38. package/dist/v4/events/game-allocated-response.d.ts +4 -4
  39. package/dist/v4/events/game-allocated-response.js +1 -1
  40. package/dist/v4/events/game-allocated-response.js.map +1 -1
  41. package/dist/v4/events/game-resource-ready-for-creation.d.ts +4 -4
  42. package/dist/v4/events/game-resource-ready-for-creation.js +1 -1
  43. package/dist/v4/events/game-resource-ready-for-creation.js.map +1 -1
  44. package/dist/v4/events/game-resource-status-changed.d.ts +2 -2
  45. package/dist/v4/events/game-resource-status-changed.js +2 -2
  46. package/dist/v4/events/game-resource-status-changed.js.map +1 -1
  47. package/dist/v4/events/index.d.ts +4 -0
  48. package/dist/v4/events/index.js +4 -0
  49. package/dist/v4/events/index.js.map +1 -1
  50. package/dist/v4/events/load-ludeo-resource.d.ts +4 -4
  51. package/dist/v4/events/load-ludeo-resource.js +1 -1
  52. package/dist/v4/events/load-ludeo-resource.js.map +1 -1
  53. package/dist/v4/events/machine-allocated-response.d.ts +2 -2
  54. package/dist/v4/events/machine-allocated-response.js +1 -1
  55. package/dist/v4/events/machine-allocated-response.js.map +1 -1
  56. package/dist/v4/events/machine-pool-resizing-task.d.ts +2 -2
  57. package/dist/v4/events/machine-pool-resizing-task.js +1 -1
  58. package/dist/v4/events/machine-pool-resizing-task.js.map +1 -1
  59. package/dist/v4/events/machine-resource-batch-creation-failed-response.d.ts +2 -2
  60. package/dist/v4/events/machine-resource-batch-creation-failed-response.js +1 -1
  61. package/dist/v4/events/machine-resource-batch-creation-failed-response.js.map +1 -1
  62. package/dist/v4/events/machine-resource-batch-termination-failed-response.d.ts +2 -2
  63. package/dist/v4/events/machine-resource-batch-termination-failed-response.js +1 -1
  64. package/dist/v4/events/machine-resource-batch-termination-failed-response.js.map +1 -1
  65. package/dist/v4/events/machine-resource-created-response.d.ts +3 -1
  66. package/dist/v4/events/machine-resource-created-response.js +4 -0
  67. package/dist/v4/events/machine-resource-created-response.js.map +1 -1
  68. package/dist/v4/events/machine-resource-termination-failed-response.d.ts +16 -0
  69. package/dist/v4/events/machine-resource-termination-failed-response.js +58 -0
  70. package/dist/v4/events/machine-resource-termination-failed-response.js.map +1 -0
  71. package/dist/v4/events/monitor-game-resource-task.js +1 -1
  72. package/dist/v4/events/monitor-game-resource-task.js.map +1 -1
  73. package/dist/v4/events/pool-status.js +1 -1
  74. package/dist/v4/events/pool-status.js.map +1 -1
  75. package/dist/v4/events/terminate-game-resource-request.d.ts +3 -3
  76. package/dist/v4/events/terminate-game-resource-request.js +2 -2
  77. package/dist/v4/events/terminate-game-resource-request.js.map +1 -1
  78. package/dist/v4/events/terminate-machine-resource-batch-request.d.ts +2 -2
  79. package/dist/v4/events/terminate-machine-resource-batch-request.js +1 -1
  80. package/dist/v4/events/terminate-machine-resource-batch-request.js.map +1 -1
  81. package/dist/v4/events/terminate-machine-resource-request.d.ts +4 -2
  82. package/dist/v4/events/terminate-machine-resource-request.js +5 -1
  83. package/dist/v4/events/terminate-machine-resource-request.js.map +1 -1
  84. package/dist/v4/events/update-ludeo-resource-status-request.d.ts +4 -4
  85. package/dist/v4/events/update-ludeo-resource-status-request.js +1 -1
  86. package/dist/v4/events/update-ludeo-resource-status-request.js.map +1 -1
  87. package/dist/v4/types/build.d.ts +3 -3
  88. package/dist/v4/types/build.js +30 -0
  89. package/dist/v4/types/build.js.map +1 -1
  90. package/dist/v4/types/cloud/index.d.ts +1 -0
  91. package/dist/v4/types/cloud/index.js +1 -0
  92. package/dist/v4/types/cloud/index.js.map +1 -1
  93. package/dist/v4/types/cloud/machine-provider-settings.d.ts +2 -0
  94. package/dist/v4/types/cloud/machine-provider-settings.js +3 -0
  95. package/dist/v4/types/cloud/machine-provider-settings.js.map +1 -0
  96. package/dist/v4/types/cloud/mock/index.d.ts +1 -0
  97. package/dist/v4/types/cloud/mock/index.js +1 -0
  98. package/dist/v4/types/cloud/mock/index.js.map +1 -1
  99. package/dist/v4/types/cloud/mock/machine-provider-settings.d.ts +3 -0
  100. package/dist/v4/types/cloud/mock/machine-provider-settings.js +21 -0
  101. package/dist/v4/types/cloud/mock/machine-provider-settings.js.map +1 -0
  102. package/dist/v4/types/cloud/provider-settings.d.ts +2 -0
  103. package/dist/v4/types/cloud/provider-settings.js +11 -0
  104. package/dist/v4/types/cloud/provider-settings.js.map +1 -1
  105. package/dist/v4/types/cloud/resource-provider-settings.d.ts +2 -0
  106. package/dist/v4/types/cloud/resource-provider-settings.js +11 -0
  107. package/dist/v4/types/cloud/resource-provider-settings.js.map +1 -1
  108. package/dist/v4/types/pools/configuration/base.js +1 -1
  109. package/dist/v4/types/pools/configuration/base.js.map +1 -1
  110. package/dist/v4/types/pools/resource/game.d.ts +3 -3
  111. package/dist/v4/types/pools/resource/game.js +2 -2
  112. package/dist/v4/types/pools/resource/game.js.map +1 -1
  113. package/package.json +1 -1
  114. package/src/v4/events/allocate-game-resource-request.ts +10 -7
  115. package/src/v4/events/allocate-ludeo-resource-request.ts +9 -5
  116. package/src/v4/events/aws-reactivate-stream-session-task.ts +6 -3
  117. package/src/v4/events/aws-stream-session-active.ts +7 -4
  118. package/src/v4/events/aws-stream-session-reactivation-started.ts +6 -3
  119. package/src/v4/events/build-created.ts +3 -3
  120. package/src/v4/events/build-creation-failed.ts +29 -0
  121. package/src/v4/events/build-uploaded.ts +28 -0
  122. package/src/v4/events/create-build.ts +33 -0
  123. package/src/v4/events/create-game-resource-request.ts +6 -4
  124. package/src/v4/events/create-machine-resource-batch-request.ts +6 -4
  125. package/src/v4/events/create-machine-resource-request.ts +6 -4
  126. package/src/v4/events/game-allocated-response.ts +9 -5
  127. package/src/v4/events/game-resource-ready-for-creation.ts +14 -6
  128. package/src/v4/events/game-resource-status-changed.ts +8 -4
  129. package/src/v4/events/index.ts +4 -0
  130. package/src/v4/events/load-ludeo-resource.ts +9 -5
  131. package/src/v4/events/machine-allocated-response.ts +6 -4
  132. package/src/v4/events/machine-pool-resizing-task.ts +6 -4
  133. package/src/v4/events/machine-resource-batch-creation-failed-response.ts +6 -4
  134. package/src/v4/events/machine-resource-batch-termination-failed-response.ts +6 -4
  135. package/src/v4/events/machine-resource-created-response.ts +8 -2
  136. package/src/v4/events/machine-resource-termination-failed-response.ts +47 -0
  137. package/src/v4/events/monitor-game-resource-task.ts +2 -2
  138. package/src/v4/events/pool-status.ts +2 -2
  139. package/src/v4/events/terminate-game-resource-request.ts +10 -6
  140. package/src/v4/events/terminate-machine-resource-batch-request.ts +6 -3
  141. package/src/v4/events/terminate-machine-resource-request.ts +12 -5
  142. package/src/v4/events/update-ludeo-resource-status-request.ts +9 -5
  143. package/src/v4/types/build.ts +15 -3
  144. package/src/v4/types/cloud/index.ts +1 -0
  145. package/src/v4/types/cloud/machine-provider-settings.ts +3 -0
  146. package/src/v4/types/cloud/mock/index.ts +1 -0
  147. package/src/v4/types/cloud/mock/machine-provider-settings.ts +6 -0
  148. package/src/v4/types/cloud/provider-settings.ts +13 -0
  149. package/src/v4/types/cloud/resource-provider-settings.ts +13 -0
  150. package/src/v4/types/pools/configuration/base.ts +2 -2
  151. package/src/v4/types/pools/resource/game.ts +7 -5
@@ -1,13 +1,13 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
2
  import { CloudSessionContext } from "../contexts";
3
3
  import { CloudProviderSettings, CloudProvider, AllocationRequestData, CloudResourceProviderSettings } from "../types";
4
- export declare class AllocateGameResourceRequestPayload {
4
+ export declare class AllocateGameResourceRequestPayload<T extends CloudProviderSettings = CloudProviderSettings, K extends CloudResourceProviderSettings = CloudResourceProviderSettings> {
5
5
  gameResourceId: string;
6
6
  gamePoolId: string;
7
- providerSettings: CloudProviderSettings;
7
+ providerSettings: T;
8
8
  cloudProvider: CloudProvider;
9
9
  requestData: AllocationRequestData;
10
- resourceProviderSettings: CloudResourceProviderSettings;
10
+ resourceProviderSettings: K;
11
11
  }
12
12
  export declare class AllocateGameResourceRequest extends LudeoEvent {
13
13
  static readonly EVENT_NAME = "cloud-pools.allocate-game-resource-request";
@@ -27,7 +27,7 @@ __decorate([
27
27
  __metadata("design:type", String)
28
28
  ], AllocateGameResourceRequestPayload.prototype, "gamePoolId", void 0);
29
29
  __decorate([
30
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
30
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(types_1.getProviderSettingsType),
31
31
  __metadata("design:type", Object)
32
32
  ], AllocateGameResourceRequestPayload.prototype, "providerSettings", void 0);
33
33
  __decorate([
@@ -39,7 +39,7 @@ __decorate([
39
39
  __metadata("design:type", types_1.AllocationRequestData)
40
40
  ], AllocateGameResourceRequestPayload.prototype, "requestData", void 0);
41
41
  __decorate([
42
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(types_1.getResourceProviderSettingsType),
43
43
  __metadata("design:type", Object)
44
44
  ], AllocateGameResourceRequestPayload.prototype, "resourceProviderSettings", void 0);
45
45
  class AllocateGameResourceRequest extends ludeo_event_1.LudeoEvent {
@@ -1 +1 @@
1
- {"version":3,"file":"allocate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,yDAAqD;AACrD,0CAAkD;AAClD,oGAAqF;AACrF,oCAOkB;AAElB,MAAa,kCAAkC;CAkB9C;AAlBD,gFAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;0EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;sEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;4EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yEACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;uEAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;oFACE;AAG1D,MAAa,2BAA4B,SAAQ,wBAAU;IAGzD,YACE,OAA2C,EAC3C,OAA4B;QAE5B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,4CAA4C,CAAC;AAY1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;4DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;8BACpD,kCAAkC;4DAAC"}
1
+ {"version":3,"file":"allocate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,yDAAqD;AACrD,0CAAkD;AAClD,oGAAqF;AACrF,oCAOkB;AAElB,MAAa,kCAAkC;CAqB9C;AArBD,gFAqBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;0EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;sEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;4EACxB;AAGpB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yEACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;uEAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,uCAA+B,CAAC;;oFACxB;AAG9B,MAAa,2BAA4B,SAAQ,wBAAU;IAGzD,YACE,OAA2C,EAC3C,OAA4B;QAE5B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,4CAA4C,CAAC;AAY1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;4DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;8BACpD,kCAAkC;4DAAC"}
@@ -1,13 +1,13 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
2
  import { CloudSessionContext } from "../contexts";
3
- import { AllocationRequestData, CloudProvider, CloudProviderSettings, GameResourceSettings, LudeoResourceSettings } from "../types";
4
- export declare class AllocateLudeoResourceRequestPayload {
3
+ import { AllocationRequestData, CloudProvider, CloudProviderSettings, CloudResourceProviderSettings, GameResourceSettings, LudeoResourceSettings } from "../types";
4
+ export declare class AllocateLudeoResourceRequestPayload<T extends CloudProviderSettings = CloudProviderSettings, K extends CloudResourceProviderSettings = CloudResourceProviderSettings> {
5
5
  ludeoResourceId: string;
6
6
  ludeoPoolId: string;
7
- providerSettings: CloudProviderSettings;
7
+ providerSettings: T;
8
8
  cloudProvider: CloudProvider;
9
9
  requestData: AllocationRequestData;
10
- gameResourceSettings: GameResourceSettings;
10
+ gameResourceSettings: GameResourceSettings<K>;
11
11
  ludeoResourceSettings: LudeoResourceSettings;
12
12
  requestedLudeoId: string;
13
13
  preloadedLudeoId?: string;
@@ -28,7 +28,7 @@ __decorate([
28
28
  __metadata("design:type", String)
29
29
  ], AllocateLudeoResourceRequestPayload.prototype, "ludeoPoolId", void 0);
30
30
  __decorate([
31
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
31
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(types_1.getProviderSettingsType),
32
32
  __metadata("design:type", Object)
33
33
  ], AllocateLudeoResourceRequestPayload.prototype, "providerSettings", void 0);
34
34
  __decorate([
@@ -1 +1 @@
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"}
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,oCAQkB;AAClB,4FAA4E;AAE5E,MAAa,mCAAmC;CAmC/C;AAnCD,kFAmCC;AA9BC;IADC,IAAA,wBAAM,GAAE;;4EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;6EACxB;AAGpB;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;iFAAI;AAG9C;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"}
@@ -1,9 +1,9 @@
1
1
  import { LudeoEvent } from "../../infra";
2
- import { AWSResourceProviderSettings } from "../types";
2
+ import { CloudResourceProviderSettings } from "../types";
3
3
  export declare class AwsReactivateStreamSessionTaskPayload {
4
4
  gameResourceId: string;
5
5
  gamePoolId: string;
6
- providerSettings: AWSResourceProviderSettings;
6
+ providerSettings: CloudResourceProviderSettings;
7
7
  }
8
8
  export declare class AwsReactivateStreamSessionTask extends LudeoEvent {
9
9
  static readonly EVENT_NAME = "cloud-resources.aws-reactivate-stream-session-task";
@@ -26,8 +26,8 @@ __decorate([
26
26
  __metadata("design:type", String)
27
27
  ], AwsReactivateStreamSessionTaskPayload.prototype, "gamePoolId", void 0);
28
28
  __decorate([
29
- (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
30
- __metadata("design:type", types_1.AWSResourceProviderSettings)
29
+ (0, decorators_1.ValidateNestedType)(types_1.getResourceProviderSettingsType),
30
+ __metadata("design:type", Object)
31
31
  ], AwsReactivateStreamSessionTaskPayload.prototype, "providerSettings", void 0);
32
32
  class AwsReactivateStreamSessionTask extends infra_1.LudeoEvent {
33
33
  constructor(payload) {
@@ -1 +1 @@
1
- {"version":3,"file":"aws-reactivate-stream-session-task.js","sourceRoot":"","sources":["../../../src/v4/events/aws-reactivate-stream-session-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,uCAAyC;AACzC,iDAAsD;AACtD,oCAAuD;AAEvD,MAAa,qCAAqC;CASjD;AATD,sFASC;AAPC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;+EAAC;AAGhD,MAAa,8BAA+B,SAAQ,kBAAU;IAI5D,YAAY,OAA8C;QACxD,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,wEAaC;AAZiB,yCAAU,GACxB,oDAAoD,CAAC;AAUvD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
1
+ {"version":3,"file":"aws-reactivate-stream-session-task.js","sourceRoot":"","sources":["../../../src/v4/events/aws-reactivate-stream-session-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,uCAAyC;AACzC,iDAAsD;AACtD,oCAGkB;AAElB,MAAa,qCAAqC;CASjD;AATD,sFASC;AAPC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,uCAA+B,CAAC;;+EACJ;AAGlD,MAAa,8BAA+B,SAAQ,kBAAU;IAI5D,YAAY,OAA8C;QACxD,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,wEAaC;AAZiB,yCAAU,GACxB,oDAAoD,CAAC;AAUvD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
@@ -1,10 +1,10 @@
1
1
  import { LudeoEvent } from "../../infra";
2
2
  import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
3
3
  import { CloudResourceContext } from "../contexts";
4
- import { AWSResourceProviderSettings } from "../types";
4
+ import { CloudResourceProviderSettings } from "../types";
5
5
  export declare class AwsStreamSessionActivePayload {
6
6
  creationPayload: CreateGameResourceRequestPayload;
7
- providerSettings: AWSResourceProviderSettings;
7
+ providerSettings: CloudResourceProviderSettings;
8
8
  streamSessionId: string;
9
9
  }
10
10
  export declare class AwsStreamSessionActive extends LudeoEvent {
@@ -24,8 +24,8 @@ __decorate([
24
24
  __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
25
25
  ], AwsStreamSessionActivePayload.prototype, "creationPayload", void 0);
26
26
  __decorate([
27
- (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
28
- __metadata("design:type", types_1.AWSResourceProviderSettings)
27
+ (0, decorators_1.ValidateNestedType)(types_1.getResourceProviderSettingsType),
28
+ __metadata("design:type", Object)
29
29
  ], AwsStreamSessionActivePayload.prototype, "providerSettings", void 0);
30
30
  __decorate([
31
31
  (0, class_validator_1.IsString)(),
@@ -1 +1 @@
1
- {"version":3,"file":"aws-stream-session-active.js","sourceRoot":"","sources":["../../../src/v4/events/aws-stream-session-active.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,iFAAkF;AAClF,qDAA2C;AAC3C,0CAAmD;AACnD,oCAAuD;AAEvD,MAAa,6BAA6B;CASzC;AATD,sEASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;sEAAC;AAGlD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;uEAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;sEACa;AAG1B,MAAa,sBAAuB,SAAQ,kBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,2CAA2C,CAAC;AAYzE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
1
+ {"version":3,"file":"aws-stream-session-active.js","sourceRoot":"","sources":["../../../src/v4/events/aws-stream-session-active.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,iFAAkF;AAClF,qDAA2C;AAC3C,0CAAmD;AACnD,oCAGkB;AAElB,MAAa,6BAA6B;CASzC;AATD,sEASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;sEAAC;AAGlD;IADC,IAAA,+BAAkB,EAAC,uCAA+B,CAAC;;uEACJ;AAGhD;IADC,IAAA,0BAAQ,GAAE;;sEACa;AAG1B,MAAa,sBAAuB,SAAQ,kBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,2CAA2C,CAAC;AAYzE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
@@ -1,9 +1,9 @@
1
1
  import { LudeoEvent } from "../../infra";
2
- import { AWSResourceProviderSettings } from "../types";
2
+ import { CloudResourceProviderSettings } from "../types";
3
3
  export declare class AwsStreamSessionReactivationStartedPayload {
4
4
  gameResourceId: string;
5
5
  gamePoolId: string;
6
- providerSettings: AWSResourceProviderSettings;
6
+ providerSettings: CloudResourceProviderSettings;
7
7
  }
8
8
  export declare class AwsStreamSessionReactivationStarted extends LudeoEvent {
9
9
  static readonly EVENT_NAME = "cloud-resources.aws-reactivate-stream-session-reactivation-started";
@@ -26,8 +26,8 @@ __decorate([
26
26
  __metadata("design:type", String)
27
27
  ], AwsStreamSessionReactivationStartedPayload.prototype, "gamePoolId", void 0);
28
28
  __decorate([
29
- (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
30
- __metadata("design:type", types_1.AWSResourceProviderSettings)
29
+ (0, decorators_1.ValidateNestedType)(types_1.getResourceProviderSettingsType),
30
+ __metadata("design:type", Object)
31
31
  ], AwsStreamSessionReactivationStartedPayload.prototype, "providerSettings", void 0);
32
32
  class AwsStreamSessionReactivationStarted extends infra_1.LudeoEvent {
33
33
  constructor(payload) {
@@ -1 +1 @@
1
- {"version":3,"file":"aws-stream-session-reactivation-started.js","sourceRoot":"","sources":["../../../src/v4/events/aws-stream-session-reactivation-started.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,uCAAyC;AACzC,iDAAsD;AACtD,oCAAuD;AAEvD,MAAa,0CAA0C;CAStD;AATD,gGASC;AAPC;IADC,IAAA,wBAAM,GAAE;;kFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;8EACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;oFAAC;AAGhD,MAAa,mCAAoC,SAAQ,kBAAU;IAIjE,YAAY,OAAmD;QAC7D,KAAK,CAAC,mCAAmC,CAAC,UAAU,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,kFAaC;AAZiB,8CAAU,GACxB,oEAAoE,CAAC;AAUvE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,0CAA0C,CAAC;8BAC5D,0CAA0C;oEAAC"}
1
+ {"version":3,"file":"aws-stream-session-reactivation-started.js","sourceRoot":"","sources":["../../../src/v4/events/aws-stream-session-reactivation-started.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,uCAAyC;AACzC,iDAAsD;AACtD,oCAGkB;AAElB,MAAa,0CAA0C;CAStD;AATD,gGASC;AAPC;IADC,IAAA,wBAAM,GAAE;;kFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;8EACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,uCAA+B,CAAC;;oFACJ;AAGlD,MAAa,mCAAoC,SAAQ,kBAAU;IAIjE,YAAY,OAAmD;QAC7D,KAAK,CAAC,mCAAmC,CAAC,UAAU,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,kFAaC;AAZiB,8CAAU,GACxB,oEAAoE,CAAC;AAUvE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,0CAA0C,CAAC;8BAC5D,0CAA0C;oEAAC"}
@@ -1,7 +1,8 @@
1
1
  import { BuildContext } from "../contexts/build-context";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
+ import { CloudBuild } from "../types";
3
4
  export declare class BuildCreatedPayload {
4
- buildId: string;
5
+ build: CloudBuild;
5
6
  }
6
7
  export declare class BuildCreated extends LudeoEvent {
7
8
  static readonly EVENT_NAME = "cloud-builds.build-created";
@@ -10,17 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.BuildCreated = exports.BuildCreatedPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
13
  const build_context_1 = require("../contexts/build-context");
15
14
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
15
  const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const types_1 = require("../types");
17
17
  class BuildCreatedPayload {
18
18
  }
19
19
  exports.BuildCreatedPayload = BuildCreatedPayload;
20
20
  __decorate([
21
- (0, class_validator_1.IsUUID)(),
22
- __metadata("design:type", String)
23
- ], BuildCreatedPayload.prototype, "buildId", void 0);
21
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.CloudBuild),
22
+ __metadata("design:type", types_1.CloudBuild)
23
+ ], BuildCreatedPayload.prototype, "build", void 0);
24
24
  class BuildCreated extends ludeo_event_1.LudeoEvent {
25
25
  constructor(payload, context) {
26
26
  super(BuildCreated.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"build-created.js","sourceRoot":"","sources":["../../../src/v4/events/build-created.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AADC;IADC,IAAA,wBAAM,GAAE;;oDACO;AAGlB,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YAAY,OAA4B,EAAE,OAAqB;QAC7D,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oCAcC;AAbiB,uBAAU,GAAG,4BAA4B,CAAC;AAS1D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;6CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC;8BACrC,mBAAmB;6CAAC"}
1
+ {"version":3,"file":"build-created.js","sourceRoot":"","sources":["../../../src/v4/events/build-created.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AACrD,oCAAsC;AAEtC,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;kDAAC;AAGpB,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YAAY,OAA4B,EAAE,OAAqB;QAC7D,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oCAcC;AAbiB,uBAAU,GAAG,4BAA4B,CAAC;AAS1D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;6CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC;8BACrC,mBAAmB;6CAAC"}
@@ -0,0 +1,12 @@
1
+ import { BuildContext } from "../contexts/build-context";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class BuildCreationFailedPayload {
4
+ buildId: string;
5
+ error?: string;
6
+ }
7
+ export declare class BuildCreationFailed extends LudeoEvent {
8
+ static readonly EVENT_NAME = "cloud-builds.build-creation-failed";
9
+ constructor(payload: BuildCreationFailedPayload, context: BuildContext);
10
+ context: BuildContext;
11
+ payload: BuildCreationFailedPayload;
12
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BuildCreationFailed = exports.BuildCreationFailedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const build_context_1 = require("../contexts/build-context");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const ludeo_event_1 = require("../../infra/ludeo-event");
17
+ class BuildCreationFailedPayload {
18
+ }
19
+ exports.BuildCreationFailedPayload = BuildCreationFailedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], BuildCreationFailedPayload.prototype, "buildId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.IsOptional)(),
27
+ __metadata("design:type", String)
28
+ ], BuildCreationFailedPayload.prototype, "error", void 0);
29
+ class BuildCreationFailed extends ludeo_event_1.LudeoEvent {
30
+ constructor(payload, context) {
31
+ super(BuildCreationFailed.EVENT_NAME);
32
+ this.payload = payload;
33
+ this.context = context;
34
+ }
35
+ }
36
+ exports.BuildCreationFailed = BuildCreationFailed;
37
+ BuildCreationFailed.EVENT_NAME = "cloud-builds.build-creation-failed";
38
+ __decorate([
39
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
40
+ __metadata("design:type", build_context_1.BuildContext)
41
+ ], BuildCreationFailed.prototype, "context", void 0);
42
+ __decorate([
43
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildCreationFailedPayload),
44
+ __metadata("design:type", BuildCreationFailedPayload)
45
+ ], BuildCreationFailed.prototype, "payload", void 0);
46
+ //# sourceMappingURL=build-creation-failed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-creation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-creation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,0BAA0B;CAOtC;AAPD,gEAOC;AALC;IADC,IAAA,wBAAM,GAAE;;2DACO;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACE;AAGjB,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YAAY,OAAmC,EAAE,OAAqB;QACpE,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,kDAcC;AAbiB,8BAAU,GAAG,oCAAoC,CAAC;AASlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;oDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
@@ -0,0 +1,12 @@
1
+ import { BuildContext } from "../contexts/build-context";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class BuildUploadedPayload {
4
+ buildId: string;
5
+ centralizedPath: string;
6
+ }
7
+ export declare class BuildUploaded extends LudeoEvent {
8
+ static readonly EVENT_NAME = "cloud-builds.build-uploaded";
9
+ constructor(payload: BuildUploadedPayload, context: BuildContext);
10
+ context: BuildContext;
11
+ payload: BuildUploadedPayload;
12
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BuildUploaded = exports.BuildUploadedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const build_context_1 = require("../contexts/build-context");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const ludeo_event_1 = require("../../infra/ludeo-event");
17
+ class BuildUploadedPayload {
18
+ }
19
+ exports.BuildUploadedPayload = BuildUploadedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], BuildUploadedPayload.prototype, "buildId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], BuildUploadedPayload.prototype, "centralizedPath", void 0);
28
+ class BuildUploaded extends ludeo_event_1.LudeoEvent {
29
+ constructor(payload, context) {
30
+ super(BuildUploaded.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+ }
35
+ exports.BuildUploaded = BuildUploaded;
36
+ BuildUploaded.EVENT_NAME = "cloud-builds.build-uploaded";
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
39
+ __metadata("design:type", build_context_1.BuildContext)
40
+ ], BuildUploaded.prototype, "context", void 0);
41
+ __decorate([
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildUploadedPayload),
43
+ __metadata("design:type", BuildUploadedPayload)
44
+ ], BuildUploaded.prototype, "payload", void 0);
45
+ //# sourceMappingURL=build-uploaded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-uploaded.js","sourceRoot":"","sources":["../../../src/v4/events/build-uploaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,oBAAoB;CAMhC;AAND,oDAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;qDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;6DACa;AAG1B,MAAa,aAAc,SAAQ,wBAAU;IAG3C,YAAY,OAA6B,EAAE,OAAqB;QAC9D,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sCAcC;AAbiB,wBAAU,GAAG,6BAA6B,CAAC;AAS3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;8CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BACtC,oBAAoB;8CAAC"}
@@ -0,0 +1,15 @@
1
+ import { BuildContext } from "../contexts/build-context";
2
+ import { BuildMetadata } from "../types/build";
3
+ import { LudeoEvent } from "../../infra/ludeo-event";
4
+ import { BuildCreationInput } from "../types/build";
5
+ export declare class CreateBuildPayload {
6
+ buildId: string;
7
+ meta: BuildMetadata;
8
+ creationInput: BuildCreationInput;
9
+ }
10
+ export declare class CreateBuild extends LudeoEvent {
11
+ static readonly EVENT_NAME = "cloud-builds.create-build";
12
+ constructor(payload: CreateBuildPayload, context: BuildContext);
13
+ context: BuildContext;
14
+ payload: CreateBuildPayload;
15
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateBuild = exports.CreateBuildPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const build_context_1 = require("../contexts/build-context");
15
+ const build_1 = require("../types/build");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ const ludeo_event_1 = require("../../infra/ludeo-event");
18
+ const build_2 = require("../types/build");
19
+ class CreateBuildPayload {
20
+ }
21
+ exports.CreateBuildPayload = CreateBuildPayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], CreateBuildPayload.prototype, "buildId", void 0);
26
+ __decorate([
27
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.BuildMetadata),
28
+ __metadata("design:type", build_1.BuildMetadata)
29
+ ], CreateBuildPayload.prototype, "meta", void 0);
30
+ __decorate([
31
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_2.BuildCreationInput),
32
+ __metadata("design:type", build_2.BuildCreationInput)
33
+ ], CreateBuildPayload.prototype, "creationInput", void 0);
34
+ class CreateBuild extends ludeo_event_1.LudeoEvent {
35
+ constructor(payload, context) {
36
+ super(CreateBuild.EVENT_NAME);
37
+ this.payload = payload;
38
+ this.context = context;
39
+ }
40
+ }
41
+ exports.CreateBuild = CreateBuild;
42
+ CreateBuild.EVENT_NAME = "cloud-builds.create-build";
43
+ __decorate([
44
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
45
+ __metadata("design:type", build_context_1.BuildContext)
46
+ ], CreateBuild.prototype, "context", void 0);
47
+ __decorate([
48
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateBuildPayload),
49
+ __metadata("design:type", CreateBuildPayload)
50
+ ], CreateBuild.prototype, "payload", void 0);
51
+ //# sourceMappingURL=create-build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-build.js","sourceRoot":"","sources":["../../../src/v4/events/create-build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,6DAAyD;AACzD,0CAA+C;AAC/C,oGAAqF;AACrF,yDAAqD;AACrD,0CAAoD;AAEpD,MAAa,kBAAkB;CAS9B;AATD,gDASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;mDACK;AAGhB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;8BAClC,qBAAa;gDAAC;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BAC9B,0BAAkB;yDAAC;AAGpC,MAAa,WAAY,SAAQ,wBAAU;IAGzC,YAAY,OAA2B,EAAE,OAAqB;QAC5D,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,kCAcC;AAbiB,sBAAU,GAAG,2BAA2B,CAAC;AASzD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;4CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;8BACpC,kBAAkB;4CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { CloudResourceContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  import { CloudProviderSettings, CloudProvider } from "../types";
4
- export declare class CreateGameResourceRequestPayload {
4
+ export declare class CreateGameResourceRequestPayload<T extends CloudProviderSettings = CloudProviderSettings> {
5
5
  gameResourceId: string;
6
6
  gamePoolId: string;
7
- providerSettings: CloudProviderSettings;
7
+ providerSettings: T;
8
8
  cloudProvider: CloudProvider;
9
9
  cloudToken: string;
10
10
  appToken?: string;
@@ -27,7 +27,7 @@ __decorate([
27
27
  __metadata("design:type", String)
28
28
  ], CreateGameResourceRequestPayload.prototype, "gamePoolId", void 0);
29
29
  __decorate([
30
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
30
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(types_1.getProviderSettingsType),
31
31
  __metadata("design:type", Object)
32
32
  ], CreateGameResourceRequestPayload.prototype, "providerSettings", void 0);
33
33
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"create-game-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/create-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6D;AAE7D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,gCAAgC;CAmB5C;AAnBD,4EAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;wEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;oEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;0EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;oEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACS;AAGpB,MAAa,yBAA0B,SAAQ,wBAAU;IAGvD,YACE,OAAyC,EACzC,OAA6B;QAE7B,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8DAiBC;AAhBiB,oCAAU,GAAG,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;0DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;8BAClD,gCAAgC;0DAAC"}
1
+ {"version":3,"file":"create-game-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/create-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6D;AAE7D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,gCAAgC;CAqB5C;AArBD,4EAqBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;wEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;oEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;0EACxB;AAGpB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;oEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACS;AAGpB,MAAa,yBAA0B,SAAQ,wBAAU;IAGvD,YACE,OAAyC,EACzC,OAA6B;QAE7B,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8DAiBC;AAhBiB,oCAAU,GAAG,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;0DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;8BAClD,gCAAgC;0DAAC"}
@@ -1,11 +1,11 @@
1
1
  import { CloudResourceContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  import { CloudProvider, CloudProviderSettings } from "../types";
4
- export declare class CreateMachineResourceBatchRequestPayload {
4
+ export declare class CreateMachineResourceBatchRequestPayload<T extends CloudProviderSettings = CloudProviderSettings> {
5
5
  machineResourceIds: string[];
6
6
  machinePoolId: string;
7
7
  cloudProvider: CloudProvider;
8
- cloudProviderSettings: CloudProviderSettings;
8
+ cloudProviderSettings: T;
9
9
  }
10
10
  export declare class CreateMachineResourceBatchRequest extends LudeoEvent {
11
11
  static readonly EVENT_NAME = "cloud-pools.create-machine-resource-batch-request";
@@ -31,7 +31,7 @@ __decorate([
31
31
  __metadata("design:type", String)
32
32
  ], CreateMachineResourceBatchRequestPayload.prototype, "cloudProvider", void 0);
33
33
  __decorate([
34
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(types_1.getProviderSettingsType),
35
35
  __metadata("design:type", Object)
36
36
  ], CreateMachineResourceBatchRequestPayload.prototype, "cloudProviderSettings", void 0);
37
37
  class CreateMachineResourceBatchRequest extends ludeo_event_1.LudeoEvent {
@@ -1 +1 @@
1
- {"version":3,"file":"create-machine-resource-batch-request.js","sourceRoot":"","sources":["../../../src/v4/events/create-machine-resource-batch-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAE1D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,wCAAwC;CAYpD;AAZD,4FAYC;AAVC;IADC,IAAA,yBAAO,GAAE;;oFACmB;AAG7B;IADC,IAAA,wBAAM,GAAE;;+EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;+EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;uFACD;AAG/C,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAiD,EACjD,OAA6B;QAE7B,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wCAAwC,CAAC;8BAC1D,wCAAwC;kEAAC"}
1
+ {"version":3,"file":"create-machine-resource-batch-request.js","sourceRoot":"","sources":["../../../src/v4/events/create-machine-resource-batch-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAE1D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,wCAAwC;CAcpD;AAdD,4FAcC;AAVC;IADC,IAAA,yBAAO,GAAE;;oFACmB;AAG7B;IADC,IAAA,wBAAM,GAAE;;+EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;+EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;uFACnB;AAG3B,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAiD,EACjD,OAA6B;QAE7B,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wCAAwC,CAAC;8BAC1D,wCAAwC;kEAAC"}
@@ -1,11 +1,11 @@
1
1
  import { CloudResourceContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  import { CloudProvider, CloudProviderSettings } from "../types";
4
- export declare class CreateMachineResourceRequestPayload {
4
+ export declare class CreateMachineResourceRequestPayload<T extends CloudProviderSettings = CloudProviderSettings> {
5
5
  machineResourceId: string;
6
6
  machinePoolId: string;
7
7
  cloudProvider: CloudProvider;
8
- cloudProviderSettings: CloudProviderSettings;
8
+ cloudProviderSettings: T;
9
9
  }
10
10
  export declare class CreateMachineResourceRequest extends LudeoEvent {
11
11
  static readonly EVENT_NAME = "cloud-pools.create-machine-resource-request";
@@ -31,7 +31,7 @@ __decorate([
31
31
  __metadata("design:type", String)
32
32
  ], CreateMachineResourceRequestPayload.prototype, "cloudProvider", void 0);
33
33
  __decorate([
34
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(types_1.getProviderSettingsType),
35
35
  __metadata("design:type", Object)
36
36
  ], CreateMachineResourceRequestPayload.prototype, "cloudProviderSettings", void 0);
37
37
  class CreateMachineResourceRequest extends ludeo_event_1.LudeoEvent {
@@ -1 +1 @@
1
- {"version":3,"file":"create-machine-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/create-machine-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,mCAAmC;CAY/C;AAZD,kFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;8EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;0EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;kFACD;AAG/C,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,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,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
1
+ {"version":3,"file":"create-machine-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/create-machine-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,mCAAmC;CAc/C;AAdD,kFAcC;AAVC;IADC,IAAA,wBAAM,GAAE;;8EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;0EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;kFACnB;AAG3B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,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,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
@@ -1,15 +1,15 @@
1
1
  import { CloudResourceContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { CloudProvider, CloudProviderSettings, GameResourceSettings } from "../types";
4
- export declare class GameAllocatedResponsePayload {
3
+ import { CloudProvider, CloudProviderSettings, CloudResourceProviderSettings, GameResourceSettings } from "../types";
4
+ export declare class GameAllocatedResponsePayload<T extends CloudProviderSettings = CloudProviderSettings, K extends CloudResourceProviderSettings = CloudResourceProviderSettings> {
5
5
  gameResourceId: string;
6
6
  gamePoolId: string;
7
7
  ludeoResourceId: string;
8
8
  ludeoPoolId: string;
9
9
  ludeoId?: string;
10
- providerSettings: CloudProviderSettings;
10
+ providerSettings: T;
11
11
  gameId: string;
12
- gameResourceSettings: GameResourceSettings;
12
+ gameResourceSettings: GameResourceSettings<K>;
13
13
  cloudProvider: CloudProvider;
14
14
  }
15
15
  export declare class GameAllocatedResponse extends LudeoEvent {
@@ -41,7 +41,7 @@ __decorate([
41
41
  __metadata("design:type", String)
42
42
  ], GameAllocatedResponsePayload.prototype, "ludeoId", void 0);
43
43
  __decorate([
44
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
44
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(types_1.getProviderSettingsType),
45
45
  __metadata("design:type", Object)
46
46
  ], GameAllocatedResponsePayload.prototype, "providerSettings", void 0);
47
47
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAmD;AACnD,yDAAqD;AACrD,oCAKkB;AAClB,oGAAqF;AACrF,qDAA6D;AAC7D,4FAA4E;AAE5E,MAAa,4BAA4B;CA4BxC;AA5BD,oEA4BC;AA1BC;IADC,IAAA,wBAAM,GAAE;;oEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;qEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;iEACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;6DACC;AAGjB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;sEACN;AAGxC;IADC,IAAA,wBAAM,GAAE;;4DACM;AAGf;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;0EAAC;AAG3C;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;mEACO;AAG/B,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA6B;QAE7B,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,+BAAoB,CAAC;8BACtC,+BAAoB;sDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
1
+ {"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAmD;AACnD,yDAAqD;AACrD,oCAMkB;AAClB,oGAAqF;AACrF,qDAA6D;AAC7D,4FAA4E;AAE5E,MAAa,4BAA4B;CA+BxC;AA/BD,oEA+BC;AA1BC;IADC,IAAA,wBAAM,GAAE;;oEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;qEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;iEACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;6DACC;AAGjB;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;sEACxB;AAGpB;IADC,IAAA,wBAAM,GAAE;;4DACM;AAGf;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;0EAAI;AAG9C;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;mEACO;AAG/B,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA6B;QAE7B,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,+BAAoB,CAAC;8BACtC,+BAAoB;sDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
@@ -1,10 +1,10 @@
1
1
  import { LudeoEvent } from "../../infra";
2
2
  import { CloudResourceContext } from "../contexts";
3
- import { GameResourceSettings } from "../types";
3
+ import { CloudProviderSettings, CloudResourceProviderSettings, GameResourceSettings } from "../types";
4
4
  import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
5
- export declare class GameResourceReadyForCreationPayload {
6
- creationPayload: CreateGameResourceRequestPayload;
7
- gameResourceSettings: GameResourceSettings;
5
+ export declare class GameResourceReadyForCreationPayload<T extends CloudProviderSettings = CloudProviderSettings, K extends CloudResourceProviderSettings = CloudResourceProviderSettings> {
6
+ creationPayload: CreateGameResourceRequestPayload<T>;
7
+ gameResourceSettings: GameResourceSettings<K>;
8
8
  }
9
9
  export declare class GameResourceReadyForCreation extends LudeoEvent {
10
10
  static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation";
@@ -23,7 +23,7 @@ __decorate([
23
23
  __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
24
24
  ], GameResourceReadyForCreationPayload.prototype, "creationPayload", void 0);
25
25
  __decorate([
26
- (0, decorators_1.ValidateNestedType)(() => types_1.GameResourceSettings),
26
+ (0, decorators_1.ValidateNestedType)(types_1.getResourceProviderSettingsType),
27
27
  __metadata("design:type", types_1.GameResourceSettings)
28
28
  ], GameResourceReadyForCreationPayload.prototype, "gameResourceSettings", void 0);
29
29
  class GameResourceReadyForCreation extends infra_1.LudeoEvent {
@@ -1 +1 @@
1
- {"version":3,"file":"game-resource-ready-for-creation.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,0CAAmD;AACnD,oCAAgD;AAChD,iFAAkF;AAElF,MAAa,mCAAmC;CAM/C;AAND,kFAMC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;4EAAC;AAGlD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;iFAAC;AAG7C,MAAa,4BAA6B,SAAQ,kBAAU;IAI1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oEAkBC;AAjBiB,uCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC;AAG7C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC"}
1
+ {"version":3,"file":"game-resource-ready-for-creation.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,0CAAmD;AACnD,oCAKkB;AAClB,iFAAkF;AAElF,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAmC,CAAC;8BAC7C,+DAAgC;4EAAI;AAGrD;IADC,IAAA,+BAAkB,EAAC,uCAA+B,CAAC;8BAC9B,4BAAoB;iFAAI;AAGhD,MAAa,4BAA6B,SAAQ,kBAAU;IAI1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oEAkBC;AAjBiB,uCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC;AAG7C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC"}