@loopback/docs 5.0.0 → 5.1.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/CHANGELOG.md +13 -0
- package/LICENSE +2 -2
- package/package.json +5 -5
- package/site/Copyright-generator.md +8 -7
- package/site/Discovering-models.md +5 -0
- package/site/{Polymorphic-relations.md → Polymorphic-relation.md} +1 -1
- package/site/Rest-Crud-generator.md +7 -1
- package/site/apidocs/boot.bootmixin.md +44 -44
- package/site/apidocs/context.config.getter.md +1 -1
- package/site/apidocs/context.config.view.md +1 -1
- package/site/apidocs/context.inject.binding.md +1 -1
- package/site/apidocs/context.inject.getter.md +1 -1
- package/site/apidocs/context.inject.setter.md +1 -1
- package/site/apidocs/context.inject.tag.md +1 -1
- package/site/apidocs/context.inject.view.md +1 -1
- package/site/apidocs/context.intercept.md +2 -2
- package/site/apidocs/express.middlewaremixin.md +28 -28
- package/site/apidocs/openapi-v3.deprecated.md +2 -2
- package/site/apidocs/openapi-v3.param.query.md +1 -1
- package/site/apidocs/openapi-v3.requestbody.array.md +3 -3
- package/site/apidocs/openapi-v3.requestbody.file.md +3 -3
- package/site/apidocs/openapi-v3.tags.md +2 -2
- package/site/apidocs/openapi-v3.visibility.md +2 -2
- package/site/apidocs/repository.repositorymixin.md +50 -50
- package/site/apidocs/{rest-crud.crudrestcontroller.create.md → rest-crud.crudrestcontroller.find.md} +8 -8
- package/site/apidocs/rest-crud.crudrestcontroller.md +1 -1
- package/site/apidocs/rest-crud.crudrestcontrolleroptions.md +1 -0
- package/site/apidocs/rest-crud.crudrestcontrolleroptions.readonly.md +23 -0
- package/site/apidocs/rest-crud.modelcrudrestapiconfig.md +1 -0
- package/site/apidocs/rest-crud.modelcrudrestapiconfig.readonly.md +23 -0
- package/site/apidocs/service-proxy.servicemixin.md +43 -43
- package/site/apidocs/service-proxy.serviceproxy.md +2 -2
- package/site/apidocs/typeorm.typeormmixin.md +61 -61
- package/site/changelogs/bodyparsers/rest-msgpack/CHANGELOG.md +14 -0
- package/site/changelogs/examples/access-control-migration/CHANGELOG.md +14 -0
- package/site/changelogs/examples/binding-resolution/CHANGELOG.md +14 -0
- package/site/changelogs/examples/context/CHANGELOG.md +14 -0
- package/site/changelogs/examples/express-composition/CHANGELOG.md +14 -0
- package/site/changelogs/examples/file-transfer/CHANGELOG.md +14 -0
- package/site/changelogs/examples/graphql/CHANGELOG.md +14 -0
- package/site/changelogs/examples/greeter-extension/CHANGELOG.md +14 -0
- package/site/changelogs/examples/greeting-app/CHANGELOG.md +14 -0
- package/site/changelogs/examples/hello-world/CHANGELOG.md +14 -0
- package/site/changelogs/examples/lb3-application/CHANGELOG.md +14 -0
- package/site/changelogs/examples/log-extension/CHANGELOG.md +14 -0
- package/site/changelogs/examples/metrics-prometheus/CHANGELOG.md +14 -0
- package/site/changelogs/examples/multi-tenancy/CHANGELOG.md +14 -0
- package/site/changelogs/examples/passport-login/CHANGELOG.md +14 -0
- package/site/changelogs/examples/references-many/CHANGELOG.md +13 -0
- package/site/changelogs/examples/rest-crud/CHANGELOG.md +14 -0
- package/site/changelogs/examples/rpc-server/CHANGELOG.md +14 -0
- package/site/changelogs/examples/soap-calculator/CHANGELOG.md +14 -0
- package/site/changelogs/examples/socketio/CHANGELOG.md +14 -0
- package/site/changelogs/examples/todo/CHANGELOG.md +14 -0
- package/site/changelogs/examples/todo-jwt/CHANGELOG.md +14 -0
- package/site/changelogs/examples/todo-list/CHANGELOG.md +14 -0
- package/site/changelogs/examples/validation-app/CHANGELOG.md +14 -0
- package/site/changelogs/examples/webpack/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/apiconnect/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/authentication-jwt/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/authentication-passport/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/context-explorer/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/cron/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/graphql/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/health/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/logging/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/metrics/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/pooling/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/socketio/CHANGELOG.md +14 -0
- package/site/changelogs/extensions/typeorm/CHANGELOG.md +16 -0
- package/site/changelogs/fixtures/mock-oauth2-provider/CHANGELOG.md +293 -0
- package/site/changelogs/packages/authentication/CHANGELOG.md +14 -0
- package/site/changelogs/packages/authorization/CHANGELOG.md +14 -0
- package/site/changelogs/packages/boot/CHANGELOG.md +14 -0
- package/site/changelogs/packages/booter-lb3app/CHANGELOG.md +14 -0
- package/site/changelogs/packages/build/CHANGELOG.md +8 -0
- package/site/changelogs/packages/cli/CHANGELOG.md +20 -0
- package/site/changelogs/packages/context/CHANGELOG.md +14 -0
- package/site/changelogs/packages/core/CHANGELOG.md +14 -0
- package/site/changelogs/packages/eslint-config/CHANGELOG.md +11 -0
- package/site/changelogs/packages/express/CHANGELOG.md +14 -0
- package/site/changelogs/packages/filter/CHANGELOG.md +23 -0
- package/site/changelogs/packages/http-caching-proxy/CHANGELOG.md +14 -0
- package/site/changelogs/packages/http-server/CHANGELOG.md +19 -0
- package/site/changelogs/packages/metadata/CHANGELOG.md +14 -0
- package/site/changelogs/packages/model-api-builder/CHANGELOG.md +14 -0
- package/site/changelogs/packages/monorepo/CHANGELOG.md +8 -0
- package/site/changelogs/packages/openapi-spec-builder/CHANGELOG.md +14 -0
- package/site/changelogs/packages/openapi-v3/CHANGELOG.md +20 -0
- package/site/changelogs/packages/repository/CHANGELOG.md +16 -0
- package/site/changelogs/packages/repository-json-schema/CHANGELOG.md +14 -0
- package/site/changelogs/packages/repository-tests/CHANGELOG.md +15 -0
- package/site/changelogs/packages/rest/CHANGELOG.md +14 -0
- package/site/changelogs/packages/rest-crud/CHANGELOG.md +14 -0
- package/site/changelogs/packages/rest-explorer/CHANGELOG.md +14 -0
- package/site/changelogs/packages/security/CHANGELOG.md +14 -0
- package/site/changelogs/packages/service-proxy/CHANGELOG.md +14 -0
- package/site/changelogs/packages/testlab/CHANGELOG.md +8 -0
- package/site/changelogs/packages/tsdocs/CHANGELOG.md +14 -0
- package/site/readmes/loopback-next/packages/rest-crud/README.md +2 -1
- package/site/sidebars/lb4_sidebar.yml +4 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
lang: en
|
|
3
|
+
title: 'API docs: rest-crud.modelcrudrestapiconfig.readonly'
|
|
4
|
+
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
|
|
5
|
+
sidebar: lb4_sidebar
|
|
6
|
+
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest-crud
|
|
7
|
+
permalink: /doc/en/lb4/apidocs.rest-crud.modelcrudrestapiconfig.readonly.html
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
11
|
+
|
|
12
|
+
[Home](./index.md) > [@loopback/rest-crud](./rest-crud.md) > [ModelCrudRestApiConfig](./rest-crud.modelcrudrestapiconfig.md) > [readonly](./rest-crud.modelcrudrestapiconfig.readonly.md)
|
|
13
|
+
|
|
14
|
+
## ModelCrudRestApiConfig.readonly property
|
|
15
|
+
|
|
16
|
+
If true, the generated controller only has find and count APIs
|
|
17
|
+
|
|
18
|
+
<b>Signature:</b>
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
```
|
|
23
|
+
|
|
@@ -20,58 +20,58 @@ A mixin class for Application that creates a .serviceProvider() function to regi
|
|
|
20
20
|
```typescript
|
|
21
21
|
export declare function ServiceMixin<T extends MixinTarget<Application>>(superClass: T): {
|
|
22
22
|
new (...args: any[]): {
|
|
23
|
-
serviceProvider<S>(provider: Constructor<Provider<S>>, nameOrOptions?: string | ServiceOptions
|
|
24
|
-
component<C extends Component = Component>(componentCtor: Constructor<C>, nameOrOptions?: string | BindingFromClassOptions
|
|
23
|
+
serviceProvider<S>(provider: Constructor<Provider<S>>, nameOrOptions?: string | ServiceOptions): Binding<S>;
|
|
24
|
+
component<C extends Component = Component>(componentCtor: Constructor<C>, nameOrOptions?: string | BindingFromClassOptions): Binding<C>;
|
|
25
25
|
mountComponentServices<C_1 extends Component = Component>(component: Constructor<C_1>, componentBindingKey?: BindingAddress<C_1> | undefined): void;
|
|
26
|
-
readonly options:
|
|
26
|
+
readonly options: import("@loopback/core").ApplicationConfig;
|
|
27
27
|
readonly state: string;
|
|
28
|
-
controller: <T_1>(controllerCtor:
|
|
29
|
-
server: <T_2 extends
|
|
30
|
-
servers: <T_3 extends
|
|
31
|
-
getServer: <T_4 extends
|
|
28
|
+
controller: <T_1>(controllerCtor: import("@loopback/core").ControllerClass<T_1>, nameOrOptions?: string | BindingFromClassOptions | undefined) => Binding<T_1>;
|
|
29
|
+
server: <T_2 extends import("@loopback/core").Server>(ctor: Constructor<T_2>, nameOrOptions?: string | BindingFromClassOptions | undefined) => Binding<T_2>;
|
|
30
|
+
servers: <T_3 extends import("@loopback/core").Server>(ctors: Constructor<T_3>[]) => Binding<any>[];
|
|
31
|
+
getServer: <T_4 extends import("@loopback/core").Server>(target: string | Constructor<T_4>) => Promise<T_4>;
|
|
32
32
|
init: () => Promise<void>;
|
|
33
|
-
onInit: (fn: () =>
|
|
33
|
+
onInit: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<import("@loopback/core").LifeCycleObserver>;
|
|
34
34
|
start: () => Promise<void>;
|
|
35
|
-
onStart: (fn: () =>
|
|
35
|
+
onStart: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<import("@loopback/core").LifeCycleObserver>;
|
|
36
36
|
stop: () => Promise<void>;
|
|
37
|
-
onStop: (fn: () =>
|
|
38
|
-
setMetadata: (metadata:
|
|
39
|
-
lifeCycleObserver: <T_5 extends
|
|
40
|
-
service: <S_1>(cls:
|
|
41
|
-
interceptor: (interceptor:
|
|
37
|
+
onStop: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<import("@loopback/core").LifeCycleObserver>;
|
|
38
|
+
setMetadata: (metadata: import("@loopback/core").ApplicationMetadata) => void;
|
|
39
|
+
lifeCycleObserver: <T_5 extends import("@loopback/core").LifeCycleObserver>(ctor: Constructor<T_5>, nameOrOptions?: string | BindingFromClassOptions | undefined) => Binding<T_5>;
|
|
40
|
+
service: <S_1>(cls: import("@loopback/core").ServiceOrProviderClass<S_1>, nameOrOptions?: string | ServiceOptions | undefined) => Binding<S_1>;
|
|
41
|
+
interceptor: (interceptor: import("@loopback/core").Interceptor | Constructor<Provider<import("@loopback/core").Interceptor>>, nameOrOptions?: string | import("@loopback/core").InterceptorBindingOptions | undefined) => Binding<import("@loopback/core").Interceptor>;
|
|
42
42
|
readonly name: string;
|
|
43
|
-
readonly subscriptionManager:
|
|
44
|
-
scope:
|
|
45
|
-
readonly parent:
|
|
46
|
-
emitEvent: <T_6 extends
|
|
43
|
+
readonly subscriptionManager: import("@loopback/core").ContextSubscriptionManager;
|
|
44
|
+
scope: import("@loopback/core").BindingScope;
|
|
45
|
+
readonly parent: import("@loopback/core").Context | undefined;
|
|
46
|
+
emitEvent: <T_6 extends import("@loopback/core").ContextEvent>(type: string, event: T_6) => void;
|
|
47
47
|
emitError: (err: unknown) => void;
|
|
48
48
|
bind: <ValueType = any>(key: BindingAddress<ValueType>) => Binding<ValueType>;
|
|
49
49
|
add: (binding: Binding<unknown>) => Application;
|
|
50
50
|
configure: <ConfigValueType = any>(key?: BindingAddress<unknown> | undefined) => Binding<ConfigValueType>;
|
|
51
|
-
getConfigAsValueOrPromise: <ConfigValueType_1>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?:
|
|
52
|
-
getConfig: <ConfigValueType_2>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?:
|
|
53
|
-
getConfigSync: <ConfigValueType_3>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?:
|
|
51
|
+
getConfigAsValueOrPromise: <ConfigValueType_1>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => import("@loopback/core").ValueOrPromise<ConfigValueType_1 | undefined>;
|
|
52
|
+
getConfig: <ConfigValueType_2>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => Promise<ConfigValueType_2 | undefined>;
|
|
53
|
+
getConfigSync: <ConfigValueType_3>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => ConfigValueType_3 | undefined;
|
|
54
54
|
unbind: (key: BindingAddress<unknown>) => boolean;
|
|
55
|
-
subscribe: (observer:
|
|
56
|
-
unsubscribe: (observer:
|
|
55
|
+
subscribe: (observer: import("@loopback/core").ContextEventObserver) => import("@loopback/core").Subscription;
|
|
56
|
+
unsubscribe: (observer: import("@loopback/core").ContextEventObserver) => boolean;
|
|
57
57
|
close: () => void;
|
|
58
|
-
isSubscribed: (observer:
|
|
59
|
-
createView: <T_7 = unknown>(filter:
|
|
58
|
+
isSubscribed: (observer: import("@loopback/core").ContextObserver) => boolean;
|
|
59
|
+
createView: <T_7 = unknown>(filter: import("@loopback/core").BindingFilter, comparator?: import("@loopback/core").BindingComparator | undefined, options?: Omit<import("@loopback/core").ResolutionOptions, "session"> | undefined) => import("@loopback/core").ContextView<T_7>;
|
|
60
60
|
contains: (key: BindingAddress<unknown>) => boolean;
|
|
61
61
|
isBound: (key: BindingAddress<unknown>) => boolean;
|
|
62
|
-
getOwnerContext: (keyOrBinding: BindingAddress<unknown> | Readonly<Binding<unknown>>) =>
|
|
63
|
-
getScopedContext: (scope:
|
|
64
|
-
getResolutionContext: (binding: Readonly<Binding<unknown>>) =>
|
|
65
|
-
isVisibleTo: (ctx:
|
|
66
|
-
find: <ValueType_1 = any>(pattern?: string | RegExp |
|
|
67
|
-
findByTag: <ValueType_2 = any>(tagFilter: RegExp |
|
|
62
|
+
getOwnerContext: (keyOrBinding: BindingAddress<unknown> | Readonly<Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
63
|
+
getScopedContext: (scope: import("@loopback/core").BindingScope.APPLICATION | import("@loopback/core").BindingScope.SERVER | import("@loopback/core").BindingScope.REQUEST) => import("@loopback/core").Context | undefined;
|
|
64
|
+
getResolutionContext: (binding: Readonly<Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
65
|
+
isVisibleTo: (ctx: import("@loopback/core").Context) => boolean;
|
|
66
|
+
find: <ValueType_1 = any>(pattern?: string | RegExp | import("@loopback/core").BindingFilter | undefined) => Readonly<Binding<ValueType_1>>[];
|
|
67
|
+
findByTag: <ValueType_2 = any>(tagFilter: RegExp | import("@loopback/core").BindingTag) => Readonly<Binding<ValueType_2>>[];
|
|
68
68
|
get: {
|
|
69
|
-
<ValueType_3>(keyWithPath: BindingAddress<ValueType_3>, session?:
|
|
70
|
-
<ValueType_4>(keyWithPath: BindingAddress<ValueType_4>, options:
|
|
69
|
+
<ValueType_3>(keyWithPath: BindingAddress<ValueType_3>, session?: import("@loopback/core").ResolutionSession | undefined): Promise<ValueType_3>;
|
|
70
|
+
<ValueType_4>(keyWithPath: BindingAddress<ValueType_4>, options: import("@loopback/core").ResolutionOptions): Promise<ValueType_4 | undefined>;
|
|
71
71
|
};
|
|
72
72
|
getSync: {
|
|
73
|
-
<ValueType_5>(keyWithPath: BindingAddress<ValueType_5>, session?:
|
|
74
|
-
<ValueType_6>(keyWithPath: BindingAddress<ValueType_6>, options?:
|
|
73
|
+
<ValueType_5>(keyWithPath: BindingAddress<ValueType_5>, session?: import("@loopback/core").ResolutionSession | undefined): ValueType_5;
|
|
74
|
+
<ValueType_6>(keyWithPath: BindingAddress<ValueType_6>, options?: import("@loopback/core").ResolutionOptions | undefined): ValueType_6 | undefined;
|
|
75
75
|
};
|
|
76
76
|
getBinding: {
|
|
77
77
|
<ValueType_7 = any>(key: BindingAddress<ValueType_7>): Binding<ValueType_7>;
|
|
@@ -79,16 +79,16 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
79
79
|
optional?: boolean | undefined;
|
|
80
80
|
} | undefined): Binding<ValueType_8> | undefined;
|
|
81
81
|
};
|
|
82
|
-
findOrCreateBinding: <T_8>(key: BindingAddress<T_8>, policy?:
|
|
83
|
-
getValueOrPromise: <ValueType_9>(keyWithPath: BindingAddress<ValueType_9>, optionsOrSession?:
|
|
84
|
-
toJSON: () =>
|
|
85
|
-
inspect: (options?:
|
|
82
|
+
findOrCreateBinding: <T_8>(key: BindingAddress<T_8>, policy?: import("@loopback/core").BindingCreationPolicy | undefined) => Binding<T_8>;
|
|
83
|
+
getValueOrPromise: <ValueType_9>(keyWithPath: BindingAddress<ValueType_9>, optionsOrSession?: import("@loopback/core").ResolutionOptionsOrSession | undefined) => import("@loopback/core").ValueOrPromise<ValueType_9 | undefined>;
|
|
84
|
+
toJSON: () => import("@loopback/core").JSONObject;
|
|
85
|
+
inspect: (options?: import("@loopback/core").ContextInspectOptions | undefined) => import("@loopback/core").JSONObject;
|
|
86
86
|
on: {
|
|
87
|
-
(eventName: "bind" | "unbind", listener:
|
|
87
|
+
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): Application;
|
|
88
88
|
(event: string | symbol, listener: (...args: any[]) => void): Application;
|
|
89
89
|
};
|
|
90
90
|
once: {
|
|
91
|
-
(eventName: "bind" | "unbind", listener:
|
|
91
|
+
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): Application;
|
|
92
92
|
(event: string | symbol, listener: (...args: any[]) => void): Application;
|
|
93
93
|
};
|
|
94
94
|
addListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
@@ -100,7 +100,7 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
100
100
|
listeners: (event: string | symbol) => Function[];
|
|
101
101
|
rawListeners: (event: string | symbol) => Function[];
|
|
102
102
|
emit: (event: string | symbol, ...args: any[]) => boolean;
|
|
103
|
-
listenerCount: (
|
|
103
|
+
listenerCount: (event: string | symbol) => number;
|
|
104
104
|
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
105
105
|
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
106
106
|
eventNames: () => (string | symbol)[];
|
|
@@ -116,7 +116,7 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
116
116
|
|
|
117
117
|
<b>Returns:</b>
|
|
118
118
|
|
|
119
|
-
{ new (...args: any\[\]): { serviceProvider<S>(provider: [Constructor](./context.constructor.md)<!-- --><[Provider](./context.provider.md)<!-- --><S>>, nameOrOptions?: string \| [ServiceOptions](./core.serviceoptions.md) \| undefined): [Binding](./context.binding.md)<!-- --><S>; component<C extends [Component](./core.component.md) = [Component](./core.component.md)<!-- -->>(componentCtor: [Constructor](./context.constructor.md)<!-- --><C>, nameOrOptions?: string \| [BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined): [Binding](./context.binding.md)<!-- --><C>; mountComponentServices<C\_1 extends [Component](./core.component.md) = [Component](./core.component.md)<!-- -->>(component: [Constructor](./context.constructor.md)<!-- --><C\_1>, componentBindingKey?: [BindingAddress](./context.bindingaddress.md)<!-- --><C\_1> \| undefined): void; readonly options: loopbackContext.[ApplicationConfig](./core.applicationconfig.md)<!-- -->; readonly state: string; controller: <T\_1>(controllerCtor: loopbackContext.[ControllerClass](./core.controllerclass.md)<!-- --><T\_1>, nameOrOptions?: string \| [BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_1>; server: <T\_2 extends loopbackContext.[Server](./core.server.md)<!-- -->>(ctor: [Constructor](./context.constructor.md)<!-- --><T\_2>, nameOrOptions?: string \| [BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_2>; servers: <T\_3 extends loopbackContext.[Server](./core.server.md)<!-- -->>(ctors: [Constructor](./context.constructor.md)<!-- --><T\_3>\[\]) => [Binding](./context.binding.md)<!-- --><any>\[\]; getServer: <T\_4 extends loopbackContext.[Server](./core.server.md)<!-- -->>(target: string \| [Constructor](./context.constructor.md)<!-- --><T\_4>) => Promise<T\_4>; init: () => Promise<void>; onInit: (fn: () => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => [Binding](./context.binding.md)<!-- --><loopbackContext.[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; start: () => Promise<void>; onStart: (fn: () => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => [Binding](./context.binding.md)<!-- --><loopbackContext.[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; stop: () => Promise<void>; onStop: (fn: () => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => [Binding](./context.binding.md)<!-- --><loopbackContext.[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; setMetadata: (metadata: loopbackContext.[ApplicationMetadata](./core.applicationmetadata.md)<!-- -->) => void; lifeCycleObserver: <T\_5 extends loopbackContext.[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>(ctor: [Constructor](./context.constructor.md)<!-- --><T\_5>, nameOrOptions?: string \| [BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_5>; service: <S\_1>(cls: loopbackContext.[ServiceOrProviderClass](./core.serviceorproviderclass.md)<!-- --><S\_1>, nameOrOptions?: string \| [ServiceOptions](./core.serviceoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><S\_1>; interceptor: (interceptor: loopbackContext.[Interceptor](./context.interceptor.md) \| [Constructor](./context.constructor.md)<!-- --><[Provider](./context.provider.md)<!-- --><loopbackContext.[Interceptor](./context.interceptor.md)<!-- -->>>, nameOrOptions?: string \| loopbackContext.[InterceptorBindingOptions](./context.interceptorbindingoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><loopbackContext.[Interceptor](./context.interceptor.md)<!-- -->>; readonly name: string; readonly subscriptionManager: loopbackContext.[ContextSubscriptionManager](./context.contextsubscriptionmanager.md)<!-- -->; scope: loopbackContext.[BindingScope](./context.bindingscope.md)<!-- -->; readonly parent: loopbackContext.[Context](./context.context.md) \| undefined; emitEvent: <T\_6 extends loopbackContext.[ContextEvent](./context.contextevent.md)<!-- -->>(type: string, event: T\_6) => void; emitError: (err: unknown) => void; bind: <ValueType = any>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType>) => [Binding](./context.binding.md)<!-- --><ValueType>; add: (binding: [Binding](./context.binding.md)<!-- --><unknown>) => [Application](./core.application.md)<!-- -->; configure: <ConfigValueType = any>(key?: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown> \| undefined) => [Binding](./context.binding.md)<!-- --><ConfigValueType>; getConfigAsValueOrPromise: <ConfigValueType\_1>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><ConfigValueType\_1 \| undefined>; getConfig: <ConfigValueType\_2>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => Promise<ConfigValueType\_2 \| undefined>; getConfigSync: <ConfigValueType\_3>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => ConfigValueType\_3 \| undefined; unbind: (key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; subscribe: (observer: loopbackContext.[ContextEventObserver](./context.contexteventobserver.md)<!-- -->) => loopbackContext.[Subscription](./context.subscription.md)<!-- -->; unsubscribe: (observer: loopbackContext.[ContextEventObserver](./context.contexteventobserver.md)<!-- -->) => boolean; close: () => void; isSubscribed: (observer: loopbackContext.[ContextObserver](./context.contextobserver.md)<!-- -->) => boolean; createView: <T\_7 = unknown>(filter: loopbackContext.[BindingFilter](./context.bindingfilter.md)<!-- -->, comparator?: loopbackContext.[BindingComparator](./context.bindingcomparator.md) \| undefined, options?: Omit<loopbackContext.[ResolutionOptions](./context.resolutionoptions.md)<!-- -->, "session"> \| undefined) => loopbackContext.[ContextView](./context.contextview.md)<!-- --><T\_7>; contains: (key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; isBound: (key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; getOwnerContext: (keyOrBinding: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown> \| Readonly<[Binding](./context.binding.md)<!-- --><unknown>>) => loopbackContext.[Context](./context.context.md) \| undefined; getScopedContext: (scope: loopbackContext.[BindingScope.APPLICATION](./context.bindingscope.md) \| loopbackContext.[BindingScope.SERVER](./context.bindingscope.md) \| loopbackContext.[BindingScope.REQUEST](./context.bindingscope.md)<!-- -->) => loopbackContext.[Context](./context.context.md) \| undefined; getResolutionContext: (binding: Readonly<[Binding](./context.binding.md)<!-- --><unknown>>) => loopbackContext.[Context](./context.context.md) \| undefined; isVisibleTo: (ctx: loopbackContext.[Context](./context.context.md)<!-- -->) => boolean; find: <ValueType\_1 = any>(pattern?: string \| RegExp \| loopbackContext.[BindingFilter](./context.bindingfilter.md) \| undefined) => Readonly<[Binding](./context.binding.md)<!-- --><ValueType\_1>>\[\]; findByTag: <ValueType\_2 = any>(tagFilter: RegExp \| loopbackContext.[BindingTag](./context.bindingtag.md)<!-- -->) => Readonly<[Binding](./context.binding.md)<!-- --><ValueType\_2>>\[\]; get: { <ValueType\_3>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_3>, session?: loopbackContext.[ResolutionSession](./context.resolutionsession.md) \| undefined): Promise<ValueType\_3>; <ValueType\_4>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_4>, options: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md)<!-- -->): Promise<ValueType\_4 \| undefined>; }; getSync: { <ValueType\_5>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_5>, session?: loopbackContext.[ResolutionSession](./context.resolutionsession.md) \| undefined): ValueType\_5; <ValueType\_6>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_6>, options?: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md) \| undefined): ValueType\_6 \| undefined; }; getBinding: { <ValueType\_7 = any>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_7>): [Binding](./context.binding.md)<!-- --><ValueType\_7>; <ValueType\_8>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_8>, options?: { optional?: boolean \| undefined; } \| undefined): [Binding](./context.binding.md)<!-- --><ValueType\_8> \| undefined; }; findOrCreateBinding: <T\_8>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><T\_8>, policy?: loopbackContext.[BindingCreationPolicy](./context.bindingcreationpolicy.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_8>; getValueOrPromise: <ValueType\_9>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_9>, optionsOrSession?: loopbackContext.[ResolutionOptionsOrSession](./context.resolutionoptionsorsession.md) \| undefined) => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><ValueType\_9 \| undefined>; toJSON: () => loopbackContext.[JSONObject](./context.jsonobject.md)<!-- -->; inspect: (options?: loopbackContext.[ContextInspectOptions](./context.contextinspectoptions.md) \| undefined) => loopbackContext.[JSONObject](./context.jsonobject.md)<!-- -->; on: { (eventName: "bind" \| "unbind", listener: loopbackContext.[ContextEventListener](./context.contexteventlistener.md)<!-- -->): [Application](./core.application.md)<!-- -->; (event: string \| symbol, listener: (...args: any\[\]) => void): [Application](./core.application.md)<!-- -->; }; once: { (eventName: "bind" \| "unbind", listener: loopbackContext.[ContextEventListener](./context.contexteventlistener.md)<!-- -->): [Application](./core.application.md)<!-- -->; (event: string \| symbol, listener: (...args: any\[\]) => void): [Application](./core.application.md)<!-- -->; }; addListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; removeListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; off: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; removeAllListeners: (event?: string \| symbol \| undefined) => [Application](./core.application.md)<!-- -->; setMaxListeners: (n: number) => [Application](./core.application.md)<!-- -->; getMaxListeners: () => number; listeners: (event: string \| symbol) => Function\[\]; rawListeners: (event: string \| symbol) => Function\[\]; emit: (event: string \| symbol, ...args: any\[\]) => boolean; listenerCount: (type: string \| symbol) => number; prependListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; prependOnceListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; eventNames: () => (string \| symbol)\[\]; }; } & T
|
|
119
|
+
{ new (...args: any\[\]): { serviceProvider<S>(provider: [Constructor](./context.constructor.md)<!-- --><[Provider](./context.provider.md)<!-- --><S>>, nameOrOptions?: string \| [ServiceOptions](./core.serviceoptions.md)<!-- -->): [Binding](./context.binding.md)<!-- --><S>; component<C extends [Component](./core.component.md) = [Component](./core.component.md)<!-- -->>(componentCtor: [Constructor](./context.constructor.md)<!-- --><C>, nameOrOptions?: string \| [BindingFromClassOptions](./context.bindingfromclassoptions.md)<!-- -->): [Binding](./context.binding.md)<!-- --><C>; mountComponentServices<C\_1 extends [Component](./core.component.md) = [Component](./core.component.md)<!-- -->>(component: [Constructor](./context.constructor.md)<!-- --><C\_1>, componentBindingKey?: [BindingAddress](./context.bindingaddress.md)<!-- --><C\_1> \| undefined): void; readonly options: import("@loopback/core").[ApplicationConfig](./core.applicationconfig.md)<!-- -->; readonly state: string; controller: <T\_1>(controllerCtor: import("@loopback/core").[ControllerClass](./core.controllerclass.md)<!-- --><T\_1>, nameOrOptions?: string \| [BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_1>; server: <T\_2 extends import("@loopback/core").[Server](./core.server.md)<!-- -->>(ctor: [Constructor](./context.constructor.md)<!-- --><T\_2>, nameOrOptions?: string \| [BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_2>; servers: <T\_3 extends import("@loopback/core").[Server](./core.server.md)<!-- -->>(ctors: [Constructor](./context.constructor.md)<!-- --><T\_3>\[\]) => [Binding](./context.binding.md)<!-- --><any>\[\]; getServer: <T\_4 extends import("@loopback/core").[Server](./core.server.md)<!-- -->>(target: string \| [Constructor](./context.constructor.md)<!-- --><T\_4>) => Promise<T\_4>; init: () => Promise<void>; onInit: (fn: () => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => [Binding](./context.binding.md)<!-- --><import("@loopback/core").[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; start: () => Promise<void>; onStart: (fn: () => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => [Binding](./context.binding.md)<!-- --><import("@loopback/core").[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; stop: () => Promise<void>; onStop: (fn: () => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => [Binding](./context.binding.md)<!-- --><import("@loopback/core").[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; setMetadata: (metadata: import("@loopback/core").[ApplicationMetadata](./core.applicationmetadata.md)<!-- -->) => void; lifeCycleObserver: <T\_5 extends import("@loopback/core").[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>(ctor: [Constructor](./context.constructor.md)<!-- --><T\_5>, nameOrOptions?: string \| [BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_5>; service: <S\_1>(cls: import("@loopback/core").[ServiceOrProviderClass](./core.serviceorproviderclass.md)<!-- --><S\_1>, nameOrOptions?: string \| [ServiceOptions](./core.serviceoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><S\_1>; interceptor: (interceptor: import("@loopback/core").[Interceptor](./context.interceptor.md) \| [Constructor](./context.constructor.md)<!-- --><[Provider](./context.provider.md)<!-- --><import("@loopback/core").[Interceptor](./context.interceptor.md)<!-- -->>>, nameOrOptions?: string \| import("@loopback/core").[InterceptorBindingOptions](./context.interceptorbindingoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><import("@loopback/core").[Interceptor](./context.interceptor.md)<!-- -->>; readonly name: string; readonly subscriptionManager: import("@loopback/core").[ContextSubscriptionManager](./context.contextsubscriptionmanager.md)<!-- -->; scope: import("@loopback/core").[BindingScope](./context.bindingscope.md)<!-- -->; readonly parent: import("@loopback/core").[Context](./context.context.md) \| undefined; emitEvent: <T\_6 extends import("@loopback/core").[ContextEvent](./context.contextevent.md)<!-- -->>(type: string, event: T\_6) => void; emitError: (err: unknown) => void; bind: <ValueType = any>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType>) => [Binding](./context.binding.md)<!-- --><ValueType>; add: (binding: [Binding](./context.binding.md)<!-- --><unknown>) => [Application](./core.application.md)<!-- -->; configure: <ConfigValueType = any>(key?: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown> \| undefined) => [Binding](./context.binding.md)<!-- --><ConfigValueType>; getConfigAsValueOrPromise: <ConfigValueType\_1>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><ConfigValueType\_1 \| undefined>; getConfig: <ConfigValueType\_2>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => Promise<ConfigValueType\_2 \| undefined>; getConfigSync: <ConfigValueType\_3>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => ConfigValueType\_3 \| undefined; unbind: (key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; subscribe: (observer: import("@loopback/core").[ContextEventObserver](./context.contexteventobserver.md)<!-- -->) => import("@loopback/core").[Subscription](./context.subscription.md)<!-- -->; unsubscribe: (observer: import("@loopback/core").[ContextEventObserver](./context.contexteventobserver.md)<!-- -->) => boolean; close: () => void; isSubscribed: (observer: import("@loopback/core").[ContextObserver](./context.contextobserver.md)<!-- -->) => boolean; createView: <T\_7 = unknown>(filter: import("@loopback/core").[BindingFilter](./context.bindingfilter.md)<!-- -->, comparator?: import("@loopback/core").[BindingComparator](./context.bindingcomparator.md) \| undefined, options?: Omit<import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md)<!-- -->, "session"> \| undefined) => import("@loopback/core").[ContextView](./context.contextview.md)<!-- --><T\_7>; contains: (key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; isBound: (key: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; getOwnerContext: (keyOrBinding: [BindingAddress](./context.bindingaddress.md)<!-- --><unknown> \| Readonly<[Binding](./context.binding.md)<!-- --><unknown>>) => import("@loopback/core").[Context](./context.context.md) \| undefined; getScopedContext: (scope: import("@loopback/core").[BindingScope.APPLICATION](./context.bindingscope.md) \| import("@loopback/core").[BindingScope.SERVER](./context.bindingscope.md) \| import("@loopback/core").[BindingScope.REQUEST](./context.bindingscope.md)<!-- -->) => import("@loopback/core").[Context](./context.context.md) \| undefined; getResolutionContext: (binding: Readonly<[Binding](./context.binding.md)<!-- --><unknown>>) => import("@loopback/core").[Context](./context.context.md) \| undefined; isVisibleTo: (ctx: import("@loopback/core").[Context](./context.context.md)<!-- -->) => boolean; find: <ValueType\_1 = any>(pattern?: string \| RegExp \| import("@loopback/core").[BindingFilter](./context.bindingfilter.md) \| undefined) => Readonly<[Binding](./context.binding.md)<!-- --><ValueType\_1>>\[\]; findByTag: <ValueType\_2 = any>(tagFilter: RegExp \| import("@loopback/core").[BindingTag](./context.bindingtag.md)<!-- -->) => Readonly<[Binding](./context.binding.md)<!-- --><ValueType\_2>>\[\]; get: { <ValueType\_3>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_3>, session?: import("@loopback/core").[ResolutionSession](./context.resolutionsession.md) \| undefined): Promise<ValueType\_3>; <ValueType\_4>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_4>, options: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md)<!-- -->): Promise<ValueType\_4 \| undefined>; }; getSync: { <ValueType\_5>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_5>, session?: import("@loopback/core").[ResolutionSession](./context.resolutionsession.md) \| undefined): ValueType\_5; <ValueType\_6>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_6>, options?: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md) \| undefined): ValueType\_6 \| undefined; }; getBinding: { <ValueType\_7 = any>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_7>): [Binding](./context.binding.md)<!-- --><ValueType\_7>; <ValueType\_8>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_8>, options?: { optional?: boolean \| undefined; } \| undefined): [Binding](./context.binding.md)<!-- --><ValueType\_8> \| undefined; }; findOrCreateBinding: <T\_8>(key: [BindingAddress](./context.bindingaddress.md)<!-- --><T\_8>, policy?: import("@loopback/core").[BindingCreationPolicy](./context.bindingcreationpolicy.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_8>; getValueOrPromise: <ValueType\_9>(keyWithPath: [BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_9>, optionsOrSession?: import("@loopback/core").[ResolutionOptionsOrSession](./context.resolutionoptionsorsession.md) \| undefined) => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><ValueType\_9 \| undefined>; toJSON: () => import("@loopback/core").[JSONObject](./context.jsonobject.md)<!-- -->; inspect: (options?: import("@loopback/core").[ContextInspectOptions](./context.contextinspectoptions.md) \| undefined) => import("@loopback/core").[JSONObject](./context.jsonobject.md)<!-- -->; on: { (eventName: "bind" \| "unbind", listener: import("@loopback/core").[ContextEventListener](./context.contexteventlistener.md)<!-- -->): [Application](./core.application.md)<!-- -->; (event: string \| symbol, listener: (...args: any\[\]) => void): [Application](./core.application.md)<!-- -->; }; once: { (eventName: "bind" \| "unbind", listener: import("@loopback/core").[ContextEventListener](./context.contexteventlistener.md)<!-- -->): [Application](./core.application.md)<!-- -->; (event: string \| symbol, listener: (...args: any\[\]) => void): [Application](./core.application.md)<!-- -->; }; addListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; removeListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; off: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; removeAllListeners: (event?: string \| symbol \| undefined) => [Application](./core.application.md)<!-- -->; setMaxListeners: (n: number) => [Application](./core.application.md)<!-- -->; getMaxListeners: () => number; listeners: (event: string \| symbol) => Function\[\]; rawListeners: (event: string \| symbol) => Function\[\]; emit: (event: string \| symbol, ...args: any\[\]) => boolean; listenerCount: (event: string \| symbol) => number; prependListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; prependOnceListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; eventNames: () => (string \| symbol)\[\]; }; } & T
|
|
120
120
|
|
|
121
121
|
A new class that extends the super class with service proxy related methods
|
|
122
122
|
|
|
@@ -16,7 +16,7 @@ permalink: /doc/en/lb4/apidocs.service-proxy.serviceproxy.html
|
|
|
16
16
|
<b>Signature:</b>
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
export declare function serviceProxy(dataSource: string | juggler.DataSource): (target: object, key: string, parameterIndex?: number
|
|
19
|
+
export declare function serviceProxy(dataSource: string | juggler.DataSource): (target: object, key: string, parameterIndex?: number) => void;
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Parameters
|
|
@@ -27,6 +27,6 @@ export declare function serviceProxy(dataSource: string | juggler.DataSource): (
|
|
|
27
27
|
|
|
28
28
|
<b>Returns:</b>
|
|
29
29
|
|
|
30
|
-
(target: object, key: string, parameterIndex?: number
|
|
30
|
+
(target: object, key: string, parameterIndex?: number) => void
|
|
31
31
|
|
|
32
32
|
|
|
@@ -19,89 +19,89 @@ permalink: /doc/en/lb4/apidocs.typeorm.typeormmixin.html
|
|
|
19
19
|
export declare function TypeOrmMixin<T extends MixinTarget<Application>>(superClass: T): {
|
|
20
20
|
new (...args: any[]): {
|
|
21
21
|
connectionManager: ConnectionManager;
|
|
22
|
-
connection(connectionConfig: ConnectionOptions):
|
|
22
|
+
connection(connectionConfig: ConnectionOptions): Binding<Connection>;
|
|
23
23
|
migrateSchema(): Promise<void>;
|
|
24
|
-
readonly options:
|
|
24
|
+
readonly options: import("@loopback/core").ApplicationConfig;
|
|
25
25
|
readonly state: string;
|
|
26
|
-
controller: <T_1>(controllerCtor:
|
|
27
|
-
server: <T_2 extends
|
|
28
|
-
servers: <T_3 extends
|
|
29
|
-
getServer: <T_4 extends
|
|
26
|
+
controller: <T_1>(controllerCtor: import("@loopback/core").ControllerClass<T_1>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => Binding<T_1>;
|
|
27
|
+
server: <T_2 extends import("@loopback/core").Server>(ctor: import("@loopback/core").Constructor<T_2>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => Binding<T_2>;
|
|
28
|
+
servers: <T_3 extends import("@loopback/core").Server>(ctors: import("@loopback/core").Constructor<T_3>[]) => Binding<any>[];
|
|
29
|
+
getServer: <T_4 extends import("@loopback/core").Server>(target: string | import("@loopback/core").Constructor<T_4>) => Promise<T_4>;
|
|
30
30
|
init: () => Promise<void>;
|
|
31
|
-
onInit: (fn: () =>
|
|
31
|
+
onInit: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<LifeCycleObserver>;
|
|
32
32
|
start: () => Promise<void>;
|
|
33
|
-
onStart: (fn: () =>
|
|
33
|
+
onStart: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<LifeCycleObserver>;
|
|
34
34
|
stop: () => Promise<void>;
|
|
35
|
-
onStop: (fn: () =>
|
|
36
|
-
component: <T_5 extends
|
|
37
|
-
setMetadata: (metadata:
|
|
38
|
-
lifeCycleObserver: <T_6 extends
|
|
39
|
-
service: <S>(cls:
|
|
40
|
-
interceptor: (interceptor:
|
|
35
|
+
onStop: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<LifeCycleObserver>;
|
|
36
|
+
component: <T_5 extends Component = Component>(componentCtor: import("@loopback/core").Constructor<T_5>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => Binding<T_5>;
|
|
37
|
+
setMetadata: (metadata: import("@loopback/core").ApplicationMetadata) => void;
|
|
38
|
+
lifeCycleObserver: <T_6 extends LifeCycleObserver>(ctor: import("@loopback/core").Constructor<T_6>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => Binding<T_6>;
|
|
39
|
+
service: <S>(cls: import("@loopback/core").ServiceOrProviderClass<S>, nameOrOptions?: string | import("@loopback/core").ServiceOptions | undefined) => Binding<S>;
|
|
40
|
+
interceptor: (interceptor: import("@loopback/core").Interceptor | import("@loopback/core").Constructor<import("@loopback/core").Provider<import("@loopback/core").Interceptor>>, nameOrOptions?: string | import("@loopback/core").InterceptorBindingOptions | undefined) => Binding<import("@loopback/core").Interceptor>;
|
|
41
41
|
readonly name: string;
|
|
42
|
-
readonly subscriptionManager:
|
|
43
|
-
scope:
|
|
44
|
-
readonly parent:
|
|
45
|
-
emitEvent: <T_7 extends
|
|
42
|
+
readonly subscriptionManager: import("@loopback/core").ContextSubscriptionManager;
|
|
43
|
+
scope: BindingScope;
|
|
44
|
+
readonly parent: import("@loopback/core").Context | undefined;
|
|
45
|
+
emitEvent: <T_7 extends import("@loopback/core").ContextEvent>(type: string, event: T_7) => void;
|
|
46
46
|
emitError: (err: unknown) => void;
|
|
47
|
-
bind: <ValueType = any>(key:
|
|
48
|
-
add: (binding:
|
|
49
|
-
configure: <ConfigValueType = any>(key?:
|
|
50
|
-
getConfigAsValueOrPromise: <ConfigValueType_1>(key:
|
|
51
|
-
getConfig: <ConfigValueType_2>(key:
|
|
52
|
-
getConfigSync: <ConfigValueType_3>(key:
|
|
53
|
-
unbind: (key:
|
|
54
|
-
subscribe: (observer:
|
|
55
|
-
unsubscribe: (observer:
|
|
47
|
+
bind: <ValueType = any>(key: import("@loopback/core").BindingAddress<ValueType>) => Binding<ValueType>;
|
|
48
|
+
add: (binding: Binding<unknown>) => Application;
|
|
49
|
+
configure: <ConfigValueType = any>(key?: import("@loopback/core").BindingAddress<unknown> | undefined) => Binding<ConfigValueType>;
|
|
50
|
+
getConfigAsValueOrPromise: <ConfigValueType_1>(key: import("@loopback/core").BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => import("@loopback/core").ValueOrPromise<ConfigValueType_1 | undefined>;
|
|
51
|
+
getConfig: <ConfigValueType_2>(key: import("@loopback/core").BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => Promise<ConfigValueType_2 | undefined>;
|
|
52
|
+
getConfigSync: <ConfigValueType_3>(key: import("@loopback/core").BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => ConfigValueType_3 | undefined;
|
|
53
|
+
unbind: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
54
|
+
subscribe: (observer: import("@loopback/core").ContextEventObserver) => import("@loopback/core").Subscription;
|
|
55
|
+
unsubscribe: (observer: import("@loopback/core").ContextEventObserver) => boolean;
|
|
56
56
|
close: () => void;
|
|
57
|
-
isSubscribed: (observer:
|
|
58
|
-
createView: <T_8 = unknown>(filter:
|
|
59
|
-
contains: (key:
|
|
60
|
-
isBound: (key:
|
|
61
|
-
getOwnerContext: (keyOrBinding:
|
|
62
|
-
getScopedContext: (scope:
|
|
63
|
-
getResolutionContext: (binding: Readonly<
|
|
64
|
-
isVisibleTo: (ctx:
|
|
65
|
-
find: <ValueType_1 = any>(pattern?: string | RegExp |
|
|
66
|
-
findByTag: <ValueType_2 = any>(tagFilter: RegExp |
|
|
57
|
+
isSubscribed: (observer: import("@loopback/core").ContextObserver) => boolean;
|
|
58
|
+
createView: <T_8 = unknown>(filter: import("@loopback/core").BindingFilter, comparator?: import("@loopback/core").BindingComparator | undefined, options?: Omit<import("@loopback/core").ResolutionOptions, "session"> | undefined) => import("@loopback/core").ContextView<T_8>;
|
|
59
|
+
contains: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
60
|
+
isBound: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
61
|
+
getOwnerContext: (keyOrBinding: import("@loopback/core").BindingAddress<unknown> | Readonly<Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
62
|
+
getScopedContext: (scope: BindingScope.APPLICATION | BindingScope.SERVER | BindingScope.REQUEST) => import("@loopback/core").Context | undefined;
|
|
63
|
+
getResolutionContext: (binding: Readonly<Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
64
|
+
isVisibleTo: (ctx: import("@loopback/core").Context) => boolean;
|
|
65
|
+
find: <ValueType_1 = any>(pattern?: string | RegExp | import("@loopback/core").BindingFilter | undefined) => Readonly<Binding<ValueType_1>>[];
|
|
66
|
+
findByTag: <ValueType_2 = any>(tagFilter: RegExp | import("@loopback/core").BindingTag) => Readonly<Binding<ValueType_2>>[];
|
|
67
67
|
get: {
|
|
68
|
-
<ValueType_3>(keyWithPath:
|
|
69
|
-
<ValueType_4>(keyWithPath:
|
|
68
|
+
<ValueType_3>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_3>, session?: import("@loopback/core").ResolutionSession | undefined): Promise<ValueType_3>;
|
|
69
|
+
<ValueType_4>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_4>, options: import("@loopback/core").ResolutionOptions): Promise<ValueType_4 | undefined>;
|
|
70
70
|
};
|
|
71
71
|
getSync: {
|
|
72
|
-
<ValueType_5>(keyWithPath:
|
|
73
|
-
<ValueType_6>(keyWithPath:
|
|
72
|
+
<ValueType_5>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_5>, session?: import("@loopback/core").ResolutionSession | undefined): ValueType_5;
|
|
73
|
+
<ValueType_6>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_6>, options?: import("@loopback/core").ResolutionOptions | undefined): ValueType_6 | undefined;
|
|
74
74
|
};
|
|
75
75
|
getBinding: {
|
|
76
|
-
<ValueType_7 = any>(key:
|
|
77
|
-
<ValueType_8>(key:
|
|
76
|
+
<ValueType_7 = any>(key: import("@loopback/core").BindingAddress<ValueType_7>): Binding<ValueType_7>;
|
|
77
|
+
<ValueType_8>(key: import("@loopback/core").BindingAddress<ValueType_8>, options?: {
|
|
78
78
|
optional?: boolean | undefined;
|
|
79
|
-
} | undefined):
|
|
79
|
+
} | undefined): Binding<ValueType_8> | undefined;
|
|
80
80
|
};
|
|
81
|
-
findOrCreateBinding: <T_9>(key:
|
|
82
|
-
getValueOrPromise: <ValueType_9>(keyWithPath:
|
|
83
|
-
toJSON: () =>
|
|
84
|
-
inspect: (options?:
|
|
81
|
+
findOrCreateBinding: <T_9>(key: import("@loopback/core").BindingAddress<T_9>, policy?: import("@loopback/core").BindingCreationPolicy | undefined) => Binding<T_9>;
|
|
82
|
+
getValueOrPromise: <ValueType_9>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_9>, optionsOrSession?: import("@loopback/core").ResolutionOptionsOrSession | undefined) => import("@loopback/core").ValueOrPromise<ValueType_9 | undefined>;
|
|
83
|
+
toJSON: () => import("@loopback/core").JSONObject;
|
|
84
|
+
inspect: (options?: import("@loopback/core").ContextInspectOptions | undefined) => import("@loopback/core").JSONObject;
|
|
85
85
|
on: {
|
|
86
|
-
(eventName: "bind" | "unbind", listener:
|
|
87
|
-
(event: string | symbol, listener: (...args: any[]) => void):
|
|
86
|
+
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): Application;
|
|
87
|
+
(event: string | symbol, listener: (...args: any[]) => void): Application;
|
|
88
88
|
};
|
|
89
89
|
once: {
|
|
90
|
-
(eventName: "bind" | "unbind", listener:
|
|
91
|
-
(event: string | symbol, listener: (...args: any[]) => void):
|
|
90
|
+
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): Application;
|
|
91
|
+
(event: string | symbol, listener: (...args: any[]) => void): Application;
|
|
92
92
|
};
|
|
93
|
-
addListener: (event: string | symbol, listener: (...args: any[]) => void) =>
|
|
94
|
-
removeListener: (event: string | symbol, listener: (...args: any[]) => void) =>
|
|
95
|
-
off: (event: string | symbol, listener: (...args: any[]) => void) =>
|
|
96
|
-
removeAllListeners: (event?: string | symbol | undefined) =>
|
|
97
|
-
setMaxListeners: (n: number) =>
|
|
93
|
+
addListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
94
|
+
removeListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
95
|
+
off: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
96
|
+
removeAllListeners: (event?: string | symbol | undefined) => Application;
|
|
97
|
+
setMaxListeners: (n: number) => Application;
|
|
98
98
|
getMaxListeners: () => number;
|
|
99
99
|
listeners: (event: string | symbol) => Function[];
|
|
100
100
|
rawListeners: (event: string | symbol) => Function[];
|
|
101
101
|
emit: (event: string | symbol, ...args: any[]) => boolean;
|
|
102
|
-
listenerCount: (
|
|
103
|
-
prependListener: (event: string | symbol, listener: (...args: any[]) => void) =>
|
|
104
|
-
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) =>
|
|
102
|
+
listenerCount: (event: string | symbol) => number;
|
|
103
|
+
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
104
|
+
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
105
105
|
eventNames: () => (string | symbol)[];
|
|
106
106
|
};
|
|
107
107
|
} & T;
|
|
@@ -115,6 +115,6 @@ export declare function TypeOrmMixin<T extends MixinTarget<Application>>(superCl
|
|
|
115
115
|
|
|
116
116
|
<b>Returns:</b>
|
|
117
117
|
|
|
118
|
-
{ new (...args: any\[\]): { connectionManager: ConnectionManager; connection(connectionConfig: ConnectionOptions): loopbackContext.[Binding](./context.binding.md)<!-- --><Connection>; migrateSchema(): Promise<void>; readonly options: loopbackContext.[ApplicationConfig](./core.applicationconfig.md)<!-- -->; readonly state: string; controller: <T\_1>(controllerCtor: loopbackContext.[ControllerClass](./core.controllerclass.md)<!-- --><T\_1>, nameOrOptions?: string \| loopbackContext.[BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => loopbackContext.[Binding](./context.binding.md)<!-- --><T\_1>; server: <T\_2 extends loopbackContext.[Server](./core.server.md)<!-- -->>(ctor: loopbackContext.[Constructor](./context.constructor.md)<!-- --><T\_2>, nameOrOptions?: string \| loopbackContext.[BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => loopbackContext.[Binding](./context.binding.md)<!-- --><T\_2>; servers: <T\_3 extends loopbackContext.[Server](./core.server.md)<!-- -->>(ctors: loopbackContext.[Constructor](./context.constructor.md)<!-- --><T\_3>\[\]) => loopbackContext.[Binding](./context.binding.md)<!-- --><any>\[\]; getServer: <T\_4 extends loopbackContext.[Server](./core.server.md)<!-- -->>(target: string \| loopbackContext.[Constructor](./context.constructor.md)<!-- --><T\_4>) => Promise<T\_4>; init: () => Promise<void>; onInit: (fn: () => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => loopbackContext.[Binding](./context.binding.md)<!-- --><loopbackContext.[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; start: () => Promise<void>; onStart: (fn: () => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => loopbackContext.[Binding](./context.binding.md)<!-- --><loopbackContext.[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; stop: () => Promise<void>; onStop: (fn: () => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => loopbackContext.[Binding](./context.binding.md)<!-- --><loopbackContext.[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; component: <T\_5 extends loopbackContext.[Component](./core.component.md) = loopbackContext.[Component](./core.component.md)<!-- -->>(componentCtor: loopbackContext.[Constructor](./context.constructor.md)<!-- --><T\_5>, nameOrOptions?: string \| loopbackContext.[BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => loopbackContext.[Binding](./context.binding.md)<!-- --><T\_5>; setMetadata: (metadata: loopbackContext.[ApplicationMetadata](./core.applicationmetadata.md)<!-- -->) => void; lifeCycleObserver: <T\_6 extends loopbackContext.[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>(ctor: loopbackContext.[Constructor](./context.constructor.md)<!-- --><T\_6>, nameOrOptions?: string \| loopbackContext.[BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => loopbackContext.[Binding](./context.binding.md)<!-- --><T\_6>; service: <S>(cls: loopbackContext.[ServiceOrProviderClass](./core.serviceorproviderclass.md)<!-- --><S>, nameOrOptions?: string \| loopbackContext.[ServiceOptions](./core.serviceoptions.md) \| undefined) => loopbackContext.[Binding](./context.binding.md)<!-- --><S>; interceptor: (interceptor: loopbackContext.[Interceptor](./context.interceptor.md) \| loopbackContext.[Constructor](./context.constructor.md)<!-- --><loopbackContext.[Provider](./context.provider.md)<!-- --><loopbackContext.[Interceptor](./context.interceptor.md)<!-- -->>>, nameOrOptions?: string \| loopbackContext.[InterceptorBindingOptions](./context.interceptorbindingoptions.md) \| undefined) => loopbackContext.[Binding](./context.binding.md)<!-- --><loopbackContext.[Interceptor](./context.interceptor.md)<!-- -->>; readonly name: string; readonly subscriptionManager: loopbackContext.[ContextSubscriptionManager](./context.contextsubscriptionmanager.md)<!-- -->; scope: loopbackContext.[BindingScope](./context.bindingscope.md)<!-- -->; readonly parent: loopbackContext.[Context](./context.context.md) \| undefined; emitEvent: <T\_7 extends loopbackContext.[ContextEvent](./context.contextevent.md)<!-- -->>(type: string, event: T\_7) => void; emitError: (err: unknown) => void; bind: <ValueType = any>(key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType>) => loopbackContext.[Binding](./context.binding.md)<!-- --><ValueType>; add: (binding: loopbackContext.[Binding](./context.binding.md)<!-- --><unknown>) => loopbackContext.[Application](./core.application.md)<!-- -->; configure: <ConfigValueType = any>(key?: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><unknown> \| undefined) => loopbackContext.[Binding](./context.binding.md)<!-- --><ConfigValueType>; getConfigAsValueOrPromise: <ConfigValueType\_1>(key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><ConfigValueType\_1 \| undefined>; getConfig: <ConfigValueType\_2>(key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => Promise<ConfigValueType\_2 \| undefined>; getConfigSync: <ConfigValueType\_3>(key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => ConfigValueType\_3 \| undefined; unbind: (key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; subscribe: (observer: loopbackContext.[ContextEventObserver](./context.contexteventobserver.md)<!-- -->) => loopbackContext.[Subscription](./context.subscription.md)<!-- -->; unsubscribe: (observer: loopbackContext.[ContextEventObserver](./context.contexteventobserver.md)<!-- -->) => boolean; close: () => void; isSubscribed: (observer: loopbackContext.[ContextObserver](./context.contextobserver.md)<!-- -->) => boolean; createView: <T\_8 = unknown>(filter: loopbackContext.[BindingFilter](./context.bindingfilter.md)<!-- -->, comparator?: loopbackContext.[BindingComparator](./context.bindingcomparator.md) \| undefined, options?: Omit<loopbackContext.[ResolutionOptions](./context.resolutionoptions.md)<!-- -->, "session"> \| undefined) => loopbackContext.[ContextView](./context.contextview.md)<!-- --><T\_8>; contains: (key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; isBound: (key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; getOwnerContext: (keyOrBinding: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><unknown> \| Readonly<loopbackContext.[Binding](./context.binding.md)<!-- --><unknown>>) => loopbackContext.[Context](./context.context.md) \| undefined; getScopedContext: (scope: loopbackContext.[BindingScope.APPLICATION](./context.bindingscope.md) \| loopbackContext.[BindingScope.SERVER](./context.bindingscope.md) \| loopbackContext.[BindingScope.REQUEST](./context.bindingscope.md)<!-- -->) => loopbackContext.[Context](./context.context.md) \| undefined; getResolutionContext: (binding: Readonly<loopbackContext.[Binding](./context.binding.md)<!-- --><unknown>>) => loopbackContext.[Context](./context.context.md) \| undefined; isVisibleTo: (ctx: loopbackContext.[Context](./context.context.md)<!-- -->) => boolean; find: <ValueType\_1 = any>(pattern?: string \| RegExp \| loopbackContext.[BindingFilter](./context.bindingfilter.md) \| undefined) => Readonly<loopbackContext.[Binding](./context.binding.md)<!-- --><ValueType\_1>>\[\]; findByTag: <ValueType\_2 = any>(tagFilter: RegExp \| loopbackContext.[BindingTag](./context.bindingtag.md)<!-- -->) => Readonly<loopbackContext.[Binding](./context.binding.md)<!-- --><ValueType\_2>>\[\]; get: { <ValueType\_3>(keyWithPath: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_3>, session?: loopbackContext.[ResolutionSession](./context.resolutionsession.md) \| undefined): Promise<ValueType\_3>; <ValueType\_4>(keyWithPath: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_4>, options: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md)<!-- -->): Promise<ValueType\_4 \| undefined>; }; getSync: { <ValueType\_5>(keyWithPath: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_5>, session?: loopbackContext.[ResolutionSession](./context.resolutionsession.md) \| undefined): ValueType\_5; <ValueType\_6>(keyWithPath: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_6>, options?: loopbackContext.[ResolutionOptions](./context.resolutionoptions.md) \| undefined): ValueType\_6 \| undefined; }; getBinding: { <ValueType\_7 = any>(key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_7>): loopbackContext.[Binding](./context.binding.md)<!-- --><ValueType\_7>; <ValueType\_8>(key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_8>, options?: { optional?: boolean \| undefined; } \| undefined): loopbackContext.[Binding](./context.binding.md)<!-- --><ValueType\_8> \| undefined; }; findOrCreateBinding: <T\_9>(key: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><T\_9>, policy?: loopbackContext.[BindingCreationPolicy](./context.bindingcreationpolicy.md) \| undefined) => loopbackContext.[Binding](./context.binding.md)<!-- --><T\_9>; getValueOrPromise: <ValueType\_9>(keyWithPath: loopbackContext.[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_9>, optionsOrSession?: loopbackContext.[ResolutionOptionsOrSession](./context.resolutionoptionsorsession.md) \| undefined) => loopbackContext.[ValueOrPromise](./context.valueorpromise.md)<!-- --><ValueType\_9 \| undefined>; toJSON: () => loopbackContext.[JSONObject](./context.jsonobject.md)<!-- -->; inspect: (options?: loopbackContext.[ContextInspectOptions](./context.contextinspectoptions.md) \| undefined) => loopbackContext.[JSONObject](./context.jsonobject.md)<!-- -->; on: { (eventName: "bind" \| "unbind", listener: loopbackContext.[ContextEventListener](./context.contexteventlistener.md)<!-- -->): loopbackContext.[Application](./core.application.md)<!-- -->; (event: string \| symbol, listener: (...args: any\[\]) => void): loopbackContext.[Application](./core.application.md)<!-- -->; }; once: { (eventName: "bind" \| "unbind", listener: loopbackContext.[ContextEventListener](./context.contexteventlistener.md)<!-- -->): loopbackContext.[Application](./core.application.md)<!-- -->; (event: string \| symbol, listener: (...args: any\[\]) => void): loopbackContext.[Application](./core.application.md)<!-- -->; }; addListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => loopbackContext.[Application](./core.application.md)<!-- -->; removeListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => loopbackContext.[Application](./core.application.md)<!-- -->; off: (event: string \| symbol, listener: (...args: any\[\]) => void) => loopbackContext.[Application](./core.application.md)<!-- -->; removeAllListeners: (event?: string \| symbol \| undefined) => loopbackContext.[Application](./core.application.md)<!-- -->; setMaxListeners: (n: number) => loopbackContext.[Application](./core.application.md)<!-- -->; getMaxListeners: () => number; listeners: (event: string \| symbol) => Function\[\]; rawListeners: (event: string \| symbol) => Function\[\]; emit: (event: string \| symbol, ...args: any\[\]) => boolean; listenerCount: (type: string \| symbol) => number; prependListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => loopbackContext.[Application](./core.application.md)<!-- -->; prependOnceListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => loopbackContext.[Application](./core.application.md)<!-- -->; eventNames: () => (string \| symbol)\[\]; }; } & T
|
|
118
|
+
{ new (...args: any\[\]): { connectionManager: ConnectionManager; connection(connectionConfig: ConnectionOptions): [Binding](./context.binding.md)<!-- --><Connection>; migrateSchema(): Promise<void>; readonly options: import("@loopback/core").[ApplicationConfig](./core.applicationconfig.md)<!-- -->; readonly state: string; controller: <T\_1>(controllerCtor: import("@loopback/core").[ControllerClass](./core.controllerclass.md)<!-- --><T\_1>, nameOrOptions?: string \| import("@loopback/core").[BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_1>; server: <T\_2 extends import("@loopback/core").[Server](./core.server.md)<!-- -->>(ctor: import("@loopback/core").[Constructor](./context.constructor.md)<!-- --><T\_2>, nameOrOptions?: string \| import("@loopback/core").[BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_2>; servers: <T\_3 extends import("@loopback/core").[Server](./core.server.md)<!-- -->>(ctors: import("@loopback/core").[Constructor](./context.constructor.md)<!-- --><T\_3>\[\]) => [Binding](./context.binding.md)<!-- --><any>\[\]; getServer: <T\_4 extends import("@loopback/core").[Server](./core.server.md)<!-- -->>(target: string \| import("@loopback/core").[Constructor](./context.constructor.md)<!-- --><T\_4>) => Promise<T\_4>; init: () => Promise<void>; onInit: (fn: () => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => [Binding](./context.binding.md)<!-- --><[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; start: () => Promise<void>; onStart: (fn: () => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => [Binding](./context.binding.md)<!-- --><[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; stop: () => Promise<void>; onStop: (fn: () => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>) => [Binding](./context.binding.md)<!-- --><[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>; component: <T\_5 extends [Component](./core.component.md) = [Component](./core.component.md)<!-- -->>(componentCtor: import("@loopback/core").[Constructor](./context.constructor.md)<!-- --><T\_5>, nameOrOptions?: string \| import("@loopback/core").[BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_5>; setMetadata: (metadata: import("@loopback/core").[ApplicationMetadata](./core.applicationmetadata.md)<!-- -->) => void; lifeCycleObserver: <T\_6 extends [LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>(ctor: import("@loopback/core").[Constructor](./context.constructor.md)<!-- --><T\_6>, nameOrOptions?: string \| import("@loopback/core").[BindingFromClassOptions](./context.bindingfromclassoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_6>; service: <S>(cls: import("@loopback/core").[ServiceOrProviderClass](./core.serviceorproviderclass.md)<!-- --><S>, nameOrOptions?: string \| import("@loopback/core").[ServiceOptions](./core.serviceoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><S>; interceptor: (interceptor: import("@loopback/core").[Interceptor](./context.interceptor.md) \| import("@loopback/core").[Constructor](./context.constructor.md)<!-- --><import("@loopback/core").[Provider](./context.provider.md)<!-- --><import("@loopback/core").[Interceptor](./context.interceptor.md)<!-- -->>>, nameOrOptions?: string \| import("@loopback/core").[InterceptorBindingOptions](./context.interceptorbindingoptions.md) \| undefined) => [Binding](./context.binding.md)<!-- --><import("@loopback/core").[Interceptor](./context.interceptor.md)<!-- -->>; readonly name: string; readonly subscriptionManager: import("@loopback/core").[ContextSubscriptionManager](./context.contextsubscriptionmanager.md)<!-- -->; scope: [BindingScope](./context.bindingscope.md)<!-- -->; readonly parent: import("@loopback/core").[Context](./context.context.md) \| undefined; emitEvent: <T\_7 extends import("@loopback/core").[ContextEvent](./context.contextevent.md)<!-- -->>(type: string, event: T\_7) => void; emitError: (err: unknown) => void; bind: <ValueType = any>(key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType>) => [Binding](./context.binding.md)<!-- --><ValueType>; add: (binding: [Binding](./context.binding.md)<!-- --><unknown>) => [Application](./core.application.md)<!-- -->; configure: <ConfigValueType = any>(key?: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><unknown> \| undefined) => [Binding](./context.binding.md)<!-- --><ConfigValueType>; getConfigAsValueOrPromise: <ConfigValueType\_1>(key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><ConfigValueType\_1 \| undefined>; getConfig: <ConfigValueType\_2>(key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => Promise<ConfigValueType\_2 \| undefined>; getConfigSync: <ConfigValueType\_3>(key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>, propertyPath?: string \| undefined, resolutionOptions?: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md) \| undefined) => ConfigValueType\_3 \| undefined; unbind: (key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; subscribe: (observer: import("@loopback/core").[ContextEventObserver](./context.contexteventobserver.md)<!-- -->) => import("@loopback/core").[Subscription](./context.subscription.md)<!-- -->; unsubscribe: (observer: import("@loopback/core").[ContextEventObserver](./context.contexteventobserver.md)<!-- -->) => boolean; close: () => void; isSubscribed: (observer: import("@loopback/core").[ContextObserver](./context.contextobserver.md)<!-- -->) => boolean; createView: <T\_8 = unknown>(filter: import("@loopback/core").[BindingFilter](./context.bindingfilter.md)<!-- -->, comparator?: import("@loopback/core").[BindingComparator](./context.bindingcomparator.md) \| undefined, options?: Omit<import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md)<!-- -->, "session"> \| undefined) => import("@loopback/core").[ContextView](./context.contextview.md)<!-- --><T\_8>; contains: (key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; isBound: (key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><unknown>) => boolean; getOwnerContext: (keyOrBinding: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><unknown> \| Readonly<[Binding](./context.binding.md)<!-- --><unknown>>) => import("@loopback/core").[Context](./context.context.md) \| undefined; getScopedContext: (scope: [BindingScope.APPLICATION](./context.bindingscope.md) \| [BindingScope.SERVER](./context.bindingscope.md) \| [BindingScope.REQUEST](./context.bindingscope.md)<!-- -->) => import("@loopback/core").[Context](./context.context.md) \| undefined; getResolutionContext: (binding: Readonly<[Binding](./context.binding.md)<!-- --><unknown>>) => import("@loopback/core").[Context](./context.context.md) \| undefined; isVisibleTo: (ctx: import("@loopback/core").[Context](./context.context.md)<!-- -->) => boolean; find: <ValueType\_1 = any>(pattern?: string \| RegExp \| import("@loopback/core").[BindingFilter](./context.bindingfilter.md) \| undefined) => Readonly<[Binding](./context.binding.md)<!-- --><ValueType\_1>>\[\]; findByTag: <ValueType\_2 = any>(tagFilter: RegExp \| import("@loopback/core").[BindingTag](./context.bindingtag.md)<!-- -->) => Readonly<[Binding](./context.binding.md)<!-- --><ValueType\_2>>\[\]; get: { <ValueType\_3>(keyWithPath: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_3>, session?: import("@loopback/core").[ResolutionSession](./context.resolutionsession.md) \| undefined): Promise<ValueType\_3>; <ValueType\_4>(keyWithPath: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_4>, options: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md)<!-- -->): Promise<ValueType\_4 \| undefined>; }; getSync: { <ValueType\_5>(keyWithPath: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_5>, session?: import("@loopback/core").[ResolutionSession](./context.resolutionsession.md) \| undefined): ValueType\_5; <ValueType\_6>(keyWithPath: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_6>, options?: import("@loopback/core").[ResolutionOptions](./context.resolutionoptions.md) \| undefined): ValueType\_6 \| undefined; }; getBinding: { <ValueType\_7 = any>(key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_7>): [Binding](./context.binding.md)<!-- --><ValueType\_7>; <ValueType\_8>(key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_8>, options?: { optional?: boolean \| undefined; } \| undefined): [Binding](./context.binding.md)<!-- --><ValueType\_8> \| undefined; }; findOrCreateBinding: <T\_9>(key: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><T\_9>, policy?: import("@loopback/core").[BindingCreationPolicy](./context.bindingcreationpolicy.md) \| undefined) => [Binding](./context.binding.md)<!-- --><T\_9>; getValueOrPromise: <ValueType\_9>(keyWithPath: import("@loopback/core").[BindingAddress](./context.bindingaddress.md)<!-- --><ValueType\_9>, optionsOrSession?: import("@loopback/core").[ResolutionOptionsOrSession](./context.resolutionoptionsorsession.md) \| undefined) => import("@loopback/core").[ValueOrPromise](./context.valueorpromise.md)<!-- --><ValueType\_9 \| undefined>; toJSON: () => import("@loopback/core").[JSONObject](./context.jsonobject.md)<!-- -->; inspect: (options?: import("@loopback/core").[ContextInspectOptions](./context.contextinspectoptions.md) \| undefined) => import("@loopback/core").[JSONObject](./context.jsonobject.md)<!-- -->; on: { (eventName: "bind" \| "unbind", listener: import("@loopback/core").[ContextEventListener](./context.contexteventlistener.md)<!-- -->): [Application](./core.application.md)<!-- -->; (event: string \| symbol, listener: (...args: any\[\]) => void): [Application](./core.application.md)<!-- -->; }; once: { (eventName: "bind" \| "unbind", listener: import("@loopback/core").[ContextEventListener](./context.contexteventlistener.md)<!-- -->): [Application](./core.application.md)<!-- -->; (event: string \| symbol, listener: (...args: any\[\]) => void): [Application](./core.application.md)<!-- -->; }; addListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; removeListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; off: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; removeAllListeners: (event?: string \| symbol \| undefined) => [Application](./core.application.md)<!-- -->; setMaxListeners: (n: number) => [Application](./core.application.md)<!-- -->; getMaxListeners: () => number; listeners: (event: string \| symbol) => Function\[\]; rawListeners: (event: string \| symbol) => Function\[\]; emit: (event: string \| symbol, ...args: any\[\]) => boolean; listenerCount: (event: string \| symbol) => number; prependListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; prependOnceListener: (event: string \| symbol, listener: (...args: any\[\]) => void) => [Application](./core.application.md)<!-- -->; eventNames: () => (string \| symbol)\[\]; }; } & T
|
|
119
119
|
|
|
120
120
|
|
|
@@ -13,6 +13,20 @@ permalink: /doc/en/lb4/changelog.rest-msgpack.html
|
|
|
13
13
|
All notable changes to this project will be documented in this file.
|
|
14
14
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
15
15
|
|
|
16
|
+
## [0.8.0](https://github.com/loopbackio/loopback-next/compare/@loopback/rest-msgpack@0.7.2...@loopback/rest-msgpack@0.8.0) (2022-05-05)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### ⚠ BREAKING CHANGES
|
|
20
|
+
|
|
21
|
+
* remove node v12 support
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add support for node v18 ([ccb4c61](https://github.com/loopbackio/loopback-next/commit/ccb4c61307d94ab7bb07a19c547dfc4fa7d388a8))
|
|
26
|
+
* remove node v12 support ([5f66e5b](https://github.com/loopbackio/loopback-next/commit/5f66e5bd288ba806b3aa6550fc29c5009de8b60d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
16
30
|
## [0.7.2](https://github.com/loopbackio/loopback-next/compare/@loopback/rest-msgpack@0.7.1...@loopback/rest-msgpack@0.7.2) (2022-03-29)
|
|
17
31
|
|
|
18
32
|
**Note:** Version bump only for package @loopback/rest-msgpack
|
|
@@ -13,6 +13,20 @@ permalink: /doc/en/lb4/changelog.example-access-control-migration.html
|
|
|
13
13
|
All notable changes to this project will be documented in this file.
|
|
14
14
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
15
15
|
|
|
16
|
+
## [5.0.0](https://github.com/loopbackio/loopback-next/compare/@loopback/example-access-control-migration@4.1.2...@loopback/example-access-control-migration@5.0.0) (2022-05-05)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### ⚠ BREAKING CHANGES
|
|
20
|
+
|
|
21
|
+
* remove node v12 support
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add support for node v18 ([ccb4c61](https://github.com/loopbackio/loopback-next/commit/ccb4c61307d94ab7bb07a19c547dfc4fa7d388a8))
|
|
26
|
+
* remove node v12 support ([5f66e5b](https://github.com/loopbackio/loopback-next/commit/5f66e5bd288ba806b3aa6550fc29c5009de8b60d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
16
30
|
## [4.1.2](https://github.com/loopbackio/loopback-next/compare/@loopback/example-access-control-migration@4.1.1...@loopback/example-access-control-migration@4.1.2) (2022-03-29)
|
|
17
31
|
|
|
18
32
|
**Note:** Version bump only for package @loopback/example-access-control-migration
|
|
@@ -13,6 +13,20 @@ permalink: /doc/en/lb4/changelog.example-binding-resolution.html
|
|
|
13
13
|
All notable changes to this project will be documented in this file.
|
|
14
14
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
15
15
|
|
|
16
|
+
## [0.7.0](https://github.com/loopbackio/loopback-next/compare/@loopback/example-binding-resolution@0.6.2...@loopback/example-binding-resolution@0.7.0) (2022-05-05)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### ⚠ BREAKING CHANGES
|
|
20
|
+
|
|
21
|
+
* remove node v12 support
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add support for node v18 ([ccb4c61](https://github.com/loopbackio/loopback-next/commit/ccb4c61307d94ab7bb07a19c547dfc4fa7d388a8))
|
|
26
|
+
* remove node v12 support ([5f66e5b](https://github.com/loopbackio/loopback-next/commit/5f66e5bd288ba806b3aa6550fc29c5009de8b60d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
16
30
|
## [0.6.2](https://github.com/loopbackio/loopback-next/compare/@loopback/example-binding-resolution@0.6.1...@loopback/example-binding-resolution@0.6.2) (2022-03-29)
|
|
17
31
|
|
|
18
32
|
**Note:** Version bump only for package @loopback/example-binding-resolution
|
|
@@ -13,6 +13,20 @@ permalink: /doc/en/lb4/changelog.example-context.html
|
|
|
13
13
|
All notable changes to this project will be documented in this file.
|
|
14
14
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
15
15
|
|
|
16
|
+
## [5.0.0](https://github.com/loopbackio/loopback-next/compare/@loopback/example-context@4.1.2...@loopback/example-context@5.0.0) (2022-05-05)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### ⚠ BREAKING CHANGES
|
|
20
|
+
|
|
21
|
+
* remove node v12 support
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add support for node v18 ([ccb4c61](https://github.com/loopbackio/loopback-next/commit/ccb4c61307d94ab7bb07a19c547dfc4fa7d388a8))
|
|
26
|
+
* remove node v12 support ([5f66e5b](https://github.com/loopbackio/loopback-next/commit/5f66e5bd288ba806b3aa6550fc29c5009de8b60d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
16
30
|
## [4.1.2](https://github.com/loopbackio/loopback-next/compare/@loopback/example-context@4.1.1...@loopback/example-context@4.1.2) (2022-03-29)
|
|
17
31
|
|
|
18
32
|
**Note:** Version bump only for package @loopback/example-context
|