@ludeo/cloud-common 1.1.142 → 1.2.0

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 (474) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +2 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/dist/v3/types/cloud.d.ts +1 -0
  6. package/dist/v3/types/cloud.js +5 -0
  7. package/dist/v3/types/cloud.js.map +1 -1
  8. package/dist/v4/contexts/cloud-pool-context.d.ts +8 -0
  9. package/dist/v4/contexts/cloud-pool-context.js +41 -0
  10. package/dist/v4/contexts/cloud-pool-context.js.map +1 -0
  11. package/dist/v4/contexts/cloud-resource-context.d.ts +14 -0
  12. package/dist/v4/contexts/cloud-resource-context.js +72 -0
  13. package/dist/v4/contexts/cloud-resource-context.js.map +1 -0
  14. package/dist/v4/contexts/cloud-session-context.d.ts +20 -0
  15. package/dist/v4/contexts/cloud-session-context.js +101 -0
  16. package/dist/v4/contexts/cloud-session-context.js.map +1 -0
  17. package/dist/v4/contexts/getCloudContextType.d.ts +5 -0
  18. package/dist/v4/contexts/getCloudContextType.js +20 -0
  19. package/dist/v4/contexts/getCloudContextType.js.map +1 -0
  20. package/dist/v4/contexts/getCloudContextType.spec.d.ts +1 -0
  21. package/dist/v4/contexts/getCloudContextType.spec.js +95 -0
  22. package/dist/v4/contexts/getCloudContextType.spec.js.map +1 -0
  23. package/dist/v4/contexts/index.d.ts +4 -0
  24. package/dist/v4/contexts/index.js +21 -0
  25. package/dist/v4/contexts/index.js.map +1 -0
  26. package/dist/v4/events/allocate-cloud-session-failed.d.ts +11 -0
  27. package/dist/v4/events/allocate-cloud-session-failed.js +41 -0
  28. package/dist/v4/events/allocate-cloud-session-failed.js.map +1 -0
  29. package/dist/v4/events/allocate-cloud-session-request.d.ts +12 -0
  30. package/dist/v4/events/allocate-cloud-session-request.js +41 -0
  31. package/dist/v4/events/allocate-cloud-session-request.js.map +1 -0
  32. package/dist/v4/events/allocate-game-request.d.ts +13 -0
  33. package/dist/v4/events/allocate-game-request.js +46 -0
  34. package/dist/v4/events/allocate-game-request.js.map +1 -0
  35. package/dist/v4/events/allocate-game-resource-request.d.ts +17 -0
  36. package/dist/v4/events/allocate-game-resource-request.js +62 -0
  37. package/dist/v4/events/allocate-game-resource-request.js.map +1 -0
  38. package/dist/v4/events/allocate-ludeo-resource-request.d.ts +11 -0
  39. package/dist/v4/events/allocate-ludeo-resource-request.js +41 -0
  40. package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -0
  41. package/dist/v4/events/allocate-machine-request.d.ts +13 -0
  42. package/dist/v4/events/allocate-machine-request.js +49 -0
  43. package/dist/v4/events/allocate-machine-request.js.map +1 -0
  44. package/dist/v4/events/aws-poll-stream-session-task.d.ts +15 -0
  45. package/dist/v4/events/aws-poll-stream-session-task.js +49 -0
  46. package/dist/v4/events/aws-poll-stream-session-task.js.map +1 -0
  47. package/dist/v4/events/aws-reactivate-stream-session-task.d.ts +13 -0
  48. package/dist/v4/events/aws-reactivate-stream-session-task.js +44 -0
  49. package/dist/v4/events/aws-reactivate-stream-session-task.js.map +1 -0
  50. package/dist/v4/events/aws-stream-session-active.d.ts +15 -0
  51. package/dist/v4/events/aws-stream-session-active.js +51 -0
  52. package/dist/v4/events/aws-stream-session-active.js.map +1 -0
  53. package/dist/v4/events/aws-stream-session-reactivation-started.d.ts +13 -0
  54. package/dist/v4/events/aws-stream-session-reactivation-started.js +44 -0
  55. package/dist/v4/events/aws-stream-session-reactivation-started.js.map +1 -0
  56. package/dist/v4/events/cloud-machine-auth-ready.d.ts +16 -0
  57. package/dist/v4/events/cloud-machine-auth-ready.js +54 -0
  58. package/dist/v4/events/cloud-machine-auth-ready.js.map +1 -0
  59. package/dist/v4/events/cloud-session-allocated.d.ts +13 -0
  60. package/dist/v4/events/cloud-session-allocated.js +47 -0
  61. package/dist/v4/events/cloud-session-allocated.js.map +1 -0
  62. package/dist/v4/events/cloud-session-created.d.ts +9 -0
  63. package/dist/v4/events/cloud-session-created.js +34 -0
  64. package/dist/v4/events/cloud-session-created.js.map +1 -0
  65. package/dist/v4/events/cloud-session-ended.d.ts +14 -0
  66. package/dist/v4/events/cloud-session-ended.js +53 -0
  67. package/dist/v4/events/cloud-session-ended.js.map +1 -0
  68. package/dist/v4/events/cloud-session-optimal-region-selected.d.ts +12 -0
  69. package/dist/v4/events/cloud-session-optimal-region-selected.js +40 -0
  70. package/dist/v4/events/cloud-session-optimal-region-selected.js.map +1 -0
  71. package/dist/v4/events/cloud-session-provider-requested.d.ts +14 -0
  72. package/dist/v4/events/cloud-session-provider-requested.js +51 -0
  73. package/dist/v4/events/cloud-session-provider-requested.js.map +1 -0
  74. package/dist/v4/events/cloud-session-timeout-task.d.ts +10 -0
  75. package/dist/v4/events/cloud-session-timeout-task.js +36 -0
  76. package/dist/v4/events/cloud-session-timeout-task.js.map +1 -0
  77. package/dist/v4/events/create-game-resource-request.d.ts +16 -0
  78. package/dist/v4/events/create-game-resource-request.js +58 -0
  79. package/dist/v4/events/create-game-resource-request.js.map +1 -0
  80. package/dist/v4/events/create-games-request.d.ts +12 -0
  81. package/dist/v4/events/create-games-request.js +45 -0
  82. package/dist/v4/events/create-games-request.js.map +1 -0
  83. package/dist/v4/events/create-ludeos-request.d.ts +12 -0
  84. package/dist/v4/events/create-ludeos-request.js +45 -0
  85. package/dist/v4/events/create-ludeos-request.js.map +1 -0
  86. package/dist/v4/events/create-machine-resource-batch-request.d.ts +15 -0
  87. package/dist/v4/events/create-machine-resource-batch-request.js +54 -0
  88. package/dist/v4/events/create-machine-resource-batch-request.js.map +1 -0
  89. package/dist/v4/events/create-machine-resource-request.d.ts +15 -0
  90. package/dist/v4/events/create-machine-resource-request.js +54 -0
  91. package/dist/v4/events/create-machine-resource-request.js.map +1 -0
  92. package/dist/v4/events/create-machines-request.d.ts +12 -0
  93. package/dist/v4/events/create-machines-request.js +45 -0
  94. package/dist/v4/events/create-machines-request.js.map +1 -0
  95. package/dist/v4/events/deallocate-machine-request.d.ts +14 -0
  96. package/dist/v4/events/deallocate-machine-request.js +53 -0
  97. package/dist/v4/events/deallocate-machine-request.js.map +1 -0
  98. package/dist/v4/events/game-allocated-response.d.ts +12 -0
  99. package/dist/v4/events/game-allocated-response.js +41 -0
  100. package/dist/v4/events/game-allocated-response.js.map +1 -0
  101. package/dist/v4/events/game-allocation-failed-response.d.ts +13 -0
  102. package/dist/v4/events/game-allocation-failed-response.js +46 -0
  103. package/dist/v4/events/game-allocation-failed-response.js.map +1 -0
  104. package/dist/v4/events/game-available.d.ts +11 -0
  105. package/dist/v4/events/game-available.js +41 -0
  106. package/dist/v4/events/game-available.js.map +1 -0
  107. package/dist/v4/events/game-resource-allocated-response.d.ts +15 -0
  108. package/dist/v4/events/game-resource-allocated-response.js +54 -0
  109. package/dist/v4/events/game-resource-allocated-response.js.map +1 -0
  110. package/dist/v4/events/game-resource-allocation-failed-response.d.ts +15 -0
  111. package/dist/v4/events/game-resource-allocation-failed-response.js +54 -0
  112. package/dist/v4/events/game-resource-allocation-failed-response.js.map +1 -0
  113. package/dist/v4/events/game-resource-allocation-timeout-task.d.ts +11 -0
  114. package/dist/v4/events/game-resource-allocation-timeout-task.js +39 -0
  115. package/dist/v4/events/game-resource-allocation-timeout-task.js.map +1 -0
  116. package/dist/v4/events/game-resource-created-response.d.ts +15 -0
  117. package/dist/v4/events/game-resource-created-response.js +54 -0
  118. package/dist/v4/events/game-resource-created-response.js.map +1 -0
  119. package/dist/v4/events/game-resource-creation-failed-response.d.ts +13 -0
  120. package/dist/v4/events/game-resource-creation-failed-response.js +49 -0
  121. package/dist/v4/events/game-resource-creation-failed-response.js.map +1 -0
  122. package/dist/v4/events/game-resource-ready-for-creation-failed.d.ts +13 -0
  123. package/dist/v4/events/game-resource-ready-for-creation-failed.js +49 -0
  124. package/dist/v4/events/game-resource-ready-for-creation-failed.js.map +1 -0
  125. package/dist/v4/events/game-resource-ready-for-creation.d.ts +14 -0
  126. package/dist/v4/events/game-resource-ready-for-creation.js +46 -0
  127. package/dist/v4/events/game-resource-ready-for-creation.js.map +1 -0
  128. package/dist/v4/events/game-resource-status-changed.d.ts +17 -0
  129. package/dist/v4/events/game-resource-status-changed.js +64 -0
  130. package/dist/v4/events/game-resource-status-changed.js.map +1 -0
  131. package/dist/v4/events/game-resource-terminated-response.d.ts +13 -0
  132. package/dist/v4/events/game-resource-terminated-response.js +49 -0
  133. package/dist/v4/events/game-resource-terminated-response.js.map +1 -0
  134. package/dist/v4/events/game-resource-termination-failed-response.d.ts +14 -0
  135. package/dist/v4/events/game-resource-termination-failed-response.js +53 -0
  136. package/dist/v4/events/game-resource-termination-failed-response.js.map +1 -0
  137. package/dist/v4/events/game-terminated-response.d.ts +12 -0
  138. package/dist/v4/events/game-terminated-response.js +45 -0
  139. package/dist/v4/events/game-terminated-response.js.map +1 -0
  140. package/dist/v4/events/game-termination-failed-response.d.ts +13 -0
  141. package/dist/v4/events/game-termination-failed-response.js +49 -0
  142. package/dist/v4/events/game-termination-failed-response.js.map +1 -0
  143. package/dist/v4/events/gameplay-waiting-for-user.d.ts +11 -0
  144. package/dist/v4/events/gameplay-waiting-for-user.js +41 -0
  145. package/dist/v4/events/gameplay-waiting-for-user.js.map +1 -0
  146. package/dist/v4/events/index.d.ts +84 -0
  147. package/dist/v4/events/index.js +101 -0
  148. package/dist/v4/events/index.js.map +1 -0
  149. package/dist/v4/events/invalid-game-resource.d.ts +13 -0
  150. package/dist/v4/events/invalid-game-resource.js +49 -0
  151. package/dist/v4/events/invalid-game-resource.js.map +1 -0
  152. package/dist/v4/events/load-ludeo-resource.d.ts +11 -0
  153. package/dist/v4/events/load-ludeo-resource.js +41 -0
  154. package/dist/v4/events/load-ludeo-resource.js.map +1 -0
  155. package/dist/v4/events/ludeo-allocated-response.d.ts +11 -0
  156. package/dist/v4/events/ludeo-allocated-response.js +41 -0
  157. package/dist/v4/events/ludeo-allocated-response.js.map +1 -0
  158. package/dist/v4/events/ludeo-allocation-failed.d.ts +11 -0
  159. package/dist/v4/events/ludeo-allocation-failed.js +41 -0
  160. package/dist/v4/events/ludeo-allocation-failed.js.map +1 -0
  161. package/dist/v4/events/ludeo-obtained-timeout-task.d.ts +10 -0
  162. package/dist/v4/events/ludeo-obtained-timeout-task.js +36 -0
  163. package/dist/v4/events/ludeo-obtained-timeout-task.js.map +1 -0
  164. package/dist/v4/events/ludeo-resource-allocated-response.d.ts +11 -0
  165. package/dist/v4/events/ludeo-resource-allocated-response.js +41 -0
  166. package/dist/v4/events/ludeo-resource-allocated-response.js.map +1 -0
  167. package/dist/v4/events/ludeo-resource-allocation-failed.d.ts +11 -0
  168. package/dist/v4/events/ludeo-resource-allocation-failed.js +41 -0
  169. package/dist/v4/events/ludeo-resource-allocation-failed.js.map +1 -0
  170. package/dist/v4/events/ludeo-resource-loaded.d.ts +11 -0
  171. package/dist/v4/events/ludeo-resource-loaded.js +41 -0
  172. package/dist/v4/events/ludeo-resource-loaded.js.map +1 -0
  173. package/dist/v4/events/ludeo-resource-loading-failed.d.ts +11 -0
  174. package/dist/v4/events/ludeo-resource-loading-failed.js +41 -0
  175. package/dist/v4/events/ludeo-resource-loading-failed.js.map +1 -0
  176. package/dist/v4/events/machine-allocated-response.d.ts +17 -0
  177. package/dist/v4/events/machine-allocated-response.js +62 -0
  178. package/dist/v4/events/machine-allocated-response.js.map +1 -0
  179. package/dist/v4/events/machine-allocation-failed-response.d.ts +14 -0
  180. package/dist/v4/events/machine-allocation-failed-response.js +53 -0
  181. package/dist/v4/events/machine-allocation-failed-response.js.map +1 -0
  182. package/dist/v4/events/machine-deallocated-response.d.ts +14 -0
  183. package/dist/v4/events/machine-deallocated-response.js +53 -0
  184. package/dist/v4/events/machine-deallocated-response.js.map +1 -0
  185. package/dist/v4/events/machine-deallocation-failed-response.d.ts +15 -0
  186. package/dist/v4/events/machine-deallocation-failed-response.js +57 -0
  187. package/dist/v4/events/machine-deallocation-failed-response.js.map +1 -0
  188. package/dist/v4/events/machine-pool-resizing-task.d.ts +13 -0
  189. package/dist/v4/events/machine-pool-resizing-task.js +45 -0
  190. package/dist/v4/events/machine-pool-resizing-task.js.map +1 -0
  191. package/dist/v4/events/machine-resource-batch-creation-failed-response.d.ts +16 -0
  192. package/dist/v4/events/machine-resource-batch-creation-failed-response.js +58 -0
  193. package/dist/v4/events/machine-resource-batch-creation-failed-response.js.map +1 -0
  194. package/dist/v4/events/machine-resource-batch-termination-failed-response.d.ts +16 -0
  195. package/dist/v4/events/machine-resource-batch-termination-failed-response.js +58 -0
  196. package/dist/v4/events/machine-resource-batch-termination-failed-response.js.map +1 -0
  197. package/dist/v4/events/machine-resource-created-response.d.ts +12 -0
  198. package/dist/v4/events/machine-resource-created-response.js +45 -0
  199. package/dist/v4/events/machine-resource-created-response.js.map +1 -0
  200. package/dist/v4/events/machine-resource-creation-failed-response.d.ts +13 -0
  201. package/dist/v4/events/machine-resource-creation-failed-response.js +49 -0
  202. package/dist/v4/events/machine-resource-creation-failed-response.js.map +1 -0
  203. package/dist/v4/events/machine-resource-terminated-response.d.ts +12 -0
  204. package/dist/v4/events/machine-resource-terminated-response.js +45 -0
  205. package/dist/v4/events/machine-resource-terminated-response.js.map +1 -0
  206. package/dist/v4/events/machine-resource-updated.d.ts +12 -0
  207. package/dist/v4/events/machine-resource-updated.js +45 -0
  208. package/dist/v4/events/machine-resource-updated.js.map +1 -0
  209. package/dist/v4/events/monitor-game-resource-task.d.ts +14 -0
  210. package/dist/v4/events/monitor-game-resource-task.js +48 -0
  211. package/dist/v4/events/monitor-game-resource-task.js.map +1 -0
  212. package/dist/v4/events/pool-status.d.ts +20 -0
  213. package/dist/v4/events/pool-status.js +54 -0
  214. package/dist/v4/events/pool-status.js.map +1 -0
  215. package/dist/v4/events/prepare-cloud-machine-auth-failed.d.ts +13 -0
  216. package/dist/v4/events/prepare-cloud-machine-auth-failed.js +48 -0
  217. package/dist/v4/events/prepare-cloud-machine-auth-failed.js.map +1 -0
  218. package/dist/v4/events/prepare-cloud-machine-auth.d.ts +16 -0
  219. package/dist/v4/events/prepare-cloud-machine-auth.js +60 -0
  220. package/dist/v4/events/prepare-cloud-machine-auth.js.map +1 -0
  221. package/dist/v4/events/send-pools-to-predictor.d.ts +5 -0
  222. package/dist/v4/events/send-pools-to-predictor.js +12 -0
  223. package/dist/v4/events/send-pools-to-predictor.js.map +1 -0
  224. package/dist/v4/events/set-pool.d.ts +9 -0
  225. package/dist/v4/events/set-pool.js +29 -0
  226. package/dist/v4/events/set-pool.js.map +1 -0
  227. package/dist/v4/events/set-pools-state.d.ts +26 -0
  228. package/dist/v4/events/set-pools-state.js +64 -0
  229. package/dist/v4/events/set-pools-state.js.map +1 -0
  230. package/dist/v4/events/swap-cloud-user-completed.d.ts +12 -0
  231. package/dist/v4/events/swap-cloud-user-completed.js +45 -0
  232. package/dist/v4/events/swap-cloud-user-completed.js.map +1 -0
  233. package/dist/v4/events/swap-cloud-user-request-failed.d.ts +15 -0
  234. package/dist/v4/events/swap-cloud-user-request-failed.js +58 -0
  235. package/dist/v4/events/swap-cloud-user-request-failed.js.map +1 -0
  236. package/dist/v4/events/swap-cloud-user-request.d.ts +13 -0
  237. package/dist/v4/events/swap-cloud-user-request.js +50 -0
  238. package/dist/v4/events/swap-cloud-user-request.js.map +1 -0
  239. package/dist/v4/events/swap-to-default-user-completed.d.ts +11 -0
  240. package/dist/v4/events/swap-to-default-user-completed.js +41 -0
  241. package/dist/v4/events/swap-to-default-user-completed.js.map +1 -0
  242. package/dist/v4/events/swap-to-default-user.d.ts +11 -0
  243. package/dist/v4/events/swap-to-default-user.js +41 -0
  244. package/dist/v4/events/swap-to-default-user.js.map +1 -0
  245. package/dist/v4/events/terminate-cloud-session-request.d.ts +11 -0
  246. package/dist/v4/events/terminate-cloud-session-request.js +42 -0
  247. package/dist/v4/events/terminate-cloud-session-request.js.map +1 -0
  248. package/dist/v4/events/terminate-game-request.d.ts +13 -0
  249. package/dist/v4/events/terminate-game-request.js +50 -0
  250. package/dist/v4/events/terminate-game-request.js.map +1 -0
  251. package/dist/v4/events/terminate-game-resource-request.d.ts +18 -0
  252. package/dist/v4/events/terminate-game-resource-request.js +67 -0
  253. package/dist/v4/events/terminate-game-resource-request.js.map +1 -0
  254. package/dist/v4/events/terminate-games-request.d.ts +12 -0
  255. package/dist/v4/events/terminate-games-request.js +45 -0
  256. package/dist/v4/events/terminate-games-request.js.map +1 -0
  257. package/dist/v4/events/terminate-machine-resource-batch-request.d.ts +15 -0
  258. package/dist/v4/events/terminate-machine-resource-batch-request.js +54 -0
  259. package/dist/v4/events/terminate-machine-resource-batch-request.js.map +1 -0
  260. package/dist/v4/events/terminate-machine-resource-request.d.ts +15 -0
  261. package/dist/v4/events/terminate-machine-resource-request.js +54 -0
  262. package/dist/v4/events/terminate-machine-resource-request.js.map +1 -0
  263. package/dist/v4/events/terminate-machines-request.d.ts +12 -0
  264. package/dist/v4/events/terminate-machines-request.js +45 -0
  265. package/dist/v4/events/terminate-machines-request.js.map +1 -0
  266. package/dist/v4/events/terminate-stale-games.d.ts +11 -0
  267. package/dist/v4/events/terminate-stale-games.js +41 -0
  268. package/dist/v4/events/terminate-stale-games.js.map +1 -0
  269. package/dist/v4/events/terminate-stale-machines.d.ts +11 -0
  270. package/dist/v4/events/terminate-stale-machines.js +41 -0
  271. package/dist/v4/events/terminate-stale-machines.js.map +1 -0
  272. package/dist/v4/events/terminate-stale-resources-task.d.ts +9 -0
  273. package/dist/v4/events/terminate-stale-resources-task.js +16 -0
  274. package/dist/v4/events/terminate-stale-resources-task.js.map +1 -0
  275. package/dist/v4/events/token-required.event.d.ts +25 -0
  276. package/dist/v4/events/token-required.event.js +86 -0
  277. package/dist/v4/events/token-required.event.js.map +1 -0
  278. package/dist/v4/index.d.ts +3 -0
  279. package/dist/v4/index.js +7 -0
  280. package/dist/v4/index.js.map +1 -0
  281. package/dist/v4/types/cloud.d.ts +68 -0
  282. package/dist/v4/types/cloud.js +173 -0
  283. package/dist/v4/types/cloud.js.map +1 -0
  284. package/dist/v4/types/index.d.ts +2 -0
  285. package/dist/v4/types/index.js +19 -0
  286. package/dist/v4/types/index.js.map +1 -0
  287. package/dist/v4/types/pools/configuration/attributes/base.d.ts +6 -0
  288. package/dist/v4/types/pools/configuration/attributes/base.js +32 -0
  289. package/dist/v4/types/pools/configuration/attributes/base.js.map +1 -0
  290. package/dist/v4/types/pools/configuration/attributes/game.d.ts +4 -0
  291. package/dist/v4/types/pools/configuration/attributes/game.js +22 -0
  292. package/dist/v4/types/pools/configuration/attributes/game.js.map +1 -0
  293. package/dist/v4/types/pools/configuration/attributes/index.d.ts +4 -0
  294. package/dist/v4/types/pools/configuration/attributes/index.js +21 -0
  295. package/dist/v4/types/pools/configuration/attributes/index.js.map +1 -0
  296. package/dist/v4/types/pools/configuration/attributes/ludeo.d.ts +4 -0
  297. package/dist/v4/types/pools/configuration/attributes/ludeo.js +22 -0
  298. package/dist/v4/types/pools/configuration/attributes/ludeo.js.map +1 -0
  299. package/dist/v4/types/pools/configuration/attributes/machine.d.ts +4 -0
  300. package/dist/v4/types/pools/configuration/attributes/machine.js +22 -0
  301. package/dist/v4/types/pools/configuration/attributes/machine.js.map +1 -0
  302. package/dist/v4/types/pools/configuration/base.d.ts +14 -0
  303. package/dist/v4/types/pools/configuration/base.js +53 -0
  304. package/dist/v4/types/pools/configuration/base.js.map +1 -0
  305. package/dist/v4/types/pools/configuration/game.d.ts +9 -0
  306. package/dist/v4/types/pools/configuration/game.js +37 -0
  307. package/dist/v4/types/pools/configuration/game.js.map +1 -0
  308. package/dist/v4/types/pools/configuration/index.d.ts +6 -0
  309. package/dist/v4/types/pools/configuration/index.js +23 -0
  310. package/dist/v4/types/pools/configuration/index.js.map +1 -0
  311. package/dist/v4/types/pools/configuration/ludeo.d.ts +9 -0
  312. package/dist/v4/types/pools/configuration/ludeo.js +37 -0
  313. package/dist/v4/types/pools/configuration/ludeo.js.map +1 -0
  314. package/dist/v4/types/pools/configuration/machine.d.ts +7 -0
  315. package/dist/v4/types/pools/configuration/machine.js +29 -0
  316. package/dist/v4/types/pools/configuration/machine.js.map +1 -0
  317. package/dist/v4/types/pools/configuration/type.d.ts +6 -0
  318. package/dist/v4/types/pools/configuration/type.js +3 -0
  319. package/dist/v4/types/pools/configuration/type.js.map +1 -0
  320. package/dist/v4/types/pools/index.d.ts +5 -0
  321. package/dist/v4/types/pools/index.js +22 -0
  322. package/dist/v4/types/pools/index.js.map +1 -0
  323. package/dist/v4/types/pools/pool.d.ts +12 -0
  324. package/dist/v4/types/pools/pool.js +7 -0
  325. package/dist/v4/types/pools/pool.js.map +1 -0
  326. package/dist/v4/types/pools/resource/base.d.ts +10 -0
  327. package/dist/v4/types/pools/resource/base.js +45 -0
  328. package/dist/v4/types/pools/resource/base.js.map +1 -0
  329. package/dist/v4/types/pools/resource/game.d.ts +6 -0
  330. package/dist/v4/types/pools/resource/game.js +33 -0
  331. package/dist/v4/types/pools/resource/game.js.map +1 -0
  332. package/dist/v4/types/pools/resource/index.d.ts +7 -0
  333. package/dist/v4/types/pools/resource/index.js +24 -0
  334. package/dist/v4/types/pools/resource/index.js.map +1 -0
  335. package/dist/v4/types/pools/resource/ludeo.d.ts +4 -0
  336. package/dist/v4/types/pools/resource/ludeo.js +23 -0
  337. package/dist/v4/types/pools/resource/ludeo.js.map +1 -0
  338. package/dist/v4/types/pools/resource/machine.d.ts +5 -0
  339. package/dist/v4/types/pools/resource/machine.js +28 -0
  340. package/dist/v4/types/pools/resource/machine.js.map +1 -0
  341. package/dist/v4/types/pools/resource/status.d.ts +10 -0
  342. package/dist/v4/types/pools/resource/status.js +15 -0
  343. package/dist/v4/types/pools/resource/status.js.map +1 -0
  344. package/dist/v4/types/pools/resource/statusMap.d.ts +2 -0
  345. package/dist/v4/types/pools/resource/statusMap.js +3 -0
  346. package/dist/v4/types/pools/resource/statusMap.js.map +1 -0
  347. package/dist/v4/types/pools/resource/type.d.ts +6 -0
  348. package/dist/v4/types/pools/resource/type.js +3 -0
  349. package/dist/v4/types/pools/resource/type.js.map +1 -0
  350. package/dist/v4/types/pools/status.d.ts +6 -0
  351. package/dist/v4/types/pools/status.js +11 -0
  352. package/dist/v4/types/pools/status.js.map +1 -0
  353. package/dist/v4/types/pools/type.d.ts +5 -0
  354. package/dist/v4/types/pools/type.js +10 -0
  355. package/dist/v4/types/pools/type.js.map +1 -0
  356. package/package.json +1 -1
  357. package/src/index.ts +1 -0
  358. package/src/v3/types/cloud.ts +4 -0
  359. package/src/v4/contexts/cloud-pool-context.ts +22 -0
  360. package/src/v4/contexts/cloud-resource-context.ts +49 -0
  361. package/src/v4/contexts/cloud-session-context.ts +71 -0
  362. package/src/v4/contexts/getCloudContextType.spec.ts +102 -0
  363. package/src/v4/contexts/getCloudContextType.ts +22 -0
  364. package/src/v4/contexts/index.ts +4 -0
  365. package/src/v4/events/allocate-cloud-session-failed.ts +28 -0
  366. package/src/v4/events/allocate-cloud-session-request.ts +28 -0
  367. package/src/v4/events/allocate-game-request.ts +33 -0
  368. package/src/v4/events/allocate-game-resource-request.ts +52 -0
  369. package/src/v4/events/allocate-ludeo-resource-request.ts +28 -0
  370. package/src/v4/events/allocate-machine-request.ts +35 -0
  371. package/src/v4/events/aws-poll-stream-session-task.ts +33 -0
  372. package/src/v4/events/aws-reactivate-stream-session-task.ts +31 -0
  373. package/src/v4/events/aws-stream-session-active.ts +36 -0
  374. package/src/v4/events/aws-stream-session-reactivation-started.ts +31 -0
  375. package/src/v4/events/cloud-machine-auth-ready.ts +38 -0
  376. package/src/v4/events/cloud-session-allocated.ts +34 -0
  377. package/src/v4/events/cloud-session-created.ts +20 -0
  378. package/src/v4/events/cloud-session-ended.ts +34 -0
  379. package/src/v4/events/cloud-session-optimal-region-selected.ts +29 -0
  380. package/src/v4/events/cloud-session-provider-requested.ts +37 -0
  381. package/src/v4/events/cloud-session-timeout-task.ts +26 -0
  382. package/src/v4/events/create-game-resource-request.ts +46 -0
  383. package/src/v4/events/create-games-request.ts +29 -0
  384. package/src/v4/events/create-ludeos-request.ts +29 -0
  385. package/src/v4/events/create-machine-resource-batch-request.ts +44 -0
  386. package/src/v4/events/create-machine-resource-request.ts +43 -0
  387. package/src/v4/events/create-machines-request.ts +32 -0
  388. package/src/v4/events/deallocate-machine-request.ts +39 -0
  389. package/src/v4/events/game-allocated-response.ts +28 -0
  390. package/src/v4/events/game-allocation-failed-response.ts +33 -0
  391. package/src/v4/events/game-available.ts +26 -0
  392. package/src/v4/events/game-resource-allocated-response.ts +44 -0
  393. package/src/v4/events/game-resource-allocation-failed-response.ts +40 -0
  394. package/src/v4/events/game-resource-allocation-timeout-task.ts +26 -0
  395. package/src/v4/events/game-resource-created-response.ts +43 -0
  396. package/src/v4/events/game-resource-creation-failed-response.ts +36 -0
  397. package/src/v4/events/game-resource-ready-for-creation-failed.ts +35 -0
  398. package/src/v4/events/game-resource-ready-for-creation.ts +37 -0
  399. package/src/v4/events/game-resource-status-changed.ts +47 -0
  400. package/src/v4/events/game-resource-terminated-response.ts +40 -0
  401. package/src/v4/events/game-resource-termination-failed-response.ts +43 -0
  402. package/src/v4/events/game-terminated-response.ts +36 -0
  403. package/src/v4/events/game-termination-failed-response.ts +39 -0
  404. package/src/v4/events/gameplay-waiting-for-user.ts +28 -0
  405. package/src/v4/events/index.ts +84 -0
  406. package/src/v4/events/invalid-game-resource.ts +34 -0
  407. package/src/v4/events/load-ludeo-resource.ts +28 -0
  408. package/src/v4/events/ludeo-allocated-response.ts +28 -0
  409. package/src/v4/events/ludeo-allocation-failed.ts +28 -0
  410. package/src/v4/events/ludeo-obtained-timeout-task.ts +23 -0
  411. package/src/v4/events/ludeo-resource-allocated-response.ts +29 -0
  412. package/src/v4/events/ludeo-resource-allocation-failed.ts +29 -0
  413. package/src/v4/events/ludeo-resource-loaded.ts +28 -0
  414. package/src/v4/events/ludeo-resource-loading-failed.ts +28 -0
  415. package/src/v4/events/machine-allocated-response.ts +49 -0
  416. package/src/v4/events/machine-allocation-failed-response.ts +39 -0
  417. package/src/v4/events/machine-deallocated-response.ts +42 -0
  418. package/src/v4/events/machine-deallocation-failed-response.ts +46 -0
  419. package/src/v4/events/machine-pool-resizing-task.ts +35 -0
  420. package/src/v4/events/machine-resource-batch-creation-failed-response.ts +47 -0
  421. package/src/v4/events/machine-resource-batch-termination-failed-response.ts +49 -0
  422. package/src/v4/events/machine-resource-created-response.ts +33 -0
  423. package/src/v4/events/machine-resource-creation-failed-response.ts +36 -0
  424. package/src/v4/events/machine-resource-terminated-response.ts +33 -0
  425. package/src/v4/events/machine-resource-updated.ts +32 -0
  426. package/src/v4/events/monitor-game-resource-task.ts +36 -0
  427. package/src/v4/events/pool-status.ts +41 -0
  428. package/src/v4/events/prepare-cloud-machine-auth-failed.ts +34 -0
  429. package/src/v4/events/prepare-cloud-machine-auth.ts +43 -0
  430. package/src/v4/events/send-pools-to-predictor.ts +9 -0
  431. package/src/v4/events/set-pool.ts +22 -0
  432. package/src/v4/events/set-pools-state.ts +55 -0
  433. package/src/v4/events/swap-cloud-user-completed.ts +31 -0
  434. package/src/v4/events/swap-cloud-user-request-failed.ts +42 -0
  435. package/src/v4/events/swap-cloud-user-request.ts +36 -0
  436. package/src/v4/events/swap-to-default-user-completed.ts +28 -0
  437. package/src/v4/events/swap-to-default-user.ts +28 -0
  438. package/src/v4/events/terminate-cloud-session-request.ts +29 -0
  439. package/src/v4/events/terminate-game-request.ts +40 -0
  440. package/src/v4/events/terminate-game-resource-request.ts +59 -0
  441. package/src/v4/events/terminate-games-request.ts +32 -0
  442. package/src/v4/events/terminate-machine-resource-batch-request.ts +44 -0
  443. package/src/v4/events/terminate-machine-resource-request.ts +43 -0
  444. package/src/v4/events/terminate-machines-request.ts +32 -0
  445. package/src/v4/events/terminate-stale-games.ts +28 -0
  446. package/src/v4/events/terminate-stale-machines.ts +28 -0
  447. package/src/v4/events/terminate-stale-resources-task.ts +16 -0
  448. package/src/v4/events/token-required.event.ts +61 -0
  449. package/src/v4/index.ts +3 -0
  450. package/src/v4/types/cloud.ts +155 -0
  451. package/src/v4/types/index.ts +2 -0
  452. package/src/v4/types/pools/configuration/attributes/base.ts +15 -0
  453. package/src/v4/types/pools/configuration/attributes/game.ts +7 -0
  454. package/src/v4/types/pools/configuration/attributes/index.ts +4 -0
  455. package/src/v4/types/pools/configuration/attributes/ludeo.ts +7 -0
  456. package/src/v4/types/pools/configuration/attributes/machine.ts +8 -0
  457. package/src/v4/types/pools/configuration/base.ts +36 -0
  458. package/src/v4/types/pools/configuration/game.ts +20 -0
  459. package/src/v4/types/pools/configuration/index.ts +6 -0
  460. package/src/v4/types/pools/configuration/ludeo.ts +20 -0
  461. package/src/v4/types/pools/configuration/machine.ts +14 -0
  462. package/src/v4/types/pools/configuration/type.ts +17 -0
  463. package/src/v4/types/pools/index.ts +5 -0
  464. package/src/v4/types/pools/pool.ts +14 -0
  465. package/src/v4/types/pools/resource/base.ts +26 -0
  466. package/src/v4/types/pools/resource/game.ts +17 -0
  467. package/src/v4/types/pools/resource/index.ts +7 -0
  468. package/src/v4/types/pools/resource/ludeo.ts +9 -0
  469. package/src/v4/types/pools/resource/machine.ts +12 -0
  470. package/src/v4/types/pools/resource/status.ts +10 -0
  471. package/src/v4/types/pools/resource/statusMap.ts +3 -0
  472. package/src/v4/types/pools/resource/type.ts +16 -0
  473. package/src/v4/types/pools/status.ts +6 -0
  474. package/src/v4/types/pools/type.ts +5 -0
@@ -0,0 +1,41 @@
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.LudeoResourceAllocatedResponse = exports.LudeoResourceAllocatedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class LudeoResourceAllocatedResponsePayload {
18
+ }
19
+ exports.LudeoResourceAllocatedResponsePayload = LudeoResourceAllocatedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], LudeoResourceAllocatedResponsePayload.prototype, "ludeoResourceId", void 0);
24
+ class LudeoResourceAllocatedResponse extends ludeo_event_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(LudeoResourceAllocatedResponse.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.LudeoResourceAllocatedResponse = LudeoResourceAllocatedResponse;
32
+ LudeoResourceAllocatedResponse.EVENT_NAME = "cloud-resources.ludeo-resource-allocated-response";
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
35
+ __metadata("design:type", contexts_1.CloudResourceContext)
36
+ ], LudeoResourceAllocatedResponse.prototype, "context", void 0);
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoResourceAllocatedResponsePayload),
39
+ __metadata("design:type", LudeoResourceAllocatedResponsePayload)
40
+ ], LudeoResourceAllocatedResponse.prototype, "payload", void 0);
41
+ //# sourceMappingURL=ludeo-resource-allocated-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ludeo-resource-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,qCAAqC;CAGjD;AAHD,sFAGC;AADC;IADC,IAAA,wBAAM,GAAE;;8EACe;AAG1B,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;+DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
@@ -0,0 +1,11 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext } from "../contexts";
3
+ export declare class LudeoResourceAllocationFailedPayload {
4
+ ludeoResourceId: string;
5
+ }
6
+ export declare class LudeoResourceAllocationFailedResponse extends LudeoEvent {
7
+ static readonly EVENT_NAME = "cloud-resources.ludeo-resource-allocation-failed";
8
+ constructor(payload: LudeoResourceAllocationFailedPayload, context: CloudResourceContext);
9
+ context: CloudResourceContext;
10
+ payload: LudeoResourceAllocationFailedPayload;
11
+ }
@@ -0,0 +1,41 @@
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.LudeoResourceAllocationFailedResponse = exports.LudeoResourceAllocationFailedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class LudeoResourceAllocationFailedPayload {
18
+ }
19
+ exports.LudeoResourceAllocationFailedPayload = LudeoResourceAllocationFailedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], LudeoResourceAllocationFailedPayload.prototype, "ludeoResourceId", void 0);
24
+ class LudeoResourceAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(LudeoResourceAllocationFailedResponse.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.LudeoResourceAllocationFailedResponse = LudeoResourceAllocationFailedResponse;
32
+ LudeoResourceAllocationFailedResponse.EVENT_NAME = "cloud-resources.ludeo-resource-allocation-failed";
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
35
+ __metadata("design:type", contexts_1.CloudResourceContext)
36
+ ], LudeoResourceAllocationFailedResponse.prototype, "context", void 0);
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoResourceAllocationFailedPayload),
39
+ __metadata("design:type", LudeoResourceAllocationFailedPayload)
40
+ ], LudeoResourceAllocationFailedResponse.prototype, "payload", void 0);
41
+ //# sourceMappingURL=ludeo-resource-allocation-failed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,oCAAoC;CAGhD;AAHD,oFAGC;AADC;IADC,IAAA,wBAAM,GAAE;;6EACe;AAG1B,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAA6C,EAC7C,OAA6B;QAE7B,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,+BAAoB,CAAC;8BACtC,+BAAoB;sEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;sEAAC"}
@@ -0,0 +1,11 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext } from "../contexts";
3
+ export declare class LudeoResourceLoadedPayload {
4
+ ludeoResourceId: string;
5
+ }
6
+ export declare class LudeoResourceLoaded extends LudeoEvent {
7
+ static readonly EVENT_NAME = "cloud-resources.ludeo-resource-loaded";
8
+ constructor(payload: LudeoResourceLoadedPayload, context: CloudResourceContext);
9
+ context: CloudResourceContext;
10
+ payload: LudeoResourceLoadedPayload;
11
+ }
@@ -0,0 +1,41 @@
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.LudeoResourceLoaded = exports.LudeoResourceLoadedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class LudeoResourceLoadedPayload {
18
+ }
19
+ exports.LudeoResourceLoadedPayload = LudeoResourceLoadedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], LudeoResourceLoadedPayload.prototype, "ludeoResourceId", void 0);
24
+ class LudeoResourceLoaded extends ludeo_event_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(LudeoResourceLoaded.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.LudeoResourceLoaded = LudeoResourceLoaded;
32
+ LudeoResourceLoaded.EVENT_NAME = "cloud-resources.ludeo-resource-loaded";
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
35
+ __metadata("design:type", contexts_1.CloudResourceContext)
36
+ ], LudeoResourceLoaded.prototype, "context", void 0);
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoResourceLoadedPayload),
39
+ __metadata("design:type", LudeoResourceLoadedPayload)
40
+ ], LudeoResourceLoaded.prototype, "payload", void 0);
41
+ //# sourceMappingURL=ludeo-resource-loaded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ludeo-resource-loaded.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-loaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,0BAA0B;CAGtC;AAHD,gEAGC;AADC;IADC,IAAA,wBAAM,GAAE;;mEACe;AAG1B,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YACE,OAAmC,EACnC,OAA6B;QAE7B,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kDAiBC;AAhBiB,8BAAU,GAAG,uCAAuC,CAAC;AAYrE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;oDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
@@ -0,0 +1,11 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext } from "../contexts";
3
+ export declare class LudeoResourceLoadingFailedPayload {
4
+ ludeoResourceId: string;
5
+ }
6
+ export declare class LudeoResourceLoadingFailed extends LudeoEvent {
7
+ static readonly EVENT_NAME = "cloud-resources.ludeo-resource-loading-failed";
8
+ constructor(payload: LudeoResourceLoadingFailedPayload, context: CloudResourceContext);
9
+ context: CloudResourceContext;
10
+ payload: LudeoResourceLoadingFailedPayload;
11
+ }
@@ -0,0 +1,41 @@
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.LudeoResourceLoadingFailed = exports.LudeoResourceLoadingFailedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class LudeoResourceLoadingFailedPayload {
18
+ }
19
+ exports.LudeoResourceLoadingFailedPayload = LudeoResourceLoadingFailedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], LudeoResourceLoadingFailedPayload.prototype, "ludeoResourceId", void 0);
24
+ class LudeoResourceLoadingFailed extends ludeo_event_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(LudeoResourceLoadingFailed.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.LudeoResourceLoadingFailed = LudeoResourceLoadingFailed;
32
+ LudeoResourceLoadingFailed.EVENT_NAME = "cloud-resources.ludeo-resource-loading-failed";
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
35
+ __metadata("design:type", contexts_1.CloudResourceContext)
36
+ ], LudeoResourceLoadingFailed.prototype, "context", void 0);
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoResourceLoadingFailedPayload),
39
+ __metadata("design:type", LudeoResourceLoadingFailedPayload)
40
+ ], LudeoResourceLoadingFailed.prototype, "payload", void 0);
41
+ //# sourceMappingURL=ludeo-resource-loading-failed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ludeo-resource-loading-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-loading-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,iCAAiC;CAG7C;AAHD,8EAGC;AADC;IADC,IAAA,wBAAM,GAAE;;0EACe;AAG1B,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA6B;QAE7B,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,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
@@ -0,0 +1,17 @@
1
+ import { CloudResourceContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ import { CloudProviderSettings, CloudProvider } from "../types";
4
+ export declare class MachineAllocatedResponsePayload {
5
+ machineResourceId: string;
6
+ machinePoolId: string;
7
+ gameResourceId: string;
8
+ gamePoolId: string;
9
+ providerSettings: CloudProviderSettings;
10
+ cloudProvider: CloudProvider;
11
+ }
12
+ export declare class MachineAllocatedResponse extends LudeoEvent {
13
+ static readonly EVENT_NAME = "cloud-pools.machine-allocated-response";
14
+ constructor(payload: MachineAllocatedResponsePayload, context: CloudResourceContext);
15
+ context: CloudResourceContext;
16
+ payload: MachineAllocatedResponsePayload;
17
+ }
@@ -0,0 +1,62 @@
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.MachineAllocatedResponse = exports.MachineAllocatedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ const types_1 = require("../types");
18
+ class MachineAllocatedResponsePayload {
19
+ }
20
+ exports.MachineAllocatedResponsePayload = MachineAllocatedResponsePayload;
21
+ __decorate([
22
+ (0, class_validator_1.IsUUID)(),
23
+ __metadata("design:type", String)
24
+ ], MachineAllocatedResponsePayload.prototype, "machineResourceId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsUUID)(),
27
+ __metadata("design:type", String)
28
+ ], MachineAllocatedResponsePayload.prototype, "machinePoolId", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsUUID)(),
31
+ __metadata("design:type", String)
32
+ ], MachineAllocatedResponsePayload.prototype, "gameResourceId", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsUUID)(),
35
+ __metadata("design:type", String)
36
+ ], MachineAllocatedResponsePayload.prototype, "gamePoolId", void 0);
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
39
+ __metadata("design:type", Object)
40
+ ], MachineAllocatedResponsePayload.prototype, "providerSettings", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsEnum)(types_1.CloudProvider),
43
+ __metadata("design:type", String)
44
+ ], MachineAllocatedResponsePayload.prototype, "cloudProvider", void 0);
45
+ class MachineAllocatedResponse extends ludeo_event_1.LudeoEvent {
46
+ constructor(payload, context) {
47
+ super(MachineAllocatedResponse.EVENT_NAME);
48
+ this.payload = payload;
49
+ this.context = context;
50
+ }
51
+ }
52
+ exports.MachineAllocatedResponse = MachineAllocatedResponse;
53
+ MachineAllocatedResponse.EVENT_NAME = "cloud-pools.machine-allocated-response";
54
+ __decorate([
55
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
56
+ __metadata("design:type", contexts_1.CloudResourceContext)
57
+ ], MachineAllocatedResponse.prototype, "context", void 0);
58
+ __decorate([
59
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineAllocatedResponsePayload),
60
+ __metadata("design:type", MachineAllocatedResponsePayload)
61
+ ], MachineAllocatedResponse.prototype, "payload", void 0);
62
+ //# sourceMappingURL=machine-allocated-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,+BAA+B;CAkB3C;AAlBD,0EAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;0EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;sEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;uEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;mEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;yEACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;sEACO;AAG/B,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YACE,OAAwC,EACxC,OAA6B;QAE7B,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,4DAiBC;AAhBiB,mCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;yDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
@@ -0,0 +1,14 @@
1
+ import { CloudResourceContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class MachineAllocationFailedResponsePayload {
4
+ gameResourceId: string;
5
+ machinePoolId: string;
6
+ gamePoolId: string;
7
+ errorMessage: string;
8
+ }
9
+ export declare class MachineAllocationFailedResponse extends LudeoEvent {
10
+ static readonly EVENT_NAME = "cloud-resources.machine-allocation-failed-response";
11
+ constructor(payload: MachineAllocationFailedResponsePayload, context: CloudResourceContext);
12
+ context: CloudResourceContext;
13
+ payload: MachineAllocationFailedResponsePayload;
14
+ }
@@ -0,0 +1,53 @@
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.MachineAllocationFailedResponse = exports.MachineAllocationFailedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class MachineAllocationFailedResponsePayload {
18
+ }
19
+ exports.MachineAllocationFailedResponsePayload = MachineAllocationFailedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], MachineAllocationFailedResponsePayload.prototype, "gameResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], MachineAllocationFailedResponsePayload.prototype, "machinePoolId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], MachineAllocationFailedResponsePayload.prototype, "gamePoolId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], MachineAllocationFailedResponsePayload.prototype, "errorMessage", void 0);
36
+ class MachineAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
37
+ constructor(payload, context) {
38
+ super(MachineAllocationFailedResponse.EVENT_NAME);
39
+ this.payload = payload;
40
+ this.context = context;
41
+ }
42
+ }
43
+ exports.MachineAllocationFailedResponse = MachineAllocationFailedResponse;
44
+ MachineAllocationFailedResponse.EVENT_NAME = "cloud-resources.machine-allocation-failed-response";
45
+ __decorate([
46
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
47
+ __metadata("design:type", contexts_1.CloudResourceContext)
48
+ ], MachineAllocationFailedResponse.prototype, "context", void 0);
49
+ __decorate([
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineAllocationFailedResponsePayload),
51
+ __metadata("design:type", MachineAllocationFailedResponsePayload)
52
+ ], MachineAllocationFailedResponse.prototype, "payload", void 0);
53
+ //# sourceMappingURL=machine-allocation-failed-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,sCAAsC;CAYlD;AAZD,wFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;8EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;6EACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;0EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;4EACU;AAGvB,MAAa,+BAAgC,SAAQ,wBAAU;IAI7D,YACE,OAA+C,EAC/C,OAA6B;QAE7B,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,0EAkBC;AAjBiB,0CAAU,GACxB,oDAAoD,CAAC;AAYvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;gEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;8BACxD,sCAAsC;gEAAC"}
@@ -0,0 +1,14 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext, CloudSessionContext } from "../contexts";
3
+ export declare class MachineDeallocatedResponsePayload {
4
+ machinePoolId: string;
5
+ machineResourceId: string;
6
+ gamePoolId: string;
7
+ gameResourceId: string;
8
+ }
9
+ export declare class MachineDeallocatedResponse extends LudeoEvent {
10
+ static readonly EVENT_NAME = "cloud-pools.machine-deallocated-response";
11
+ constructor(payload: MachineDeallocatedResponsePayload, context: CloudSessionContext | CloudResourceContext);
12
+ context: CloudSessionContext | CloudResourceContext;
13
+ payload: MachineDeallocatedResponsePayload;
14
+ }
@@ -0,0 +1,53 @@
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.MachineDeallocatedResponse = exports.MachineDeallocatedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class MachineDeallocatedResponsePayload {
18
+ }
19
+ exports.MachineDeallocatedResponsePayload = MachineDeallocatedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], MachineDeallocatedResponsePayload.prototype, "machinePoolId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], MachineDeallocatedResponsePayload.prototype, "machineResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], MachineDeallocatedResponsePayload.prototype, "gamePoolId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsUUID)(),
34
+ __metadata("design:type", String)
35
+ ], MachineDeallocatedResponsePayload.prototype, "gameResourceId", void 0);
36
+ class MachineDeallocatedResponse extends ludeo_event_1.LudeoEvent {
37
+ constructor(payload, context) {
38
+ super(MachineDeallocatedResponse.EVENT_NAME);
39
+ this.payload = payload;
40
+ this.context = context;
41
+ }
42
+ }
43
+ exports.MachineDeallocatedResponse = MachineDeallocatedResponse;
44
+ MachineDeallocatedResponse.EVENT_NAME = "cloud-pools.machine-deallocated-response";
45
+ __decorate([
46
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(contexts_1.getCloudContextType),
47
+ __metadata("design:type", Object)
48
+ ], MachineDeallocatedResponse.prototype, "context", void 0);
49
+ __decorate([
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineDeallocatedResponsePayload),
51
+ __metadata("design:type", MachineDeallocatedResponsePayload)
52
+ ], MachineDeallocatedResponse.prototype, "payload", void 0);
53
+ //# sourceMappingURL=machine-deallocated-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-deallocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-deallocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAIqB;AAErB,MAAa,iCAAiC;CAY7C;AAZD,8EAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;wEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;qEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGzB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAAmD;QAEnD,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,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;2DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
@@ -0,0 +1,15 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext, CloudSessionContext } from "../contexts";
3
+ export declare class MachineDeallocatedFailedResponsePayload {
4
+ machinePoolId: string;
5
+ machineResourceId: string;
6
+ gamePoolId: string;
7
+ gameResourceId: string;
8
+ errorMessage: string;
9
+ }
10
+ export declare class MachineDeallocationFailedResponse extends LudeoEvent {
11
+ static readonly EVENT_NAME = "cloud-pools.machine-deallocation-failed-response";
12
+ constructor(payload: MachineDeallocatedFailedResponsePayload, context: CloudSessionContext | CloudResourceContext);
13
+ context: CloudSessionContext | CloudResourceContext;
14
+ payload: MachineDeallocatedFailedResponsePayload;
15
+ }
@@ -0,0 +1,57 @@
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.MachineDeallocationFailedResponse = exports.MachineDeallocatedFailedResponsePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class MachineDeallocatedFailedResponsePayload {
18
+ }
19
+ exports.MachineDeallocatedFailedResponsePayload = MachineDeallocatedFailedResponsePayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], MachineDeallocatedFailedResponsePayload.prototype, "machinePoolId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], MachineDeallocatedFailedResponsePayload.prototype, "machineResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], MachineDeallocatedFailedResponsePayload.prototype, "gamePoolId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsUUID)(),
34
+ __metadata("design:type", String)
35
+ ], MachineDeallocatedFailedResponsePayload.prototype, "gameResourceId", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsString)(),
38
+ __metadata("design:type", String)
39
+ ], MachineDeallocatedFailedResponsePayload.prototype, "errorMessage", void 0);
40
+ class MachineDeallocationFailedResponse extends ludeo_event_1.LudeoEvent {
41
+ constructor(payload, context) {
42
+ super(MachineDeallocationFailedResponse.EVENT_NAME);
43
+ this.payload = payload;
44
+ this.context = context;
45
+ }
46
+ }
47
+ exports.MachineDeallocationFailedResponse = MachineDeallocationFailedResponse;
48
+ MachineDeallocationFailedResponse.EVENT_NAME = "cloud-pools.machine-deallocation-failed-response";
49
+ __decorate([
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(contexts_1.getCloudContextType),
51
+ __metadata("design:type", Object)
52
+ ], MachineDeallocationFailedResponse.prototype, "context", void 0);
53
+ __decorate([
54
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineDeallocatedFailedResponsePayload),
55
+ __metadata("design:type", MachineDeallocatedFailedResponsePayload)
56
+ ], MachineDeallocationFailedResponse.prototype, "payload", void 0);
57
+ //# sourceMappingURL=machine-deallocation-failed-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-deallocation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/machine-deallocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAIqB;AAErB,MAAa,uCAAuC;CAenD;AAfD,0FAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;8EACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;+EACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;6EACU;AAGvB,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAgD,EAChD,OAAmD;QAEnD,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,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;kEACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;kEAAC"}
@@ -0,0 +1,13 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudProvider, CloudProviderSettings } from "../types";
3
+ export declare class MachinePoolResizingTaskEventPayload {
4
+ providerSettings: CloudProviderSettings;
5
+ cloudProvider: CloudProvider;
6
+ machinePoolId: string;
7
+ }
8
+ export declare class MachinePoolResizingTask extends LudeoEvent {
9
+ static readonly EVENT_NAME = "cloud-resources.machine-pool-resizing-task";
10
+ constructor(payload: MachinePoolResizingTaskEventPayload, context: never);
11
+ context: never;
12
+ payload: MachinePoolResizingTaskEventPayload;
13
+ }
@@ -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.MachinePoolResizingTask = exports.MachinePoolResizingTaskEventPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const decorators_1 = require("../../decorators");
16
+ const types_1 = require("../types");
17
+ class MachinePoolResizingTaskEventPayload {
18
+ }
19
+ exports.MachinePoolResizingTaskEventPayload = MachinePoolResizingTaskEventPayload;
20
+ __decorate([
21
+ (0, decorators_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
22
+ __metadata("design:type", Object)
23
+ ], MachinePoolResizingTaskEventPayload.prototype, "providerSettings", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsEnum)(types_1.CloudProvider),
26
+ __metadata("design:type", String)
27
+ ], MachinePoolResizingTaskEventPayload.prototype, "cloudProvider", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], MachinePoolResizingTaskEventPayload.prototype, "machinePoolId", void 0);
32
+ class MachinePoolResizingTask extends ludeo_event_1.LudeoEvent {
33
+ constructor(payload, context) {
34
+ super(MachinePoolResizingTask.EVENT_NAME);
35
+ this.payload = payload;
36
+ this.context = context;
37
+ }
38
+ }
39
+ exports.MachinePoolResizingTask = MachinePoolResizingTask;
40
+ MachinePoolResizingTask.EVENT_NAME = "cloud-resources.machine-pool-resizing-task";
41
+ __decorate([
42
+ (0, decorators_1.ValidateNestedType)(() => MachinePoolResizingTaskEventPayload),
43
+ __metadata("design:type", MachinePoolResizingTaskEventPayload)
44
+ ], MachinePoolResizingTask.prototype, "payload", void 0);
45
+ //# sourceMappingURL=machine-pool-resizing-task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine-pool-resizing-task.js","sourceRoot":"","sources":["../../../src/v4/events/machine-pool-resizing-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,iDAAsD;AACtD,oCAIkB;AAElB,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;0EACa;AAGxB,MAAa,uBAAwB,SAAQ,wBAAU;IAIrD,YAAY,OAA4C,EAAE,OAAc;QACtE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AARH,0DAcC;AAbwB,kCAAU,GAC/B,4CAA4C,CAAC;AAWxC;IADN,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BAC9C,mCAAmC;wDAAC"}
@@ -0,0 +1,16 @@
1
+ import { CloudResourceContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ import { CloudProvider, CloudProviderSettings } from "../types";
4
+ export declare class MachineResourceBatchCreationFailedResponsePayload {
5
+ machineResourceIds: string[];
6
+ machinePoolId: string;
7
+ cloudProvider: CloudProvider;
8
+ cloudProviderSettings: CloudProviderSettings;
9
+ errorMessage: string;
10
+ }
11
+ export declare class MachineResourceBatchCreationFailedResponse extends LudeoEvent {
12
+ static readonly EVENT_NAME = "cloud-pools.machine-resource-batch-creation-failed-resposne";
13
+ constructor(payload: MachineResourceBatchCreationFailedResponsePayload, context: CloudResourceContext);
14
+ context: CloudResourceContext;
15
+ payload: MachineResourceBatchCreationFailedResponsePayload;
16
+ }