@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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
4
|
+
export declare class PrepareCloudMachineAuthPayload {
|
|
5
|
+
cloudUserId: string;
|
|
6
|
+
authTokenId: string;
|
|
7
|
+
resourceId: string;
|
|
8
|
+
gameId: string;
|
|
9
|
+
gameResourceCreationPayload?: CreateGameResourceRequestPayload;
|
|
10
|
+
}
|
|
11
|
+
export declare class PrepareCloudMachineAuth extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "cloud-pools.prepare-cloud-machine-auth";
|
|
13
|
+
constructor(payload: PrepareCloudMachineAuthPayload, context: CloudResourceContext);
|
|
14
|
+
payload: PrepareCloudMachineAuthPayload;
|
|
15
|
+
context: CloudResourceContext;
|
|
16
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.PrepareCloudMachineAuth = exports.PrepareCloudMachineAuthPayload = 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 infra_1 = require("../../infra");
|
|
16
|
+
const contexts_1 = require("../contexts");
|
|
17
|
+
const create_game_resource_request_1 = require("./create-game-resource-request");
|
|
18
|
+
class PrepareCloudMachineAuthPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.PrepareCloudMachineAuthPayload = PrepareCloudMachineAuthPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], PrepareCloudMachineAuthPayload.prototype, "cloudUserId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], PrepareCloudMachineAuthPayload.prototype, "authTokenId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsUUID)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PrepareCloudMachineAuthPayload.prototype, "resourceId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsUUID)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], PrepareCloudMachineAuthPayload.prototype, "gameId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
|
|
41
|
+
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
42
|
+
], PrepareCloudMachineAuthPayload.prototype, "gameResourceCreationPayload", void 0);
|
|
43
|
+
class PrepareCloudMachineAuth extends infra_1.LudeoEvent {
|
|
44
|
+
constructor(payload, context) {
|
|
45
|
+
super(PrepareCloudMachineAuth.EVENT_NAME);
|
|
46
|
+
this.payload = payload;
|
|
47
|
+
this.context = context;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.PrepareCloudMachineAuth = PrepareCloudMachineAuth;
|
|
51
|
+
PrepareCloudMachineAuth.EVENT_NAME = "cloud-pools.prepare-cloud-machine-auth";
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => PrepareCloudMachineAuthPayload),
|
|
54
|
+
__metadata("design:type", PrepareCloudMachineAuthPayload)
|
|
55
|
+
], PrepareCloudMachineAuth.prototype, "payload", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
58
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
59
|
+
], PrepareCloudMachineAuth.prototype, "context", void 0);
|
|
60
|
+
//# sourceMappingURL=prepare-cloud-machine-auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v4/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAa,8BAA8B;CAiB1C;AAjBD,wEAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC7B,+DAAgC;mFAAC;AAGjE,MAAa,uBAAwB,SAAQ,kBAAU;IAGrD,YACE,OAAuC,EACvC,OAA6B;QAE7B,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0DAiBC;AAhBiB,kCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;wDAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendPoolsToPredictorEvent = void 0;
|
|
4
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
5
|
+
class SendPoolsToPredictorEvent extends ludeo_event_1.LudeoEvent {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(SendPoolsToPredictorEvent.EVENT_NAME);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SendPoolsToPredictorEvent = SendPoolsToPredictorEvent;
|
|
11
|
+
SendPoolsToPredictorEvent.EVENT_NAME = "cloud-pools.send-pools-to-predictor";
|
|
12
|
+
//# sourceMappingURL=send-pools-to-predictor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-pools-to-predictor.js","sourceRoot":"","sources":["../../../src/v4/events/send-pools-to-predictor.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAErD,MAAa,yBAA0B,SAAQ,wBAAU;IAGvD;QACE,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC;;AALH,8DAMC;AALiB,oCAAU,GAAG,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CloudPoolContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { BaseCloudPoolConfiguration } from "../types";
|
|
4
|
+
export declare class SetPoolEvent extends LudeoEvent {
|
|
5
|
+
static readonly EVENT_NAME = "cloud-pools.set-pool";
|
|
6
|
+
constructor(payload: Partial<BaseCloudPoolConfiguration>, context: CloudPoolContext);
|
|
7
|
+
context: CloudPoolContext;
|
|
8
|
+
payload: Partial<BaseCloudPoolConfiguration>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.SetPoolEvent = void 0;
|
|
13
|
+
const contexts_1 = require("../contexts");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
class SetPoolEvent extends ludeo_event_1.LudeoEvent {
|
|
17
|
+
constructor(payload, context) {
|
|
18
|
+
super(SetPoolEvent.EVENT_NAME);
|
|
19
|
+
this.payload = payload;
|
|
20
|
+
this.context = context;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.SetPoolEvent = SetPoolEvent;
|
|
24
|
+
SetPoolEvent.EVENT_NAME = "cloud-pools.set-pool";
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
|
|
27
|
+
__metadata("design:type", contexts_1.CloudPoolContext)
|
|
28
|
+
], SetPoolEvent.prototype, "context", void 0);
|
|
29
|
+
//# sourceMappingURL=set-pool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-pool.js","sourceRoot":"","sources":["../../../src/v4/events/set-pool.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA+C;AAC/C,oGAAqF;AACrF,yDAAqD;AAGrD,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YACE,OAA4C,EAC5C,OAAyB;QAEzB,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oCAgBC;AAfiB,uBAAU,GAAG,sBAAsB,CAAC;AAYpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,2BAAgB;6CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { MachinePoolAttributes, GamePoolAttributes } from "../types";
|
|
3
|
+
export declare class MachinePoolAttributesWithQuantity extends MachinePoolAttributes {
|
|
4
|
+
quantity: number;
|
|
5
|
+
poolId: string;
|
|
6
|
+
reason?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class GamePoolAttributesWithQuantity extends GamePoolAttributes {
|
|
9
|
+
quantity: number;
|
|
10
|
+
poolId: string;
|
|
11
|
+
reason?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class SetPoolsStateEventRequestId {
|
|
14
|
+
poolMonitorRequestId: string;
|
|
15
|
+
platformStatusRequestId: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class SetPoolStateEventPayload {
|
|
18
|
+
machines: MachinePoolAttributesWithQuantity[];
|
|
19
|
+
games: GamePoolAttributesWithQuantity[];
|
|
20
|
+
requestId?: SetPoolsStateEventRequestId;
|
|
21
|
+
}
|
|
22
|
+
export declare class SetPoolsStateEvent extends LudeoEvent {
|
|
23
|
+
static readonly EVENT_NAME = "predictor.set-pools-state";
|
|
24
|
+
constructor(payload: SetPoolStateEventPayload);
|
|
25
|
+
payload: SetPoolStateEventPayload;
|
|
26
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.SetPoolsStateEvent = exports.SetPoolStateEventPayload = exports.SetPoolsStateEventRequestId = exports.GamePoolAttributesWithQuantity = exports.MachinePoolAttributesWithQuantity = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
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 MachinePoolAttributesWithQuantity extends types_1.MachinePoolAttributes {
|
|
18
|
+
}
|
|
19
|
+
exports.MachinePoolAttributesWithQuantity = MachinePoolAttributesWithQuantity;
|
|
20
|
+
class GamePoolAttributesWithQuantity extends types_1.GamePoolAttributes {
|
|
21
|
+
}
|
|
22
|
+
exports.GamePoolAttributesWithQuantity = GamePoolAttributesWithQuantity;
|
|
23
|
+
class SetPoolsStateEventRequestId {
|
|
24
|
+
}
|
|
25
|
+
exports.SetPoolsStateEventRequestId = SetPoolsStateEventRequestId;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsUUID)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SetPoolsStateEventRequestId.prototype, "poolMonitorRequestId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsUUID)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SetPoolsStateEventRequestId.prototype, "platformStatusRequestId", void 0);
|
|
34
|
+
class SetPoolStateEventPayload {
|
|
35
|
+
}
|
|
36
|
+
exports.SetPoolStateEventPayload = SetPoolStateEventPayload;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsArray)(),
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => Array),
|
|
40
|
+
__metadata("design:type", Array)
|
|
41
|
+
], SetPoolStateEventPayload.prototype, "machines", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsArray)(),
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => Array),
|
|
45
|
+
__metadata("design:type", Array)
|
|
46
|
+
], SetPoolStateEventPayload.prototype, "games", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SetPoolsStateEventRequestId),
|
|
50
|
+
__metadata("design:type", SetPoolsStateEventRequestId)
|
|
51
|
+
], SetPoolStateEventPayload.prototype, "requestId", void 0);
|
|
52
|
+
class SetPoolsStateEvent extends ludeo_event_1.LudeoEvent {
|
|
53
|
+
constructor(payload) {
|
|
54
|
+
super(SetPoolsStateEvent.EVENT_NAME);
|
|
55
|
+
this.payload = payload;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.SetPoolsStateEvent = SetPoolsStateEvent;
|
|
59
|
+
SetPoolsStateEvent.EVENT_NAME = "predictor.set-pools-state";
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SetPoolStateEventPayload),
|
|
62
|
+
__metadata("design:type", SetPoolStateEventPayload)
|
|
63
|
+
], SetPoolsStateEvent.prototype, "payload", void 0);
|
|
64
|
+
//# sourceMappingURL=set-pools-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-pools-state.js","sourceRoot":"","sources":["../../../src/v4/events/set-pools-state.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwE;AAExE,yDAAqD;AACrD,oCAAqE;AACrE,oGAAqF;AAErF,MAAa,iCAAkC,SAAQ,6BAAqB;CAM3E;AAND,8EAMC;AAED,MAAa,8BAA+B,SAAQ,0BAAkB;CAMrE;AAND,wEAMC;AAED,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;yEACoB;AAG7B;IADC,IAAA,wBAAM,GAAE;;4EACuB;AAGlC,MAAa,wBAAwB;CAYpC;AAZD,4DAYC;AATC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,KAAwC,CAAC;;0DACrB;AAI9C;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,KAAqC,CAAC;;uDACxB;AAIxC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC1C,2BAA2B;2DAAC;AAG1C,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAiC;QAC3C,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,gDAUC;AATiB,6BAAU,GAAG,2BAA2B,CAAC;AAQzD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;mDAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class SwapCloudUserCompletedPayload {
|
|
4
|
+
connectionId: string;
|
|
5
|
+
sourceService: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class SwapCloudUserCompleted extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-sessions.swap-cloud-user-completed";
|
|
9
|
+
constructor(payload: SwapCloudUserCompletedPayload, context: CloudSessionContext);
|
|
10
|
+
context: CloudSessionContext;
|
|
11
|
+
payload: SwapCloudUserCompletedPayload;
|
|
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.SwapCloudUserCompleted = exports.SwapCloudUserCompletedPayload = void 0;
|
|
13
|
+
const contexts_1 = require("../contexts");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
class SwapCloudUserCompletedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.SwapCloudUserCompletedPayload = SwapCloudUserCompletedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwapCloudUserCompletedPayload.prototype, "connectionId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SwapCloudUserCompletedPayload.prototype, "sourceService", void 0);
|
|
28
|
+
class SwapCloudUserCompleted extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload, context) {
|
|
30
|
+
super(SwapCloudUserCompleted.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.SwapCloudUserCompleted = SwapCloudUserCompleted;
|
|
36
|
+
SwapCloudUserCompleted.EVENT_NAME = "cloud-sessions.swap-cloud-user-completed";
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
40
|
+
], SwapCloudUserCompleted.prototype, "context", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapCloudUserCompletedPayload),
|
|
43
|
+
__metadata("design:type", SwapCloudUserCompletedPayload)
|
|
44
|
+
], SwapCloudUserCompleted.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=swap-cloud-user-completed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap-cloud-user-completed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-completed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AACrF,qDAA2C;AAE3C,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;mEACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;oEACW;AAGxB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA4B;QAE5B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;uDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class SwapCloudUserRequestFailedPayload {
|
|
4
|
+
connectionId: string;
|
|
5
|
+
defaultUserSessionToken: string;
|
|
6
|
+
actualUserSessionToken?: string;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
sourceService: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class SwapCloudUserRequestFailed extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-sessions.swap-cloud-user-request-failed";
|
|
12
|
+
constructor(payload: SwapCloudUserRequestFailedPayload, context: CloudSessionContext);
|
|
13
|
+
context: CloudSessionContext;
|
|
14
|
+
payload: SwapCloudUserRequestFailedPayload;
|
|
15
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.SwapCloudUserRequestFailed = exports.SwapCloudUserRequestFailedPayload = 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 SwapCloudUserRequestFailedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.SwapCloudUserRequestFailedPayload = SwapCloudUserRequestFailedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwapCloudUserRequestFailedPayload.prototype, "connectionId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SwapCloudUserRequestFailedPayload.prototype, "defaultUserSessionToken", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SwapCloudUserRequestFailedPayload.prototype, "actualUserSessionToken", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SwapCloudUserRequestFailedPayload.prototype, "errorMessage", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], SwapCloudUserRequestFailedPayload.prototype, "sourceService", void 0);
|
|
41
|
+
class SwapCloudUserRequestFailed extends ludeo_event_1.LudeoEvent {
|
|
42
|
+
constructor(payload, context) {
|
|
43
|
+
super(SwapCloudUserRequestFailed.EVENT_NAME);
|
|
44
|
+
this.payload = payload;
|
|
45
|
+
this.context = context;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.SwapCloudUserRequestFailed = SwapCloudUserRequestFailed;
|
|
49
|
+
SwapCloudUserRequestFailed.EVENT_NAME = "cloud-sessions.swap-cloud-user-request-failed";
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
52
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
53
|
+
], SwapCloudUserRequestFailed.prototype, "context", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapCloudUserRequestFailed),
|
|
56
|
+
__metadata("design:type", SwapCloudUserRequestFailedPayload)
|
|
57
|
+
], SwapCloudUserRequestFailed.prototype, "payload", void 0);
|
|
58
|
+
//# sourceMappingURL=swap-cloud-user-request-failed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap-cloud-user-request-failed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,iCAAiC;CAgB7C;AAhBD,8EAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;uEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;kFACqB;AAIhC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iFACmB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;uEACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;wEACW;AAGxB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,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;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;2DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,iCAAiC;2DAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class SwapCloudUserRequestPayload {
|
|
4
|
+
connectionId: string;
|
|
5
|
+
defaultUserSessionToken: string;
|
|
6
|
+
actualUserSessionToken?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class SwapCloudUserRequest extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-sessions.swap-cloud-user-request";
|
|
10
|
+
constructor(payload: SwapCloudUserRequestPayload, context: CloudSessionContext);
|
|
11
|
+
context: CloudSessionContext;
|
|
12
|
+
payload: SwapCloudUserRequestPayload;
|
|
13
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.SwapCloudUserRequest = exports.SwapCloudUserRequestPayload = 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 SwapCloudUserRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.SwapCloudUserRequestPayload = SwapCloudUserRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwapCloudUserRequestPayload.prototype, "connectionId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SwapCloudUserRequestPayload.prototype, "defaultUserSessionToken", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SwapCloudUserRequestPayload.prototype, "actualUserSessionToken", void 0);
|
|
33
|
+
class SwapCloudUserRequest extends ludeo_event_1.LudeoEvent {
|
|
34
|
+
constructor(payload, context) {
|
|
35
|
+
super(SwapCloudUserRequest.EVENT_NAME);
|
|
36
|
+
this.payload = payload;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.SwapCloudUserRequest = SwapCloudUserRequest;
|
|
41
|
+
SwapCloudUserRequest.EVENT_NAME = "cloud-sessions.swap-cloud-user-request";
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
44
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
45
|
+
], SwapCloudUserRequest.prototype, "context", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapCloudUserRequestPayload),
|
|
48
|
+
__metadata("design:type", SwapCloudUserRequestPayload)
|
|
49
|
+
], SwapCloudUserRequest.prototype, "payload", void 0);
|
|
50
|
+
//# sourceMappingURL=swap-cloud-user-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap-cloud-user-request.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AARC;IADC,IAAA,wBAAM,GAAE;;iEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;4EACqB;AAIhC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2EACqB;AAGlC,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAA4B;QAE5B,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oDAiBC;AAhBiB,+BAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
export declare class SwapToDefaultUserCompletedPayload {
|
|
4
|
+
ludeoResourceId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SwapToDefaultUserCompleted extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "authentication.swap-to-default-user-completed";
|
|
8
|
+
constructor(payload: SwapToDefaultUserCompletedPayload, context: CloudResourceContext);
|
|
9
|
+
context: CloudResourceContext;
|
|
10
|
+
payload: SwapToDefaultUserCompletedPayload;
|
|
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.SwapToDefaultUserCompleted = exports.SwapToDefaultUserCompletedPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
const contexts_1 = require("../contexts");
|
|
17
|
+
class SwapToDefaultUserCompletedPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.SwapToDefaultUserCompletedPayload = SwapToDefaultUserCompletedPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwapToDefaultUserCompletedPayload.prototype, "ludeoResourceId", void 0);
|
|
24
|
+
class SwapToDefaultUserCompleted extends ludeo_event_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(SwapToDefaultUserCompleted.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.SwapToDefaultUserCompleted = SwapToDefaultUserCompleted;
|
|
32
|
+
SwapToDefaultUserCompleted.EVENT_NAME = "authentication.swap-to-default-user-completed";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
35
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
36
|
+
], SwapToDefaultUserCompleted.prototype, "context", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapToDefaultUserCompletedPayload),
|
|
39
|
+
__metadata("design:type", SwapToDefaultUserCompletedPayload)
|
|
40
|
+
], SwapToDefaultUserCompleted.prototype, "payload", void 0);
|
|
41
|
+
//# sourceMappingURL=swap-to-default-user-completed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap-to-default-user-completed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user-completed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,iCAAiC;CAG7C;AAHD,8EAGC;AADC;IADC,IAAA,wBAAM,GAAE;;0EACe;AAG1B,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA6B;QAE7B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
export declare class SwapToDefaultUserPayload {
|
|
4
|
+
ludeoResourceId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SwapToDefaultUser extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-resources.swap-to-default-user";
|
|
8
|
+
constructor(payload: SwapToDefaultUserPayload, context: CloudResourceContext);
|
|
9
|
+
context: CloudResourceContext;
|
|
10
|
+
payload: SwapToDefaultUserPayload;
|
|
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.SwapToDefaultUser = exports.SwapToDefaultUserPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
|
+
const contexts_1 = require("../contexts");
|
|
17
|
+
class SwapToDefaultUserPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.SwapToDefaultUserPayload = SwapToDefaultUserPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwapToDefaultUserPayload.prototype, "ludeoResourceId", void 0);
|
|
24
|
+
class SwapToDefaultUser extends ludeo_event_1.LudeoEvent {
|
|
25
|
+
constructor(payload, context) {
|
|
26
|
+
super(SwapToDefaultUser.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.SwapToDefaultUser = SwapToDefaultUser;
|
|
32
|
+
SwapToDefaultUser.EVENT_NAME = "cloud-resources.swap-to-default-user";
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
35
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
36
|
+
], SwapToDefaultUser.prototype, "context", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapToDefaultUserPayload),
|
|
39
|
+
__metadata("design:type", SwapToDefaultUserPayload)
|
|
40
|
+
], SwapToDefaultUser.prototype, "payload", void 0);
|
|
41
|
+
//# sourceMappingURL=swap-to-default-user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap-to-default-user.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,wBAAwB;CAGpC;AAHD,4DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;iEACe;AAG1B,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YACE,OAAiC,EACjC,OAA6B;QAE7B,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8CAiBC;AAhBiB,4BAAU,GAAG,sCAAsC,CAAC;AAYpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts/cloud-session-context";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class TerminateCloudSessionRequestPayload {
|
|
4
|
+
status?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class TerminateCloudSessionRequest extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-sessions.terminate-cloud-session-request";
|
|
8
|
+
constructor(payload: TerminateCloudSessionRequestPayload, context: CloudSessionContext);
|
|
9
|
+
context: CloudSessionContext;
|
|
10
|
+
payload: TerminateCloudSessionRequestPayload;
|
|
11
|
+
}
|