@quadnix/octo 0.0.22 → 0.0.24
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/app.type.d.ts +236 -27
- package/dist/app.type.js +92 -1
- package/dist/app.type.js.map +1 -1
- package/dist/decorators/action.decorator.d.ts +4 -5
- package/dist/decorators/action.decorator.js +42 -41
- package/dist/decorators/action.decorator.js.map +1 -1
- package/dist/decorators/anchor.decorator.d.ts +2 -2
- package/dist/decorators/anchor.decorator.js +16 -11
- package/dist/decorators/anchor.decorator.js.map +1 -1
- package/dist/decorators/enable-hook.decorator.d.ts +5 -0
- package/dist/decorators/enable-hook.decorator.js +7 -2
- package/dist/decorators/enable-hook.decorator.js.map +1 -1
- package/dist/decorators/event-source.decorator.d.ts +5 -1
- package/dist/decorators/event-source.decorator.js +5 -1
- package/dist/decorators/event-source.decorator.js.map +1 -1
- package/dist/decorators/factory.decorator.d.ts +14 -2
- package/dist/decorators/factory.decorator.js +12 -3
- package/dist/decorators/factory.decorator.js.map +1 -1
- package/dist/decorators/model.decorator.d.ts +19 -5
- package/dist/decorators/model.decorator.js +40 -14
- package/dist/decorators/model.decorator.js.map +1 -1
- package/dist/decorators/module.decorator.d.ts +4 -75
- package/dist/decorators/module.decorator.js +18 -58
- package/dist/decorators/module.decorator.js.map +1 -1
- package/dist/decorators/on-event.decorator.d.ts +1 -1
- package/dist/decorators/on-event.decorator.js +1 -1
- package/dist/decorators/on-event.decorator.js.map +1 -1
- package/dist/decorators/overlay.decorator.d.ts +16 -6
- package/dist/decorators/overlay.decorator.js +36 -15
- package/dist/decorators/overlay.decorator.js.map +1 -1
- package/dist/decorators/resource.decorator.d.ts +17 -6
- package/dist/decorators/resource.decorator.js +37 -15
- package/dist/decorators/resource.decorator.js.map +1 -1
- package/dist/decorators/validate.decorator.d.ts +12 -4
- package/dist/decorators/validate.decorator.js +24 -2
- package/dist/decorators/validate.decorator.js.map +1 -1
- package/dist/errors/container.error.d.ts +20 -0
- package/dist/errors/container.error.js +29 -0
- package/dist/errors/container.error.js.map +1 -0
- package/dist/errors/index.d.ts +6 -0
- package/dist/errors/index.js +7 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/input.error.d.ts +49 -0
- package/dist/errors/input.error.js +59 -0
- package/dist/errors/input.error.js.map +1 -0
- package/dist/errors/module.error.d.ts +7 -0
- package/dist/errors/module.error.js +11 -0
- package/dist/errors/module.error.js.map +1 -0
- package/dist/errors/node.error.d.ts +63 -0
- package/dist/errors/node.error.js +87 -0
- package/dist/errors/node.error.js.map +1 -0
- package/dist/errors/schema.error.d.ts +7 -0
- package/dist/errors/schema.error.js +11 -0
- package/dist/errors/schema.error.js.map +1 -0
- package/dist/errors/transaction.error.d.ts +56 -0
- package/dist/errors/transaction.error.js +79 -0
- package/dist/errors/transaction.error.js.map +1 -0
- package/dist/events/action.event.d.ts +14 -0
- package/dist/events/action.event.js +12 -0
- package/dist/events/action.event.js.map +1 -0
- package/dist/events/event.model.d.ts +8 -12
- package/dist/events/event.model.js +7 -11
- package/dist/events/event.model.js.map +1 -1
- package/dist/events/hook/commit.hook.event.d.ts +28 -0
- package/dist/events/hook/commit.hook.event.js +29 -0
- package/dist/events/hook/commit.hook.event.js.map +1 -0
- package/dist/events/hook/hook.event.d.ts +10 -0
- package/dist/events/hook/hook.event.js +11 -0
- package/dist/events/hook/hook.event.js.map +1 -0
- package/dist/events/hook/index.d.ts +4 -0
- package/dist/events/hook/index.js +5 -0
- package/dist/events/hook/index.js.map +1 -0
- package/dist/events/hook/model.hook.event.d.ts +28 -0
- package/dist/events/hook/model.hook.event.js +29 -0
- package/dist/events/hook/model.hook.event.js.map +1 -0
- package/dist/events/hook/resource.hook.event.d.ts +28 -0
- package/dist/events/hook/resource.hook.event.js +29 -0
- package/dist/events/hook/resource.hook.event.js.map +1 -0
- package/dist/events/index.d.ts +7 -0
- package/dist/events/index.js +8 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/module.event.d.ts +3 -7
- package/dist/events/module.event.js +2 -6
- package/dist/events/module.event.js.map +1 -1
- package/dist/events/registration.event.d.ts +22 -57
- package/dist/events/registration.event.js +29 -70
- package/dist/events/registration.event.js.map +1 -1
- package/dist/events/serialization.event.d.ts +34 -41
- package/dist/events/serialization.event.js +59 -37
- package/dist/events/serialization.event.js.map +1 -1
- package/dist/events/transaction.event.d.ts +72 -29
- package/dist/events/transaction.event.js +63 -27
- package/dist/events/transaction.event.js.map +1 -1
- package/dist/functions/container/container.d.ts +56 -9
- package/dist/functions/container/container.js +108 -19
- package/dist/functions/container/container.js.map +1 -1
- package/dist/functions/container/test-container.d.ts +11 -13
- package/dist/functions/container/test-container.js +35 -38
- package/dist/functions/container/test-container.js.map +1 -1
- package/dist/functions/dependency/dependency.d.ts +9 -0
- package/dist/functions/dependency/dependency.js +10 -3
- package/dist/functions/dependency/dependency.js.map +1 -1
- package/dist/functions/diff/diff-metadata.d.ts +6 -5
- package/dist/functions/diff/diff-metadata.js +6 -2
- package/dist/functions/diff/diff-metadata.js.map +1 -1
- package/dist/functions/diff/diff.d.ts +16 -5
- package/dist/functions/diff/diff.js +11 -4
- package/dist/functions/diff/diff.js.map +1 -1
- package/dist/functions/diff/diff.utility.d.ts +5 -2
- package/dist/functions/diff/diff.utility.js +28 -4
- package/dist/functions/diff/diff.utility.js.map +1 -1
- package/dist/functions/hook/commit.hook.d.ts +17 -3
- package/dist/functions/hook/commit.hook.js +19 -16
- package/dist/functions/hook/commit.hook.js.map +1 -1
- package/dist/functions/hook/hook.interface.d.ts +10 -6
- package/dist/functions/hook/model-action.hook.d.ts +20 -5
- package/dist/functions/hook/model-action.hook.js +23 -39
- package/dist/functions/hook/model-action.hook.js.map +1 -1
- package/dist/functions/hook/resource-action.hook.d.ts +20 -5
- package/dist/functions/hook/resource-action.hook.js +21 -18
- package/dist/functions/hook/resource-action.hook.js.map +1 -1
- package/dist/functions/node/node-action.abstract.d.ts +10 -0
- package/dist/functions/node/node-action.abstract.js +23 -0
- package/dist/functions/node/node-action.abstract.js.map +1 -0
- package/dist/functions/node/node.abstract.d.ts +20 -9
- package/dist/functions/node/node.abstract.js +101 -32
- package/dist/functions/node/node.abstract.js.map +1 -1
- package/dist/functions/node/node.interface.d.ts +22 -18
- package/dist/functions/schema/schema.d.ts +21 -0
- package/dist/functions/schema/schema.js +55 -0
- package/dist/functions/schema/schema.js.map +1 -0
- package/dist/index.d.ts +31 -32
- package/dist/index.js +29 -12
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +32 -15
- package/dist/main.js +65 -50
- package/dist/main.js.map +1 -1
- package/dist/models/account/account.model.d.ts +26 -0
- package/dist/models/account/account.model.js +71 -0
- package/dist/models/account/account.model.js.map +1 -0
- package/dist/models/account/account.schema.d.ts +13 -0
- package/dist/models/account/account.schema.js +18 -0
- package/dist/models/account/account.schema.js.map +1 -0
- package/dist/models/app/app.model.d.ts +9 -14
- package/dist/models/app/app.model.js +27 -27
- 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 +24 -0
- package/dist/models/app/app.schema.js.map +1 -0
- package/dist/models/deployment/deployment.model.d.ts +9 -12
- package/dist/models/deployment/deployment.model.js +11 -11
- package/dist/models/deployment/deployment.model.js.map +1 -1
- package/dist/models/deployment/deployment.schema.d.ts +10 -0
- package/dist/models/deployment/deployment.schema.js +28 -0
- package/dist/models/deployment/deployment.schema.js.map +1 -0
- package/dist/models/environment/environment.model.d.ts +8 -14
- package/dist/models/environment/environment.model.js +10 -22
- package/dist/models/environment/environment.model.js.map +1 -1
- package/dist/models/environment/environment.schema.d.ts +16 -0
- package/dist/models/environment/environment.schema.js +41 -0
- package/dist/models/environment/environment.schema.js.map +1 -0
- package/dist/models/execution/execution.model.d.ts +9 -13
- package/dist/models/execution/execution.model.js +18 -25
- package/dist/models/execution/execution.model.js.map +1 -1
- package/dist/models/execution/execution.schema.d.ts +17 -0
- package/dist/models/execution/execution.schema.js +37 -0
- package/dist/models/execution/execution.schema.js.map +1 -0
- package/dist/models/filesystem/filesystem.model.d.ts +13 -0
- package/dist/models/filesystem/filesystem.model.js +46 -0
- package/dist/models/filesystem/filesystem.model.js.map +1 -0
- package/dist/models/filesystem/filesystem.schema.d.ts +6 -0
- package/dist/models/filesystem/filesystem.schema.js +24 -0
- package/dist/models/filesystem/filesystem.schema.js.map +1 -0
- package/dist/models/image/image.model.d.ts +10 -40
- package/dist/models/image/image.model.js +17 -27
- package/dist/models/image/image.model.js.map +1 -1
- package/dist/models/image/image.schema.d.ts +12 -0
- package/dist/models/image/image.schema.js +34 -0
- package/dist/models/image/image.schema.js.map +1 -0
- package/dist/models/model-action.interface.d.ts +5 -13
- package/dist/models/model.abstract.d.ts +28 -13
- package/dist/models/model.abstract.js +179 -13
- package/dist/models/model.abstract.js.map +1 -1
- package/dist/models/model.interface.d.ts +17 -6
- package/dist/models/pipeline/pipeline.model.d.ts +8 -7
- package/dist/models/pipeline/pipeline.model.js +10 -10
- package/dist/models/pipeline/pipeline.model.js.map +1 -1
- package/dist/models/pipeline/pipeline.schema.d.ts +7 -0
- package/dist/models/pipeline/pipeline.schema.js +25 -0
- package/dist/models/pipeline/pipeline.schema.js.map +1 -0
- package/dist/models/region/region.model.d.ts +11 -8
- package/dist/models/region/region.model.js +25 -12
- 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 +24 -0
- package/dist/models/region/region.schema.js.map +1 -0
- package/dist/models/server/server.model.d.ts +8 -10
- package/dist/models/server/server.model.js +13 -11
- package/dist/models/server/server.model.js.map +1 -1
- package/dist/models/server/server.schema.d.ts +9 -0
- package/dist/models/server/server.schema.js +27 -0
- package/dist/models/server/server.schema.js.map +1 -0
- package/dist/models/service/service.model.d.ts +7 -9
- package/dist/models/service/service.model.js +15 -13
- package/dist/models/service/service.model.js.map +1 -1
- package/dist/models/service/service.schema.d.ts +9 -0
- package/dist/models/service/service.schema.js +27 -0
- package/dist/models/service/service.schema.js.map +1 -0
- package/dist/models/subnet/subnet.model.d.ts +11 -33
- package/dist/models/subnet/subnet.model.js +14 -34
- package/dist/models/subnet/subnet.model.js.map +1 -1
- package/dist/models/subnet/subnet.schema.d.ts +38 -0
- package/dist/models/subnet/subnet.schema.js +53 -0
- package/dist/models/subnet/subnet.schema.js.map +1 -0
- package/dist/modules/module.abstract.d.ts +24 -0
- package/dist/modules/module.abstract.js +17 -0
- package/dist/modules/module.abstract.js.map +1 -0
- package/dist/modules/module.container.d.ts +38 -18
- package/dist/modules/module.container.js +140 -81
- package/dist/modules/module.container.js.map +1 -1
- package/dist/modules/module.interface.d.ts +18 -2
- package/dist/modules/test-module.container.d.ts +39 -15
- package/dist/modules/test-module.container.js +262 -26
- package/dist/modules/test-module.container.js.map +1 -1
- package/dist/overlays/anchor.abstract.d.ts +16 -8
- package/dist/overlays/anchor.abstract.js +4 -1
- package/dist/overlays/anchor.abstract.js.map +1 -1
- package/dist/overlays/anchor.interface.d.ts +8 -8
- package/dist/overlays/anchor.schema.d.ts +14 -0
- package/dist/overlays/anchor.schema.js +12 -0
- package/dist/overlays/anchor.schema.js.map +1 -0
- package/dist/overlays/overlay-data.repository.d.ts +9 -4
- package/dist/overlays/overlay-data.repository.js +20 -10
- package/dist/overlays/overlay-data.repository.js.map +1 -1
- package/dist/overlays/overlay.abstract.d.ts +15 -13
- package/dist/overlays/overlay.abstract.js +22 -8
- package/dist/overlays/overlay.abstract.js.map +1 -1
- package/dist/overlays/overlay.interface.d.ts +6 -7
- package/dist/overlays/overlay.schema.d.ts +11 -0
- package/dist/overlays/overlay.schema.js +12 -0
- package/dist/overlays/overlay.schema.js.map +1 -0
- package/dist/resources/resource-action.interface.d.ts +7 -3
- package/dist/resources/resource-data.repository.d.ts +8 -3
- package/dist/resources/resource-data.repository.js +64 -82
- package/dist/resources/resource-data.repository.js.map +1 -1
- package/dist/resources/resource.abstract.d.ts +53 -27
- package/dist/resources/resource.abstract.js +233 -57
- package/dist/resources/resource.abstract.js.map +1 -1
- package/dist/resources/resource.interface.d.ts +45 -8
- package/dist/resources/resource.schema.d.ts +17 -0
- package/dist/resources/resource.schema.js +14 -0
- package/dist/resources/resource.schema.js.map +1 -0
- package/dist/services/capture/capture.service.d.ts +12 -6
- package/dist/services/capture/capture.service.js +14 -5
- package/dist/services/capture/capture.service.js.map +1 -1
- package/dist/services/event/event.service.d.ts +8 -2
- package/dist/services/event/event.service.js +9 -2
- package/dist/services/event/event.service.js.map +1 -1
- package/dist/services/input/input.service.d.ts +68 -6
- package/dist/services/input/input.service.js +296 -14
- package/dist/services/input/input.service.js.map +1 -1
- package/dist/services/schema-translation/schema-translation.service.d.ts +19 -0
- package/dist/services/schema-translation/schema-translation.service.js +48 -0
- package/dist/services/schema-translation/schema-translation.service.js.map +1 -0
- package/dist/services/serialization/model/model-serialization.service.d.ts +7 -4
- package/dist/services/serialization/model/model-serialization.service.js +65 -33
- package/dist/services/serialization/model/model-serialization.service.js.map +1 -1
- package/dist/services/serialization/resource/resource-serialization.service.d.ts +7 -1
- package/dist/services/serialization/resource/resource-serialization.service.js +64 -80
- package/dist/services/serialization/resource/resource-serialization.service.js.map +1 -1
- package/dist/services/state-management/local.state-provider.d.ts +3 -1
- package/dist/services/state-management/local.state-provider.js +8 -7
- package/dist/services/state-management/local.state-provider.js.map +1 -1
- package/dist/services/state-management/state-management.service.d.ts +8 -3
- package/dist/services/state-management/state-management.service.js +25 -8
- package/dist/services/state-management/state-management.service.js.map +1 -1
- package/dist/services/state-management/state-provider.interface.d.ts +3 -1
- package/dist/services/state-management/test.state-provider.d.ts +3 -1
- package/dist/services/state-management/test.state-provider.js +5 -1
- package/dist/services/state-management/test.state-provider.js.map +1 -1
- package/dist/services/transaction/transaction.service.d.ts +22 -11
- package/dist/services/transaction/transaction.service.js +215 -66
- package/dist/services/transaction/transaction.service.js.map +1 -1
- package/dist/services/validation/validation.service.d.ts +8 -3
- package/dist/services/validation/validation.service.js +33 -12
- 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/utilities/cidr/cidr.utility.d.ts +3 -0
- package/dist/utilities/cidr/cidr.utility.js +3 -0
- package/dist/utilities/cidr/cidr.utility.js.map +1 -1
- package/dist/utilities/node/node.utility.d.ts +7 -0
- package/dist/utilities/node/node.utility.js +25 -0
- package/dist/utilities/node/node.utility.js.map +1 -0
- package/dist/utilities/object/object.utility.d.ts +6 -0
- package/dist/utilities/object/object.utility.js +36 -0
- package/dist/utilities/object/object.utility.js.map +1 -1
- package/dist/utilities/test-helpers/test-classes.d.ts +84 -0
- package/dist/utilities/test-helpers/test-classes.js +103 -0
- package/dist/utilities/test-helpers/test-classes.js.map +1 -0
- package/dist/utilities/test-helpers/test-models.d.ts +47 -0
- package/dist/utilities/test-helpers/test-models.js +230 -0
- package/dist/utilities/test-helpers/test-models.js.map +1 -0
- package/dist/utilities/test-helpers/test-overlays.d.ts +13 -0
- package/dist/utilities/test-helpers/test-overlays.js +56 -0
- package/dist/utilities/test-helpers/test-overlays.js.map +1 -0
- package/dist/utilities/test-helpers/test-resources.d.ts +31 -0
- package/dist/utilities/test-helpers/test-resources.js +171 -0
- package/dist/utilities/test-helpers/test-resources.js.map +1 -0
- package/dist/utilities/validation/validation.utility.d.ts +34 -3
- package/dist/utilities/validation/validation.utility.js +124 -2
- package/dist/utilities/validation/validation.utility.js.map +1 -1
- package/package.json +7 -7
- package/dist/events/error.event.d.ts +0 -35
- package/dist/events/error.event.js +0 -36
- package/dist/events/error.event.js.map +0 -1
- package/dist/events/hook.event.d.ts +0 -194
- package/dist/events/hook.event.js +0 -195
- package/dist/events/hook.event.js.map +0 -1
- package/dist/models/app/app.interface.d.ts +0 -9
- package/dist/models/app/app.interface.js +0 -2
- package/dist/models/app/app.interface.js.map +0 -1
- package/dist/models/deployment/deployment.interface.d.ts +0 -9
- package/dist/models/deployment/deployment.interface.js +0 -2
- package/dist/models/deployment/deployment.interface.js.map +0 -1
- package/dist/models/environment/environment.interface.d.ts +0 -12
- package/dist/models/environment/environment.interface.js +0 -2
- package/dist/models/environment/environment.interface.js.map +0 -1
- package/dist/models/execution/execution.interface.d.ts +0 -14
- package/dist/models/execution/execution.interface.js +0 -2
- package/dist/models/execution/execution.interface.js.map +0 -1
- package/dist/models/image/image.interface.d.ts +0 -12
- package/dist/models/image/image.interface.js +0 -2
- package/dist/models/image/image.interface.js.map +0 -1
- package/dist/models/pipeline/pipeline.interface.d.ts +0 -10
- package/dist/models/pipeline/pipeline.interface.js +0 -2
- package/dist/models/pipeline/pipeline.interface.js.map +0 -1
- package/dist/models/region/region.interface.d.ts +0 -9
- package/dist/models/region/region.interface.js +0 -2
- package/dist/models/region/region.interface.js.map +0 -1
- package/dist/models/server/server.interface.d.ts +0 -9
- package/dist/models/server/server.interface.js +0 -2
- package/dist/models/server/server.interface.js.map +0 -1
- package/dist/models/service/service.interface.d.ts +0 -9
- package/dist/models/service/service.interface.js +0 -2
- package/dist/models/service/service.interface.js.map +0 -1
- package/dist/models/subnet/subnet.interface.d.ts +0 -13
- package/dist/models/subnet/subnet.interface.js +0 -2
- package/dist/models/subnet/subnet.interface.js.map +0 -1
- package/dist/overlays/overlay.service.d.ts +0 -17
- package/dist/overlays/overlay.service.js +0 -41
- package/dist/overlays/overlay.service.js.map +0 -1
- package/dist/resources/shared-resource.abstract.d.ts +0 -13
- package/dist/resources/shared-resource.abstract.js +0 -47
- package/dist/resources/shared-resource.abstract.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Validate } from '../../decorators/validate.decorator.js';
|
|
11
|
+
import { Schema } from '../../functions/schema/schema.js';
|
|
12
|
+
/**
|
|
13
|
+
* @group Models/Region
|
|
14
|
+
*/
|
|
15
|
+
export class RegionSchema {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.regionId = Schema();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
Validate({ options: { maxLength: 32, minLength: 2, regex: /^[a-zA-Z][\w-]*[a-zA-Z0-9]$/ } }),
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
|
+
], RegionSchema.prototype, "regionId", void 0);
|
|
24
|
+
//# sourceMappingURL=region.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"region.schema.js","sourceRoot":"","sources":["../../../src/models/region/region.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1D;;GAEG;AACH,MAAM,OAAO,YAAY;IAAzB;QAEE,aAAQ,GAAG,MAAM,EAAU,CAAC;IAC9B,CAAC;CAAA;AADC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,6BAA6B,EAAE,EAAE,CAAC;;8CACjE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UnknownModel } from '../../app.type.js';
|
|
2
2
|
import { Deployment } from '../deployment/deployment.model.js';
|
|
3
3
|
import { AModel } from '../model.abstract.js';
|
|
4
|
-
import
|
|
4
|
+
import { ServerSchema } from './server.schema.js';
|
|
5
5
|
/**
|
|
6
6
|
* A Server model is a representation of the logical microservice.
|
|
7
7
|
* E.g. frontend, backend, database, payment-service, etc.
|
|
@@ -10,21 +10,19 @@ import type { IServer } from './server.interface.js';
|
|
|
10
10
|
* ```ts
|
|
11
11
|
* const server = new Server('backend');
|
|
12
12
|
* ```
|
|
13
|
-
*
|
|
13
|
+
*
|
|
14
|
+
* @group Models/Server
|
|
15
|
+
*
|
|
14
16
|
* @see Definition of [Default Models](/docs/fundamentals/models#default-models).
|
|
15
17
|
*/
|
|
16
|
-
export declare class Server extends AModel<
|
|
17
|
-
readonly NODE_NAME: string;
|
|
18
|
-
/**
|
|
19
|
-
* The name of the server.
|
|
20
|
-
*/
|
|
18
|
+
export declare class Server extends AModel<ServerSchema, Server> {
|
|
21
19
|
readonly serverKey: string;
|
|
22
20
|
constructor(serverKey: string);
|
|
23
21
|
/**
|
|
24
22
|
* To add a {@link Deployment}.
|
|
25
23
|
*/
|
|
26
24
|
addDeployment(deployment: Deployment): void;
|
|
27
|
-
setContext(): string;
|
|
28
|
-
synth():
|
|
29
|
-
static unSynth(server:
|
|
25
|
+
setContext(): string | undefined;
|
|
26
|
+
synth(): ServerSchema;
|
|
27
|
+
static unSynth(server: ServerSchema, deReferenceContext: (context: string) => Promise<UnknownModel>): Promise<Server>;
|
|
30
28
|
}
|
|
@@ -10,8 +10,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
var Server_1;
|
|
11
11
|
import { strict as assert } from 'assert';
|
|
12
12
|
import { Model } from '../../decorators/model.decorator.js';
|
|
13
|
-
import {
|
|
13
|
+
import { ModelError } from '../../errors/index.js';
|
|
14
|
+
import { Deployment } from '../deployment/deployment.model.js';
|
|
14
15
|
import { AModel } from '../model.abstract.js';
|
|
16
|
+
import { ServerSchema } from './server.schema.js';
|
|
15
17
|
/**
|
|
16
18
|
* A Server model is a representation of the logical microservice.
|
|
17
19
|
* E.g. frontend, backend, database, payment-service, etc.
|
|
@@ -20,13 +22,14 @@ import { AModel } from '../model.abstract.js';
|
|
|
20
22
|
* ```ts
|
|
21
23
|
* const server = new Server('backend');
|
|
22
24
|
* ```
|
|
23
|
-
*
|
|
25
|
+
*
|
|
26
|
+
* @group Models/Server
|
|
27
|
+
*
|
|
24
28
|
* @see Definition of [Default Models](/docs/fundamentals/models#default-models).
|
|
25
29
|
*/
|
|
26
30
|
let Server = Server_1 = class Server extends AModel {
|
|
27
31
|
constructor(serverKey) {
|
|
28
32
|
super();
|
|
29
|
-
this.NODE_NAME = 'server';
|
|
30
33
|
this.serverKey = serverKey;
|
|
31
34
|
}
|
|
32
35
|
/**
|
|
@@ -39,14 +42,17 @@ let Server = Server_1 = class Server extends AModel {
|
|
|
39
42
|
// Check for duplicates.
|
|
40
43
|
const deployments = childrenDependencies['deployment'].map((d) => d.to);
|
|
41
44
|
if (deployments.find((d) => d.deploymentTag === deployment.deploymentTag)) {
|
|
42
|
-
throw new
|
|
45
|
+
throw new ModelError('Deployment already exists!', this);
|
|
43
46
|
}
|
|
44
47
|
this.addChild('serverKey', deployment, 'deploymentTag');
|
|
45
48
|
}
|
|
46
49
|
setContext() {
|
|
47
50
|
const parents = this.getParents();
|
|
48
|
-
const app = parents['app'][0]
|
|
49
|
-
|
|
51
|
+
const app = parents['app']?.[0]?.to;
|
|
52
|
+
if (!app) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
return [`${this.constructor.NODE_NAME}=${this.serverKey}`, app.getContext()].join(',');
|
|
50
56
|
}
|
|
51
57
|
synth() {
|
|
52
58
|
return {
|
|
@@ -58,12 +64,8 @@ let Server = Server_1 = class Server extends AModel {
|
|
|
58
64
|
return new Server_1(server.serverKey);
|
|
59
65
|
}
|
|
60
66
|
};
|
|
61
|
-
__decorate([
|
|
62
|
-
Validate({ options: { maxLength: 64, minLength: 2, regex: /^[a-zA-Z][\w-]*[a-zA-Z0-9]$/ } }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], Server.prototype, "serverKey", void 0);
|
|
65
67
|
Server = Server_1 = __decorate([
|
|
66
|
-
Model(),
|
|
68
|
+
Model('@octo', 'server', ServerSchema),
|
|
67
69
|
__metadata("design:paramtypes", [String])
|
|
68
70
|
], Server);
|
|
69
71
|
export { Server };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.model.js","sourceRoot":"","sources":["../../../src/models/server/server.model.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"server.model.js","sourceRoot":"","sources":["../../../src/models/server/server.model.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;;;;;;;;;GAYG;AAEI,IAAM,MAAM,cAAZ,MAAM,MAAO,SAAQ,MAA4B;IAGtD,YAAY,SAAiB;QAC3B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,aAAa,CAAC,UAAsB;QAClC,MAAM,oBAAoB,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC5D,IAAI,CAAC,oBAAoB,CAAC,YAAY,CAAC;YAAE,oBAAoB,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;QAEjF,wBAAwB;QACxB,MAAM,WAAW,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACxE,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,CAAa,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YACtF,MAAM,IAAI,UAAU,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC;QAC3D,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;IAC1D,CAAC;IAEQ,UAAU;QACjB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAClC,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACpC,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,CAAC,GAAI,IAAI,CAAC,WAA6B,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5G,CAAC;IAEQ,KAAK;QACZ,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,MAAM,CAAU,KAAK,CAAC,OAAO,CAC3B,MAAoB,EACpB,kBAA8D;QAE9D,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;QAE7B,OAAO,IAAI,QAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;CACF,CAAA;AA9CY,MAAM;IADlB,KAAK,CAAS,OAAO,EAAE,QAAQ,EAAE,YAAY,CAAC;;GAClC,MAAM,CA8ClB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Validate } from '../../decorators/validate.decorator.js';
|
|
11
|
+
import { Schema } from '../../functions/schema/schema.js';
|
|
12
|
+
/**
|
|
13
|
+
* @group Models/Server
|
|
14
|
+
*/
|
|
15
|
+
export class ServerSchema {
|
|
16
|
+
constructor() {
|
|
17
|
+
/**
|
|
18
|
+
* The name of the server.
|
|
19
|
+
*/
|
|
20
|
+
this.serverKey = Schema();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
Validate({ options: { maxLength: 64, minLength: 2, regex: /^[a-zA-Z][\w-]*[a-zA-Z0-9]$/ } }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], ServerSchema.prototype, "serverKey", void 0);
|
|
27
|
+
//# sourceMappingURL=server.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.schema.js","sourceRoot":"","sources":["../../../src/models/server/server.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1D;;GAEG;AACH,MAAM,OAAO,YAAY;IAAzB;QACE;;WAEG;QAEH,cAAS,GAAG,MAAM,EAAU,CAAC;IAC/B,CAAC;CAAA;AADC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,6BAA6B,EAAE,EAAE,CAAC;;+CAChE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AModel } from '../model.abstract.js';
|
|
2
|
-
import
|
|
2
|
+
import { ServiceSchema } from './service.schema.js';
|
|
3
3
|
/**
|
|
4
4
|
* A Service model can be any third-party service that your application relies on.
|
|
5
5
|
* What separates them from Server is that Services are hosted and managed outside of your infrastructure.
|
|
@@ -9,16 +9,14 @@ import type { IService } from './service.interface.js';
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const service = new Service('MyService');
|
|
11
11
|
* ```
|
|
12
|
-
*
|
|
12
|
+
*
|
|
13
|
+
* @group Models/Service
|
|
14
|
+
*
|
|
13
15
|
* @see Definition of [Default Models](/docs/fundamentals/models#default-models).
|
|
14
16
|
*/
|
|
15
|
-
export declare class Service extends AModel<
|
|
16
|
-
readonly NODE_NAME: string;
|
|
17
|
-
/**
|
|
18
|
-
* The ID of the service.
|
|
19
|
-
*/
|
|
17
|
+
export declare class Service extends AModel<ServiceSchema, Service> {
|
|
20
18
|
readonly serviceId: string;
|
|
21
19
|
constructor(serviceId: string);
|
|
22
|
-
setContext(): string;
|
|
23
|
-
synth():
|
|
20
|
+
setContext(): string | undefined;
|
|
21
|
+
synth(): ServiceSchema;
|
|
24
22
|
}
|
|
@@ -7,9 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
+
var Service_1;
|
|
10
11
|
import { Model } from '../../decorators/model.decorator.js';
|
|
11
|
-
import {
|
|
12
|
+
import { ModelError } from '../../errors/index.js';
|
|
12
13
|
import { AModel } from '../model.abstract.js';
|
|
14
|
+
import { ServiceSchema } from './service.schema.js';
|
|
13
15
|
/**
|
|
14
16
|
* A Service model can be any third-party service that your application relies on.
|
|
15
17
|
* What separates them from Server is that Services are hosted and managed outside of your infrastructure.
|
|
@@ -19,30 +21,30 @@ import { AModel } from '../model.abstract.js';
|
|
|
19
21
|
* ```ts
|
|
20
22
|
* const service = new Service('MyService');
|
|
21
23
|
* ```
|
|
22
|
-
*
|
|
24
|
+
*
|
|
25
|
+
* @group Models/Service
|
|
26
|
+
*
|
|
23
27
|
* @see Definition of [Default Models](/docs/fundamentals/models#default-models).
|
|
24
28
|
*/
|
|
25
|
-
let Service = class Service extends AModel {
|
|
29
|
+
let Service = Service_1 = class Service extends AModel {
|
|
26
30
|
constructor(serviceId) {
|
|
27
31
|
super();
|
|
28
|
-
this.NODE_NAME = 'service';
|
|
29
32
|
this.serviceId = serviceId;
|
|
30
33
|
}
|
|
31
34
|
setContext() {
|
|
32
35
|
const parents = this.getParents();
|
|
33
|
-
const app = parents['app'][0]
|
|
34
|
-
|
|
36
|
+
const app = parents['app']?.[0]?.to;
|
|
37
|
+
if (!app) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
return [`${this.constructor.NODE_NAME}=${this.serviceId}`, app.getContext()].join(',');
|
|
35
41
|
}
|
|
36
42
|
synth() {
|
|
37
|
-
throw new
|
|
43
|
+
throw new ModelError('Method not implemented! Use subclass', this);
|
|
38
44
|
}
|
|
39
45
|
};
|
|
40
|
-
__decorate([
|
|
41
|
-
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], Service.prototype, "serviceId", void 0);
|
|
44
|
-
Service = __decorate([
|
|
45
|
-
Model(),
|
|
46
|
+
Service = Service_1 = __decorate([
|
|
47
|
+
Model('@octo', 'service', ServiceSchema),
|
|
46
48
|
__metadata("design:paramtypes", [String])
|
|
47
49
|
], Service);
|
|
48
50
|
export { Service };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.model.js","sourceRoot":"","sources":["../../../src/models/service/service.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.model.js","sourceRoot":"","sources":["../../../src/models/service/service.model.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;;;;;;;;;;;GAaG;AAEI,IAAM,OAAO,eAAb,MAAM,OAAQ,SAAQ,MAA8B;IAGzD,YAAY,SAAiB;QAC3B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAEQ,UAAU;QACjB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAClC,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACpC,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,CAAC,GAAI,IAAI,CAAC,WAA8B,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7G,CAAC;IAEQ,KAAK;QACZ,MAAM,IAAI,UAAU,CAAC,sCAAsC,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;CACF,CAAA;AApBY,OAAO;IADnB,KAAK,CAAU,OAAO,EAAE,SAAS,EAAE,aAAa,CAAC;;GACrC,OAAO,CAoBnB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Validate } from '../../decorators/validate.decorator.js';
|
|
11
|
+
import { Schema } from '../../functions/schema/schema.js';
|
|
12
|
+
/**
|
|
13
|
+
* @group Models/Service
|
|
14
|
+
*/
|
|
15
|
+
export class ServiceSchema {
|
|
16
|
+
constructor() {
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the service.
|
|
19
|
+
*/
|
|
20
|
+
this.serviceId = Schema();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
Validate({ options: { maxLength: 128, minLength: 2, regex: /^[a-zA-Z0-9][\w.-]*[a-zA-Z0-9]$/ } }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], ServiceSchema.prototype, "serviceId", void 0);
|
|
27
|
+
//# sourceMappingURL=service.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.schema.js","sourceRoot":"","sources":["../../../src/models/service/service.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1D;;GAEG;AACH,MAAM,OAAO,aAAa;IAA1B;QACE;;WAEG;QAEH,cAAS,GAAG,MAAM,EAAU,CAAC;IAC/B,CAAC;CAAA;AADC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,iCAAiC,EAAE,EAAE,CAAC;;gDACrE"}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
import type { UnknownModel } from '../../app.type.js';
|
|
2
2
|
import { AModel } from '../model.abstract.js';
|
|
3
|
-
import { Region } from '../region/region.model.js';
|
|
4
|
-
import
|
|
5
|
-
/**
|
|
6
|
-
* The type of subnet.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum SubnetType {
|
|
9
|
-
/**
|
|
10
|
-
* A public subnet is open to the internet,
|
|
11
|
-
* i.e. an {@link Execution} within this subnet can be accessed from the internet.
|
|
12
|
-
* Other than access from the internet, any other access needs to be explicitly allowed.
|
|
13
|
-
*/
|
|
14
|
-
PUBLIC = "public",
|
|
15
|
-
/**
|
|
16
|
-
* A private subnet has limited access to anything outside of this subnet, including access from the internet.
|
|
17
|
-
* Access to this subnet needs to be explicitly allowed.
|
|
18
|
-
*/
|
|
19
|
-
PRIVATE = "private"
|
|
20
|
-
}
|
|
3
|
+
import type { Region } from '../region/region.model.js';
|
|
4
|
+
import { SubnetSchema, SubnetType } from './subnet.schema.js';
|
|
21
5
|
/**
|
|
22
6
|
* A Subnet model is the logical sub-division of the region, e.g. a public and a private subnet.
|
|
23
7
|
* A subnet is often used to isolate parts of your infrastructure with access gates in the front.
|
|
@@ -28,20 +12,14 @@ export declare enum SubnetType {
|
|
|
28
12
|
* const subnet = new Subnet(region, 'my-subnet');
|
|
29
13
|
* subnet.subnetType = SubnetType.PUBLIC;
|
|
30
14
|
* ```
|
|
31
|
-
*
|
|
15
|
+
*
|
|
16
|
+
* @group Models/Subnet
|
|
17
|
+
*
|
|
32
18
|
* @see Definition of [Default Models](/docs/fundamentals/models#default-models).
|
|
33
19
|
*/
|
|
34
|
-
export declare class Subnet extends AModel<
|
|
35
|
-
readonly NODE_NAME: string;
|
|
20
|
+
export declare class Subnet extends AModel<SubnetSchema, Subnet> {
|
|
36
21
|
private options;
|
|
37
|
-
/**
|
|
38
|
-
* The ID of the subnet.
|
|
39
|
-
* - Format is `{regionId}-{subnetName}`
|
|
40
|
-
*/
|
|
41
22
|
readonly subnetId: string;
|
|
42
|
-
/**
|
|
43
|
-
* The name of the subnet.
|
|
44
|
-
*/
|
|
45
23
|
readonly subnetName: string;
|
|
46
24
|
constructor(region: Region, name: string);
|
|
47
25
|
/**
|
|
@@ -56,13 +34,13 @@ export declare class Subnet extends AModel<ISubnet, Subnet> {
|
|
|
56
34
|
set disableSubnetIntraNetwork(disableSubnetIntraNetwork: boolean);
|
|
57
35
|
get subnetType(): SubnetType;
|
|
58
36
|
set subnetType(subnetType: SubnetType);
|
|
59
|
-
setContext(): string;
|
|
60
|
-
synth():
|
|
61
|
-
static unSynth(subnet:
|
|
37
|
+
setContext(): string | undefined;
|
|
38
|
+
synth(): SubnetSchema;
|
|
39
|
+
static unSynth(subnet: SubnetSchema, deReferenceContext: (context: string) => Promise<UnknownModel>): Promise<Subnet>;
|
|
62
40
|
/**
|
|
63
41
|
* To update the networking rules of this subnet to allow or deny connectivity from another subnet.
|
|
64
|
-
* The networking rules are
|
|
65
|
-
* i.e. if subnet A can connect to subnet B, then subnet B
|
|
42
|
+
* The networking rules are uni-directional,
|
|
43
|
+
* i.e. if subnet A can connect to subnet B, then subnet B doesn't automatically connect to subnet A.
|
|
66
44
|
*
|
|
67
45
|
* @param subnet The other subnet.
|
|
68
46
|
* @param allowConnections Set to `true` to allow this and the other subnet to connect.
|
|
@@ -9,27 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
var Subnet_1;
|
|
11
11
|
import { Model } from '../../decorators/model.decorator.js';
|
|
12
|
-
import { Validate } from '../../decorators/validate.decorator.js';
|
|
13
12
|
import { DiffAction } from '../../functions/diff/diff.js';
|
|
14
13
|
import { AModel } from '../model.abstract.js';
|
|
15
|
-
import {
|
|
16
|
-
/**
|
|
17
|
-
* The type of subnet.
|
|
18
|
-
*/
|
|
19
|
-
export var SubnetType;
|
|
20
|
-
(function (SubnetType) {
|
|
21
|
-
/**
|
|
22
|
-
* A public subnet is open to the internet,
|
|
23
|
-
* i.e. an {@link Execution} within this subnet can be accessed from the internet.
|
|
24
|
-
* Other than access from the internet, any other access needs to be explicitly allowed.
|
|
25
|
-
*/
|
|
26
|
-
SubnetType["PUBLIC"] = "public";
|
|
27
|
-
/**
|
|
28
|
-
* A private subnet has limited access to anything outside of this subnet, including access from the internet.
|
|
29
|
-
* Access to this subnet needs to be explicitly allowed.
|
|
30
|
-
*/
|
|
31
|
-
SubnetType["PRIVATE"] = "private";
|
|
32
|
-
})(SubnetType || (SubnetType = {}));
|
|
14
|
+
import { SubnetSchema, SubnetType } from './subnet.schema.js';
|
|
33
15
|
/**
|
|
34
16
|
* A Subnet model is the logical sub-division of the region, e.g. a public and a private subnet.
|
|
35
17
|
* A subnet is often used to isolate parts of your infrastructure with access gates in the front.
|
|
@@ -40,13 +22,14 @@ export var SubnetType;
|
|
|
40
22
|
* const subnet = new Subnet(region, 'my-subnet');
|
|
41
23
|
* subnet.subnetType = SubnetType.PUBLIC;
|
|
42
24
|
* ```
|
|
43
|
-
*
|
|
25
|
+
*
|
|
26
|
+
* @group Models/Subnet
|
|
27
|
+
*
|
|
44
28
|
* @see Definition of [Default Models](/docs/fundamentals/models#default-models).
|
|
45
29
|
*/
|
|
46
30
|
let Subnet = Subnet_1 = class Subnet extends AModel {
|
|
47
31
|
constructor(region, name) {
|
|
48
32
|
super();
|
|
49
|
-
this.NODE_NAME = 'subnet';
|
|
50
33
|
this.options = {
|
|
51
34
|
disableSubnetIntraNetwork: false,
|
|
52
35
|
subnetType: SubnetType.PRIVATE,
|
|
@@ -76,8 +59,11 @@ let Subnet = Subnet_1 = class Subnet extends AModel {
|
|
|
76
59
|
}
|
|
77
60
|
setContext() {
|
|
78
61
|
const parents = this.getParents();
|
|
79
|
-
const region = parents['region'][0]
|
|
80
|
-
|
|
62
|
+
const region = parents['region']?.[0]?.to;
|
|
63
|
+
if (!region) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
return [`${this.constructor.NODE_NAME}=${this.subnetId}`, region.getContext()].join(',');
|
|
81
67
|
}
|
|
82
68
|
synth() {
|
|
83
69
|
const parents = this.getParents();
|
|
@@ -98,8 +84,8 @@ let Subnet = Subnet_1 = class Subnet extends AModel {
|
|
|
98
84
|
}
|
|
99
85
|
/**
|
|
100
86
|
* To update the networking rules of this subnet to allow or deny connectivity from another subnet.
|
|
101
|
-
* The networking rules are
|
|
102
|
-
* i.e. if subnet A can connect to subnet B, then subnet B
|
|
87
|
+
* The networking rules are uni-directional,
|
|
88
|
+
* i.e. if subnet A can connect to subnet B, then subnet B doesn't automatically connect to subnet A.
|
|
103
89
|
*
|
|
104
90
|
* @param subnet The other subnet.
|
|
105
91
|
* @param allowConnections Set to `true` to allow this and the other subnet to connect.
|
|
@@ -111,24 +97,18 @@ let Subnet = Subnet_1 = class Subnet extends AModel {
|
|
|
111
97
|
siblingDependencies['subnet'] = [];
|
|
112
98
|
const subnets = siblingDependencies['subnet'].map((d) => d.to);
|
|
113
99
|
if (allowConnections && !subnets.find((s) => s.subnetId === subnet.subnetId)) {
|
|
114
|
-
const { thisToThatDependency
|
|
100
|
+
const { thisToThatDependency } = this.addRelationship(subnet);
|
|
115
101
|
thisToThatDependency.addBehavior('sibling', DiffAction.ADD, 'subnetId', DiffAction.ADD);
|
|
116
102
|
thisToThatDependency.addBehavior('sibling', DiffAction.ADD, 'subnetId', DiffAction.UPDATE);
|
|
117
|
-
thatToThisDependency.addBehavior('sibling', DiffAction.ADD, 'subnetId', DiffAction.ADD);
|
|
118
|
-
thatToThisDependency.addBehavior('sibling', DiffAction.ADD, 'subnetId', DiffAction.UPDATE);
|
|
119
103
|
}
|
|
120
104
|
else if (!allowConnections && subnets.find((s) => s.subnetId === subnet.subnetId)) {
|
|
121
105
|
this.removeRelationship(subnet);
|
|
122
106
|
}
|
|
123
107
|
}
|
|
124
108
|
};
|
|
125
|
-
__decorate([
|
|
126
|
-
Validate({ options: { maxLength: 32, minLength: 2, regex: /^[a-zA-Z][\w-]*[a-zA-Z0-9]$/ } }),
|
|
127
|
-
__metadata("design:type", String)
|
|
128
|
-
], Subnet.prototype, "subnetName", void 0);
|
|
129
109
|
Subnet = Subnet_1 = __decorate([
|
|
130
|
-
Model(),
|
|
131
|
-
__metadata("design:paramtypes", [
|
|
110
|
+
Model('@octo', 'subnet', SubnetSchema),
|
|
111
|
+
__metadata("design:paramtypes", [Function, String])
|
|
132
112
|
], Subnet);
|
|
133
113
|
export { Subnet };
|
|
134
114
|
//# sourceMappingURL=subnet.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subnet.model.js","sourceRoot":"","sources":["../../../src/models/subnet/subnet.model.ts"],"names":[],"mappings":";;;;;;;;;;AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"subnet.model.js","sourceRoot":"","sources":["../../../src/models/subnet/subnet.model.ts"],"names":[],"mappings":";;;;;;;;;;AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE9D;;;;;;;;;;;;;;GAcG;AAEI,IAAM,MAAM,cAAZ,MAAM,MAAO,SAAQ,MAA4B;IAUtD,YAAY,MAAc,EAAE,IAAY;QACtC,KAAK,EAAE,CAAC;QAVF,YAAO,GAA4B;YACzC,yBAAyB,EAAE,KAAK;YAChC,UAAU,EAAE,UAAU,CAAC,OAAO;SAC/B,CAAC;QAQA,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,GAAG,GAAG,GAAG,IAAI,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACzB,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,yBAAyB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC;IAChD,CAAC;IAED,IAAI,yBAAyB,CAAC,yBAAkC;QAC9D,IAAI,CAAC,OAAO,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;IACrE,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;IACjC,CAAC;IAED,IAAI,UAAU,CAAC,UAAsB;QACnC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,IAAI,UAAU,CAAC,OAAO,CAAC;IAC7D,CAAC;IAEQ,UAAU;QACjB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAClC,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAC1C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,CAAC,GAAI,IAAI,CAAC,WAA6B,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9G,CAAC;IAEQ,KAAK;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAClC,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAY,CAAC;QAEjD,OAAO;YACL,OAAO,EAAE,EAAE,yBAAyB,EAAE,IAAI,CAAC,yBAAyB,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;YACnG,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE;YACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC;IACJ,CAAC;IAED,MAAM,CAAU,KAAK,CAAC,OAAO,CAC3B,MAAoB,EACpB,kBAA8D;QAE9D,MAAM,MAAM,GAAG,CAAC,MAAM,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAW,CAAC;QAC3E,MAAM,SAAS,GAAG,IAAI,QAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;QAExD,SAAS,CAAC,yBAAyB,GAAG,MAAM,CAAC,OAAO,CAAC,yBAAyB,CAAC;QAC/E,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;QAEjD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;;;;OAQG;IACH,qBAAqB,CAAC,MAAc,EAAE,gBAAyB;QAC7D,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QACvD,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC;YAAE,mBAAmB,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;QACvE,MAAM,OAAO,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAE/D,IAAI,gBAAgB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACrF,MAAM,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YAC9D,oBAAoB,CAAC,WAAW,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;YACxF,oBAAoB,CAAC,WAAW,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QAC7F,CAAC;aAAM,IAAI,CAAC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC5F,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;CACF,CAAA;AAhGY,MAAM;IADlB,KAAK,CAAS,OAAO,EAAE,QAAQ,EAAE,YAAY,CAAC;;GAClC,MAAM,CAgGlB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { IModelReference } from '../model.interface.js';
|
|
2
|
+
/**
|
|
3
|
+
* The type of subnet.
|
|
4
|
+
*
|
|
5
|
+
* @group Models/Subnet
|
|
6
|
+
*/
|
|
7
|
+
export declare enum SubnetType {
|
|
8
|
+
/**
|
|
9
|
+
* A public subnet is open to the internet,
|
|
10
|
+
* i.e. an {@link Execution} within this subnet can be accessed from the internet.
|
|
11
|
+
* Other than access from the internet, any other access needs to be explicitly allowed.
|
|
12
|
+
*/
|
|
13
|
+
PUBLIC = "public",
|
|
14
|
+
/**
|
|
15
|
+
* A private subnet has limited access to anything outside of this subnet, including access from the internet.
|
|
16
|
+
* Access to this subnet needs to be explicitly allowed.
|
|
17
|
+
*/
|
|
18
|
+
PRIVATE = "private"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @group Models/Subnet
|
|
22
|
+
*/
|
|
23
|
+
export declare class SubnetSchema {
|
|
24
|
+
options: {
|
|
25
|
+
disableSubnetIntraNetwork: boolean;
|
|
26
|
+
subnetType: SubnetType;
|
|
27
|
+
};
|
|
28
|
+
region: IModelReference;
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the subnet.
|
|
31
|
+
* - Format is `{regionId}-{subnetName}`
|
|
32
|
+
*/
|
|
33
|
+
subnetId: string;
|
|
34
|
+
/**
|
|
35
|
+
* The name of the subnet.
|
|
36
|
+
*/
|
|
37
|
+
subnetName: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Validate } from '../../decorators/validate.decorator.js';
|
|
11
|
+
import { Schema } from '../../functions/schema/schema.js';
|
|
12
|
+
/**
|
|
13
|
+
* The type of subnet.
|
|
14
|
+
*
|
|
15
|
+
* @group Models/Subnet
|
|
16
|
+
*/
|
|
17
|
+
export var SubnetType;
|
|
18
|
+
(function (SubnetType) {
|
|
19
|
+
/**
|
|
20
|
+
* A public subnet is open to the internet,
|
|
21
|
+
* i.e. an {@link Execution} within this subnet can be accessed from the internet.
|
|
22
|
+
* Other than access from the internet, any other access needs to be explicitly allowed.
|
|
23
|
+
*/
|
|
24
|
+
SubnetType["PUBLIC"] = "public";
|
|
25
|
+
/**
|
|
26
|
+
* A private subnet has limited access to anything outside of this subnet, including access from the internet.
|
|
27
|
+
* Access to this subnet needs to be explicitly allowed.
|
|
28
|
+
*/
|
|
29
|
+
SubnetType["PRIVATE"] = "private";
|
|
30
|
+
})(SubnetType || (SubnetType = {}));
|
|
31
|
+
/**
|
|
32
|
+
* @group Models/Subnet
|
|
33
|
+
*/
|
|
34
|
+
export class SubnetSchema {
|
|
35
|
+
constructor() {
|
|
36
|
+
this.options = Schema();
|
|
37
|
+
this.region = Schema();
|
|
38
|
+
/**
|
|
39
|
+
* The ID of the subnet.
|
|
40
|
+
* - Format is `{regionId}-{subnetName}`
|
|
41
|
+
*/
|
|
42
|
+
this.subnetId = Schema();
|
|
43
|
+
/**
|
|
44
|
+
* The name of the subnet.
|
|
45
|
+
*/
|
|
46
|
+
this.subnetName = Schema();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
__decorate([
|
|
50
|
+
Validate({ options: { maxLength: 32, minLength: 2, regex: /^[a-zA-Z][\w-]*[a-zA-Z0-9]$/ } }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], SubnetSchema.prototype, "subnetName", void 0);
|
|
53
|
+
//# sourceMappingURL=subnet.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subnet.schema.js","sourceRoot":"","sources":["../../../src/models/subnet/subnet.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAG1D;;;;GAIG;AACH,MAAM,CAAN,IAAY,UAaX;AAbD,WAAY,UAAU;IACpB;;;;OAIG;IACH,+BAAiB,CAAA;IAEjB;;;OAGG;IACH,iCAAmB,CAAA;AACrB,CAAC,EAbW,UAAU,KAAV,UAAU,QAarB;AAED;;GAEG;AACH,MAAM,OAAO,YAAY;IAAzB;QACE,YAAO,GAAG,MAAM,EAAkE,CAAC;QAEnF,WAAM,GAAG,MAAM,EAAmB,CAAC;QAEnC;;;WAGG;QACH,aAAQ,GAAG,MAAM,EAAU,CAAC;QAE5B;;WAEG;QAEH,eAAU,GAAG,MAAM,EAAU,CAAC;IAChC,CAAC;CAAA;AADC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,6BAA6B,EAAE,EAAE,CAAC;;gDAC/D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ModuleSchema, UnknownModel } from '../app.type.js';
|
|
2
|
+
import type { CommitHook } from '../functions/hook/commit.hook.js';
|
|
3
|
+
import type { ModelActionHook } from '../functions/hook/model-action.hook.js';
|
|
4
|
+
import type { ResourceActionHook } from '../functions/hook/resource-action.hook.js';
|
|
5
|
+
import type { IModule } from './module.interface.js';
|
|
6
|
+
/**
|
|
7
|
+
* @group Modules
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class AModule<S, T extends UnknownModel> implements IModule<S, T> {
|
|
10
|
+
static readonly MODULE_PACKAGE: string;
|
|
11
|
+
static readonly MODULE_SCHEMA: ModuleSchema<AModule<any, any>>;
|
|
12
|
+
readonly moduleId: string;
|
|
13
|
+
constructor(moduleId: string);
|
|
14
|
+
abstract onInit(inputs: S): Promise<T | UnknownModel[]>;
|
|
15
|
+
registerHooks(): {
|
|
16
|
+
postCommitHooks?: Parameters<CommitHook['collectHooks']>[0]['postHooks'];
|
|
17
|
+
postModelActionHooks?: Parameters<ModelActionHook['collectHooks']>[0]['postHooks'];
|
|
18
|
+
postResourceActionHooks?: Parameters<ResourceActionHook['collectHooks']>[0]['postHooks'];
|
|
19
|
+
preCommitHooks?: Parameters<CommitHook['collectHooks']>[0]['preHooks'];
|
|
20
|
+
preModelActionHooks?: Parameters<ModelActionHook['collectHooks']>[0]['preHooks'];
|
|
21
|
+
preResourceActionHooks?: Parameters<ResourceActionHook['collectHooks']>[0]['preHooks'];
|
|
22
|
+
};
|
|
23
|
+
registerMetadata(inputs: S): Promise<Record<string, unknown>>;
|
|
24
|
+
}
|