@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.
- 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/v3/types/cloud.d.ts +1 -0
- package/dist/v3/types/cloud.js +5 -0
- package/dist/v3/types/cloud.js.map +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/v3/types/cloud.ts +4 -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
package/dist/v3/types/cloud.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export type GameCreationResponse = AWSGameCreationResponse;
|
|
|
38
38
|
export declare class AllocationRequestData {
|
|
39
39
|
cloudProviderRequest: CloudProviderRequest;
|
|
40
40
|
clientIp?: string;
|
|
41
|
+
region?: string;
|
|
41
42
|
}
|
|
42
43
|
export declare enum CloudSessionStatus {
|
|
43
44
|
Created = "created",
|
package/dist/v3/types/cloud.js
CHANGED
|
@@ -87,6 +87,11 @@ __decorate([
|
|
|
87
87
|
(0, class_validator_1.IsOptional)(),
|
|
88
88
|
__metadata("design:type", String)
|
|
89
89
|
], AllocationRequestData.prototype, "clientIp", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_validator_1.IsString)(),
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], AllocationRequestData.prototype, "region", void 0);
|
|
90
95
|
var CloudSessionStatus;
|
|
91
96
|
(function (CloudSessionStatus) {
|
|
92
97
|
CloudSessionStatus["Created"] = "created";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v3/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAKxB,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,mBAAmB;CAS/B;AATD,kDASC;AAID,MAAa,iBAAiB;CAS7B;AATD,8CASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;wDACW;AAGtB;IADC,IAAA,0BAAQ,GAAE;;0DACa;AAGxB;IADC,IAAA,0BAAQ,GAAE;;yDACY;AAKzB,MAAa,2BAA2B;CAgBvC;AAhBD,kEAgBC;AAbC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACc;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACY;AAIvB;IAFC,IAAA,wBAAM,EAAC,aAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;kEACiB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE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}
|
|
@@ -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.CloudPoolContext = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const types_1 = require("../types");
|
|
15
|
+
class CloudPoolContext {
|
|
16
|
+
}
|
|
17
|
+
exports.CloudPoolContext = CloudPoolContext;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CloudPoolContext.prototype, "cloudProvider", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsUUID)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CloudPoolContext.prototype, "poolId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CloudPoolContext.prototype, "streamGroupId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsUUID)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CloudPoolContext.prototype, "poolMonitorRequestId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsUUID)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CloudPoolContext.prototype, "platformStatusRequestId", void 0);
|
|
41
|
+
//# sourceMappingURL=cloud-pool-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-pool-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-pool-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,gBAAgB;CAkB5B;AAlBD,4CAkBC;AAhBC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uDACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;gDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACqB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;iEACwB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CloudProvider } from "../types/cloud";
|
|
2
|
+
export declare class CloudResourceContext {
|
|
3
|
+
streamGroupId?: string;
|
|
4
|
+
streamSessionId?: string;
|
|
5
|
+
cloudProvider: CloudProvider;
|
|
6
|
+
resourceId?: string;
|
|
7
|
+
poolId?: string;
|
|
8
|
+
gamePoolId?: string;
|
|
9
|
+
gameResourceId?: string;
|
|
10
|
+
machinePoolId?: string;
|
|
11
|
+
machineResourceId?: string;
|
|
12
|
+
poolMonitorRequestId?: string;
|
|
13
|
+
platformStatusRequestId?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.CloudResourceContext = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const cloud_1 = require("../types/cloud");
|
|
15
|
+
class CloudResourceContext {
|
|
16
|
+
}
|
|
17
|
+
exports.CloudResourceContext = CloudResourceContext;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CloudResourceContext.prototype, "streamGroupId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CloudResourceContext.prototype, "streamSessionId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsEnum)(cloud_1.CloudProvider),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CloudResourceContext.prototype, "cloudProvider", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CloudResourceContext.prototype, "resourceId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CloudResourceContext.prototype, "poolId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsUUID)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CloudResourceContext.prototype, "gamePoolId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsUUID)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CloudResourceContext.prototype, "gameResourceId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsUUID)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CloudResourceContext.prototype, "machinePoolId", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsUUID)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CloudResourceContext.prototype, "machineResourceId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsUUID)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], CloudResourceContext.prototype, "poolMonitorRequestId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsUUID)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], CloudResourceContext.prototype, "platformStatusRequestId", void 0);
|
|
72
|
+
//# sourceMappingURL=cloud-resource-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CA6ChC;AA7CD,oDA6CC;AA1CC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACc;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACqB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;qEACwB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CloudProvider } from "../types";
|
|
2
|
+
export declare class CloudSessionContext {
|
|
3
|
+
allocationRequestId?: string;
|
|
4
|
+
clientRequestId?: string;
|
|
5
|
+
cloudSessionId: string;
|
|
6
|
+
userId?: string;
|
|
7
|
+
gameId?: string;
|
|
8
|
+
ludeoId?: string;
|
|
9
|
+
cloudProvider: CloudProvider;
|
|
10
|
+
gamePoolId?: string;
|
|
11
|
+
gameResourceId?: string;
|
|
12
|
+
machinePoolId?: string;
|
|
13
|
+
machineResourceId?: string;
|
|
14
|
+
streamGroupId?: string;
|
|
15
|
+
streamSessionId?: string;
|
|
16
|
+
poolId?: string;
|
|
17
|
+
resourceId?: string;
|
|
18
|
+
tabSessionId?: string;
|
|
19
|
+
region?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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.CloudSessionContext = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const types_1 = require("../types");
|
|
15
|
+
class CloudSessionContext {
|
|
16
|
+
}
|
|
17
|
+
exports.CloudSessionContext = CloudSessionContext;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CloudSessionContext.prototype, "allocationRequestId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CloudSessionContext.prototype, "clientRequestId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CloudSessionContext.prototype, "cloudSessionId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CloudSessionContext.prototype, "userId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsUUID)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CloudSessionContext.prototype, "gameId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsUUID)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CloudSessionContext.prototype, "ludeoId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], CloudSessionContext.prototype, "cloudProvider", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsUUID)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CloudSessionContext.prototype, "gamePoolId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsUUID)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], CloudSessionContext.prototype, "gameResourceId", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsUUID)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CloudSessionContext.prototype, "machinePoolId", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsUUID)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CloudSessionContext.prototype, "machineResourceId", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], CloudSessionContext.prototype, "streamGroupId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_validator_1.IsString)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], CloudSessionContext.prototype, "streamSessionId", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsUUID)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], CloudSessionContext.prototype, "poolId", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
(0, class_validator_1.IsUUID)(),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], CloudSessionContext.prototype, "resourceId", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, class_validator_1.IsUUID)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], CloudSessionContext.prototype, "tabSessionId", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], CloudSessionContext.prototype, "region", void 0);
|
|
101
|
+
//# sourceMappingURL=cloud-session-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TypeHelpOptions } from "class-transformer";
|
|
2
|
+
import { CloudPoolContext } from "./cloud-pool-context";
|
|
3
|
+
import { CloudSessionContext } from "./cloud-session-context";
|
|
4
|
+
import { CloudResourceContext } from "./cloud-resource-context";
|
|
5
|
+
export declare const getCloudContextType: ({ object }: TypeHelpOptions) => typeof CloudPoolContext | typeof CloudResourceContext | typeof CloudSessionContext;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCloudContextType = void 0;
|
|
4
|
+
const cloud_pool_context_1 = require("./cloud-pool-context");
|
|
5
|
+
const cloud_session_context_1 = require("./cloud-session-context");
|
|
6
|
+
const cloud_resource_context_1 = require("./cloud-resource-context");
|
|
7
|
+
const getCloudContextType = ({ object }) => {
|
|
8
|
+
const { context } = object;
|
|
9
|
+
if ("cloudSessionId" in context) {
|
|
10
|
+
return cloud_session_context_1.CloudSessionContext;
|
|
11
|
+
}
|
|
12
|
+
if ("resourceId" in context ||
|
|
13
|
+
"gameResourceId" in context ||
|
|
14
|
+
"machineResourceId" in context) {
|
|
15
|
+
return cloud_resource_context_1.CloudResourceContext;
|
|
16
|
+
}
|
|
17
|
+
return cloud_pool_context_1.CloudPoolContext;
|
|
18
|
+
};
|
|
19
|
+
exports.getCloudContextType = getCloudContextType;
|
|
20
|
+
//# sourceMappingURL=getCloudContextType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCloudContextType.js","sourceRoot":"","sources":["../../../src/v4/contexts/getCloudContextType.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AACxD,mEAA8D;AAC9D,qEAAgE;AAEzD,MAAM,mBAAmB,GAAG,CAAC,EAAE,MAAM,EAAmB,EAAE,EAAE;IACjE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAE3B,IAAI,gBAAgB,IAAI,OAAO,EAAE,CAAC;QAChC,OAAO,2CAAmB,CAAC;IAC7B,CAAC;IAED,IACE,YAAY,IAAI,OAAO;QACvB,gBAAgB,IAAI,OAAO;QAC3B,mBAAmB,IAAI,OAAO,EAC9B,CAAC;QACD,OAAO,6CAAoB,CAAC;IAC9B,CAAC;IAED,OAAO,qCAAgB,CAAC;AAC1B,CAAC,CAAC;AAhBW,QAAA,mBAAmB,uBAgB9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
const class_validator_1 = require("class-validator");
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const decorators_1 = require("../../decorators");
|
|
15
|
+
const getCloudContextType_1 = require("./getCloudContextType");
|
|
16
|
+
const cloud_pool_context_1 = require("../contexts/cloud-pool-context");
|
|
17
|
+
const cloud_session_context_1 = require("../contexts/cloud-session-context");
|
|
18
|
+
const cloud_resource_context_1 = require("../contexts/cloud-resource-context");
|
|
19
|
+
describe("getContextType", () => {
|
|
20
|
+
it("should return cloud session context", () => {
|
|
21
|
+
const context = {
|
|
22
|
+
cloudSessionId: "cloudSessionId",
|
|
23
|
+
};
|
|
24
|
+
expect((0, getCloudContextType_1.getCloudContextType)({ object: { context } })).toBe(cloud_session_context_1.CloudSessionContext);
|
|
25
|
+
});
|
|
26
|
+
it("should return cloud resource context", () => {
|
|
27
|
+
const context = {
|
|
28
|
+
resourceId: "resourceId",
|
|
29
|
+
};
|
|
30
|
+
expect((0, getCloudContextType_1.getCloudContextType)({ object: { context } })).toBe(cloud_resource_context_1.CloudResourceContext);
|
|
31
|
+
});
|
|
32
|
+
it("should return cloud pool context", () => {
|
|
33
|
+
const context = {
|
|
34
|
+
poolId: "poolId",
|
|
35
|
+
};
|
|
36
|
+
expect((0, getCloudContextType_1.getCloudContextType)({ object: { context } })).toBe(cloud_pool_context_1.CloudPoolContext);
|
|
37
|
+
});
|
|
38
|
+
describe("class validator", () => {
|
|
39
|
+
class Context {
|
|
40
|
+
constructor(context) {
|
|
41
|
+
this.context = context;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, decorators_1.ValidateNestedType)(getCloudContextType_1.getCloudContextType),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], Context.prototype, "context", void 0);
|
|
48
|
+
it("invalid cloud session context", async () => {
|
|
49
|
+
const invalidCloudSessionContext = {
|
|
50
|
+
cloudSessionId: "BA7C9AEE-955D-4155-9220-A4BCB0F0A106",
|
|
51
|
+
poolId: "E738D912-8D00-4E3B-9F0A-A448C9FEAA73",
|
|
52
|
+
cloudProvider: "invalid",
|
|
53
|
+
};
|
|
54
|
+
const invalidEvent = (0, class_transformer_1.plainToInstance)(Context, {
|
|
55
|
+
context: invalidCloudSessionContext,
|
|
56
|
+
});
|
|
57
|
+
const validationErrors = await (0, class_validator_1.validate)(invalidEvent);
|
|
58
|
+
expect(validationErrors).toHaveLength(1);
|
|
59
|
+
expect(validationErrors[0].children).toHaveLength(1);
|
|
60
|
+
expect(validationErrors[0].children[0].constraints).toEqual({
|
|
61
|
+
isEnum: "cloudProvider must be one of the following values: aws",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
it("valid cloud session context", async () => {
|
|
65
|
+
const validCloudSessionContext = {
|
|
66
|
+
cloudSessionId: "BA7C9AEE-955D-4155-9220-A4BCB0F0A106",
|
|
67
|
+
poolId: "E738D912-8D00-4E3B-9F0A-A448C9FEAA73",
|
|
68
|
+
cloudProvider: "aws",
|
|
69
|
+
};
|
|
70
|
+
const validEvent = (0, class_transformer_1.plainToInstance)(Context, {
|
|
71
|
+
context: validCloudSessionContext,
|
|
72
|
+
});
|
|
73
|
+
const validationErrors = await (0, class_validator_1.validate)(validEvent);
|
|
74
|
+
expect(validationErrors).toHaveLength(0);
|
|
75
|
+
});
|
|
76
|
+
it("invalid cloud resource context", async () => {
|
|
77
|
+
const invalidCloudResourceContext = {
|
|
78
|
+
resourceId: "BA7C9AEE-955D-4155-9220-A4BCB0F0A106",
|
|
79
|
+
poolId: "E738D912-8D00-4E3B-9F0A-A448C9FEAA73",
|
|
80
|
+
cloudProvider: "aws",
|
|
81
|
+
streamGroupId: 123839289312,
|
|
82
|
+
};
|
|
83
|
+
const invalidEvent = (0, class_transformer_1.plainToInstance)(Context, {
|
|
84
|
+
context: invalidCloudResourceContext,
|
|
85
|
+
});
|
|
86
|
+
const validationErrors = await (0, class_validator_1.validate)(invalidEvent);
|
|
87
|
+
expect(validationErrors).toHaveLength(1);
|
|
88
|
+
expect(validationErrors[0].children).toHaveLength(1);
|
|
89
|
+
expect(validationErrors[0].children[0].constraints).toEqual({
|
|
90
|
+
isString: "streamGroupId must be a string",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=getCloudContextType.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCloudContextType.spec.js","sourceRoot":"","sources":["../../../src/v4/contexts/getCloudContextType.spec.ts"],"names":[],"m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EAAE,YAAY;aAC5B,CAAC;YAEF,MAAM,YAAY,GAAG,IAAA,mCAAe,EAAC,OAAO,EAAE;gBAC5C,OAAO,EAAE,2BAA2B;aACrC,CAAC,CAAC;YACH,MAAM,gBAAgB,GAAG,MAAM,IAAA,0BAAQ,EAAC,YAAY,CAAC,CAAC;YAEtD,MAAM,CAAC,gBAAgB,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACzC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACrD,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC;gBAC1D,QAAQ,EAAE,gCAAgC;aAC3C,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cloud-pool-context"), exports);
|
|
18
|
+
__exportStar(require("./cloud-resource-context"), exports);
|
|
19
|
+
__exportStar(require("./cloud-session-context"), exports);
|
|
20
|
+
__exportStar(require("./getCloudContextType"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts/cloud-session-context";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class AllocateCloudSessionFailedPayload {
|
|
4
|
+
error: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class AllocateCloudSessionFailed extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-session-allocator.allocate-cloud-session-failed";
|
|
8
|
+
constructor(payload: AllocateCloudSessionFailedPayload, context: CloudSessionContext);
|
|
9
|
+
payload: AllocateCloudSessionFailedPayload;
|
|
10
|
+
context: CloudSessionContext;
|
|
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.AllocateCloudSessionFailed = exports.AllocateCloudSessionFailedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const cloud_session_context_1 = require("../contexts/cloud-session-context");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
+
class AllocateCloudSessionFailedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.AllocateCloudSessionFailedPayload = AllocateCloudSessionFailedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], AllocateCloudSessionFailedPayload.prototype, "error", void 0);
|
|
24
|
+
class AllocateCloudSessionFailed extends ludeo_event_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(AllocateCloudSessionFailed.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.AllocateCloudSessionFailed = AllocateCloudSessionFailed;
|
|
32
|
+
AllocateCloudSessionFailed.EVENT_NAME = "cloud-session-allocator.allocate-cloud-session-failed";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => AllocateCloudSessionFailedPayload),
|
|
35
|
+
__metadata("design:type", AllocateCloudSessionFailedPayload)
|
|
36
|
+
], AllocateCloudSessionFailed.prototype, "payload", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_session_context_1.CloudSessionContext),
|
|
39
|
+
__metadata("design:type", cloud_session_context_1.CloudSessionContext)
|
|
40
|
+
], AllocateCloudSessionFailed.prototype, "context", void 0);
|
|
41
|
+
//# sourceMappingURL=allocate-cloud-session-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocate-cloud-session-failed.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,iCAAiC;CAG7C;AAHD,8EAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;gEACG;AAEhB,MAAa,0BAA2B,SAAQ,wBAAU;IAIxD,YACE,OAA0C,EAC1C,OAA4B;QAE5B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gEAkBC;AAjBiB,qCAAU,GACxB,uDAAuD,CAAC;AAY1D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;8BACrC,2CAAmB;2DAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
import { CloudSessionContext } from "../contexts";
|
|
3
|
+
import { AllocationRequestData } from "../types";
|
|
4
|
+
export declare class AllocateCloudSessionRequestData {
|
|
5
|
+
requestData: AllocationRequestData;
|
|
6
|
+
}
|
|
7
|
+
export declare class AllocateCloudSessionRequest extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-sessions.allocate-cloud-session-request";
|
|
9
|
+
constructor(payload: AllocateCloudSessionRequestData, context: CloudSessionContext);
|
|
10
|
+
payload: AllocateCloudSessionRequestData;
|
|
11
|
+
context: CloudSessionContext;
|
|
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.AllocateCloudSessionRequest = exports.AllocateCloudSessionRequestData = void 0;
|
|
13
|
+
const infra_1 = require("../../infra");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const decorators_1 = require("../../decorators");
|
|
16
|
+
const types_1 = require("../types");
|
|
17
|
+
class AllocateCloudSessionRequestData {
|
|
18
|
+
}
|
|
19
|
+
exports.AllocateCloudSessionRequestData = AllocateCloudSessionRequestData;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.AllocationRequestData),
|
|
22
|
+
__metadata("design:type", types_1.AllocationRequestData)
|
|
23
|
+
], AllocateCloudSessionRequestData.prototype, "requestData", void 0);
|
|
24
|
+
class AllocateCloudSessionRequest extends infra_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(AllocateCloudSessionRequest.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.AllocateCloudSessionRequest = AllocateCloudSessionRequest;
|
|
32
|
+
AllocateCloudSessionRequest.EVENT_NAME = "cloud-sessions.allocate-cloud-session-request";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, decorators_1.ValidateNestedType)(() => AllocateCloudSessionRequestData),
|
|
35
|
+
__metadata("design:type", AllocateCloudSessionRequestData)
|
|
36
|
+
], AllocateCloudSessionRequest.prototype, "payload", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
40
|
+
], AllocateCloudSessionRequest.prototype, "context", void 0);
|
|
41
|
+
//# sourceMappingURL=allocate-cloud-session-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,0CAAkD;AAClD,iDAAsD;AACtD,oCAAiD;AAEjD,MAAa,+BAA+B;CAG3C;AAHD,0EAGC;AADC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;oEAAC;AAGrC,MAAa,2BAA4B,SAAQ,kBAAU;IAGzD,YACE,OAAwC,EACxC,OAA4B;QAE5B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;4DAAC;AAGzC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;4DAAC"}
|
|
@@ -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 AllocateGameRequestPayload {
|
|
5
|
+
gamePoolId: string;
|
|
6
|
+
requestData: AllocationRequestData;
|
|
7
|
+
}
|
|
8
|
+
export declare class AllocateGameRequest extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-session-allocator.allocate-game-request";
|
|
10
|
+
constructor(payload: AllocateGameRequestPayload, context: CloudSessionContext);
|
|
11
|
+
context: CloudSessionContext;
|
|
12
|
+
payload: AllocateGameRequestPayload;
|
|
13
|
+
}
|