@quadnix/octo 0.0.30 → 0.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/LICENSE +661 -0
- package/README.md +117 -8
- package/dist/app.type.d.ts +277 -19
- package/dist/app.type.js +80 -9
- package/dist/app.type.js.map +1 -1
- package/dist/decorators/action.decorator.d.ts +10 -6
- package/dist/decorators/action.decorator.js +19 -6
- package/dist/decorators/action.decorator.js.map +1 -1
- package/dist/decorators/anchor.decorator.d.ts +12 -5
- package/dist/decorators/anchor.decorator.js +12 -5
- package/dist/decorators/anchor.decorator.js.map +1 -1
- package/dist/decorators/enable-hook.decorator.d.ts +1 -1
- package/dist/decorators/enable-hook.decorator.js +1 -1
- package/dist/decorators/factory.decorator.d.ts +18 -34
- package/dist/decorators/factory.decorator.js +18 -34
- package/dist/decorators/factory.decorator.js.map +1 -1
- package/dist/decorators/model.decorator.d.ts +4 -6
- package/dist/decorators/model.decorator.js +2 -7
- package/dist/decorators/model.decorator.js.map +1 -1
- package/dist/decorators/module.decorator.d.ts +16 -10
- package/dist/decorators/module.decorator.js +16 -10
- package/dist/decorators/module.decorator.js.map +1 -1
- package/dist/decorators/on-event.decorator.d.ts +7 -2
- package/dist/decorators/on-event.decorator.js +5 -0
- package/dist/decorators/on-event.decorator.js.map +1 -1
- package/dist/decorators/resource.decorator.d.ts +50 -1
- package/dist/decorators/resource.decorator.js +38 -1
- package/dist/decorators/resource.decorator.js.map +1 -1
- package/dist/decorators/validate.decorator.d.ts +15 -1
- package/dist/decorators/validate.decorator.js +15 -1
- package/dist/decorators/validate.decorator.js.map +1 -1
- package/dist/errors/container.error.d.ts +18 -0
- package/dist/errors/container.error.js +18 -0
- package/dist/errors/container.error.js.map +1 -1
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/errors/index.js.map +1 -1
- package/dist/errors/module.error.d.ts +6 -0
- package/dist/errors/module.error.js +6 -0
- package/dist/errors/module.error.js.map +1 -1
- package/dist/errors/node.error.d.ts +56 -0
- package/dist/errors/node.error.js +56 -0
- package/dist/errors/node.error.js.map +1 -1
- package/dist/errors/schema.error.d.ts +14 -1
- package/dist/errors/schema.error.js +11 -1
- package/dist/errors/schema.error.js.map +1 -1
- package/dist/errors/terraform.error.d.ts +20 -0
- package/dist/errors/terraform.error.js +24 -0
- package/dist/errors/terraform.error.js.map +1 -0
- package/dist/errors/transaction.error.d.ts +93 -2
- package/dist/errors/transaction.error.js +83 -0
- package/dist/errors/transaction.error.js.map +1 -1
- package/dist/events/action.event.d.ts +8 -4
- package/dist/events/action.event.js +2 -4
- package/dist/events/action.event.js.map +1 -1
- package/dist/events/command.event.d.ts +43 -0
- package/dist/events/command.event.js +33 -0
- package/dist/events/command.event.js.map +1 -0
- package/dist/events/event.model.d.ts +26 -8
- package/dist/events/event.model.js +15 -7
- package/dist/events/event.model.js.map +1 -1
- package/dist/events/hook/commit.hook.event.d.ts +1 -7
- package/dist/events/hook/commit.hook.event.js +0 -6
- package/dist/events/hook/commit.hook.event.js.map +1 -1
- package/dist/events/hook/hook.event.d.ts +1 -3
- package/dist/events/hook/hook.event.js +0 -2
- package/dist/events/hook/hook.event.js.map +1 -1
- package/dist/events/hook/model.hook.event.d.ts +1 -7
- package/dist/events/hook/model.hook.event.js +0 -6
- package/dist/events/hook/model.hook.event.js.map +1 -1
- package/dist/events/hook/resource.hook.event.d.ts +1 -7
- package/dist/events/hook/resource.hook.event.js +0 -6
- package/dist/events/hook/resource.hook.event.js.map +1 -1
- package/dist/events/index.d.ts +5 -0
- package/dist/events/index.js +5 -0
- package/dist/events/index.js.map +1 -1
- package/dist/events/mode-result.event.d.ts +57 -0
- package/dist/events/mode-result.event.js +24 -0
- package/dist/events/mode-result.event.js.map +1 -0
- package/dist/events/mode.event.d.ts +61 -0
- package/dist/events/mode.event.js +32 -0
- package/dist/events/mode.event.js.map +1 -0
- package/dist/events/module.event.d.ts +7 -5
- package/dist/events/module.event.js +3 -4
- package/dist/events/module.event.js.map +1 -1
- package/dist/events/registration.event.d.ts +19 -15
- package/dist/events/registration.event.js +18 -14
- package/dist/events/registration.event.js.map +1 -1
- package/dist/events/serialization.event.d.ts +16 -13
- package/dist/events/serialization.event.js +15 -12
- package/dist/events/serialization.event.js.map +1 -1
- package/dist/events/state.event.d.ts +102 -0
- package/dist/events/state.event.js +69 -0
- package/dist/events/state.event.js.map +1 -0
- package/dist/events/terraform.event.d.ts +78 -0
- package/dist/events/terraform.event.js +55 -0
- package/dist/events/terraform.event.js.map +1 -0
- package/dist/events/transaction.event.d.ts +3 -40
- package/dist/events/transaction.event.js +1 -29
- package/dist/events/transaction.event.js.map +1 -1
- package/dist/functions/container/container.d.ts +54 -13
- package/dist/functions/container/container.js +64 -19
- package/dist/functions/container/container.js.map +1 -1
- package/dist/functions/container/test-container.d.ts +43 -29
- package/dist/functions/container/test-container.js +71 -43
- package/dist/functions/container/test-container.js.map +1 -1
- package/dist/functions/dependency/dependency.d.ts +84 -23
- package/dist/functions/dependency/dependency.js +84 -14
- package/dist/functions/dependency/dependency.js.map +1 -1
- package/dist/functions/diff/aggregate-resource-actions.d.ts +19 -0
- package/dist/functions/diff/aggregate-resource-actions.js +41 -0
- package/dist/functions/diff/aggregate-resource-actions.js.map +1 -0
- package/dist/functions/diff/diff-metadata.d.ts +21 -3
- package/dist/functions/diff/diff-metadata.js +18 -0
- package/dist/functions/diff/diff-metadata.js.map +1 -1
- package/dist/functions/diff/diff.d.ts +68 -7
- package/dist/functions/diff/diff.js +44 -3
- package/dist/functions/diff/diff.js.map +1 -1
- package/dist/functions/hook/commit.hook.d.ts +16 -1
- package/dist/functions/hook/commit.hook.js +21 -6
- package/dist/functions/hook/commit.hook.js.map +1 -1
- package/dist/functions/hook/model-action.hook.d.ts +16 -1
- package/dist/functions/hook/model-action.hook.js +21 -6
- package/dist/functions/hook/model-action.hook.js.map +1 -1
- package/dist/functions/hook/resource-action.hook.d.ts +16 -1
- package/dist/functions/hook/resource-action.hook.js +21 -6
- package/dist/functions/hook/resource-action.hook.js.map +1 -1
- package/dist/functions/node/node-action.abstract.d.ts +23 -2
- package/dist/functions/node/node-action.abstract.js +22 -8
- package/dist/functions/node/node-action.abstract.js.map +1 -1
- package/dist/functions/node/node.abstract.d.ts +56 -5
- package/dist/functions/node/node.abstract.js +106 -22
- package/dist/functions/node/node.abstract.js.map +1 -1
- package/dist/functions/node/node.interface.d.ts +3 -1
- package/dist/functions/schema/schema.d.ts +7 -0
- package/dist/functions/schema/schema.js +10 -1
- package/dist/functions/schema/schema.js.map +1 -1
- package/dist/index.d.ts +12 -6
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.type.d.ts +5 -0
- package/dist/index.type.js +2 -0
- package/dist/index.type.js.map +1 -0
- package/dist/main.d.ts +245 -14
- package/dist/main.js +377 -72
- package/dist/main.js.map +1 -1
- package/dist/models/account/account.model.d.ts +43 -7
- package/dist/models/account/account.model.js +56 -8
- package/dist/models/account/account.model.js.map +1 -1
- package/dist/models/account/account.schema.d.ts +13 -1
- package/dist/models/account/account.schema.js +12 -0
- package/dist/models/account/account.schema.js.map +1 -1
- package/dist/models/app/app.model.d.ts +13 -8
- package/dist/models/app/app.model.js +17 -32
- package/dist/models/app/app.model.js.map +1 -1
- package/dist/models/app/app.schema.d.ts +6 -0
- package/dist/models/app/app.schema.js +6 -0
- package/dist/models/app/app.schema.js.map +1 -1
- package/dist/models/deployment/deployment.model.d.ts +13 -1
- package/dist/models/deployment/deployment.model.js +16 -4
- package/dist/models/deployment/deployment.model.js.map +1 -1
- package/dist/models/deployment/deployment.schema.d.ts +6 -0
- package/dist/models/deployment/deployment.schema.js +6 -0
- package/dist/models/deployment/deployment.schema.js.map +1 -1
- package/dist/models/environment/environment.model.d.ts +15 -3
- package/dist/models/environment/environment.model.js +22 -10
- package/dist/models/environment/environment.model.js.map +1 -1
- package/dist/models/environment/environment.schema.d.ts +2 -0
- package/dist/models/environment/environment.schema.js +2 -0
- package/dist/models/environment/environment.schema.js.map +1 -1
- package/dist/models/execution/execution.model.d.ts +21 -3
- package/dist/models/execution/execution.model.js +47 -29
- package/dist/models/execution/execution.model.js.map +1 -1
- package/dist/models/execution/execution.schema.d.ts +11 -0
- package/dist/models/execution/execution.schema.js +11 -0
- package/dist/models/execution/execution.schema.js.map +1 -1
- package/dist/models/filesystem/filesystem.model.d.ts +27 -1
- package/dist/models/filesystem/filesystem.model.js +30 -4
- package/dist/models/filesystem/filesystem.model.js.map +1 -1
- package/dist/models/filesystem/filesystem.schema.d.ts +5 -0
- package/dist/models/filesystem/filesystem.schema.js +5 -0
- package/dist/models/filesystem/filesystem.schema.js.map +1 -1
- package/dist/models/image/image.model.d.ts +19 -5
- package/dist/models/image/image.model.js +25 -11
- package/dist/models/image/image.model.js.map +1 -1
- package/dist/models/image/image.schema.d.ts +8 -0
- package/dist/models/image/image.schema.js +8 -0
- package/dist/models/image/image.schema.js.map +1 -1
- package/dist/models/model-action.interface.d.ts +17 -4
- package/dist/models/model.abstract.d.ts +96 -1
- package/dist/models/model.abstract.js +107 -8
- package/dist/models/model.abstract.js.map +1 -1
- package/dist/models/model.interface.d.ts +3 -0
- package/dist/models/pipeline/pipeline.model.d.ts +14 -2
- package/dist/models/pipeline/pipeline.model.js +19 -7
- package/dist/models/pipeline/pipeline.model.js.map +1 -1
- package/dist/models/pipeline/pipeline.schema.d.ts +8 -0
- package/dist/models/pipeline/pipeline.schema.js +8 -0
- package/dist/models/pipeline/pipeline.schema.js.map +1 -1
- package/dist/models/region/region.model.d.ts +16 -1
- package/dist/models/region/region.model.js +19 -4
- package/dist/models/region/region.model.js.map +1 -1
- package/dist/models/region/region.schema.d.ts +6 -0
- package/dist/models/region/region.schema.js +6 -0
- package/dist/models/region/region.schema.js.map +1 -1
- package/dist/models/server/server.model.d.ts +15 -3
- package/dist/models/server/server.model.js +18 -6
- package/dist/models/server/server.model.js.map +1 -1
- package/dist/models/server/server.schema.d.ts +3 -1
- package/dist/models/server/server.schema.js +3 -1
- package/dist/models/server/server.schema.js.map +1 -1
- package/dist/models/service/service.model.d.ts +37 -6
- package/dist/models/service/service.model.js +65 -11
- package/dist/models/service/service.model.js.map +1 -1
- package/dist/models/service/service.schema.d.ts +48 -1
- package/dist/models/service/service.schema.js +56 -1
- package/dist/models/service/service.schema.js.map +1 -1
- package/dist/models/subnet/subnet.model.d.ts +27 -3
- package/dist/models/subnet/subnet.model.js +40 -16
- package/dist/models/subnet/subnet.model.js.map +1 -1
- package/dist/models/subnet/subnet.schema.d.ts +9 -0
- package/dist/models/subnet/subnet.schema.js +9 -0
- package/dist/models/subnet/subnet.schema.js.map +1 -1
- package/dist/modes/apply-transaction.d.ts +23 -0
- package/dist/modes/apply-transaction.js +25 -0
- package/dist/modes/apply-transaction.js.map +1 -0
- package/dist/modes/commit.mode.d.ts +54 -0
- package/dist/modes/commit.mode.js +235 -0
- package/dist/modes/commit.mode.js.map +1 -0
- package/dist/modes/generate.mode.d.ts +30 -0
- package/dist/modes/generate.mode.js +50 -0
- package/dist/modes/generate.mode.js.map +1 -0
- package/dist/modes/run-action.mode.d.ts +30 -0
- package/dist/modes/run-action.mode.js +140 -0
- package/dist/modes/run-action.mode.js.map +1 -0
- package/dist/modes/validate.mode.d.ts +186 -0
- package/dist/modes/validate.mode.js +558 -0
- package/dist/modes/validate.mode.js.map +1 -0
- package/dist/modules/module.abstract.d.ts +51 -0
- package/dist/modules/module.abstract.js +36 -0
- package/dist/modules/module.abstract.js.map +1 -1
- package/dist/modules/module.container.d.ts +43 -1
- package/dist/modules/module.container.js +77 -5
- package/dist/modules/module.container.js.map +1 -1
- package/dist/modules/test-module.container.d.ts +139 -25
- package/dist/modules/test-module.container.js +383 -199
- package/dist/modules/test-module.container.js.map +1 -1
- package/dist/overlays/anchor.abstract.d.ts +32 -1
- package/dist/overlays/anchor.abstract.js +42 -11
- package/dist/overlays/anchor.abstract.js.map +1 -1
- package/dist/overlays/anchor.schema.d.ts +21 -0
- package/dist/overlays/anchor.schema.js +21 -0
- package/dist/overlays/anchor.schema.js.map +1 -1
- package/dist/overlays/overlay-data.repository.d.ts +18 -0
- package/dist/overlays/overlay-data.repository.js +18 -0
- package/dist/overlays/overlay-data.repository.js.map +1 -1
- package/dist/overlays/overlay.abstract.d.ts +56 -1
- package/dist/overlays/overlay.abstract.js +79 -20
- package/dist/overlays/overlay.abstract.js.map +1 -1
- package/dist/overlays/overlay.schema.d.ts +20 -0
- package/dist/overlays/overlay.schema.js +20 -0
- package/dist/overlays/overlay.schema.js.map +1 -1
- package/dist/resources/resource-action.interface.d.ts +29 -3
- package/dist/resources/resource-data.repository.d.ts +63 -1
- package/dist/resources/resource-data.repository.js +94 -4
- package/dist/resources/resource-data.repository.js.map +1 -1
- package/dist/resources/resource.abstract.d.ts +163 -6
- package/dist/resources/resource.abstract.js +223 -59
- package/dist/resources/resource.abstract.js.map +1 -1
- package/dist/resources/resource.interface.d.ts +0 -2
- package/dist/resources/resource.schema.d.ts +39 -1
- package/dist/resources/resource.schema.js +38 -0
- package/dist/resources/resource.schema.js.map +1 -1
- package/dist/resources/terraform-resource.abstract.d.ts +44 -0
- package/dist/resources/terraform-resource.abstract.js +45 -0
- package/dist/resources/terraform-resource.abstract.js.map +1 -0
- package/dist/services/event/event.service.d.ts +32 -5
- package/dist/services/event/event.service.js +58 -16
- package/dist/services/event/event.service.js.map +1 -1
- package/dist/services/input/input.service.d.ts +82 -5
- package/dist/services/input/input.service.js +143 -12
- package/dist/services/input/input.service.js.map +1 -1
- package/dist/services/schema-translation/schema-translation.service.d.ts +9 -0
- package/dist/services/schema-translation/schema-translation.service.js +9 -0
- package/dist/services/schema-translation/schema-translation.service.js.map +1 -1
- package/dist/services/serialization/model/model-serialization.service.d.ts +25 -3
- package/dist/services/serialization/model/model-serialization.service.js +113 -62
- package/dist/services/serialization/model/model-serialization.service.js.map +1 -1
- package/dist/services/serialization/resource/resource-serialization.service.d.ts +36 -6
- package/dist/services/serialization/resource/resource-serialization.service.js +77 -28
- package/dist/services/serialization/resource/resource-serialization.service.js.map +1 -1
- package/dist/services/state-management/local.state-provider.d.ts +67 -4
- package/dist/services/state-management/local.state-provider.js +168 -41
- package/dist/services/state-management/local.state-provider.js.map +1 -1
- package/dist/services/state-management/remote.state-provider.d.ts +216 -0
- package/dist/services/state-management/remote.state-provider.js +645 -0
- package/dist/services/state-management/remote.state-provider.js.map +1 -0
- package/dist/services/state-management/state-management.service.d.ts +195 -17
- package/dist/services/state-management/state-management.service.js +259 -10
- package/dist/services/state-management/state-management.service.js.map +1 -1
- package/dist/services/state-management/state-provider.interface.d.ts +98 -3
- package/dist/services/state-management/state-provider.interface.js +14 -1
- package/dist/services/state-management/state-provider.interface.js.map +1 -1
- package/dist/services/state-management/terraform-state.service.d.ts +99 -0
- package/dist/services/state-management/terraform-state.service.js +197 -0
- package/dist/services/state-management/terraform-state.service.js.map +1 -0
- package/dist/services/state-management/test.state-provider.d.ts +42 -4
- package/dist/services/state-management/test.state-provider.js +77 -25
- package/dist/services/state-management/test.state-provider.js.map +1 -1
- package/dist/services/terraform/terraform.service.d.ts +480 -0
- package/dist/services/terraform/terraform.service.js +1082 -0
- package/dist/services/terraform/terraform.service.js.map +1 -0
- package/dist/services/terraform/terraform.type.d.ts +387 -0
- package/dist/services/terraform/terraform.type.js +579 -0
- package/dist/services/terraform/terraform.type.js.map +1 -0
- package/dist/services/transaction/transaction.service.d.ts +110 -10
- package/dist/services/transaction/transaction.service.js +570 -251
- package/dist/services/transaction/transaction.service.js.map +1 -1
- package/dist/services/validation/validation.service.d.ts +15 -3
- package/dist/services/validation/validation.service.js +12 -0
- package/dist/services/validation/validation.service.js.map +1 -1
- package/dist/utilities/array/array.utility.d.ts +3 -0
- package/dist/utilities/array/array.utility.js +3 -0
- package/dist/utilities/array/array.utility.js.map +1 -1
- package/dist/{functions → utilities}/diff/diff.utility.d.ts +19 -3
- package/dist/{functions → utilities}/diff/diff.utility.js +57 -41
- package/dist/utilities/diff/diff.utility.js.map +1 -0
- package/dist/utilities/file/file.utility.d.ts +16 -2
- package/dist/utilities/file/file.utility.js +23 -61
- package/dist/utilities/file/file.utility.js.map +1 -1
- package/dist/utilities/hcl/hcl.utility.d.ts +128 -0
- package/dist/utilities/hcl/hcl.utility.js +402 -0
- package/dist/utilities/hcl/hcl.utility.js.map +1 -0
- package/dist/utilities/http/http.utility.d.ts +57 -0
- package/dist/utilities/http/http.utility.js +98 -0
- package/dist/utilities/http/http.utility.js.map +1 -0
- package/dist/utilities/node/node.utility.d.ts +3 -0
- package/dist/utilities/node/node.utility.js +3 -0
- package/dist/utilities/node/node.utility.js.map +1 -1
- package/dist/utilities/object/object.utility.d.ts +12 -0
- package/dist/utilities/object/object.utility.js +12 -0
- package/dist/utilities/object/object.utility.js.map +1 -1
- package/dist/utilities/project/project.utility.d.ts +28 -0
- package/dist/utilities/project/project.utility.js +35 -0
- package/dist/utilities/project/project.utility.js.map +1 -0
- package/dist/utilities/string/string.utility.d.ts +41 -0
- package/dist/utilities/string/string.utility.js +65 -0
- package/dist/utilities/string/string.utility.js.map +1 -0
- package/dist/utilities/terraform/terraform.utility.d.ts +276 -0
- package/dist/utilities/terraform/terraform.utility.js +623 -0
- package/dist/utilities/terraform/terraform.utility.js.map +1 -0
- package/dist/utilities/test-helpers/test-classes.d.ts +36 -30
- package/dist/utilities/test-helpers/test-classes.js +38 -39
- package/dist/utilities/test-helpers/test-classes.js.map +1 -1
- package/dist/utilities/test-helpers/test-models.d.ts +8 -1
- package/dist/utilities/test-helpers/test-models.js +37 -12
- package/dist/utilities/test-helpers/test-models.js.map +1 -1
- package/dist/utilities/test-helpers/test-modes.d.ts +315 -0
- package/dist/utilities/test-helpers/test-modes.js +486 -0
- package/dist/utilities/test-helpers/test-modes.js.map +1 -0
- package/dist/utilities/test-helpers/test-modules.d.ts +47 -0
- package/dist/utilities/test-helpers/test-modules.js +85 -0
- package/dist/utilities/test-helpers/test-modules.js.map +1 -0
- package/dist/utilities/test-helpers/test-overlays.d.ts +20 -2
- package/dist/utilities/test-helpers/test-overlays.js +56 -6
- package/dist/utilities/test-helpers/test-overlays.js.map +1 -1
- package/dist/utilities/test-helpers/test-resources.d.ts +23 -3
- package/dist/utilities/test-helpers/test-resources.js +83 -23
- package/dist/utilities/test-helpers/test-resources.js.map +1 -1
- package/dist/utilities/validation/validation.utility.d.ts +24 -0
- package/dist/utilities/validation/validation.utility.js +24 -0
- package/dist/utilities/validation/validation.utility.js.map +1 -1
- package/package.json +12 -6
- package/dist/functions/diff/diff.utility.js.map +0 -1
- package/dist/services/capture/capture.service.d.ts +0 -19
- package/dist/services/capture/capture.service.js +0 -43
- package/dist/services/capture/capture.service.js.map +0 -1
- package/dist/services/state-management/local-encryption.state-provider.d.ts +0 -20
- package/dist/services/state-management/local-encryption.state-provider.js +0 -90
- package/dist/services/state-management/local-encryption.state-provider.js.map +0 -1
- package/dist/utilities/cidr/cidr.utility.d.ts +0 -10
- package/dist/utilities/cidr/cidr.utility.js +0 -51
- package/dist/utilities/cidr/cidr.utility.js.map +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Event } from './event.model.js';
|
|
2
2
|
/**
|
|
3
|
-
* This event is emitted when a module's `onInit()` method is run
|
|
4
|
-
*
|
|
3
|
+
* This event is emitted when a module's `onInit()` method is run, once for every module id, with the
|
|
4
|
+
* inputs it ran with: the definition's values, references resolved, and schema defaults filled in.
|
|
5
|
+
* Its name is the module's class name.
|
|
5
6
|
*
|
|
6
7
|
* @group Events/Module
|
|
7
|
-
*
|
|
8
|
-
* @returns The Event instance.
|
|
9
8
|
*/
|
|
10
9
|
export class ModuleEvent extends Event {
|
|
11
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.event.js","sourceRoot":"","sources":["../../src/events/module.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"module.event.js","sourceRoot":"","sources":["../../src/events/module.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,OAAO,WAAY,SAAQ,KAA4D;CAAG"}
|
|
@@ -4,20 +4,19 @@ import { Event } from './event.model.js';
|
|
|
4
4
|
* The RegistrationEvent class is the superclass for all events in relation to class registration.
|
|
5
5
|
*
|
|
6
6
|
* @group Events/Registration
|
|
7
|
-
*
|
|
8
|
-
* @returns The Event instance.
|
|
9
7
|
*/
|
|
10
|
-
export declare class RegistrationEvent extends Event<void> {
|
|
8
|
+
export declare abstract class RegistrationEvent extends Event<void> {
|
|
11
9
|
}
|
|
12
10
|
/**
|
|
13
11
|
* This event is emitted when a class with `@Anchor('my-package')` decorator is registered.
|
|
14
12
|
* It emits the name of the class.
|
|
15
13
|
*
|
|
16
14
|
* @group Events/Registration
|
|
17
|
-
*
|
|
18
|
-
* @returns The Event instance.
|
|
19
15
|
*/
|
|
20
16
|
export declare class AnchorRegistrationEvent extends RegistrationEvent {
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
21
20
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
@@ -25,10 +24,11 @@ export declare class AnchorRegistrationEvent extends RegistrationEvent {
|
|
|
25
24
|
* It emits the name of the model class and the name of the action.
|
|
26
25
|
*
|
|
27
26
|
* @group Events/Registration
|
|
28
|
-
*
|
|
29
|
-
* @returns The Event instance.
|
|
30
27
|
*/
|
|
31
28
|
export declare class ModelActionRegistrationEvent extends RegistrationEvent {
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
32
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
@@ -36,10 +36,11 @@ export declare class ModelActionRegistrationEvent extends RegistrationEvent {
|
|
|
36
36
|
* It emits the name of the class.
|
|
37
37
|
*
|
|
38
38
|
* @group Events/Registration
|
|
39
|
-
*
|
|
40
|
-
* @returns The Event instance.
|
|
41
39
|
*/
|
|
42
40
|
export declare class ModelRegistrationEvent extends RegistrationEvent {
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
43
44
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
@@ -47,10 +48,11 @@ export declare class ModelRegistrationEvent extends RegistrationEvent {
|
|
|
47
48
|
* It emits the name of the class.
|
|
48
49
|
*
|
|
49
50
|
* @group Events/Registration
|
|
50
|
-
*
|
|
51
|
-
* @returns The Event instance.
|
|
52
51
|
*/
|
|
53
52
|
export declare class OverlayRegistrationEvent extends RegistrationEvent {
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
54
56
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
@@ -58,10 +60,11 @@ export declare class OverlayRegistrationEvent extends RegistrationEvent {
|
|
|
58
60
|
* It emits the name of the resource class and the name of the action.
|
|
59
61
|
*
|
|
60
62
|
* @group Events/Registration
|
|
61
|
-
*
|
|
62
|
-
* @returns The Event instance.
|
|
63
63
|
*/
|
|
64
64
|
export declare class ResourceActionRegistrationEvent extends RegistrationEvent {
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
65
68
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
66
69
|
}
|
|
67
70
|
/**
|
|
@@ -69,9 +72,10 @@ export declare class ResourceActionRegistrationEvent extends RegistrationEvent {
|
|
|
69
72
|
* It emits the name of the class.
|
|
70
73
|
*
|
|
71
74
|
* @group Events/Registration
|
|
72
|
-
*
|
|
73
|
-
* @returns The Event instance.
|
|
74
75
|
*/
|
|
75
76
|
export declare class ResourceRegistrationEvent extends RegistrationEvent {
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
76
80
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
77
81
|
}
|
|
@@ -7,8 +7,6 @@ import { Event } from './event.model.js';
|
|
|
7
7
|
* The RegistrationEvent class is the superclass for all events in relation to class registration.
|
|
8
8
|
*
|
|
9
9
|
* @group Events/Registration
|
|
10
|
-
*
|
|
11
|
-
* @returns The Event instance.
|
|
12
10
|
*/
|
|
13
11
|
export class RegistrationEvent extends Event {
|
|
14
12
|
}
|
|
@@ -17,10 +15,11 @@ export class RegistrationEvent extends Event {
|
|
|
17
15
|
* It emits the name of the class.
|
|
18
16
|
*
|
|
19
17
|
* @group Events/Registration
|
|
20
|
-
*
|
|
21
|
-
* @returns The Event instance.
|
|
22
18
|
*/
|
|
23
19
|
export class AnchorRegistrationEvent extends RegistrationEvent {
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
24
23
|
static registrar(eventService, descriptor) {
|
|
25
24
|
const originalMethod = descriptor.value;
|
|
26
25
|
descriptor.value = function (...args) {
|
|
@@ -36,10 +35,11 @@ export class AnchorRegistrationEvent extends RegistrationEvent {
|
|
|
36
35
|
* It emits the name of the model class and the name of the action.
|
|
37
36
|
*
|
|
38
37
|
* @group Events/Registration
|
|
39
|
-
*
|
|
40
|
-
* @returns The Event instance.
|
|
41
38
|
*/
|
|
42
39
|
export class ModelActionRegistrationEvent extends RegistrationEvent {
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
43
|
static registrar(eventService, descriptor) {
|
|
44
44
|
const originalMethod = descriptor.value;
|
|
45
45
|
descriptor.value = function (...args) {
|
|
@@ -55,10 +55,11 @@ export class ModelActionRegistrationEvent extends RegistrationEvent {
|
|
|
55
55
|
* It emits the name of the class.
|
|
56
56
|
*
|
|
57
57
|
* @group Events/Registration
|
|
58
|
-
*
|
|
59
|
-
* @returns The Event instance.
|
|
60
58
|
*/
|
|
61
59
|
export class ModelRegistrationEvent extends RegistrationEvent {
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
62
63
|
static registrar(eventService, descriptor) {
|
|
63
64
|
const originalMethod = descriptor.value;
|
|
64
65
|
descriptor.value = function (...args) {
|
|
@@ -74,10 +75,11 @@ export class ModelRegistrationEvent extends RegistrationEvent {
|
|
|
74
75
|
* It emits the name of the class.
|
|
75
76
|
*
|
|
76
77
|
* @group Events/Registration
|
|
77
|
-
*
|
|
78
|
-
* @returns The Event instance.
|
|
79
78
|
*/
|
|
80
79
|
export class OverlayRegistrationEvent extends RegistrationEvent {
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
81
83
|
static registrar(eventService, descriptor) {
|
|
82
84
|
const originalMethod = descriptor.value;
|
|
83
85
|
descriptor.value = function (...args) {
|
|
@@ -93,10 +95,11 @@ export class OverlayRegistrationEvent extends RegistrationEvent {
|
|
|
93
95
|
* It emits the name of the resource class and the name of the action.
|
|
94
96
|
*
|
|
95
97
|
* @group Events/Registration
|
|
96
|
-
*
|
|
97
|
-
* @returns The Event instance.
|
|
98
98
|
*/
|
|
99
99
|
export class ResourceActionRegistrationEvent extends RegistrationEvent {
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
100
103
|
static registrar(eventService, descriptor) {
|
|
101
104
|
const originalMethod = descriptor.value;
|
|
102
105
|
descriptor.value = function (...args) {
|
|
@@ -112,10 +115,11 @@ export class ResourceActionRegistrationEvent extends RegistrationEvent {
|
|
|
112
115
|
* It emits the name of the class.
|
|
113
116
|
*
|
|
114
117
|
* @group Events/Registration
|
|
115
|
-
*
|
|
116
|
-
* @returns The Event instance.
|
|
117
118
|
*/
|
|
118
119
|
export class ResourceRegistrationEvent extends RegistrationEvent {
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
119
123
|
static registrar(eventService, descriptor) {
|
|
120
124
|
const originalMethod = descriptor.value;
|
|
121
125
|
descriptor.value = function (...args) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registration.event.js","sourceRoot":"","sources":["../../src/events/registration.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAK9D,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"registration.event.js","sourceRoot":"","sources":["../../src/events/registration.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAK9D,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;GAIG;AACH,MAAM,OAAgB,iBAAkB,SAAQ,KAAW;CAAG;AAE9D;;;;;GAKG;AACH,MAAM,OAAO,uBAAwB,SAAQ,iBAAiB;IAC5D;;OAEG;IACH,MAAM,CAAU,SAAS,CAAC,YAA0B,EAAE,UAA8B;QAClF,MAAM,cAAc,GAE0C,UAAU,CAAC,KAAK,CAAC;QAE/E,UAAU,CAAC,KAAK,GAAG,UACjB,GAAG,IAA4D;YAE/D,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAEjC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,YAAY,OAAO,EAAE,CAAC;gBACzC,YAAY,CAAC,IAAI,CAAC,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1D,CAAC;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AE,CAAC;gBAC3C,YAAY,CAAC,IAAI,CAAC,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5D,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -5,61 +5,64 @@ import { Event } from './event.model.js';
|
|
|
5
5
|
* The SerializationEvent class is the superclass for all events in relation to serialization and deserialization.
|
|
6
6
|
*
|
|
7
7
|
* @group Events/Serialization
|
|
8
|
-
*
|
|
9
|
-
* @returns The Event instance.
|
|
10
8
|
*/
|
|
11
|
-
export declare class SerializationEvent<T> extends Event<T> {
|
|
9
|
+
export declare abstract class SerializationEvent<T> extends Event<T> {
|
|
12
10
|
}
|
|
13
11
|
/**
|
|
14
12
|
* This event is emitted when models are deserialized from serialized output.
|
|
15
13
|
*
|
|
16
14
|
* @group Events/Serialization
|
|
17
|
-
*
|
|
18
|
-
* @returns The Event instance.
|
|
19
15
|
*/
|
|
20
16
|
export declare class ModelDeserializedEvent extends SerializationEvent<ModelSerializedOutput> {
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
21
20
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
24
23
|
* This event is emitted when models are serialized to an output.
|
|
25
24
|
*
|
|
26
25
|
* @group Events/Serialization
|
|
27
|
-
*
|
|
28
|
-
* @returns The Event instance.
|
|
29
26
|
*/
|
|
30
27
|
export declare class ModelSerializedEvent extends SerializationEvent<ModelSerializedOutput> {
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
31
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* This event is emitted when resources are deserialized from serialized output.
|
|
35
35
|
*
|
|
36
36
|
* @group Events/Serialization
|
|
37
|
-
*
|
|
38
|
-
* @returns The Event instance.
|
|
39
37
|
*/
|
|
40
38
|
export declare class ResourceDeserializedEvent extends SerializationEvent<{
|
|
41
39
|
actual: ResourceSerializedOutput;
|
|
42
40
|
old: ResourceSerializedOutput;
|
|
43
41
|
}> {
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
44
45
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
48
|
* This event is emitted when actual resources are serialized to an output.
|
|
48
49
|
*
|
|
49
50
|
* @group Events/Serialization
|
|
50
|
-
*
|
|
51
|
-
* @returns The Event instance.
|
|
52
51
|
*/
|
|
53
52
|
export declare class ActualResourceSerializedEvent extends SerializationEvent<ResourceSerializedOutput> {
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
54
56
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
59
|
* This event is emitted when new resources are serialized to an output.
|
|
58
60
|
*
|
|
59
61
|
* @group Events/Serialization
|
|
60
|
-
*
|
|
61
|
-
* @returns The Event instance.
|
|
62
62
|
*/
|
|
63
63
|
export declare class NewResourceSerializedEvent extends SerializationEvent<ResourceSerializedOutput> {
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
64
67
|
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
65
68
|
}
|
|
@@ -3,8 +3,6 @@ import { Event } from './event.model.js';
|
|
|
3
3
|
* The SerializationEvent class is the superclass for all events in relation to serialization and deserialization.
|
|
4
4
|
*
|
|
5
5
|
* @group Events/Serialization
|
|
6
|
-
*
|
|
7
|
-
* @returns The Event instance.
|
|
8
6
|
*/
|
|
9
7
|
export class SerializationEvent extends Event {
|
|
10
8
|
}
|
|
@@ -12,10 +10,11 @@ export class SerializationEvent extends Event {
|
|
|
12
10
|
* This event is emitted when models are deserialized from serialized output.
|
|
13
11
|
*
|
|
14
12
|
* @group Events/Serialization
|
|
15
|
-
*
|
|
16
|
-
* @returns The Event instance.
|
|
17
13
|
*/
|
|
18
14
|
export class ModelDeserializedEvent extends SerializationEvent {
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
19
18
|
static registrar(eventService, descriptor) {
|
|
20
19
|
const originalMethod = descriptor.value;
|
|
21
20
|
descriptor.value = async function (...args) {
|
|
@@ -29,10 +28,11 @@ export class ModelDeserializedEvent extends SerializationEvent {
|
|
|
29
28
|
* This event is emitted when models are serialized to an output.
|
|
30
29
|
*
|
|
31
30
|
* @group Events/Serialization
|
|
32
|
-
*
|
|
33
|
-
* @returns The Event instance.
|
|
34
31
|
*/
|
|
35
32
|
export class ModelSerializedEvent extends SerializationEvent {
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
36
|
static registrar(eventService, descriptor) {
|
|
37
37
|
const originalMethod = descriptor.value;
|
|
38
38
|
descriptor.value = async function (...args) {
|
|
@@ -46,10 +46,11 @@ export class ModelSerializedEvent extends SerializationEvent {
|
|
|
46
46
|
* This event is emitted when resources are deserialized from serialized output.
|
|
47
47
|
*
|
|
48
48
|
* @group Events/Serialization
|
|
49
|
-
*
|
|
50
|
-
* @returns The Event instance.
|
|
51
49
|
*/
|
|
52
50
|
export class ResourceDeserializedEvent extends SerializationEvent {
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
53
54
|
static registrar(eventService, descriptor) {
|
|
54
55
|
const originalMethod = descriptor.value;
|
|
55
56
|
descriptor.value = async function (...args) {
|
|
@@ -62,10 +63,11 @@ export class ResourceDeserializedEvent extends SerializationEvent {
|
|
|
62
63
|
* This event is emitted when actual resources are serialized to an output.
|
|
63
64
|
*
|
|
64
65
|
* @group Events/Serialization
|
|
65
|
-
*
|
|
66
|
-
* @returns The Event instance.
|
|
67
66
|
*/
|
|
68
67
|
export class ActualResourceSerializedEvent extends SerializationEvent {
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
69
71
|
static registrar(eventService, descriptor) {
|
|
70
72
|
const originalMethod = descriptor.value;
|
|
71
73
|
descriptor.value = async function (...args) {
|
|
@@ -79,10 +81,11 @@ export class ActualResourceSerializedEvent extends SerializationEvent {
|
|
|
79
81
|
* This event is emitted when new resources are serialized to an output.
|
|
80
82
|
*
|
|
81
83
|
* @group Events/Serialization
|
|
82
|
-
*
|
|
83
|
-
* @returns The Event instance.
|
|
84
84
|
*/
|
|
85
85
|
export class NewResourceSerializedEvent extends SerializationEvent {
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
86
89
|
static registrar(eventService, descriptor) {
|
|
87
90
|
const originalMethod = descriptor.value;
|
|
88
91
|
descriptor.value = async function (...args) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialization.event.js","sourceRoot":"","sources":["../../src/events/serialization.event.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"serialization.event.js","sourceRoot":"","sources":["../../src/events/serialization.event.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;GAIG;AACH,MAAM,OAAgB,kBAAsB,SAAQ,KAAQ;CAAG;AAE/D;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,kBAAyC;IACnF;;OAEG;IACH,MAAM,CAAU,SAAS,CAAC,YAA0B,EAAE,UAA8B;QAClF,MAAM,cAAc,GAEwC,UAAU,CAAC,KAAK,CAAC;QAE7E,UAAU,CAAC,KAAK,GAAG,KAAK,WACtB,GAAG,IAA0D;YAE7D,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAEtD,YAAY,CAAC,IAAI,CAAC,IAAI,sBAAsB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAA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,KAAK,WACtB,GAAG,IAA0E;YAE7E,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAEtD,YAAY,CAAC,IAAI,CAAC,IAAI,6BAA6B,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;YAExE,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,OAAO,0BAA2B,SAAQ,kBAA4C;IAC1F;;OAEG;IACH,MAAM,CAAU,SAAS,CAAC,YAA0B,EAAE,UAA8B;QAClF,MAAM,cAAc,GAEqD,UAAU,CAAC,KAAK,CAAC;QAE1F,UAAU,CAAC,KAAK,GAAG,KAAK,WACtB,GAAG,IAAuE;YAE1E,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAEtD,YAAY,CAAC,IAAI,CAAC,IAAI,0BAA0B,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;YAErE,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { IStateProvider } from '../services/state-management/state-provider.interface.js';
|
|
2
|
+
import { Event } from './event.model.js';
|
|
3
|
+
/**
|
|
4
|
+
* The superclass of the events about Octo's state: what was written, refreshed, locked, or unlocked.
|
|
5
|
+
*
|
|
6
|
+
* @group Events/State
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class StateEvent<T> extends Event<T> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This event is emitted when the app lock is refused, before the error is thrown. `holder` is the
|
|
12
|
+
* command holding the lock, as far as the state provider knows it.
|
|
13
|
+
*
|
|
14
|
+
* @group Events/State
|
|
15
|
+
*/
|
|
16
|
+
export declare class AppLockRefusedEvent extends StateEvent<{
|
|
17
|
+
holder?: {
|
|
18
|
+
commitId?: string;
|
|
19
|
+
context?: string;
|
|
20
|
+
lockId: string;
|
|
21
|
+
takenAt?: number;
|
|
22
|
+
};
|
|
23
|
+
newestCommitId?: string;
|
|
24
|
+
reason: 'held' | 'not-held' | 'state-moved' | 'unfinished';
|
|
25
|
+
refreshedCommitId?: string;
|
|
26
|
+
stateFileNames?: string[];
|
|
27
|
+
}> {
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* This event is emitted when the app lock is taken, or resumed with its id. A provider sharing state
|
|
31
|
+
* names where a resume took the state directory from: the directory the lock was taken in
|
|
32
|
+
* (`directory`), what the run uploaded so far (`run`), or the newest sealed state, because the run
|
|
33
|
+
* uploaded nothing (`sealed`).
|
|
34
|
+
*
|
|
35
|
+
* @group Events/State
|
|
36
|
+
*/
|
|
37
|
+
export declare class AppLockTakenEvent extends StateEvent<{
|
|
38
|
+
commitId?: string;
|
|
39
|
+
lockId: string;
|
|
40
|
+
resumed: boolean;
|
|
41
|
+
resumedFrom?: 'directory' | 'run' | 'sealed';
|
|
42
|
+
}> {
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* This event is emitted after the app lock is released. The run's journal files are archived, and
|
|
46
|
+
* with a remote state provider its record is sealed, by then. Nothing is written after it.
|
|
47
|
+
*
|
|
48
|
+
* @group Events/State
|
|
49
|
+
*/
|
|
50
|
+
export declare class AppUnlockedEvent extends StateEvent<{
|
|
51
|
+
lockId: string;
|
|
52
|
+
}> {
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* This event is emitted before the app lock is released. A listener that returns a promise is
|
|
56
|
+
* awaited, so what it writes lands in the run's record before the record is sealed. A listener that
|
|
57
|
+
* fails keeps the lock held.
|
|
58
|
+
*
|
|
59
|
+
* @group Events/State
|
|
60
|
+
*/
|
|
61
|
+
export declare class AppUnlockingEvent extends StateEvent<{
|
|
62
|
+
lockId: string;
|
|
63
|
+
}> {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* This event is emitted after state files are written, with the bytes written and their MD5. A file
|
|
67
|
+
* copied from a path carries only its path, which its saver may delete once this event is emitted, and a
|
|
68
|
+
* deleted file has neither.
|
|
69
|
+
*
|
|
70
|
+
* @group Events/State
|
|
71
|
+
*/
|
|
72
|
+
export declare class StateFilesSavedEvent extends StateEvent<{
|
|
73
|
+
stateFiles: {
|
|
74
|
+
data: Buffer | undefined;
|
|
75
|
+
filePath?: string;
|
|
76
|
+
md5: string | undefined;
|
|
77
|
+
stateFileName: string;
|
|
78
|
+
}[];
|
|
79
|
+
}> {
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* This event is emitted before state files are written. A listener that returns a promise is awaited,
|
|
83
|
+
* and may add files to `stateFiles`, which are then written in the same change.
|
|
84
|
+
*
|
|
85
|
+
* @group Events/State
|
|
86
|
+
*/
|
|
87
|
+
export declare class StateFilesSavingEvent extends StateEvent<{
|
|
88
|
+
stateFiles: Parameters<IStateProvider['saveStates']>[0];
|
|
89
|
+
}> {
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* This event is emitted after the state is brought up to the newest a command may plan against.
|
|
93
|
+
* `replaced` is true when the state files were replaced with the ones of another commit.
|
|
94
|
+
*
|
|
95
|
+
* @group Events/State
|
|
96
|
+
*/
|
|
97
|
+
export declare class StateRefreshedEvent extends StateEvent<{
|
|
98
|
+
commitId?: string;
|
|
99
|
+
previousCommitId?: string;
|
|
100
|
+
replaced: boolean;
|
|
101
|
+
}> {
|
|
102
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Event } from './event.model.js';
|
|
2
|
+
/**
|
|
3
|
+
* The superclass of the events about Octo's state: what was written, refreshed, locked, or unlocked.
|
|
4
|
+
*
|
|
5
|
+
* @group Events/State
|
|
6
|
+
*/
|
|
7
|
+
export class StateEvent extends Event {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This event is emitted when the app lock is refused, before the error is thrown. `holder` is the
|
|
11
|
+
* command holding the lock, as far as the state provider knows it.
|
|
12
|
+
*
|
|
13
|
+
* @group Events/State
|
|
14
|
+
*/
|
|
15
|
+
export class AppLockRefusedEvent extends StateEvent {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* This event is emitted when the app lock is taken, or resumed with its id. A provider sharing state
|
|
19
|
+
* names where a resume took the state directory from: the directory the lock was taken in
|
|
20
|
+
* (`directory`), what the run uploaded so far (`run`), or the newest sealed state, because the run
|
|
21
|
+
* uploaded nothing (`sealed`).
|
|
22
|
+
*
|
|
23
|
+
* @group Events/State
|
|
24
|
+
*/
|
|
25
|
+
export class AppLockTakenEvent extends StateEvent {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* This event is emitted after the app lock is released. The run's journal files are archived, and
|
|
29
|
+
* with a remote state provider its record is sealed, by then. Nothing is written after it.
|
|
30
|
+
*
|
|
31
|
+
* @group Events/State
|
|
32
|
+
*/
|
|
33
|
+
export class AppUnlockedEvent extends StateEvent {
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* This event is emitted before the app lock is released. A listener that returns a promise is
|
|
37
|
+
* awaited, so what it writes lands in the run's record before the record is sealed. A listener that
|
|
38
|
+
* fails keeps the lock held.
|
|
39
|
+
*
|
|
40
|
+
* @group Events/State
|
|
41
|
+
*/
|
|
42
|
+
export class AppUnlockingEvent extends StateEvent {
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* This event is emitted after state files are written, with the bytes written and their MD5. A file
|
|
46
|
+
* copied from a path carries only its path, which its saver may delete once this event is emitted, and a
|
|
47
|
+
* deleted file has neither.
|
|
48
|
+
*
|
|
49
|
+
* @group Events/State
|
|
50
|
+
*/
|
|
51
|
+
export class StateFilesSavedEvent extends StateEvent {
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* This event is emitted before state files are written. A listener that returns a promise is awaited,
|
|
55
|
+
* and may add files to `stateFiles`, which are then written in the same change.
|
|
56
|
+
*
|
|
57
|
+
* @group Events/State
|
|
58
|
+
*/
|
|
59
|
+
export class StateFilesSavingEvent extends StateEvent {
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* This event is emitted after the state is brought up to the newest a command may plan against.
|
|
63
|
+
* `replaced` is true when the state files were replaced with the ones of another commit.
|
|
64
|
+
*
|
|
65
|
+
* @group Events/State
|
|
66
|
+
*/
|
|
67
|
+
export class StateRefreshedEvent extends StateEvent {
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=state.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.event.js","sourceRoot":"","sources":["../../src/events/state.event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;GAIG;AACH,MAAM,OAAgB,UAAc,SAAQ,KAAQ;CAAG;AAEvD;;;;;GAKG;AACH,MAAM,OAAO,mBAAoB,SAAQ,UAMvC;CAAG;AAEL;;;;;;;GAOG;AACH,MAAM,OAAO,iBAAkB,SAAQ,UAKrC;CAAG;AAEL;;;;;GAKG;AACH,MAAM,OAAO,gBAAiB,SAAQ,UAA8B;CAAG;AAEvE;;;;;;GAMG;AACH,MAAM,OAAO,iBAAkB,SAAQ,UAA8B;CAAG;AAExE;;;;;;GAMG;AACH,MAAM,OAAO,oBAAqB,SAAQ,UAExC;CAAG;AAEL;;;;;GAKG;AACH,MAAM,OAAO,qBAAsB,SAAQ,UAEzC;CAAG;AAEL;;;;;GAKG;AACH,MAAM,OAAO,mBAAoB,SAAQ,UAIvC;CAAG"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Event } from './event.model.js';
|
|
2
|
+
/**
|
|
3
|
+
* The TerraformEvent class is the superclass for all events in relation to terraform and terragrunt.
|
|
4
|
+
*
|
|
5
|
+
* @group Events/Terraform
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class TerraformEvent<T = undefined> extends Event<T> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This event is emitted when generate finishes writing terragrunt module folders.
|
|
11
|
+
* `emptied` lists folders written without resources, because their module left intent.
|
|
12
|
+
*
|
|
13
|
+
* @group Events/Terraform
|
|
14
|
+
*/
|
|
15
|
+
export declare class TerraformFoldersWrittenEvent extends TerraformEvent<{
|
|
16
|
+
emptied: string[];
|
|
17
|
+
outputDir: string;
|
|
18
|
+
written: string[];
|
|
19
|
+
}> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* This event is emitted before a terraform/terragrunt command is invoked.
|
|
23
|
+
*
|
|
24
|
+
* @group Events/Terraform
|
|
25
|
+
*/
|
|
26
|
+
export declare class TerraformCommandStartedEvent extends TerraformEvent<{
|
|
27
|
+
command: string;
|
|
28
|
+
dir: string;
|
|
29
|
+
}> {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* This event is emitted after a terraform/terragrunt command returns, whatever its exit code.
|
|
33
|
+
*
|
|
34
|
+
* @group Events/Terraform
|
|
35
|
+
*/
|
|
36
|
+
export declare class TerraformCommandFinishedEvent extends TerraformEvent<{
|
|
37
|
+
command: string;
|
|
38
|
+
dir: string;
|
|
39
|
+
durationInMs: number;
|
|
40
|
+
exitCode: number;
|
|
41
|
+
}> {
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* This event is emitted when octo starts a terraform or terragrunt process, before it writes anything.
|
|
45
|
+
* `processId` tells apart the processes of one octo process: a JSON plan runs a plan and a show in
|
|
46
|
+
* every folder.
|
|
47
|
+
*
|
|
48
|
+
* @group Events/Terraform
|
|
49
|
+
*/
|
|
50
|
+
export declare class TerraformProcessStartedEvent extends TerraformEvent<{
|
|
51
|
+
args: string[];
|
|
52
|
+
binary: string;
|
|
53
|
+
dir: string;
|
|
54
|
+
processId: number;
|
|
55
|
+
}> {
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* This event is emitted for every chunk a terraform or terragrunt process writes, as it writes it.
|
|
59
|
+
*
|
|
60
|
+
* @group Events/Terraform
|
|
61
|
+
*/
|
|
62
|
+
export declare class TerraformProcessOutputEvent extends TerraformEvent<{
|
|
63
|
+
processId: number;
|
|
64
|
+
stream: 'stderr' | 'stdout';
|
|
65
|
+
text: string;
|
|
66
|
+
}> {
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* This event is emitted after every terraform or terragrunt process exits, whatever its exit code.
|
|
70
|
+
* `exitCode` is -1 for a process that could not start or was killed.
|
|
71
|
+
*
|
|
72
|
+
* @group Events/Terraform
|
|
73
|
+
*/
|
|
74
|
+
export declare class TerraformProcessExitedEvent extends TerraformEvent<{
|
|
75
|
+
exitCode: number;
|
|
76
|
+
processId: number;
|
|
77
|
+
}> {
|
|
78
|
+
}
|