lumen-framework 3.1.1 → 4.0.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/README.md +75 -109
- package/bin/lumen +23 -41
- package/dist/cli.cjs +856 -479
- package/dist/cli.cjs.map +4 -4
- package/dist/index.js +3273 -1719
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +3251 -1697
- package/dist/index.mjs.map +4 -4
- package/dist/testing.js +280 -0
- package/dist/testing.js.map +7 -0
- package/dist/testing.mjs +252 -0
- package/dist/testing.mjs.map +7 -0
- package/dist/types/errors/links-only-error.d.ts +13 -0
- package/dist/types/errors/reserved-field-name-error.d.ts +13 -0
- package/dist/types/errors/unknown-attribute-error.d.ts +13 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/interfaces.d.ts +1 -1
- package/dist/types/packages/application/index.d.ts +38 -45
- package/dist/types/packages/application/initialize.d.ts +3 -5
- package/dist/types/packages/application/interfaces.d.ts +13 -5
- package/dist/types/packages/application/utils/create-controller.d.ts +14 -4
- package/dist/types/packages/application/utils/create-serializer.d.ts +2 -2
- package/dist/types/packages/application/utils/normalize-port.d.ts +1 -3
- package/dist/types/packages/application/utils/resolve-visibility.d.ts +15 -0
- package/dist/types/packages/application/utils/restrict-open-namespaces.d.ts +19 -0
- package/dist/types/packages/application/utils/validate-attributes.d.ts +17 -0
- package/dist/types/packages/application/utils/validate-links-only.d.ts +19 -0
- package/dist/types/packages/application/utils/validate-namespaced-serializers.d.ts +3 -3
- package/dist/types/packages/application/utils/validate-reserved-names.d.ts +12 -0
- package/dist/types/packages/application/utils/warn-query-param-names.d.ts +10 -0
- package/dist/types/packages/cli/commands/dbcreate.d.ts +1 -1
- package/dist/types/packages/cli/commands/dbdrop.d.ts +1 -1
- package/dist/types/packages/cli/commands/destroy.d.ts +3 -2
- package/dist/types/packages/cli/commands/generate.d.ts +5 -5
- package/dist/types/packages/cli/commands/index.d.ts +0 -1
- package/dist/types/packages/cli/generator/index.d.ts +6 -6
- package/dist/types/packages/cli/generator/interfaces.d.ts +3 -3
- package/dist/types/packages/cli/generator/utils/create-generator.d.ts +2 -2
- package/dist/types/packages/cli/generator/utils/generate-type.d.ts +9 -9
- package/dist/types/packages/cli/generator/utils/migration-conflict.d.ts +4 -4
- package/dist/types/packages/cli/templates/pnpm-workspace.d.ts +15 -0
- package/dist/types/packages/cli/utils/create-spinner.d.ts +14 -0
- package/dist/types/packages/cli/utils/print-statements.d.ts +12 -0
- package/dist/types/packages/cli/utils/server-database.d.ts +27 -0
- package/dist/types/packages/compiler/interfaces.d.ts +1 -1
- package/dist/types/packages/config/interfaces.d.ts +10 -4
- package/dist/types/packages/controller/constants.d.ts +7 -2
- package/dist/types/packages/controller/errors/related-record-not-found-error.d.ts +4 -4
- package/dist/types/packages/controller/index.d.ts +364 -473
- package/dist/types/packages/controller/interfaces.d.ts +21 -6
- package/dist/types/packages/controller/utils/find-many.d.ts +2 -5
- package/dist/types/packages/controller/utils/find-one.d.ts +2 -5
- package/dist/types/packages/controller/utils/params-to-query.d.ts +8 -10
- package/dist/types/packages/controller/utils/resolve-relationships.d.ts +1 -3
- package/dist/types/packages/controller/utils/validate-relationships.d.ts +5 -3
- package/dist/types/packages/controller/visibility/errors.d.ts +21 -0
- package/dist/types/packages/controller/visibility/index.d.ts +51 -0
- package/dist/types/packages/database/attribute/index.d.ts +4 -6
- package/dist/types/packages/database/attribute/interfaces.d.ts +1 -1
- package/dist/types/packages/database/attribute/utils/create-attribute.d.ts +3 -5
- package/dist/types/packages/database/attribute/utils/create-getter.d.ts +2 -2
- package/dist/types/packages/database/attribute/utils/create-setter.d.ts +3 -5
- package/dist/types/packages/database/constants.d.ts +1 -0
- package/dist/types/packages/database/errors/index.d.ts +1 -0
- package/dist/types/packages/database/errors/invalid-driver-error.d.ts +1 -3
- package/dist/types/packages/database/errors/migrations-pending-error.d.ts +1 -3
- package/dist/types/packages/database/errors/model-missing-error.d.ts +1 -3
- package/dist/types/packages/database/errors/relationship-config-error.d.ts +10 -0
- package/dist/types/packages/database/errors/unique-constraint-error.d.ts +1 -1
- package/dist/types/packages/database/index.d.ts +9 -6
- package/dist/types/packages/database/initialize.d.ts +3 -5
- package/dist/types/packages/database/interfaces.d.ts +115 -25
- package/dist/types/packages/database/migration/index.d.ts +5 -7
- package/dist/types/packages/database/migration/interfaces.d.ts +2 -4
- package/dist/types/packages/database/migration/utils/generate-timestamp.d.ts +9 -1
- package/dist/types/packages/database/model/index.d.ts +348 -759
- package/dist/types/packages/database/model/initialize-class.d.ts +7 -1
- package/dist/types/packages/database/model/interfaces.d.ts +30 -12
- package/dist/types/packages/database/model/utils/attribute.d.ts +14 -0
- package/dist/types/packages/database/model/utils/get-columns.d.ts +1 -3
- package/dist/types/packages/database/model/utils/persistence.d.ts +5 -14
- package/dist/types/packages/database/model/utils/process-write-error.d.ts +2 -2
- package/dist/types/packages/database/model/utils/run-hooks.d.ts +7 -3
- package/dist/types/packages/database/model/utils/validate.d.ts +4 -1
- package/dist/types/packages/database/query/errors/record-not-found-error.d.ts +1 -1
- package/dist/types/packages/database/query/index.d.ts +179 -3
- package/dist/types/packages/database/query/runner/index.d.ts +1 -3
- package/dist/types/packages/database/query/runner/utils/build-results.d.ts +3 -4
- package/dist/types/packages/database/query/utils/format-select.d.ts +1 -3
- package/dist/types/packages/database/relationship/index.d.ts +7 -6
- package/dist/types/packages/database/relationship/interfaces.d.ts +16 -3
- package/dist/types/packages/database/relationship/utils/getters.d.ts +7 -13
- package/dist/types/packages/database/relationship/utils/inverse-setters.d.ts +5 -9
- package/dist/types/packages/database/relationship/utils/setters.d.ts +7 -13
- package/dist/types/packages/database/relationship/utils/unassociate.d.ts +1 -3
- package/dist/types/packages/database/relationship/utils/update-relationship.d.ts +6 -2
- package/dist/types/packages/database/transaction/index.d.ts +9 -10
- package/dist/types/packages/database/transaction/interfaces.d.ts +7 -1
- package/dist/types/packages/database/utils/connect.d.ts +16 -3
- package/dist/types/packages/database/utils/create-migrations.d.ts +1 -3
- package/dist/types/packages/database/utils/normalize-model-name.d.ts +1 -3
- package/dist/types/packages/database/utils/pending-migrations.d.ts +1 -3
- package/dist/types/packages/database/utils/primary-key-type.d.ts +10 -0
- package/dist/types/packages/database/utils/type-for-column.d.ts +3 -5
- package/dist/types/packages/database/utils/validate-relationships.d.ts +13 -0
- package/dist/types/packages/database/validation/errors/validation-error.d.ts +4 -4
- package/dist/types/packages/database/validation/index.d.ts +3 -5
- package/dist/types/packages/database/validation/interfaces.d.ts +1 -1
- package/dist/types/packages/freezeable/map/index.d.ts +1 -3
- package/dist/types/packages/freezeable/set/index.d.ts +1 -3
- package/dist/types/packages/freezeable/utils/freeze.d.ts +5 -15
- package/dist/types/packages/freezeable/utils/is-frozen.d.ts +1 -3
- package/dist/types/packages/fs/index.d.ts +7 -7
- package/dist/types/packages/fs/interfaces.d.ts +4 -4
- package/dist/types/packages/fs/utils/parse-path.d.ts +2 -2
- package/dist/types/packages/fs/watcher/interfaces.d.ts +1 -1
- package/dist/types/packages/jsonapi/errors/invalid-content-type-error.d.ts +3 -5
- package/dist/types/packages/jsonapi/errors/not-acceptable-error.d.ts +2 -4
- package/dist/types/packages/jsonapi/errors/unsupported-media-type-error.d.ts +2 -4
- package/dist/types/packages/jsonapi/index.d.ts +1 -1
- package/dist/types/packages/jsonapi/interfaces.d.ts +47 -36
- package/dist/types/packages/jsonapi/utils/has-media-type-params.d.ts +1 -1
- package/dist/types/packages/jsonapi/utils/is-jsonapi.d.ts +1 -1
- package/dist/types/packages/jsonapi/utils/media-type.d.ts +2 -2
- package/dist/types/packages/loader/builder/index.d.ts +3 -3
- package/dist/types/packages/loader/builder/interfaces.d.ts +7 -7
- package/dist/types/packages/loader/builder/utils/create-children-builder.d.ts +2 -2
- package/dist/types/packages/loader/builder/utils/create-parent-builder.d.ts +9 -2
- package/dist/types/packages/loader/builder/utils/sort-by-namespace.d.ts +2 -2
- package/dist/types/packages/loader/index.d.ts +1 -1
- package/dist/types/packages/loader/interfaces.d.ts +2 -2
- package/dist/types/packages/loader/resolver/index.d.ts +2 -2
- package/dist/types/packages/loader/resolver/utils/closest-ancestor.d.ts +2 -2
- package/dist/types/packages/loader/resolver/utils/closest-child.d.ts +2 -2
- package/dist/types/packages/logger/constants.d.ts +3 -3
- package/dist/types/packages/logger/errors/invalid-config-error.d.ts +5 -0
- package/dist/types/packages/logger/index.d.ts +65 -142
- package/dist/types/packages/logger/interfaces.d.ts +52 -10
- package/dist/types/packages/logger/request-logger/index.d.ts +3 -5
- package/dist/types/packages/logger/request-logger/interfaces.d.ts +5 -5
- package/dist/types/packages/logger/request-logger/templates.d.ts +5 -9
- package/dist/types/packages/logger/request-logger/utils/filter-params.d.ts +6 -1
- package/dist/types/packages/logger/request-logger/utils/log-json.d.ts +2 -4
- package/dist/types/packages/logger/request-logger/utils/log-text.d.ts +1 -3
- package/dist/types/packages/logger/request-logger/utils/params-for.d.ts +9 -0
- package/dist/types/packages/logger/utils/error-name.d.ts +7 -0
- package/dist/types/packages/logger/utils/line.d.ts +1 -3
- package/dist/types/packages/logger/writer/constants.d.ts +0 -1
- package/dist/types/packages/logger/writer/index.d.ts +6 -6
- package/dist/types/packages/logger/writer/interfaces.d.ts +2 -2
- package/dist/types/packages/logger/writer/utils/format-message.d.ts +2 -2
- package/dist/types/packages/lumenify/index.d.ts +20 -5
- package/dist/types/packages/lumenify/utils/create-response-proxy.d.ts +1 -1
- package/dist/types/packages/pm/cluster/index.d.ts +56 -7
- package/dist/types/packages/pm/cluster/interfaces.d.ts +2 -1
- package/dist/types/packages/pm/index.d.ts +2 -2
- package/dist/types/packages/router/definitions/context/index.d.ts +5 -7
- package/dist/types/packages/router/definitions/context/utils/create-definition-group.d.ts +3 -5
- package/dist/types/packages/router/definitions/context/utils/create-definition.d.ts +11 -6
- package/dist/types/packages/router/definitions/context/utils/normalize-resource-args.d.ts +4 -5
- package/dist/types/packages/router/definitions/index.d.ts +5 -9
- package/dist/types/packages/router/definitions/interfaces.d.ts +4 -4
- package/dist/types/packages/router/index.d.ts +23 -11
- package/dist/types/packages/router/interfaces.d.ts +4 -4
- package/dist/types/packages/router/namespace/index.d.ts +7 -9
- package/dist/types/packages/router/namespace/interfaces.d.ts +3 -3
- package/dist/types/packages/router/namespace/utils/normalize-name.d.ts +1 -3
- package/dist/types/packages/router/namespace/utils/normalize-path.d.ts +1 -3
- package/dist/types/packages/router/resource/index.d.ts +7 -8
- package/dist/types/packages/router/resource/interfaces.d.ts +12 -4
- package/dist/types/packages/router/resource/utils/normalize-only.d.ts +3 -5
- package/dist/types/packages/router/route/action/enhancers/resource.d.ts +1 -3
- package/dist/types/packages/router/route/action/enhancers/track-perf.d.ts +1 -3
- package/dist/types/packages/router/route/action/index.d.ts +7 -2
- package/dist/types/packages/router/route/action/interfaces.d.ts +4 -0
- package/dist/types/packages/router/route/action/utils/create-page-links.d.ts +21 -5
- package/dist/types/packages/router/route/action/utils/get-action-name.d.ts +1 -3
- package/dist/types/packages/router/route/action/utils/get-controller-name.d.ts +1 -3
- package/dist/types/packages/router/route/index.d.ts +13 -9
- package/dist/types/packages/router/route/interfaces.d.ts +7 -5
- package/dist/types/packages/router/route/params/errors/client-generated-id-error.d.ts +4 -4
- package/dist/types/packages/router/route/params/errors/forbidden-parameter-error.d.ts +4 -4
- package/dist/types/packages/router/route/params/errors/index.d.ts +1 -0
- package/dist/types/packages/router/route/params/errors/invalid-parameter-error.d.ts +4 -6
- package/dist/types/packages/router/route/params/errors/parameter-not-nullable-error.d.ts +4 -6
- package/dist/types/packages/router/route/params/errors/parameter-range-error.d.ts +9 -0
- package/dist/types/packages/router/route/params/errors/parameter-required-error.d.ts +4 -6
- package/dist/types/packages/router/route/params/errors/parameter-type-error.d.ts +4 -6
- package/dist/types/packages/router/route/params/errors/parameter-value-error.d.ts +4 -6
- package/dist/types/packages/router/route/params/errors/resource-mismatch-error.d.ts +4 -6
- package/dist/types/packages/router/route/params/index.d.ts +5 -9
- package/dist/types/packages/router/route/params/interfaces.d.ts +12 -8
- package/dist/types/packages/router/route/params/parameter/forbidden-parameter.d.ts +1 -1
- package/dist/types/packages/router/route/params/parameter/ignored-parameter.d.ts +14 -0
- package/dist/types/packages/router/route/params/parameter/index.d.ts +21 -5
- package/dist/types/packages/router/route/params/parameter/interfaces.d.ts +2 -2
- package/dist/types/packages/router/route/params/parameter/utils/validate-range.d.ts +3 -0
- package/dist/types/packages/router/route/params/parameter/utils/validate-value.d.ts +1 -3
- package/dist/types/packages/router/route/params/parameter-group/index.d.ts +3 -5
- package/dist/types/packages/router/route/params/parameter-group/utils/missing-params.d.ts +8 -0
- package/dist/types/packages/router/route/params/utils/get-data-params.d.ts +5 -1
- package/dist/types/packages/router/route/params/utils/get-default-collection-params.d.ts +1 -3
- package/dist/types/packages/router/route/params/utils/get-default-member-params.d.ts +5 -2
- package/dist/types/packages/router/route/params/utils/get-query-params.d.ts +3 -9
- package/dist/types/packages/router/route/params/utils/get-url-params.d.ts +1 -3
- package/dist/types/packages/router/route/params/utils/parse-column-value.d.ts +16 -0
- package/dist/types/packages/router/route/params/utils/validate-client-id.d.ts +1 -1
- package/dist/types/packages/router/route/params/utils/validate-resource-id.d.ts +1 -3
- package/dist/types/packages/router/route/params/utils/validate-type.d.ts +3 -5
- package/dist/types/packages/router/route/utils/get-dynamic-segments.d.ts +1 -3
- package/dist/types/packages/router/route/utils/get-static-path.d.ts +6 -2
- package/dist/types/packages/router/utils/create-replacer.d.ts +10 -2
- package/dist/types/packages/serializer/index.d.ts +243 -434
- package/dist/types/packages/serializer/interfaces.d.ts +19 -1
- package/dist/types/packages/serializer/utils/include-tree.d.ts +12 -3
- package/dist/types/packages/serializer/utils/load-linkage.d.ts +9 -3
- package/dist/types/packages/server/errors/error-list.d.ts +25 -0
- package/dist/types/packages/server/errors/method-not-allowed-error.d.ts +11 -0
- package/dist/types/packages/server/index.d.ts +9 -9
- package/dist/types/packages/server/interfaces.d.ts +59 -7
- package/dist/types/packages/server/request/constants.d.ts +2 -2
- package/dist/types/packages/server/request/index.d.ts +3 -5
- package/dist/types/packages/server/request/interfaces.d.ts +72 -8
- package/dist/types/packages/server/request/parser/errors/malformed-request-error.d.ts +3 -5
- package/dist/types/packages/server/request/parser/index.d.ts +6 -1
- package/dist/types/packages/server/request/parser/utils/format.d.ts +13 -11
- package/dist/types/packages/server/request/parser/utils/normalize-document.d.ts +13 -0
- package/dist/types/packages/server/request/parser/utils/parse-nested-object.d.ts +1 -3
- package/dist/types/packages/server/request/parser/utils/parse-read.d.ts +2 -4
- package/dist/types/packages/server/request/parser/utils/parse-write.d.ts +17 -1
- package/dist/types/packages/server/request/utils/get-domain.d.ts +1 -3
- package/dist/types/packages/server/responder/index.d.ts +1 -3
- package/dist/types/packages/server/responder/utils/content-type-for.d.ts +8 -0
- package/dist/types/packages/server/responder/utils/data-for.d.ts +3 -5
- package/dist/types/packages/server/responder/utils/normalize.d.ts +2 -3
- package/dist/types/packages/server/response/index.d.ts +3 -5
- package/dist/types/packages/server/response/interfaces.d.ts +14 -3
- package/dist/types/packages/server/utils/client-ip-for.d.ts +10 -0
- package/dist/types/packages/server/utils/create-server-error.d.ts +11 -3
- package/dist/types/packages/server/utils/request-id-for.d.ts +9 -0
- package/dist/types/packages/server/utils/set-cors-headers.d.ts +2 -2
- package/dist/types/packages/server/utils/source-for.d.ts +19 -3
- package/dist/types/packages/server/utils/status-for-error.d.ts +6 -0
- package/dist/types/packages/server/utils/validate-accept.d.ts +1 -1
- package/dist/types/packages/server/utils/validate-content-type.d.ts +8 -3
- package/dist/types/packages/testing/audit-visibility.d.ts +189 -0
- package/dist/types/packages/testing/index.d.ts +4 -0
- package/dist/types/packages/testing/start-app.d.ts +52 -0
- package/dist/types/packages/testing/utils/identifiers-in.d.ts +14 -0
- package/dist/types/testing.d.ts +9 -0
- package/dist/types/utils/chalk.d.ts +16 -0
- package/dist/types/utils/pick.d.ts +2 -2
- package/package.json +54 -26
- package/dist/types/packages/cli/commands/test.d.ts +0 -4
- package/dist/types/packages/logger/utils/sql.d.ts +0 -4
- package/dist/types/packages/router/route/params/parameter-group/utils/has-required-params.d.ts +0 -5
- package/dist/types/utils/create-query-string.d.ts +0 -6
- package/dist/types/utils/has-own-property.d.ts +0 -1
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { RequestMethod } from '../../../../server';
|
|
2
|
+
import type { RouterNamespace, RouteOptions, RouteType } from '../../../index';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Add the route `opts` describes to `namespace`, along with a `HEAD` route
|
|
5
|
+
* for a `GET` and an `OPTIONS` route for its path.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
5
8
|
*/
|
|
9
|
+
export declare function addRoute(namespace: RouterNamespace, opts: RouteOptions): void;
|
|
10
|
+
/** @internal */
|
|
6
11
|
export default function createDefinition({ type, method, namespace }: {
|
|
7
|
-
type:
|
|
8
|
-
method:
|
|
9
|
-
namespace:
|
|
12
|
+
type: RouteType;
|
|
13
|
+
method: RequestMethod;
|
|
14
|
+
namespace: RouterNamespace;
|
|
10
15
|
}): (name: string, action?: string) => void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
*/
|
|
1
|
+
import { type BuiltInAction } from '../../../../controller';
|
|
2
|
+
/** @internal */
|
|
5
3
|
export default function normalizeResourceArgs(args: Array<any>): [
|
|
6
4
|
{
|
|
7
5
|
name: string;
|
|
8
6
|
path: string;
|
|
9
|
-
only: Array<
|
|
7
|
+
only: Array<BuiltInAction>;
|
|
8
|
+
relationships?: boolean | Array<string>;
|
|
10
9
|
},
|
|
11
10
|
() => void
|
|
12
11
|
];
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type Router from '../index';
|
|
2
|
-
import type {
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
export declare function
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
export declare function define<T extends Router$Namespace>(router: Router, parent: T): void;
|
|
2
|
+
import type { RouterNamespace } from '../index';
|
|
3
|
+
/** @internal */
|
|
4
|
+
export declare function build<T extends RouterNamespace>(builder: (() => void) | undefined, namespace: T): T;
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare function define<T extends RouterNamespace>(router: Router, parent: T): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
1
|
+
import type { RouterNamespace, ResourceOptions } from '../index';
|
|
2
|
+
export type RouterDefinitionBuilder<T extends RouterNamespace> = (builder: (() => void) | undefined, namespace: T) => T;
|
|
3
|
+
export type RouterResourceArgs = [
|
|
4
4
|
string,
|
|
5
|
-
(
|
|
5
|
+
(ResourceOptions | null | undefined)?,
|
|
6
6
|
((() => void) | null | undefined)?
|
|
7
7
|
];
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
import { FreezeableMap } from '../freezeable';
|
|
2
|
-
import type { Request } from '../server';
|
|
2
|
+
import type { Request, RequestMethod } from '../server';
|
|
3
3
|
import Route, { DYNAMIC_PATTERN } from './route';
|
|
4
|
-
import type {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
4
|
+
import type { Replacer } from './utils/create-replacer';
|
|
5
|
+
import type { RouterOptions } from './interfaces';
|
|
6
|
+
/** @internal */
|
|
8
7
|
declare class Router extends FreezeableMap<string, Route> {
|
|
9
|
-
replacer:
|
|
10
|
-
constructor({ routes, controller, controllers }:
|
|
8
|
+
replacer: Replacer;
|
|
9
|
+
constructor({ routes, controller, controllers }: RouterOptions);
|
|
10
|
+
/**
|
|
11
|
+
* The route key path of `pathname` and the ids in it. A path some route
|
|
12
|
+
* defines as is (`/users/login`) is static, so it is never read as an id.
|
|
13
|
+
*/
|
|
14
|
+
resolve(pathname: string): {
|
|
15
|
+
staticPath: string;
|
|
16
|
+
params: Array<string>;
|
|
17
|
+
};
|
|
11
18
|
match({ method, url }: Request): void | Route;
|
|
19
|
+
/**
|
|
20
|
+
* The methods some route accepts at the request's path — empty when no
|
|
21
|
+
* route has the path at all.
|
|
22
|
+
*/
|
|
23
|
+
methodsFor({ url }: Request): Array<RequestMethod>;
|
|
12
24
|
}
|
|
13
25
|
export default Router;
|
|
14
26
|
export { Route, DYNAMIC_PATTERN };
|
|
15
|
-
export type {
|
|
16
|
-
export type {
|
|
17
|
-
export type {
|
|
18
|
-
export type { Action,
|
|
27
|
+
export type { RouterNamespace } from './interfaces';
|
|
28
|
+
export type { ResourceOptions } from './resource';
|
|
29
|
+
export type { NamespaceOptions } from './namespace';
|
|
30
|
+
export type { Action, RouteOptions, RouteType } from './route';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type Route from './route';
|
|
2
2
|
import type Controller from '../controller';
|
|
3
3
|
import type { FreezeableSet } from '../freezeable';
|
|
4
|
-
export type
|
|
4
|
+
export type RouterOptions = {
|
|
5
5
|
controller: Controller;
|
|
6
6
|
controllers: Map<string, Controller>;
|
|
7
7
|
routes(): void;
|
|
8
8
|
};
|
|
9
|
-
type
|
|
10
|
-
export interface
|
|
9
|
+
type RouterNamespaceEntry = Route | RouterNamespace;
|
|
10
|
+
export interface RouterNamespace extends FreezeableSet<RouterNamespaceEntry> {
|
|
11
11
|
name: string;
|
|
12
12
|
path: string;
|
|
13
13
|
isRoot: boolean;
|
|
14
|
-
namespace:
|
|
14
|
+
namespace: RouterNamespace;
|
|
15
15
|
controller: Controller;
|
|
16
16
|
controllers: Map<string, Controller>;
|
|
17
17
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { FreezeableSet } from '../../freezeable';
|
|
2
2
|
import type Controller from '../../controller';
|
|
3
|
-
import type { Route,
|
|
4
|
-
import type {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
declare class Namespace extends FreezeableSet<Route | Router$Namespace> {
|
|
3
|
+
import type { Route, RouterNamespace } from '../index';
|
|
4
|
+
import type { NamespaceOptions } from './interfaces';
|
|
5
|
+
/** @internal */
|
|
6
|
+
declare class Namespace extends FreezeableSet<Route | RouterNamespace> {
|
|
9
7
|
name: string;
|
|
10
8
|
path: string;
|
|
11
9
|
isRoot: boolean;
|
|
12
|
-
namespace:
|
|
10
|
+
namespace: RouterNamespace;
|
|
13
11
|
controller: Controller;
|
|
14
12
|
controllers: Map<string, Controller>;
|
|
15
|
-
constructor({ name, path, namespace, controller, controllers }:
|
|
13
|
+
constructor({ name, path, namespace, controller, controllers }: NamespaceOptions);
|
|
16
14
|
}
|
|
17
15
|
export default Namespace;
|
|
18
16
|
export { default as normalizeName } from './utils/normalize-name';
|
|
19
17
|
export { default as normalizePath } from './utils/normalize-path';
|
|
20
|
-
export type {
|
|
18
|
+
export type { NamespaceOptions } from './interfaces';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type Controller from '../../controller';
|
|
2
|
-
import type {
|
|
3
|
-
export type
|
|
2
|
+
import type { RouterNamespace } from '../index';
|
|
3
|
+
export type NamespaceOptions = {
|
|
4
4
|
name: string;
|
|
5
5
|
path: string;
|
|
6
|
-
namespace?:
|
|
6
|
+
namespace?: RouterNamespace;
|
|
7
7
|
controller: Controller;
|
|
8
8
|
controllers: Map<string, Controller>;
|
|
9
9
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import Namespace from '../namespace';
|
|
2
2
|
import { FreezeableSet } from '../../freezeable';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
3
|
+
import type { BuiltInAction } from '../../controller';
|
|
4
|
+
import type { ResourceOptions, ResourceRelationships } from './interfaces';
|
|
5
|
+
/** @internal */
|
|
8
6
|
declare class Resource extends Namespace {
|
|
9
|
-
only: FreezeableSet<
|
|
10
|
-
|
|
7
|
+
only: FreezeableSet<BuiltInAction>;
|
|
8
|
+
relationships: ResourceRelationships | undefined;
|
|
9
|
+
constructor({ only, relationships, ...opts }: ResourceOptions);
|
|
11
10
|
}
|
|
12
11
|
export default Resource;
|
|
13
|
-
export type {
|
|
12
|
+
export type { ResourceOptions, ResourceRelationships } from './interfaces';
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { BuiltInAction } from '../../controller';
|
|
2
|
+
import type { NamespaceOptions } from '../namespace';
|
|
3
|
+
/**
|
|
4
|
+
* Which relationships of a resource get relationship and related endpoints:
|
|
5
|
+
* all its Serializer exposes (`true`), none (`false`), or those named. The
|
|
6
|
+
* default is `true` in a namespace with visibility rules, `false` in one
|
|
7
|
+
* without.
|
|
8
|
+
*/
|
|
9
|
+
export type ResourceRelationships = boolean | Array<string>;
|
|
10
|
+
export type ResourceOptions = NamespaceOptions & {
|
|
11
|
+
only: Array<BuiltInAction>;
|
|
12
|
+
relationships?: ResourceRelationships;
|
|
5
13
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export default function normalizeOnly(only: Array<Controller$builtIn>): Array<Controller$builtIn>;
|
|
1
|
+
import { type BuiltInAction } from '../../../controller';
|
|
2
|
+
/** @internal */
|
|
3
|
+
export default function normalizeOnly(only: Array<BuiltInAction>): Array<BuiltInAction>;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type Controller from '../../../controller';
|
|
2
2
|
import type { Action } from './interfaces';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* The handlers of an action: `controller`'s `beforeAction` hooks, the action,
|
|
5
|
+
* then its `afterAction` hooks. A related route (`/posts/1/comments`) also
|
|
6
|
+
* serves the related type, so `related`'s `beforeAction` hooks run too, after
|
|
7
|
+
* the owner's, each hook once (both usually inherit the same ones).
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
5
10
|
*/
|
|
6
|
-
export declare function createAction(type: string, action: Action<unknown>, controller: Controller): Array<Action<unknown>>;
|
|
11
|
+
export declare function createAction(type: string, action: Action<unknown>, controller: Controller, related?: Controller): Array<Action<unknown>>;
|
|
7
12
|
export { FINAL_HANDLER } from './constants';
|
|
8
13
|
export { default as createPageLinks } from './utils/create-page-links';
|
|
9
14
|
export type { Action } from './interfaces';
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import type { Request, Response } from '../../../server';
|
|
2
|
+
/**
|
|
3
|
+
* A function called with a request and its response, as an action or hook
|
|
4
|
+
* is: what {@link lumenify} returns.
|
|
5
|
+
*/
|
|
2
6
|
export type Action<T> = (req: Request, res: Response, data?: unknown) => Promise<T>;
|
|
@@ -1,12 +1,28 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { RequestParams } from '../../../../server';
|
|
2
|
+
import type { JsonApiDocumentLinks } from '../../../../jsonapi';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* The link to the request itself: its path and its query as the client wrote
|
|
5
|
+
* it (member names, order, values), encoded like page links.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function createSelfLink({ search, domain, pathname }: {
|
|
10
|
+
search: string;
|
|
11
|
+
domain: string;
|
|
12
|
+
pathname: string;
|
|
13
|
+
}): string;
|
|
14
|
+
/**
|
|
15
|
+
* The top level `links` of a paginated collection. `self` is always the page
|
|
16
|
+
* requested — even past the last one, where `prev`/`next` are `null` — and
|
|
17
|
+
* every link keeps the rest of the request's query string as is.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
5
20
|
*/
|
|
6
21
|
export default function createPageLinks(opts: {
|
|
7
22
|
total: number;
|
|
8
|
-
params:
|
|
23
|
+
params: RequestParams;
|
|
24
|
+
search: string;
|
|
9
25
|
domain: string;
|
|
10
26
|
pathname: string;
|
|
11
27
|
defaultPerPage: number;
|
|
12
|
-
}):
|
|
28
|
+
}): JsonApiDocumentLinks;
|
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
import { FreezeableSet } from '../../freezeable';
|
|
2
2
|
import type Controller from '../../controller';
|
|
3
|
-
import type { Request, Response,
|
|
3
|
+
import type { Request, Response, RequestMethod } from '../../server';
|
|
4
4
|
import type { Action } from './action';
|
|
5
5
|
import type { ParameterGroup } from './params';
|
|
6
|
-
import type {
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
6
|
+
import type { RouteOptions } from './interfaces';
|
|
7
|
+
/** @internal */
|
|
10
8
|
declare class Route extends FreezeableSet<Action<unknown>> {
|
|
11
9
|
type: string;
|
|
12
10
|
path: string;
|
|
13
11
|
action: string;
|
|
14
12
|
params: ParameterGroup;
|
|
15
|
-
method:
|
|
13
|
+
method: RequestMethod;
|
|
16
14
|
controller: Controller;
|
|
15
|
+
relationship: string | undefined;
|
|
16
|
+
related: Controller | undefined;
|
|
17
17
|
staticPath: string;
|
|
18
18
|
defaultParams: Record<string, unknown>;
|
|
19
19
|
dynamicSegments: Array<string>;
|
|
20
|
-
constructor({ type, path, action, method, controller }:
|
|
21
|
-
|
|
20
|
+
constructor({ type, path, action, method, controller, relationship, related }: RouteOptions);
|
|
21
|
+
/**
|
|
22
|
+
* The ids in the request path, keyed by their dynamic segment: a number for
|
|
23
|
+
* a numeric primary key (or a model-less controller), else as written.
|
|
24
|
+
*/
|
|
25
|
+
parseParams(params: Array<string>): Record<string, number | string>;
|
|
22
26
|
execHandlers(req: Request, res: Response): Promise<unknown>;
|
|
23
27
|
visit(req: Request, res: Response): Promise<unknown>;
|
|
24
28
|
}
|
|
25
29
|
export default Route;
|
|
26
30
|
export { DYNAMIC_PATTERN } from './constants';
|
|
27
31
|
export type { Action } from './action';
|
|
28
|
-
export type {
|
|
32
|
+
export type { RouteOptions, RouteType } from './interfaces';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type Controller from '../../controller';
|
|
2
|
-
import type {
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
type:
|
|
2
|
+
import type { RequestMethod } from '../../server';
|
|
3
|
+
export type RouteType = 'custom' | 'member' | 'collection' | 'relationship' | 'related';
|
|
4
|
+
export type RouteOptions = {
|
|
5
|
+
type: RouteType;
|
|
6
6
|
path: string;
|
|
7
7
|
action: string;
|
|
8
|
-
method:
|
|
8
|
+
method: RequestMethod;
|
|
9
9
|
controller: Controller;
|
|
10
|
+
relationship?: string;
|
|
11
|
+
related?: Controller;
|
|
10
12
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ServerErrorSource } from '../../../../server';
|
|
2
2
|
/**
|
|
3
3
|
* JSON:API 1.0: "A server MUST return 403 Forbidden in response to an
|
|
4
4
|
* unsupported request to create a resource with a client-generated ID."
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @internal
|
|
7
7
|
*/
|
|
8
8
|
declare class ClientGeneratedIdError extends TypeError {
|
|
9
|
-
source:
|
|
9
|
+
source: ServerErrorSource;
|
|
10
10
|
constructor();
|
|
11
11
|
}
|
|
12
|
-
declare const _default: new (...args: Array<any>) => ClientGeneratedIdError & import("../../../../server
|
|
12
|
+
declare const _default: new (...args: Array<any>) => ClientGeneratedIdError & import("../../../../server").ServerError;
|
|
13
13
|
export default _default;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ServerErrorSource } from '../../../../server';
|
|
2
2
|
/**
|
|
3
3
|
* JSON:API 1.0: "A server MUST return 403 Forbidden in response to an
|
|
4
4
|
* unsupported request to update a resource or relationship." Used for members
|
|
5
5
|
* the model knows about but the controller does not accept (`params`).
|
|
6
6
|
*
|
|
7
|
-
* @
|
|
7
|
+
* @internal
|
|
8
8
|
*/
|
|
9
9
|
declare class ForbiddenParameterError extends TypeError {
|
|
10
|
-
source:
|
|
10
|
+
source: ServerErrorSource;
|
|
11
11
|
constructor(path: string);
|
|
12
12
|
}
|
|
13
|
-
declare const _default: new (...args: Array<any>) => ForbiddenParameterError & import("../../../../server
|
|
13
|
+
declare const _default: new (...args: Array<any>) => ForbiddenParameterError & import("../../../../server").ServerError;
|
|
14
14
|
export default _default;
|
|
@@ -4,4 +4,5 @@ export { default as InvalidParameterError } from './invalid-parameter-error';
|
|
|
4
4
|
export { default as ResourceMismatchError } from './resource-mismatch-error';
|
|
5
5
|
export { default as ParameterRequiredError } from './parameter-required-error';
|
|
6
6
|
export { default as ClientGeneratedIdError } from './client-generated-id-error';
|
|
7
|
+
export { default as ParameterRangeError } from './parameter-range-error';
|
|
7
8
|
export { default as ForbiddenParameterError } from './forbidden-parameter-error';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
*/
|
|
1
|
+
import type { ServerErrorSource } from '../../../../server';
|
|
2
|
+
/** @internal */
|
|
5
3
|
declare class InvalidParameterError extends TypeError {
|
|
6
|
-
source:
|
|
4
|
+
source: ServerErrorSource;
|
|
7
5
|
constructor(path: string);
|
|
8
6
|
}
|
|
9
|
-
declare const _default: new (...args: Array<any>) => InvalidParameterError & import("../../../../server
|
|
7
|
+
declare const _default: new (...args: Array<any>) => InvalidParameterError & import("../../../../server").ServerError;
|
|
10
8
|
export default _default;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ServerErrorSource } from '../../../../server';
|
|
2
2
|
import type { ParameterLike } from '../index';
|
|
3
|
-
/**
|
|
4
|
-
* @private
|
|
5
|
-
*/
|
|
3
|
+
/** @internal */
|
|
6
4
|
declare class ParameterNotNullableError extends TypeError {
|
|
7
|
-
source:
|
|
5
|
+
source: ServerErrorSource;
|
|
8
6
|
constructor({ path }: ParameterLike);
|
|
9
7
|
}
|
|
10
|
-
declare const _default: new (...args: Array<any>) => ParameterNotNullableError & import("../../../../server
|
|
8
|
+
declare const _default: new (...args: Array<any>) => ParameterNotNullableError & import("../../../../server").ServerError;
|
|
11
9
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ServerErrorSource } from '../../../../server';
|
|
2
|
+
import type Parameter from '../parameter';
|
|
3
|
+
/** @internal */
|
|
4
|
+
declare class ParameterRangeError extends RangeError {
|
|
5
|
+
source: ServerErrorSource;
|
|
6
|
+
constructor({ path, min, max }: Parameter, actual: number);
|
|
7
|
+
}
|
|
8
|
+
declare const _default: new (...args: Array<any>) => ParameterRangeError & import("../../../../server").ServerError;
|
|
9
|
+
export default _default;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
*/
|
|
1
|
+
import type { ServerErrorSource } from '../../../../server';
|
|
2
|
+
/** @internal */
|
|
5
3
|
declare class ParameterRequiredError extends TypeError {
|
|
6
|
-
source:
|
|
4
|
+
source: ServerErrorSource;
|
|
7
5
|
constructor(path: string);
|
|
8
6
|
}
|
|
9
|
-
declare const _default: new (...args: Array<any>) => ParameterRequiredError & import("../../../../server
|
|
7
|
+
declare const _default: new (...args: Array<any>) => ParameterRequiredError & import("../../../../server").ServerError;
|
|
10
8
|
export default _default;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ServerErrorSource } from '../../../../server';
|
|
2
2
|
import type { ParameterLike } from '../index';
|
|
3
|
-
/**
|
|
4
|
-
* @private
|
|
5
|
-
*/
|
|
3
|
+
/** @internal */
|
|
6
4
|
declare class ParameterTypeError extends TypeError {
|
|
7
|
-
source:
|
|
5
|
+
source: ServerErrorSource;
|
|
8
6
|
constructor(param: ParameterLike, actual: string);
|
|
9
7
|
}
|
|
10
|
-
declare const _default: new (...args: Array<any>) => ParameterTypeError & import("../../../../server
|
|
8
|
+
declare const _default: new (...args: Array<any>) => ParameterTypeError & import("../../../../server").ServerError;
|
|
11
9
|
export default _default;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ServerErrorSource } from '../../../../server';
|
|
2
2
|
import type { ParameterLike } from '../index';
|
|
3
|
-
/**
|
|
4
|
-
* @private
|
|
5
|
-
*/
|
|
3
|
+
/** @internal */
|
|
6
4
|
declare class ParameterValueError extends TypeError {
|
|
7
|
-
source:
|
|
5
|
+
source: ServerErrorSource;
|
|
8
6
|
constructor(param: ParameterLike, actual: unknown);
|
|
9
7
|
}
|
|
10
|
-
declare const _default: new (...args: Array<any>) => ParameterValueError & import("../../../../server
|
|
8
|
+
declare const _default: new (...args: Array<any>) => ParameterValueError & import("../../../../server").ServerError;
|
|
11
9
|
export default _default;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
*/
|
|
1
|
+
import type { ServerErrorSource } from '../../../../server';
|
|
2
|
+
/** @internal */
|
|
5
3
|
declare class ResourceMismatchError extends TypeError {
|
|
6
|
-
source:
|
|
4
|
+
source: ServerErrorSource;
|
|
7
5
|
constructor(path: string, expected: unknown, actual: unknown);
|
|
8
6
|
}
|
|
9
|
-
declare const _default: new (...args: Array<any>) => ResourceMismatchError & import("../../../../server
|
|
7
|
+
declare const _default: new (...args: Array<any>) => ResourceMismatchError & import("../../../../server").ServerError;
|
|
10
8
|
export default _default;
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import type Controller from '../../../controller';
|
|
2
2
|
import ParameterGroup from './parameter-group';
|
|
3
|
-
import type {
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export declare function paramsFor({ type, method, controller, dynamicSegments }: Params$opts): ParameterGroup;
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
3
|
+
import type { ParamsOptions } from './interfaces';
|
|
4
|
+
/** @internal */
|
|
5
|
+
export declare function paramsFor({ type, method, controller, dynamicSegments }: ParamsOptions): ParameterGroup;
|
|
6
|
+
/** @internal */
|
|
11
7
|
export declare function defaultParamsFor({ type, controller }: {
|
|
12
8
|
type: string;
|
|
13
9
|
controller: Controller;
|
|
14
10
|
}): Record<string, unknown>;
|
|
15
11
|
export { default as validateClientId } from './utils/validate-client-id';
|
|
16
12
|
export { default as validateResourceId } from './utils/validate-resource-id';
|
|
17
|
-
export type { ParameterLike,
|
|
13
|
+
export type { ParameterLike, ParameterLikeOptions } from './interfaces';
|
|
18
14
|
export type { default as Parameter } from './parameter';
|
|
19
15
|
export type { default as ParameterGroup } from './parameter-group';
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import type Controller from '../../../controller';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
export type
|
|
6
|
-
type:
|
|
7
|
-
method:
|
|
2
|
+
import type { RouteType } from '../index';
|
|
3
|
+
import type { RequestMethod } from '../../../server';
|
|
4
|
+
import type { LumenCollection } from '../../../../interfaces';
|
|
5
|
+
export type ParamsOptions = {
|
|
6
|
+
type: RouteType;
|
|
7
|
+
method: RequestMethod;
|
|
8
8
|
controller: Controller;
|
|
9
9
|
dynamicSegments: Array<string>;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type ParameterLikeOptions = {
|
|
12
12
|
path: string;
|
|
13
13
|
type?: string;
|
|
14
14
|
values?: Array<unknown>;
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
parse?: (value: unknown) => unknown;
|
|
18
|
+
items?: (path: string) => ParameterLike;
|
|
15
19
|
required?: boolean;
|
|
16
20
|
sanitize?: boolean;
|
|
17
21
|
};
|
|
18
|
-
export interface ParameterLike extends
|
|
22
|
+
export interface ParameterLike extends LumenCollection<unknown> {
|
|
19
23
|
path: string;
|
|
20
24
|
type: string;
|
|
21
25
|
required: boolean;
|
|
@@ -3,7 +3,7 @@ import Parameter from './index';
|
|
|
3
3
|
* A member the resource has but the controller does not accept. Any value for
|
|
4
4
|
* it is rejected with 403 rather than the 400 an unknown member gets.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @internal
|
|
7
7
|
*/
|
|
8
8
|
declare class ForbiddenParameter extends Parameter {
|
|
9
9
|
constructor(path: string);
|