@ludeo/cloud-common 1.1.143 → 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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/contexts/cloud-pool-context.d.ts +8 -0
- package/dist/v4/contexts/cloud-pool-context.js +41 -0
- package/dist/v4/contexts/cloud-pool-context.js.map +1 -0
- package/dist/v4/contexts/cloud-resource-context.d.ts +14 -0
- package/dist/v4/contexts/cloud-resource-context.js +72 -0
- package/dist/v4/contexts/cloud-resource-context.js.map +1 -0
- package/dist/v4/contexts/cloud-session-context.d.ts +20 -0
- package/dist/v4/contexts/cloud-session-context.js +101 -0
- package/dist/v4/contexts/cloud-session-context.js.map +1 -0
- package/dist/v4/contexts/getCloudContextType.d.ts +5 -0
- package/dist/v4/contexts/getCloudContextType.js +20 -0
- package/dist/v4/contexts/getCloudContextType.js.map +1 -0
- package/dist/v4/contexts/getCloudContextType.spec.d.ts +1 -0
- package/dist/v4/contexts/getCloudContextType.spec.js +95 -0
- package/dist/v4/contexts/getCloudContextType.spec.js.map +1 -0
- package/dist/v4/contexts/index.d.ts +4 -0
- package/dist/v4/contexts/index.js +21 -0
- package/dist/v4/contexts/index.js.map +1 -0
- package/dist/v4/events/allocate-cloud-session-failed.d.ts +11 -0
- package/dist/v4/events/allocate-cloud-session-failed.js +41 -0
- package/dist/v4/events/allocate-cloud-session-failed.js.map +1 -0
- package/dist/v4/events/allocate-cloud-session-request.d.ts +12 -0
- package/dist/v4/events/allocate-cloud-session-request.js +41 -0
- package/dist/v4/events/allocate-cloud-session-request.js.map +1 -0
- package/dist/v4/events/allocate-game-request.d.ts +13 -0
- package/dist/v4/events/allocate-game-request.js +46 -0
- package/dist/v4/events/allocate-game-request.js.map +1 -0
- package/dist/v4/events/allocate-game-resource-request.d.ts +17 -0
- package/dist/v4/events/allocate-game-resource-request.js +62 -0
- package/dist/v4/events/allocate-game-resource-request.js.map +1 -0
- package/dist/v4/events/allocate-ludeo-resource-request.d.ts +11 -0
- package/dist/v4/events/allocate-ludeo-resource-request.js +41 -0
- package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -0
- package/dist/v4/events/allocate-machine-request.d.ts +13 -0
- package/dist/v4/events/allocate-machine-request.js +49 -0
- package/dist/v4/events/allocate-machine-request.js.map +1 -0
- package/dist/v4/events/aws-poll-stream-session-task.d.ts +15 -0
- package/dist/v4/events/aws-poll-stream-session-task.js +49 -0
- package/dist/v4/events/aws-poll-stream-session-task.js.map +1 -0
- package/dist/v4/events/aws-reactivate-stream-session-task.d.ts +13 -0
- package/dist/v4/events/aws-reactivate-stream-session-task.js +44 -0
- package/dist/v4/events/aws-reactivate-stream-session-task.js.map +1 -0
- package/dist/v4/events/aws-stream-session-active.d.ts +15 -0
- package/dist/v4/events/aws-stream-session-active.js +51 -0
- package/dist/v4/events/aws-stream-session-active.js.map +1 -0
- package/dist/v4/events/aws-stream-session-reactivation-started.d.ts +13 -0
- package/dist/v4/events/aws-stream-session-reactivation-started.js +44 -0
- package/dist/v4/events/aws-stream-session-reactivation-started.js.map +1 -0
- package/dist/v4/events/cloud-machine-auth-ready.d.ts +16 -0
- package/dist/v4/events/cloud-machine-auth-ready.js +54 -0
- package/dist/v4/events/cloud-machine-auth-ready.js.map +1 -0
- package/dist/v4/events/cloud-session-allocated.d.ts +13 -0
- package/dist/v4/events/cloud-session-allocated.js +47 -0
- package/dist/v4/events/cloud-session-allocated.js.map +1 -0
- package/dist/v4/events/cloud-session-created.d.ts +9 -0
- package/dist/v4/events/cloud-session-created.js +34 -0
- package/dist/v4/events/cloud-session-created.js.map +1 -0
- package/dist/v4/events/cloud-session-ended.d.ts +14 -0
- package/dist/v4/events/cloud-session-ended.js +53 -0
- package/dist/v4/events/cloud-session-ended.js.map +1 -0
- package/dist/v4/events/cloud-session-optimal-region-selected.d.ts +12 -0
- package/dist/v4/events/cloud-session-optimal-region-selected.js +40 -0
- package/dist/v4/events/cloud-session-optimal-region-selected.js.map +1 -0
- package/dist/v4/events/cloud-session-provider-requested.d.ts +14 -0
- package/dist/v4/events/cloud-session-provider-requested.js +51 -0
- package/dist/v4/events/cloud-session-provider-requested.js.map +1 -0
- package/dist/v4/events/cloud-session-timeout-task.d.ts +10 -0
- package/dist/v4/events/cloud-session-timeout-task.js +36 -0
- package/dist/v4/events/cloud-session-timeout-task.js.map +1 -0
- package/dist/v4/events/create-game-resource-request.d.ts +16 -0
- package/dist/v4/events/create-game-resource-request.js +58 -0
- package/dist/v4/events/create-game-resource-request.js.map +1 -0
- package/dist/v4/events/create-games-request.d.ts +12 -0
- package/dist/v4/events/create-games-request.js +45 -0
- package/dist/v4/events/create-games-request.js.map +1 -0
- package/dist/v4/events/create-ludeos-request.d.ts +12 -0
- package/dist/v4/events/create-ludeos-request.js +45 -0
- package/dist/v4/events/create-ludeos-request.js.map +1 -0
- package/dist/v4/events/create-machine-resource-batch-request.d.ts +15 -0
- package/dist/v4/events/create-machine-resource-batch-request.js +54 -0
- package/dist/v4/events/create-machine-resource-batch-request.js.map +1 -0
- package/dist/v4/events/create-machine-resource-request.d.ts +15 -0
- package/dist/v4/events/create-machine-resource-request.js +54 -0
- package/dist/v4/events/create-machine-resource-request.js.map +1 -0
- package/dist/v4/events/create-machines-request.d.ts +12 -0
- package/dist/v4/events/create-machines-request.js +45 -0
- package/dist/v4/events/create-machines-request.js.map +1 -0
- package/dist/v4/events/deallocate-machine-request.d.ts +14 -0
- package/dist/v4/events/deallocate-machine-request.js +53 -0
- package/dist/v4/events/deallocate-machine-request.js.map +1 -0
- package/dist/v4/events/game-allocated-response.d.ts +12 -0
- package/dist/v4/events/game-allocated-response.js +41 -0
- package/dist/v4/events/game-allocated-response.js.map +1 -0
- package/dist/v4/events/game-allocation-failed-response.d.ts +13 -0
- package/dist/v4/events/game-allocation-failed-response.js +46 -0
- package/dist/v4/events/game-allocation-failed-response.js.map +1 -0
- package/dist/v4/events/game-available.d.ts +11 -0
- package/dist/v4/events/game-available.js +41 -0
- package/dist/v4/events/game-available.js.map +1 -0
- package/dist/v4/events/game-resource-allocated-response.d.ts +15 -0
- package/dist/v4/events/game-resource-allocated-response.js +54 -0
- package/dist/v4/events/game-resource-allocated-response.js.map +1 -0
- package/dist/v4/events/game-resource-allocation-failed-response.d.ts +15 -0
- package/dist/v4/events/game-resource-allocation-failed-response.js +54 -0
- package/dist/v4/events/game-resource-allocation-failed-response.js.map +1 -0
- package/dist/v4/events/game-resource-allocation-timeout-task.d.ts +11 -0
- package/dist/v4/events/game-resource-allocation-timeout-task.js +39 -0
- package/dist/v4/events/game-resource-allocation-timeout-task.js.map +1 -0
- package/dist/v4/events/game-resource-created-response.d.ts +15 -0
- package/dist/v4/events/game-resource-created-response.js +54 -0
- package/dist/v4/events/game-resource-created-response.js.map +1 -0
- package/dist/v4/events/game-resource-creation-failed-response.d.ts +13 -0
- package/dist/v4/events/game-resource-creation-failed-response.js +49 -0
- package/dist/v4/events/game-resource-creation-failed-response.js.map +1 -0
- package/dist/v4/events/game-resource-ready-for-creation-failed.d.ts +13 -0
- package/dist/v4/events/game-resource-ready-for-creation-failed.js +49 -0
- package/dist/v4/events/game-resource-ready-for-creation-failed.js.map +1 -0
- package/dist/v4/events/game-resource-ready-for-creation.d.ts +14 -0
- package/dist/v4/events/game-resource-ready-for-creation.js +46 -0
- package/dist/v4/events/game-resource-ready-for-creation.js.map +1 -0
- package/dist/v4/events/game-resource-status-changed.d.ts +17 -0
- package/dist/v4/events/game-resource-status-changed.js +64 -0
- package/dist/v4/events/game-resource-status-changed.js.map +1 -0
- package/dist/v4/events/game-resource-terminated-response.d.ts +13 -0
- package/dist/v4/events/game-resource-terminated-response.js +49 -0
- package/dist/v4/events/game-resource-terminated-response.js.map +1 -0
- package/dist/v4/events/game-resource-termination-failed-response.d.ts +14 -0
- package/dist/v4/events/game-resource-termination-failed-response.js +53 -0
- package/dist/v4/events/game-resource-termination-failed-response.js.map +1 -0
- package/dist/v4/events/game-terminated-response.d.ts +12 -0
- package/dist/v4/events/game-terminated-response.js +45 -0
- package/dist/v4/events/game-terminated-response.js.map +1 -0
- package/dist/v4/events/game-termination-failed-response.d.ts +13 -0
- package/dist/v4/events/game-termination-failed-response.js +49 -0
- package/dist/v4/events/game-termination-failed-response.js.map +1 -0
- package/dist/v4/events/gameplay-waiting-for-user.d.ts +11 -0
- package/dist/v4/events/gameplay-waiting-for-user.js +41 -0
- package/dist/v4/events/gameplay-waiting-for-user.js.map +1 -0
- package/dist/v4/events/index.d.ts +84 -0
- package/dist/v4/events/index.js +101 -0
- package/dist/v4/events/index.js.map +1 -0
- package/dist/v4/events/invalid-game-resource.d.ts +13 -0
- package/dist/v4/events/invalid-game-resource.js +49 -0
- package/dist/v4/events/invalid-game-resource.js.map +1 -0
- package/dist/v4/events/load-ludeo-resource.d.ts +11 -0
- package/dist/v4/events/load-ludeo-resource.js +41 -0
- package/dist/v4/events/load-ludeo-resource.js.map +1 -0
- package/dist/v4/events/ludeo-allocated-response.d.ts +11 -0
- package/dist/v4/events/ludeo-allocated-response.js +41 -0
- package/dist/v4/events/ludeo-allocated-response.js.map +1 -0
- package/dist/v4/events/ludeo-allocation-failed.d.ts +11 -0
- package/dist/v4/events/ludeo-allocation-failed.js +41 -0
- package/dist/v4/events/ludeo-allocation-failed.js.map +1 -0
- package/dist/v4/events/ludeo-obtained-timeout-task.d.ts +10 -0
- package/dist/v4/events/ludeo-obtained-timeout-task.js +36 -0
- package/dist/v4/events/ludeo-obtained-timeout-task.js.map +1 -0
- package/dist/v4/events/ludeo-resource-allocated-response.d.ts +11 -0
- package/dist/v4/events/ludeo-resource-allocated-response.js +41 -0
- package/dist/v4/events/ludeo-resource-allocated-response.js.map +1 -0
- package/dist/v4/events/ludeo-resource-allocation-failed.d.ts +11 -0
- package/dist/v4/events/ludeo-resource-allocation-failed.js +41 -0
- package/dist/v4/events/ludeo-resource-allocation-failed.js.map +1 -0
- package/dist/v4/events/ludeo-resource-loaded.d.ts +11 -0
- package/dist/v4/events/ludeo-resource-loaded.js +41 -0
- package/dist/v4/events/ludeo-resource-loaded.js.map +1 -0
- package/dist/v4/events/ludeo-resource-loading-failed.d.ts +11 -0
- package/dist/v4/events/ludeo-resource-loading-failed.js +41 -0
- package/dist/v4/events/ludeo-resource-loading-failed.js.map +1 -0
- package/dist/v4/events/machine-allocated-response.d.ts +17 -0
- package/dist/v4/events/machine-allocated-response.js +62 -0
- package/dist/v4/events/machine-allocated-response.js.map +1 -0
- package/dist/v4/events/machine-allocation-failed-response.d.ts +14 -0
- package/dist/v4/events/machine-allocation-failed-response.js +53 -0
- package/dist/v4/events/machine-allocation-failed-response.js.map +1 -0
- package/dist/v4/events/machine-deallocated-response.d.ts +14 -0
- package/dist/v4/events/machine-deallocated-response.js +53 -0
- package/dist/v4/events/machine-deallocated-response.js.map +1 -0
- package/dist/v4/events/machine-deallocation-failed-response.d.ts +15 -0
- package/dist/v4/events/machine-deallocation-failed-response.js +57 -0
- package/dist/v4/events/machine-deallocation-failed-response.js.map +1 -0
- package/dist/v4/events/machine-pool-resizing-task.d.ts +13 -0
- package/dist/v4/events/machine-pool-resizing-task.js +45 -0
- package/dist/v4/events/machine-pool-resizing-task.js.map +1 -0
- package/dist/v4/events/machine-resource-batch-creation-failed-response.d.ts +16 -0
- package/dist/v4/events/machine-resource-batch-creation-failed-response.js +58 -0
- package/dist/v4/events/machine-resource-batch-creation-failed-response.js.map +1 -0
- package/dist/v4/events/machine-resource-batch-termination-failed-response.d.ts +16 -0
- package/dist/v4/events/machine-resource-batch-termination-failed-response.js +58 -0
- package/dist/v4/events/machine-resource-batch-termination-failed-response.js.map +1 -0
- package/dist/v4/events/machine-resource-created-response.d.ts +12 -0
- package/dist/v4/events/machine-resource-created-response.js +45 -0
- package/dist/v4/events/machine-resource-created-response.js.map +1 -0
- package/dist/v4/events/machine-resource-creation-failed-response.d.ts +13 -0
- package/dist/v4/events/machine-resource-creation-failed-response.js +49 -0
- package/dist/v4/events/machine-resource-creation-failed-response.js.map +1 -0
- package/dist/v4/events/machine-resource-terminated-response.d.ts +12 -0
- package/dist/v4/events/machine-resource-terminated-response.js +45 -0
- package/dist/v4/events/machine-resource-terminated-response.js.map +1 -0
- package/dist/v4/events/machine-resource-updated.d.ts +12 -0
- package/dist/v4/events/machine-resource-updated.js +45 -0
- package/dist/v4/events/machine-resource-updated.js.map +1 -0
- package/dist/v4/events/monitor-game-resource-task.d.ts +14 -0
- package/dist/v4/events/monitor-game-resource-task.js +48 -0
- package/dist/v4/events/monitor-game-resource-task.js.map +1 -0
- package/dist/v4/events/pool-status.d.ts +20 -0
- package/dist/v4/events/pool-status.js +54 -0
- package/dist/v4/events/pool-status.js.map +1 -0
- package/dist/v4/events/prepare-cloud-machine-auth-failed.d.ts +13 -0
- package/dist/v4/events/prepare-cloud-machine-auth-failed.js +48 -0
- package/dist/v4/events/prepare-cloud-machine-auth-failed.js.map +1 -0
- package/dist/v4/events/prepare-cloud-machine-auth.d.ts +16 -0
- package/dist/v4/events/prepare-cloud-machine-auth.js +60 -0
- package/dist/v4/events/prepare-cloud-machine-auth.js.map +1 -0
- package/dist/v4/events/send-pools-to-predictor.d.ts +5 -0
- package/dist/v4/events/send-pools-to-predictor.js +12 -0
- package/dist/v4/events/send-pools-to-predictor.js.map +1 -0
- package/dist/v4/events/set-pool.d.ts +9 -0
- package/dist/v4/events/set-pool.js +29 -0
- package/dist/v4/events/set-pool.js.map +1 -0
- package/dist/v4/events/set-pools-state.d.ts +26 -0
- package/dist/v4/events/set-pools-state.js +64 -0
- package/dist/v4/events/set-pools-state.js.map +1 -0
- package/dist/v4/events/swap-cloud-user-completed.d.ts +12 -0
- package/dist/v4/events/swap-cloud-user-completed.js +45 -0
- package/dist/v4/events/swap-cloud-user-completed.js.map +1 -0
- package/dist/v4/events/swap-cloud-user-request-failed.d.ts +15 -0
- package/dist/v4/events/swap-cloud-user-request-failed.js +58 -0
- package/dist/v4/events/swap-cloud-user-request-failed.js.map +1 -0
- package/dist/v4/events/swap-cloud-user-request.d.ts +13 -0
- package/dist/v4/events/swap-cloud-user-request.js +50 -0
- package/dist/v4/events/swap-cloud-user-request.js.map +1 -0
- package/dist/v4/events/swap-to-default-user-completed.d.ts +11 -0
- package/dist/v4/events/swap-to-default-user-completed.js +41 -0
- package/dist/v4/events/swap-to-default-user-completed.js.map +1 -0
- package/dist/v4/events/swap-to-default-user.d.ts +11 -0
- package/dist/v4/events/swap-to-default-user.js +41 -0
- package/dist/v4/events/swap-to-default-user.js.map +1 -0
- package/dist/v4/events/terminate-cloud-session-request.d.ts +11 -0
- package/dist/v4/events/terminate-cloud-session-request.js +42 -0
- package/dist/v4/events/terminate-cloud-session-request.js.map +1 -0
- package/dist/v4/events/terminate-game-request.d.ts +13 -0
- package/dist/v4/events/terminate-game-request.js +50 -0
- package/dist/v4/events/terminate-game-request.js.map +1 -0
- package/dist/v4/events/terminate-game-resource-request.d.ts +18 -0
- package/dist/v4/events/terminate-game-resource-request.js +67 -0
- package/dist/v4/events/terminate-game-resource-request.js.map +1 -0
- package/dist/v4/events/terminate-games-request.d.ts +12 -0
- package/dist/v4/events/terminate-games-request.js +45 -0
- package/dist/v4/events/terminate-games-request.js.map +1 -0
- package/dist/v4/events/terminate-machine-resource-batch-request.d.ts +15 -0
- package/dist/v4/events/terminate-machine-resource-batch-request.js +54 -0
- package/dist/v4/events/terminate-machine-resource-batch-request.js.map +1 -0
- package/dist/v4/events/terminate-machine-resource-request.d.ts +15 -0
- package/dist/v4/events/terminate-machine-resource-request.js +54 -0
- package/dist/v4/events/terminate-machine-resource-request.js.map +1 -0
- package/dist/v4/events/terminate-machines-request.d.ts +12 -0
- package/dist/v4/events/terminate-machines-request.js +45 -0
- package/dist/v4/events/terminate-machines-request.js.map +1 -0
- package/dist/v4/events/terminate-stale-games.d.ts +11 -0
- package/dist/v4/events/terminate-stale-games.js +41 -0
- package/dist/v4/events/terminate-stale-games.js.map +1 -0
- package/dist/v4/events/terminate-stale-machines.d.ts +11 -0
- package/dist/v4/events/terminate-stale-machines.js +41 -0
- package/dist/v4/events/terminate-stale-machines.js.map +1 -0
- package/dist/v4/events/terminate-stale-resources-task.d.ts +9 -0
- package/dist/v4/events/terminate-stale-resources-task.js +16 -0
- package/dist/v4/events/terminate-stale-resources-task.js.map +1 -0
- package/dist/v4/events/token-required.event.d.ts +25 -0
- package/dist/v4/events/token-required.event.js +86 -0
- package/dist/v4/events/token-required.event.js.map +1 -0
- package/dist/v4/index.d.ts +3 -0
- package/dist/v4/index.js +7 -0
- package/dist/v4/index.js.map +1 -0
- package/dist/v4/types/cloud.d.ts +68 -0
- package/dist/v4/types/cloud.js +173 -0
- package/dist/v4/types/cloud.js.map +1 -0
- package/dist/v4/types/index.d.ts +2 -0
- package/dist/v4/types/index.js +19 -0
- package/dist/v4/types/index.js.map +1 -0
- package/dist/v4/types/pools/configuration/attributes/base.d.ts +6 -0
- package/dist/v4/types/pools/configuration/attributes/base.js +32 -0
- package/dist/v4/types/pools/configuration/attributes/base.js.map +1 -0
- package/dist/v4/types/pools/configuration/attributes/game.d.ts +4 -0
- package/dist/v4/types/pools/configuration/attributes/game.js +22 -0
- package/dist/v4/types/pools/configuration/attributes/game.js.map +1 -0
- package/dist/v4/types/pools/configuration/attributes/index.d.ts +4 -0
- package/dist/v4/types/pools/configuration/attributes/index.js +21 -0
- package/dist/v4/types/pools/configuration/attributes/index.js.map +1 -0
- package/dist/v4/types/pools/configuration/attributes/ludeo.d.ts +4 -0
- package/dist/v4/types/pools/configuration/attributes/ludeo.js +22 -0
- package/dist/v4/types/pools/configuration/attributes/ludeo.js.map +1 -0
- package/dist/v4/types/pools/configuration/attributes/machine.d.ts +4 -0
- package/dist/v4/types/pools/configuration/attributes/machine.js +22 -0
- package/dist/v4/types/pools/configuration/attributes/machine.js.map +1 -0
- package/dist/v4/types/pools/configuration/base.d.ts +14 -0
- package/dist/v4/types/pools/configuration/base.js +53 -0
- package/dist/v4/types/pools/configuration/base.js.map +1 -0
- package/dist/v4/types/pools/configuration/game.d.ts +9 -0
- package/dist/v4/types/pools/configuration/game.js +37 -0
- package/dist/v4/types/pools/configuration/game.js.map +1 -0
- package/dist/v4/types/pools/configuration/index.d.ts +6 -0
- package/dist/v4/types/pools/configuration/index.js +23 -0
- package/dist/v4/types/pools/configuration/index.js.map +1 -0
- package/dist/v4/types/pools/configuration/ludeo.d.ts +9 -0
- package/dist/v4/types/pools/configuration/ludeo.js +37 -0
- package/dist/v4/types/pools/configuration/ludeo.js.map +1 -0
- package/dist/v4/types/pools/configuration/machine.d.ts +7 -0
- package/dist/v4/types/pools/configuration/machine.js +29 -0
- package/dist/v4/types/pools/configuration/machine.js.map +1 -0
- package/dist/v4/types/pools/configuration/type.d.ts +6 -0
- package/dist/v4/types/pools/configuration/type.js +3 -0
- package/dist/v4/types/pools/configuration/type.js.map +1 -0
- package/dist/v4/types/pools/index.d.ts +5 -0
- package/dist/v4/types/pools/index.js +22 -0
- package/dist/v4/types/pools/index.js.map +1 -0
- package/dist/v4/types/pools/pool.d.ts +12 -0
- package/dist/v4/types/pools/pool.js +7 -0
- package/dist/v4/types/pools/pool.js.map +1 -0
- package/dist/v4/types/pools/resource/base.d.ts +10 -0
- package/dist/v4/types/pools/resource/base.js +45 -0
- package/dist/v4/types/pools/resource/base.js.map +1 -0
- package/dist/v4/types/pools/resource/game.d.ts +6 -0
- package/dist/v4/types/pools/resource/game.js +33 -0
- package/dist/v4/types/pools/resource/game.js.map +1 -0
- package/dist/v4/types/pools/resource/index.d.ts +7 -0
- package/dist/v4/types/pools/resource/index.js +24 -0
- package/dist/v4/types/pools/resource/index.js.map +1 -0
- package/dist/v4/types/pools/resource/ludeo.d.ts +4 -0
- package/dist/v4/types/pools/resource/ludeo.js +23 -0
- package/dist/v4/types/pools/resource/ludeo.js.map +1 -0
- package/dist/v4/types/pools/resource/machine.d.ts +5 -0
- package/dist/v4/types/pools/resource/machine.js +28 -0
- package/dist/v4/types/pools/resource/machine.js.map +1 -0
- package/dist/v4/types/pools/resource/status.d.ts +10 -0
- package/dist/v4/types/pools/resource/status.js +15 -0
- package/dist/v4/types/pools/resource/status.js.map +1 -0
- package/dist/v4/types/pools/resource/statusMap.d.ts +2 -0
- package/dist/v4/types/pools/resource/statusMap.js +3 -0
- package/dist/v4/types/pools/resource/statusMap.js.map +1 -0
- package/dist/v4/types/pools/resource/type.d.ts +6 -0
- package/dist/v4/types/pools/resource/type.js +3 -0
- package/dist/v4/types/pools/resource/type.js.map +1 -0
- package/dist/v4/types/pools/status.d.ts +6 -0
- package/dist/v4/types/pools/status.js +11 -0
- package/dist/v4/types/pools/status.js.map +1 -0
- package/dist/v4/types/pools/type.d.ts +5 -0
- package/dist/v4/types/pools/type.js +10 -0
- package/dist/v4/types/pools/type.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/v4/contexts/cloud-pool-context.ts +22 -0
- package/src/v4/contexts/cloud-resource-context.ts +49 -0
- package/src/v4/contexts/cloud-session-context.ts +71 -0
- package/src/v4/contexts/getCloudContextType.spec.ts +102 -0
- package/src/v4/contexts/getCloudContextType.ts +22 -0
- package/src/v4/contexts/index.ts +4 -0
- package/src/v4/events/allocate-cloud-session-failed.ts +28 -0
- package/src/v4/events/allocate-cloud-session-request.ts +28 -0
- package/src/v4/events/allocate-game-request.ts +33 -0
- package/src/v4/events/allocate-game-resource-request.ts +52 -0
- package/src/v4/events/allocate-ludeo-resource-request.ts +28 -0
- package/src/v4/events/allocate-machine-request.ts +35 -0
- package/src/v4/events/aws-poll-stream-session-task.ts +33 -0
- package/src/v4/events/aws-reactivate-stream-session-task.ts +31 -0
- package/src/v4/events/aws-stream-session-active.ts +36 -0
- package/src/v4/events/aws-stream-session-reactivation-started.ts +31 -0
- package/src/v4/events/cloud-machine-auth-ready.ts +38 -0
- package/src/v4/events/cloud-session-allocated.ts +34 -0
- package/src/v4/events/cloud-session-created.ts +20 -0
- package/src/v4/events/cloud-session-ended.ts +34 -0
- package/src/v4/events/cloud-session-optimal-region-selected.ts +29 -0
- package/src/v4/events/cloud-session-provider-requested.ts +37 -0
- package/src/v4/events/cloud-session-timeout-task.ts +26 -0
- package/src/v4/events/create-game-resource-request.ts +46 -0
- package/src/v4/events/create-games-request.ts +29 -0
- package/src/v4/events/create-ludeos-request.ts +29 -0
- package/src/v4/events/create-machine-resource-batch-request.ts +44 -0
- package/src/v4/events/create-machine-resource-request.ts +43 -0
- package/src/v4/events/create-machines-request.ts +32 -0
- package/src/v4/events/deallocate-machine-request.ts +39 -0
- package/src/v4/events/game-allocated-response.ts +28 -0
- package/src/v4/events/game-allocation-failed-response.ts +33 -0
- package/src/v4/events/game-available.ts +26 -0
- package/src/v4/events/game-resource-allocated-response.ts +44 -0
- package/src/v4/events/game-resource-allocation-failed-response.ts +40 -0
- package/src/v4/events/game-resource-allocation-timeout-task.ts +26 -0
- package/src/v4/events/game-resource-created-response.ts +43 -0
- package/src/v4/events/game-resource-creation-failed-response.ts +36 -0
- package/src/v4/events/game-resource-ready-for-creation-failed.ts +35 -0
- package/src/v4/events/game-resource-ready-for-creation.ts +37 -0
- package/src/v4/events/game-resource-status-changed.ts +47 -0
- package/src/v4/events/game-resource-terminated-response.ts +40 -0
- package/src/v4/events/game-resource-termination-failed-response.ts +43 -0
- package/src/v4/events/game-terminated-response.ts +36 -0
- package/src/v4/events/game-termination-failed-response.ts +39 -0
- package/src/v4/events/gameplay-waiting-for-user.ts +28 -0
- package/src/v4/events/index.ts +84 -0
- package/src/v4/events/invalid-game-resource.ts +34 -0
- package/src/v4/events/load-ludeo-resource.ts +28 -0
- package/src/v4/events/ludeo-allocated-response.ts +28 -0
- package/src/v4/events/ludeo-allocation-failed.ts +28 -0
- package/src/v4/events/ludeo-obtained-timeout-task.ts +23 -0
- package/src/v4/events/ludeo-resource-allocated-response.ts +29 -0
- package/src/v4/events/ludeo-resource-allocation-failed.ts +29 -0
- package/src/v4/events/ludeo-resource-loaded.ts +28 -0
- package/src/v4/events/ludeo-resource-loading-failed.ts +28 -0
- package/src/v4/events/machine-allocated-response.ts +49 -0
- package/src/v4/events/machine-allocation-failed-response.ts +39 -0
- package/src/v4/events/machine-deallocated-response.ts +42 -0
- package/src/v4/events/machine-deallocation-failed-response.ts +46 -0
- package/src/v4/events/machine-pool-resizing-task.ts +35 -0
- package/src/v4/events/machine-resource-batch-creation-failed-response.ts +47 -0
- package/src/v4/events/machine-resource-batch-termination-failed-response.ts +49 -0
- package/src/v4/events/machine-resource-created-response.ts +33 -0
- package/src/v4/events/machine-resource-creation-failed-response.ts +36 -0
- package/src/v4/events/machine-resource-terminated-response.ts +33 -0
- package/src/v4/events/machine-resource-updated.ts +32 -0
- package/src/v4/events/monitor-game-resource-task.ts +36 -0
- package/src/v4/events/pool-status.ts +41 -0
- package/src/v4/events/prepare-cloud-machine-auth-failed.ts +34 -0
- package/src/v4/events/prepare-cloud-machine-auth.ts +43 -0
- package/src/v4/events/send-pools-to-predictor.ts +9 -0
- package/src/v4/events/set-pool.ts +22 -0
- package/src/v4/events/set-pools-state.ts +55 -0
- package/src/v4/events/swap-cloud-user-completed.ts +31 -0
- package/src/v4/events/swap-cloud-user-request-failed.ts +42 -0
- package/src/v4/events/swap-cloud-user-request.ts +36 -0
- package/src/v4/events/swap-to-default-user-completed.ts +28 -0
- package/src/v4/events/swap-to-default-user.ts +28 -0
- package/src/v4/events/terminate-cloud-session-request.ts +29 -0
- package/src/v4/events/terminate-game-request.ts +40 -0
- package/src/v4/events/terminate-game-resource-request.ts +59 -0
- package/src/v4/events/terminate-games-request.ts +32 -0
- package/src/v4/events/terminate-machine-resource-batch-request.ts +44 -0
- package/src/v4/events/terminate-machine-resource-request.ts +43 -0
- package/src/v4/events/terminate-machines-request.ts +32 -0
- package/src/v4/events/terminate-stale-games.ts +28 -0
- package/src/v4/events/terminate-stale-machines.ts +28 -0
- package/src/v4/events/terminate-stale-resources-task.ts +16 -0
- package/src/v4/events/token-required.event.ts +61 -0
- package/src/v4/index.ts +3 -0
- package/src/v4/types/cloud.ts +155 -0
- package/src/v4/types/index.ts +2 -0
- package/src/v4/types/pools/configuration/attributes/base.ts +15 -0
- package/src/v4/types/pools/configuration/attributes/game.ts +7 -0
- package/src/v4/types/pools/configuration/attributes/index.ts +4 -0
- package/src/v4/types/pools/configuration/attributes/ludeo.ts +7 -0
- package/src/v4/types/pools/configuration/attributes/machine.ts +8 -0
- package/src/v4/types/pools/configuration/base.ts +36 -0
- package/src/v4/types/pools/configuration/game.ts +20 -0
- package/src/v4/types/pools/configuration/index.ts +6 -0
- package/src/v4/types/pools/configuration/ludeo.ts +20 -0
- package/src/v4/types/pools/configuration/machine.ts +14 -0
- package/src/v4/types/pools/configuration/type.ts +17 -0
- package/src/v4/types/pools/index.ts +5 -0
- package/src/v4/types/pools/pool.ts +14 -0
- package/src/v4/types/pools/resource/base.ts +26 -0
- package/src/v4/types/pools/resource/game.ts +17 -0
- package/src/v4/types/pools/resource/index.ts +7 -0
- package/src/v4/types/pools/resource/ludeo.ts +9 -0
- package/src/v4/types/pools/resource/machine.ts +12 -0
- package/src/v4/types/pools/resource/status.ts +10 -0
- package/src/v4/types/pools/resource/statusMap.ts +3 -0
- package/src/v4/types/pools/resource/type.ts +16 -0
- package/src/v4/types/pools/status.ts +6 -0
- package/src/v4/types/pools/type.ts +5 -0
|
@@ -0,0 +1,54 @@
|
|
|
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.CreateMachineResourceRequest = exports.CreateMachineResourceRequestPayload = 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 CreateMachineResourceRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.CreateMachineResourceRequestPayload = CreateMachineResourceRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateMachineResourceRequestPayload.prototype, "machineResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateMachineResourceRequestPayload.prototype, "machinePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateMachineResourceRequestPayload.prototype, "cloudProvider", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], CreateMachineResourceRequestPayload.prototype, "cloudProviderSettings", void 0);
|
|
37
|
+
class CreateMachineResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
38
|
+
constructor(payload, context) {
|
|
39
|
+
super(CreateMachineResourceRequest.EVENT_NAME);
|
|
40
|
+
this.payload = payload;
|
|
41
|
+
this.context = context;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateMachineResourceRequest = CreateMachineResourceRequest;
|
|
45
|
+
CreateMachineResourceRequest.EVENT_NAME = "cloud-pools.create-machine-resource-request";
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
49
|
+
], CreateMachineResourceRequest.prototype, "context", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateMachineResourceRequestPayload),
|
|
52
|
+
__metadata("design:type", CreateMachineResourceRequestPayload)
|
|
53
|
+
], CreateMachineResourceRequest.prototype, "payload", void 0);
|
|
54
|
+
//# sourceMappingURL=create-machine-resource-request.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CloudPoolContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class CreateMachinesRequestPayload {
|
|
4
|
+
poolId: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class CreateMachinesRequest extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-pools.create-machines-request";
|
|
9
|
+
constructor(payload: CreateMachinesRequestPayload, context: CloudPoolContext);
|
|
10
|
+
context: CloudPoolContext;
|
|
11
|
+
payload: CreateMachinesRequestPayload;
|
|
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.CreateMachinesRequest = exports.CreateMachinesRequestPayload = 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 CreateMachinesRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.CreateMachinesRequestPayload = CreateMachinesRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateMachinesRequestPayload.prototype, "poolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], CreateMachinesRequestPayload.prototype, "quantity", void 0);
|
|
28
|
+
class CreateMachinesRequest extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload, context) {
|
|
30
|
+
super(CreateMachinesRequest.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.CreateMachinesRequest = CreateMachinesRequest;
|
|
36
|
+
CreateMachinesRequest.EVENT_NAME = "cloud-pools.create-machines-request";
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudPoolContext)
|
|
40
|
+
], CreateMachinesRequest.prototype, "context", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => CreateMachinesRequestPayload),
|
|
43
|
+
__metadata("design:type", CreateMachinesRequestPayload)
|
|
44
|
+
], CreateMachinesRequest.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=create-machines-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-machines-request.js","sourceRoot":"","sources":["../../../src/v4/events/create-machines-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAA+C;AAC/C,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4BAA4B;CAMxC;AAND,oEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;4DACM;AAGf;IADC,IAAA,0BAAQ,GAAE;;8DACM;AAGnB,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAAyB;QAEzB,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,2BAAgB,CAAC;8BAClC,2BAAgB;sDAAC;AAG1B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudSessionContext, CloudResourceContext } from "../contexts";
|
|
3
|
+
export declare class DeallocateMachineRequestPayload {
|
|
4
|
+
machinePoolId: string;
|
|
5
|
+
machineResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
gameResourceId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class DeallocateMachineRequest extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-pools.deallocate-machine-request";
|
|
11
|
+
constructor(payload: DeallocateMachineRequestPayload, context: CloudSessionContext | CloudResourceContext);
|
|
12
|
+
context: CloudSessionContext | CloudResourceContext;
|
|
13
|
+
payload: DeallocateMachineRequestPayload;
|
|
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.DeallocateMachineRequest = exports.DeallocateMachineRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const getCloudContextType_1 = require("../contexts/getCloudContextType");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class DeallocateMachineRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.DeallocateMachineRequestPayload = DeallocateMachineRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], DeallocateMachineRequestPayload.prototype, "machinePoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], DeallocateMachineRequestPayload.prototype, "machineResourceId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], DeallocateMachineRequestPayload.prototype, "gamePoolId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsUUID)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], DeallocateMachineRequestPayload.prototype, "gameResourceId", void 0);
|
|
36
|
+
class DeallocateMachineRequest extends ludeo_event_1.LudeoEvent {
|
|
37
|
+
constructor(payload, context) {
|
|
38
|
+
super(DeallocateMachineRequest.EVENT_NAME);
|
|
39
|
+
this.payload = payload;
|
|
40
|
+
this.context = context;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.DeallocateMachineRequest = DeallocateMachineRequest;
|
|
44
|
+
DeallocateMachineRequest.EVENT_NAME = "cloud-pools.deallocate-machine-request";
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(getCloudContextType_1.getCloudContextType),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], DeallocateMachineRequest.prototype, "context", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => DeallocateMachineRequestPayload),
|
|
51
|
+
__metadata("design:type", DeallocateMachineRequestPayload)
|
|
52
|
+
], DeallocateMachineRequest.prototype, "payload", void 0);
|
|
53
|
+
//# sourceMappingURL=deallocate-machine-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deallocate-machine-request.js","sourceRoot":"","sources":["../../../src/v4/events/deallocate-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,yEAAsE;AAEtE,oGAAqF;AAErF,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;sEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;0EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;mEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;uEACc;AAGzB,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YACE,OAAwC,EACxC,OAAmD;QAEnD,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,yCAAmB,CAAC;;yDACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProviderAllocationData } from "../types";
|
|
4
|
+
export declare class GameAllocatedResponsePayload {
|
|
5
|
+
allocationData: CloudProviderAllocationData;
|
|
6
|
+
}
|
|
7
|
+
export declare class GameAllocatedResponse extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-pools.game-allocated-response";
|
|
9
|
+
constructor(payload: GameAllocatedResponsePayload, context: CloudSessionContext);
|
|
10
|
+
context: CloudSessionContext;
|
|
11
|
+
payload: GameAllocatedResponsePayload;
|
|
12
|
+
}
|
|
@@ -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.GameAllocatedResponse = exports.GameAllocatedResponsePayload = void 0;
|
|
13
|
+
const contexts_1 = require("../contexts");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const types_1 = require("../types");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class GameAllocatedResponsePayload {
|
|
18
|
+
}
|
|
19
|
+
exports.GameAllocatedResponsePayload = GameAllocatedResponsePayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AwsAllocationData),
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
|
+
], GameAllocatedResponsePayload.prototype, "allocationData", void 0);
|
|
24
|
+
class GameAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(GameAllocatedResponse.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.GameAllocatedResponse = GameAllocatedResponse;
|
|
32
|
+
GameAllocatedResponse.EVENT_NAME = "cloud-pools.game-allocated-response";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
35
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
36
|
+
], GameAllocatedResponse.prototype, "context", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameAllocatedResponsePayload),
|
|
39
|
+
__metadata("design:type", GameAllocatedResponsePayload)
|
|
40
|
+
], GameAllocatedResponse.prototype, "payload", void 0);
|
|
41
|
+
//# sourceMappingURL=game-allocated-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAkD;AAClD,yDAAqD;AACrD,oCAA0E;AAC1E,oGAAqF;AAErF,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;oEACA;AAG9C,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA4B;QAE5B,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sDAiBC;AAhBiB,gCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AllocationRequestData } from "../types";
|
|
2
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
export declare class GameAllocationFailedResponsePayload {
|
|
5
|
+
requestData: AllocationRequestData;
|
|
6
|
+
errorMessage: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class GameAllocationFailedResponse extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-pools.game-allocation-failed-response";
|
|
10
|
+
constructor(payload: GameAllocationFailedResponsePayload, context: CloudSessionContext);
|
|
11
|
+
context: CloudSessionContext;
|
|
12
|
+
payload: GameAllocationFailedResponsePayload;
|
|
13
|
+
}
|
|
@@ -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.GameAllocationFailedResponse = exports.GameAllocationFailedResponsePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const types_1 = require("../types");
|
|
15
|
+
const contexts_1 = require("../contexts");
|
|
16
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
|
+
class GameAllocationFailedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.GameAllocationFailedResponsePayload = GameAllocationFailedResponsePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
23
|
+
__metadata("design:type", types_1.AllocationRequestData)
|
|
24
|
+
], GameAllocationFailedResponsePayload.prototype, "requestData", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GameAllocationFailedResponsePayload.prototype, "errorMessage", void 0);
|
|
29
|
+
class GameAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
30
|
+
constructor(payload, context) {
|
|
31
|
+
super(GameAllocationFailedResponse.EVENT_NAME);
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
this.context = context;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GameAllocationFailedResponse = GameAllocationFailedResponse;
|
|
37
|
+
GameAllocationFailedResponse.EVENT_NAME = "cloud-pools.game-allocation-failed-response";
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
40
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
41
|
+
], GameAllocationFailedResponse.prototype, "context", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameAllocationFailedResponsePayload),
|
|
44
|
+
__metadata("design:type", GameAllocationFailedResponsePayload)
|
|
45
|
+
], GameAllocationFailedResponse.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=game-allocation-failed-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,oCAAiD;AACjD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,mCAAmC;CAM/C;AAND,kFAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;wEAAC;AAGnC;IADC,IAAA,0BAAQ,GAAE;;yEACU;AAGvB,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudPoolContext } from "../contexts";
|
|
3
|
+
export declare class GameAvailablePayload {
|
|
4
|
+
gamePoolId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class GameAvailable extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-pools.game-available";
|
|
8
|
+
constructor(payload: GameAvailablePayload, context: CloudPoolContext);
|
|
9
|
+
context: CloudPoolContext;
|
|
10
|
+
payload: GameAvailablePayload;
|
|
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.GameAvailable = exports.GameAvailablePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const contexts_1 = require("../contexts");
|
|
17
|
+
class GameAvailablePayload {
|
|
18
|
+
}
|
|
19
|
+
exports.GameAvailablePayload = GameAvailablePayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], GameAvailablePayload.prototype, "gamePoolId", void 0);
|
|
24
|
+
class GameAvailable extends ludeo_event_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(GameAvailable.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.GameAvailable = GameAvailable;
|
|
32
|
+
GameAvailable.EVENT_NAME = "cloud-pools.game-available";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
|
|
35
|
+
__metadata("design:type", contexts_1.CloudPoolContext)
|
|
36
|
+
], GameAvailable.prototype, "context", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameAvailablePayload),
|
|
39
|
+
__metadata("design:type", GameAvailablePayload)
|
|
40
|
+
], GameAvailable.prototype, "payload", void 0);
|
|
41
|
+
//# sourceMappingURL=game-available.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-available.js","sourceRoot":"","sources":["../../../src/v4/events/game-available.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,oGAAqF;AACrF,yDAAqD;AACrD,0CAA+C;AAE/C,MAAa,oBAAoB;CAGhC;AAHD,oDAGC;AADC;IADC,IAAA,wBAAM,GAAE;;wDACU;AAGrB,MAAa,aAAc,SAAQ,wBAAU;IAG3C,YAAY,OAA6B,EAAE,OAAyB;QAClE,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,4BAA4B,CAAC;AAS1D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,2BAAgB;8CAAC;AAG1B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BACtC,oBAAoB;8CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { AllocationRequestData, CloudProviderAllocationData } from "../types";
|
|
4
|
+
export declare class GameResourceAllocatedResponsePayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
allocationData: CloudProviderAllocationData;
|
|
8
|
+
requestData: AllocationRequestData;
|
|
9
|
+
}
|
|
10
|
+
export declare class GameResourceAllocatedResponse extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-resources.game-resource-allocated-response";
|
|
12
|
+
constructor(payload: GameResourceAllocatedResponsePayload, context: CloudSessionContext);
|
|
13
|
+
context: CloudSessionContext;
|
|
14
|
+
payload: GameResourceAllocatedResponsePayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.GameResourceAllocatedResponse = exports.GameResourceAllocatedResponsePayload = 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 GameResourceAllocatedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.GameResourceAllocatedResponsePayload = GameResourceAllocatedResponsePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GameResourceAllocatedResponsePayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GameResourceAllocatedResponsePayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AwsAllocationData),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], GameResourceAllocatedResponsePayload.prototype, "allocationData", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
35
|
+
__metadata("design:type", types_1.AllocationRequestData)
|
|
36
|
+
], GameResourceAllocatedResponsePayload.prototype, "requestData", void 0);
|
|
37
|
+
class GameResourceAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
38
|
+
constructor(payload, context) {
|
|
39
|
+
super(GameResourceAllocatedResponse.EVENT_NAME);
|
|
40
|
+
this.payload = payload;
|
|
41
|
+
this.context = context;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.GameResourceAllocatedResponse = GameResourceAllocatedResponse;
|
|
45
|
+
GameResourceAllocatedResponse.EVENT_NAME = "cloud-resources.game-resource-allocated-response";
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
49
|
+
], GameResourceAllocatedResponse.prototype, "context", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameResourceAllocatedResponsePayload),
|
|
52
|
+
__metadata("design:type", GameResourceAllocatedResponsePayload)
|
|
53
|
+
], GameResourceAllocatedResponse.prototype, "payload", void 0);
|
|
54
|
+
//# sourceMappingURL=game-resource-allocated-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-resource-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;wEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;4EACA;AAG5C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;yEAAC;AAGrC,MAAa,6BAA8B,SAAQ,wBAAU;IAI3D,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sEAkBC;AAjBiB,wCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;8DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AllocationRequestData } from "../types";
|
|
2
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
+
export declare class GameResourceAllocationFailedResponsePayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
requestData: AllocationRequestData;
|
|
9
|
+
}
|
|
10
|
+
export declare class GameResourceAllocationFailedResponse extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-resources.game-resource-allocation-failed-response";
|
|
12
|
+
constructor(payload: GameResourceAllocationFailedResponsePayload, context: CloudSessionContext);
|
|
13
|
+
context: CloudSessionContext;
|
|
14
|
+
payload: GameResourceAllocationFailedResponsePayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.GameResourceAllocationFailedResponse = exports.GameResourceAllocationFailedResponsePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const types_1 = require("../types");
|
|
15
|
+
const contexts_1 = require("../contexts");
|
|
16
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
|
+
class GameResourceAllocationFailedResponsePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.GameResourceAllocationFailedResponsePayload = GameResourceAllocationFailedResponsePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GameResourceAllocationFailedResponsePayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GameResourceAllocationFailedResponsePayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GameResourceAllocationFailedResponsePayload.prototype, "errorMessage", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
35
|
+
__metadata("design:type", types_1.AllocationRequestData)
|
|
36
|
+
], GameResourceAllocationFailedResponsePayload.prototype, "requestData", void 0);
|
|
37
|
+
class GameResourceAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
38
|
+
constructor(payload, context) {
|
|
39
|
+
super(GameResourceAllocationFailedResponse.EVENT_NAME);
|
|
40
|
+
this.payload = payload;
|
|
41
|
+
this.context = context;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.GameResourceAllocationFailedResponse = GameResourceAllocationFailedResponse;
|
|
45
|
+
GameResourceAllocationFailedResponse.EVENT_NAME = "cloud-resources.game-resource-allocation-failed-response";
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
49
|
+
], GameResourceAllocationFailedResponse.prototype, "context", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameResourceAllocationFailedResponsePayload),
|
|
52
|
+
__metadata("design:type", GameResourceAllocationFailedResponsePayload)
|
|
53
|
+
], GameResourceAllocationFailedResponse.prototype, "payload", void 0);
|
|
54
|
+
//# sourceMappingURL=game-resource-allocation-failed-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-resource-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,oCAAiD;AACjD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2CAA2C;CAYvD;AAZD,kGAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;mFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;+EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;iFACU;AAGrB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;gFAAC;AAGrC,MAAa,oCAAqC,SAAQ,wBAAU;IAIlE,YACE,OAAoD,EACpD,OAA4B;QAE5B,KAAK,CAAC,oCAAoC,CAAC,UAAU,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oFAkBC;AAjBiB,+CAAU,GACxB,0DAA0D,CAAC;AAY7D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAA2C,CAAC;8BAC7D,2CAA2C;qEAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare class GameResourceAllocationTimeoutTaskPayload {
|
|
3
|
+
gameResourceId: string;
|
|
4
|
+
gamePoolId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class GameResourceAllocationTimeoutTask extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-pools.game-resource-allocation-timeout-task";
|
|
8
|
+
constructor(payload: GameResourceAllocationTimeoutTaskPayload);
|
|
9
|
+
context: never;
|
|
10
|
+
payload: GameResourceAllocationTimeoutTaskPayload;
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.GameResourceAllocationTimeoutTask = exports.GameResourceAllocationTimeoutTaskPayload = 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
|
+
class GameResourceAllocationTimeoutTaskPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.GameResourceAllocationTimeoutTaskPayload = GameResourceAllocationTimeoutTaskPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], GameResourceAllocationTimeoutTaskPayload.prototype, "gameResourceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsUUID)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], GameResourceAllocationTimeoutTaskPayload.prototype, "gamePoolId", void 0);
|
|
27
|
+
class GameResourceAllocationTimeoutTask extends ludeo_event_1.LudeoEvent {
|
|
28
|
+
constructor(payload) {
|
|
29
|
+
super(GameResourceAllocationTimeoutTask.EVENT_NAME);
|
|
30
|
+
this.payload = payload;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.GameResourceAllocationTimeoutTask = GameResourceAllocationTimeoutTask;
|
|
34
|
+
GameResourceAllocationTimeoutTask.EVENT_NAME = "cloud-pools.game-resource-allocation-timeout-task";
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, decorators_1.ValidateNestedType)(() => GameResourceAllocationTimeoutTaskPayload),
|
|
37
|
+
__metadata("design:type", GameResourceAllocationTimeoutTaskPayload)
|
|
38
|
+
], GameResourceAllocationTimeoutTask.prototype, "payload", void 0);
|
|
39
|
+
//# sourceMappingURL=game-resource-allocation-timeout-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-resource-allocation-timeout-task.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-allocation-timeout-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,iDAAsD;AAEtD,MAAa,wCAAwC;CAMpD;AAND,4FAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;gFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;4EACU;AAGrB,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YAAY,OAAiD;QAC3D,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,8EAaC;AAZiB,4CAAU,GACxB,mDAAmD,CAAC;AAUtD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wCAAwC,CAAC;8BAC1D,wCAAwC;kEAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudProvider, CloudResourceProviderSettings } from "../types";
|
|
4
|
+
export declare class GameResourceCreatedResponsePayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
resourceProviderSettings: CloudResourceProviderSettings;
|
|
9
|
+
}
|
|
10
|
+
export declare class GameResourceCreatedResponse extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-resources.game-resource-created-response";
|
|
12
|
+
constructor(payload: GameResourceCreatedResponsePayload, context: CloudResourceContext);
|
|
13
|
+
context: CloudResourceContext;
|
|
14
|
+
payload: GameResourceCreatedResponsePayload;
|
|
15
|
+
}
|