@loopback/example-references-many 7.0.0 → 7.1.1
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 +19 -0
- package/dist/application.d.ts +59 -59
- package/dist/controllers/account.controller.js +2 -3
- package/dist/controllers/account.controller.js.map +1 -1
- package/dist/controllers/customer.controller.js +2 -3
- package/dist/controllers/customer.controller.js.map +1 -1
- package/dist/datasources/db.datasource.js +2 -3
- package/dist/datasources/db.datasource.js.map +1 -1
- package/dist/models/account.model.js +2 -3
- package/dist/models/account.model.js.map +1 -1
- package/dist/models/customer.model.js +2 -3
- package/dist/models/customer.model.js.map +1 -1
- package/dist/repositories/account.repository.js +2 -3
- package/dist/repositories/account.repository.js.map +1 -1
- package/dist/repositories/customer.repository.js +2 -3
- package/dist/repositories/customer.repository.js.map +1 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.1.1](https://github.com/loopbackio/loopback-next/compare/@loopback/example-references-many@7.1.0...@loopback/example-references-many@7.1.1) (2023-07-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @loopback/example-references-many
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [7.1.0](https://github.com/loopbackio/loopback-next/compare/@loopback/example-references-many@7.0.0...@loopback/example-references-many@7.1.0) (2023-06-28)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* update dependency @types/node to ^16 ([2af42b7](https://github.com/loopbackio/loopback-next/commit/2af42b721c6dfc2df49bfcac1cbea478aba417ab))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [7.0.0](https://github.com/loopbackio/loopback-next/compare/@loopback/example-references-many@6.0.10...@loopback/example-references-many@7.0.0) (2023-05-15)
|
|
7
26
|
|
|
8
27
|
|
package/dist/application.d.ts
CHANGED
|
@@ -13,24 +13,24 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
13
13
|
mountComponentBooters(componentInstanceOrClass: import("@loopback/core").Constructor<unknown> | import("@loopback/boot").InstanceWithBooters): void;
|
|
14
14
|
readonly options: ApplicationConfig;
|
|
15
15
|
readonly state: string;
|
|
16
|
-
controller: <
|
|
17
|
-
server: <
|
|
18
|
-
servers: <
|
|
19
|
-
getServer: <
|
|
16
|
+
controller: <T>(controllerCtor: import("@loopback/core").ControllerClass<T>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T>;
|
|
17
|
+
server: <T_1 extends import("@loopback/core").Server>(ctor: import("@loopback/core").Constructor<T_1>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_1>;
|
|
18
|
+
servers: <T_2 extends import("@loopback/core").Server>(ctors: import("@loopback/core").Constructor<T_2>[]) => import("@loopback/boot").Binding<any>[];
|
|
19
|
+
getServer: <T_3 extends import("@loopback/core").Server>(target: string | import("@loopback/core").Constructor<T_3>) => Promise<T_3>;
|
|
20
20
|
init: () => Promise<void>;
|
|
21
21
|
onInit: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
22
22
|
onStart: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
23
23
|
stop: () => Promise<void>;
|
|
24
24
|
onStop: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
25
25
|
setMetadata: (metadata: import("@loopback/core").ApplicationMetadata) => void;
|
|
26
|
-
lifeCycleObserver: <
|
|
26
|
+
lifeCycleObserver: <T_4 extends import("@loopback/core").LifeCycleObserver>(ctor: import("@loopback/core").Constructor<T_4>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_4>;
|
|
27
27
|
service: <S>(cls: import("@loopback/core").ServiceOrProviderClass<S>, nameOrOptions?: string | import("@loopback/core").ServiceOptions | undefined) => import("@loopback/boot").Binding<S>;
|
|
28
28
|
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) => import("@loopback/boot").Binding<import("@loopback/core").Interceptor>;
|
|
29
29
|
readonly name: string;
|
|
30
30
|
readonly subscriptionManager: import("@loopback/core").ContextSubscriptionManager;
|
|
31
31
|
scope: import("@loopback/core").BindingScope;
|
|
32
32
|
readonly parent: import("@loopback/core").Context | undefined;
|
|
33
|
-
emitEvent: <
|
|
33
|
+
emitEvent: <T_5 extends import("@loopback/core").ContextEvent>(type: string, event: T_5) => void;
|
|
34
34
|
emitError: (err: unknown) => void;
|
|
35
35
|
bind: <ValueType = any>(key: import("@loopback/core").BindingAddress<ValueType>) => import("@loopback/boot").Binding<ValueType>;
|
|
36
36
|
add: (binding: import("@loopback/boot").Binding<unknown>) => import("@loopback/core").Application;
|
|
@@ -43,7 +43,7 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
43
43
|
unsubscribe: (observer: import("@loopback/core").ContextEventObserver) => boolean;
|
|
44
44
|
close: () => void;
|
|
45
45
|
isSubscribed: (observer: import("@loopback/core").ContextObserver) => boolean;
|
|
46
|
-
createView: <
|
|
46
|
+
createView: <T_6 = 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_6>;
|
|
47
47
|
contains: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
48
48
|
isBound: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
49
49
|
getOwnerContext: (keyOrBinding: import("@loopback/core").BindingAddress<unknown> | Readonly<import("@loopback/boot").Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
@@ -66,7 +66,7 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
66
66
|
optional?: boolean | undefined;
|
|
67
67
|
} | undefined): import("@loopback/boot").Binding<ValueType_8> | undefined;
|
|
68
68
|
};
|
|
69
|
-
findOrCreateBinding: <
|
|
69
|
+
findOrCreateBinding: <T_7>(key: import("@loopback/core").BindingAddress<T_7>, policy?: import("@loopback/core").BindingCreationPolicy | undefined) => import("@loopback/boot").Binding<T_7>;
|
|
70
70
|
getValueOrPromise: <ValueType_9>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_9>, optionsOrSession?: import("@loopback/core").ResolutionOptionsOrSession | undefined) => import("@loopback/core").ValueOrPromise<ValueType_9 | undefined>;
|
|
71
71
|
toJSON: () => import("@loopback/core").JSONObject;
|
|
72
72
|
inspect: (options?: import("@loopback/core").ContextInspectOptions | undefined) => import("@loopback/core").JSONObject;
|
|
@@ -78,18 +78,18 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
78
78
|
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): import("@loopback/core").Application;
|
|
79
79
|
(event: string | symbol, listener: (...args: any[]) => void): import("@loopback/core").Application;
|
|
80
80
|
};
|
|
81
|
-
addListener: (
|
|
82
|
-
removeListener: (
|
|
83
|
-
off: (
|
|
81
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
82
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
83
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
84
84
|
removeAllListeners: (event?: string | symbol | undefined) => import("@loopback/core").Application;
|
|
85
85
|
setMaxListeners: (n: number) => import("@loopback/core").Application;
|
|
86
86
|
getMaxListeners: () => number;
|
|
87
|
-
listeners: (
|
|
88
|
-
rawListeners: (
|
|
89
|
-
emit: (
|
|
90
|
-
listenerCount: (
|
|
91
|
-
prependListener: (
|
|
92
|
-
prependOnceListener: (
|
|
87
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
88
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
89
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
90
|
+
listenerCount: (eventName: string | symbol) => number;
|
|
91
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
92
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
93
93
|
eventNames: () => (string | symbol)[];
|
|
94
94
|
}) & (new (...args: any[]) => {
|
|
95
95
|
serviceProvider<S_1>(provider: import("@loopback/core").Constructor<import("@loopback/core").Provider<S_1>>, nameOrOptions?: string | import("@loopback/core").ServiceOptions | undefined): import("@loopback/boot").Binding<S_1>;
|
|
@@ -97,10 +97,10 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
97
97
|
mountComponentServices<C_1 extends import("@loopback/core").Component = import("@loopback/core").Component>(component: import("@loopback/core").Constructor<C_1>, componentBindingKey?: import("@loopback/core").BindingAddress<C_1> | undefined): void;
|
|
98
98
|
readonly options: ApplicationConfig;
|
|
99
99
|
readonly state: string;
|
|
100
|
-
controller: <
|
|
101
|
-
server: <
|
|
102
|
-
servers: <
|
|
103
|
-
getServer: <
|
|
100
|
+
controller: <T_8>(controllerCtor: import("@loopback/core").ControllerClass<T_8>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_8>;
|
|
101
|
+
server: <T_1_1 extends import("@loopback/core").Server>(ctor: import("@loopback/core").Constructor<T_1_1>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_1_1>;
|
|
102
|
+
servers: <T_2_1 extends import("@loopback/core").Server>(ctors: import("@loopback/core").Constructor<T_2_1>[]) => import("@loopback/boot").Binding<any>[];
|
|
103
|
+
getServer: <T_3_1 extends import("@loopback/core").Server>(target: string | import("@loopback/core").Constructor<T_3_1>) => Promise<T_3_1>;
|
|
104
104
|
init: () => Promise<void>;
|
|
105
105
|
onInit: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
106
106
|
start: () => Promise<void>;
|
|
@@ -108,30 +108,30 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
108
108
|
stop: () => Promise<void>;
|
|
109
109
|
onStop: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
110
110
|
setMetadata: (metadata: import("@loopback/core").ApplicationMetadata) => void;
|
|
111
|
-
lifeCycleObserver: <
|
|
111
|
+
lifeCycleObserver: <T_4_1 extends import("@loopback/core").LifeCycleObserver>(ctor: import("@loopback/core").Constructor<T_4_1>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_4_1>;
|
|
112
112
|
service: <S_1>(cls: import("@loopback/core").ServiceOrProviderClass<S_1>, nameOrOptions?: string | import("@loopback/core").ServiceOptions | undefined) => import("@loopback/boot").Binding<S_1>;
|
|
113
113
|
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) => import("@loopback/boot").Binding<import("@loopback/core").Interceptor>;
|
|
114
114
|
readonly name: string;
|
|
115
115
|
readonly subscriptionManager: import("@loopback/core").ContextSubscriptionManager;
|
|
116
116
|
scope: import("@loopback/core").BindingScope;
|
|
117
117
|
readonly parent: import("@loopback/core").Context | undefined;
|
|
118
|
-
emitEvent: <
|
|
118
|
+
emitEvent: <T_5_1 extends import("@loopback/core").ContextEvent>(type: string, event: T_5_1) => void;
|
|
119
119
|
emitError: (err: unknown) => void;
|
|
120
120
|
bind: <ValueType_10 = any>(key: import("@loopback/core").BindingAddress<ValueType_10>) => import("@loopback/boot").Binding<ValueType_10>;
|
|
121
121
|
add: (binding: import("@loopback/boot").Binding<unknown>) => import("@loopback/core").Application;
|
|
122
|
-
configure: <ConfigValueType_4 = any>(key?: import("@loopback/core").BindingAddress
|
|
123
|
-
getConfigAsValueOrPromise: <ConfigValueType_1_1>(key: import("@loopback/core").BindingAddress
|
|
124
|
-
getConfig: <ConfigValueType_2_1>(key: import("@loopback/core").BindingAddress
|
|
125
|
-
getConfigSync: <ConfigValueType_3_1>(key: import("@loopback/core").BindingAddress
|
|
126
|
-
unbind: (key: import("@loopback/core").BindingAddress
|
|
122
|
+
configure: <ConfigValueType_4 = any>(key?: import("@loopback/core").BindingAddress | undefined) => import("@loopback/boot").Binding<ConfigValueType_4>;
|
|
123
|
+
getConfigAsValueOrPromise: <ConfigValueType_1_1>(key: import("@loopback/core").BindingAddress, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => import("@loopback/core").ValueOrPromise<ConfigValueType_1_1 | undefined>;
|
|
124
|
+
getConfig: <ConfigValueType_2_1>(key: import("@loopback/core").BindingAddress, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => Promise<ConfigValueType_2_1 | undefined>;
|
|
125
|
+
getConfigSync: <ConfigValueType_3_1>(key: import("@loopback/core").BindingAddress, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => ConfigValueType_3_1 | undefined;
|
|
126
|
+
unbind: (key: import("@loopback/core").BindingAddress) => boolean;
|
|
127
127
|
subscribe: (observer: import("@loopback/core").ContextEventObserver) => import("@loopback/core").Subscription;
|
|
128
128
|
unsubscribe: (observer: import("@loopback/core").ContextEventObserver) => boolean;
|
|
129
129
|
close: () => void;
|
|
130
130
|
isSubscribed: (observer: import("@loopback/core").ContextObserver) => boolean;
|
|
131
|
-
createView: <
|
|
132
|
-
contains: (key: import("@loopback/core").BindingAddress
|
|
133
|
-
isBound: (key: import("@loopback/core").BindingAddress
|
|
134
|
-
getOwnerContext: (keyOrBinding: import("@loopback/core").BindingAddress
|
|
131
|
+
createView: <T_6_1 = 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_6_1>;
|
|
132
|
+
contains: (key: import("@loopback/core").BindingAddress) => boolean;
|
|
133
|
+
isBound: (key: import("@loopback/core").BindingAddress) => boolean;
|
|
134
|
+
getOwnerContext: (keyOrBinding: import("@loopback/core").BindingAddress | Readonly<import("@loopback/boot").Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
135
135
|
getScopedContext: (scope: import("@loopback/core").BindingScope.APPLICATION | import("@loopback/core").BindingScope.SERVER | import("@loopback/core").BindingScope.REQUEST) => import("@loopback/core").Context | undefined;
|
|
136
136
|
getResolutionContext: (binding: Readonly<import("@loopback/boot").Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
137
137
|
isVisibleTo: (ctx: import("@loopback/core").Context) => boolean;
|
|
@@ -151,7 +151,7 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
151
151
|
optional?: boolean | undefined;
|
|
152
152
|
} | undefined): import("@loopback/boot").Binding<ValueType_8_1> | undefined;
|
|
153
153
|
};
|
|
154
|
-
findOrCreateBinding: <
|
|
154
|
+
findOrCreateBinding: <T_7_1>(key: import("@loopback/core").BindingAddress<T_7_1>, policy?: import("@loopback/core").BindingCreationPolicy | undefined) => import("@loopback/boot").Binding<T_7_1>;
|
|
155
155
|
getValueOrPromise: <ValueType_9_1>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_9_1>, optionsOrSession?: import("@loopback/core").ResolutionOptionsOrSession | undefined) => import("@loopback/core").ValueOrPromise<ValueType_9_1 | undefined>;
|
|
156
156
|
toJSON: () => import("@loopback/core").JSONObject;
|
|
157
157
|
inspect: (options?: import("@loopback/core").ContextInspectOptions | undefined) => import("@loopback/core").JSONObject;
|
|
@@ -163,18 +163,18 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
163
163
|
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): import("@loopback/core").Application;
|
|
164
164
|
(event: string | symbol, listener: (...args: any[]) => void): import("@loopback/core").Application;
|
|
165
165
|
};
|
|
166
|
-
addListener: (
|
|
167
|
-
removeListener: (
|
|
168
|
-
off: (
|
|
166
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
167
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
168
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
169
169
|
removeAllListeners: (event?: string | symbol | undefined) => import("@loopback/core").Application;
|
|
170
170
|
setMaxListeners: (n: number) => import("@loopback/core").Application;
|
|
171
171
|
getMaxListeners: () => number;
|
|
172
|
-
listeners: (
|
|
173
|
-
rawListeners: (
|
|
174
|
-
emit: (
|
|
175
|
-
listenerCount: (
|
|
176
|
-
prependListener: (
|
|
177
|
-
prependOnceListener: (
|
|
172
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
173
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
174
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
175
|
+
listenerCount: (eventName: string | symbol) => number;
|
|
176
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
177
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
178
178
|
eventNames: () => (string | symbol)[];
|
|
179
179
|
}) & (new (...args: any[]) => {
|
|
180
180
|
repository<R extends import("@loopback/repository").Repository<any>>(repoClass: import("@loopback/repository").Class<R>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined): import("@loopback/boot").Binding<R>;
|
|
@@ -187,10 +187,10 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
187
187
|
migrateSchema(options?: import("@loopback/repository").SchemaMigrationOptions | undefined): Promise<void>;
|
|
188
188
|
readonly options: ApplicationConfig;
|
|
189
189
|
readonly state: string;
|
|
190
|
-
controller: <
|
|
191
|
-
server: <
|
|
192
|
-
servers: <
|
|
193
|
-
getServer: <
|
|
190
|
+
controller: <T_9>(controllerCtor: import("@loopback/core").ControllerClass<T_9>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_9>;
|
|
191
|
+
server: <T_1_2 extends import("@loopback/core").Server>(ctor: import("@loopback/core").Constructor<T_1_2>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_1_2>;
|
|
192
|
+
servers: <T_2_2 extends import("@loopback/core").Server>(ctors: import("@loopback/core").Constructor<T_2_2>[]) => import("@loopback/boot").Binding<any>[];
|
|
193
|
+
getServer: <T_3_2 extends import("@loopback/core").Server>(target: string | import("@loopback/core").Constructor<T_3_2>) => Promise<T_3_2>;
|
|
194
194
|
init: () => Promise<void>;
|
|
195
195
|
onInit: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
196
196
|
start: () => Promise<void>;
|
|
@@ -198,14 +198,14 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
198
198
|
stop: () => Promise<void>;
|
|
199
199
|
onStop: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
200
200
|
setMetadata: (metadata: import("@loopback/core").ApplicationMetadata) => void;
|
|
201
|
-
lifeCycleObserver: <
|
|
201
|
+
lifeCycleObserver: <T_4_2 extends import("@loopback/core").LifeCycleObserver>(ctor: import("@loopback/core").Constructor<T_4_2>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_4_2>;
|
|
202
202
|
service: <S_2>(cls: import("@loopback/core").ServiceOrProviderClass<S_2>, nameOrOptions?: string | import("@loopback/core").ServiceOptions | undefined) => import("@loopback/boot").Binding<S_2>;
|
|
203
203
|
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) => import("@loopback/boot").Binding<import("@loopback/core").Interceptor>;
|
|
204
204
|
readonly name: string;
|
|
205
205
|
readonly subscriptionManager: import("@loopback/core").ContextSubscriptionManager;
|
|
206
206
|
scope: import("@loopback/core").BindingScope;
|
|
207
207
|
readonly parent: import("@loopback/core").Context | undefined;
|
|
208
|
-
emitEvent: <
|
|
208
|
+
emitEvent: <T_5_2 extends import("@loopback/core").ContextEvent>(type: string, event: T_5_2) => void;
|
|
209
209
|
emitError: (err: unknown) => void;
|
|
210
210
|
bind: <ValueType_11 = any>(key: import("@loopback/core").BindingAddress<ValueType_11>) => import("@loopback/boot").Binding<ValueType_11>;
|
|
211
211
|
add: (binding: import("@loopback/boot").Binding<unknown>) => import("@loopback/core").Application;
|
|
@@ -218,7 +218,7 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
218
218
|
unsubscribe: (observer: import("@loopback/core").ContextEventObserver) => boolean;
|
|
219
219
|
close: () => void;
|
|
220
220
|
isSubscribed: (observer: import("@loopback/core").ContextObserver) => boolean;
|
|
221
|
-
createView: <
|
|
221
|
+
createView: <T_6_2 = 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_6_2>;
|
|
222
222
|
contains: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
223
223
|
isBound: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
224
224
|
getOwnerContext: (keyOrBinding: import("@loopback/core").BindingAddress<unknown> | Readonly<import("@loopback/boot").Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
@@ -241,7 +241,7 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
241
241
|
optional?: boolean | undefined;
|
|
242
242
|
} | undefined): import("@loopback/boot").Binding<ValueType_8_2> | undefined;
|
|
243
243
|
};
|
|
244
|
-
findOrCreateBinding: <
|
|
244
|
+
findOrCreateBinding: <T_7_2>(key: import("@loopback/core").BindingAddress<T_7_2>, policy?: import("@loopback/core").BindingCreationPolicy | undefined) => import("@loopback/boot").Binding<T_7_2>;
|
|
245
245
|
getValueOrPromise: <ValueType_9_2>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_9_2>, optionsOrSession?: import("@loopback/core").ResolutionOptionsOrSession | undefined) => import("@loopback/core").ValueOrPromise<ValueType_9_2 | undefined>;
|
|
246
246
|
toJSON: () => import("@loopback/core").JSONObject;
|
|
247
247
|
inspect: (options?: import("@loopback/core").ContextInspectOptions | undefined) => import("@loopback/core").JSONObject;
|
|
@@ -253,18 +253,18 @@ declare const ReferencesManyApplication_base: (new (...args: any[]) => {
|
|
|
253
253
|
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): import("@loopback/core").Application;
|
|
254
254
|
(event: string | symbol, listener: (...args: any[]) => void): import("@loopback/core").Application;
|
|
255
255
|
};
|
|
256
|
-
addListener: (
|
|
257
|
-
removeListener: (
|
|
258
|
-
off: (
|
|
256
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
257
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
258
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
259
259
|
removeAllListeners: (event?: string | symbol | undefined) => import("@loopback/core").Application;
|
|
260
260
|
setMaxListeners: (n: number) => import("@loopback/core").Application;
|
|
261
261
|
getMaxListeners: () => number;
|
|
262
|
-
listeners: (
|
|
263
|
-
rawListeners: (
|
|
264
|
-
emit: (
|
|
265
|
-
listenerCount: (
|
|
266
|
-
prependListener: (
|
|
267
|
-
prependOnceListener: (
|
|
262
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
263
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
264
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
265
|
+
listenerCount: (eventName: string | symbol) => number;
|
|
266
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
267
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
268
268
|
eventNames: () => (string | symbol)[];
|
|
269
269
|
}) & typeof RestApplication;
|
|
270
270
|
export declare class ReferencesManyApplication extends ReferencesManyApplication_base {
|
|
@@ -10,7 +10,7 @@ const repository_1 = require("@loopback/repository");
|
|
|
10
10
|
const rest_1 = require("@loopback/rest");
|
|
11
11
|
const models_1 = require("../models");
|
|
12
12
|
const repositories_1 = require("../repositories");
|
|
13
|
-
let AccountController = class AccountController {
|
|
13
|
+
let AccountController = exports.AccountController = class AccountController {
|
|
14
14
|
constructor(accountRepository) {
|
|
15
15
|
this.accountRepository = accountRepository;
|
|
16
16
|
}
|
|
@@ -184,9 +184,8 @@ tslib_1.__decorate([
|
|
|
184
184
|
tslib_1.__metadata("design:paramtypes", [Number, models_1.Account]),
|
|
185
185
|
tslib_1.__metadata("design:returntype", Promise)
|
|
186
186
|
], AccountController.prototype, "replaceById", null);
|
|
187
|
-
AccountController = tslib_1.__decorate([
|
|
187
|
+
exports.AccountController = AccountController = tslib_1.__decorate([
|
|
188
188
|
tslib_1.__param(0, (0, repository_1.repository)(repositories_1.AccountRepository)),
|
|
189
189
|
tslib_1.__metadata("design:paramtypes", [repositories_1.AccountRepository])
|
|
190
190
|
], AccountController);
|
|
191
|
-
exports.AccountController = AccountController;
|
|
192
191
|
//# sourceMappingURL=account.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.controller.js","sourceRoot":"","sources":["../../src/controllers/account.controller.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAO8B;AAC9B,yCASwB;AACxB,sCAAkC;AAClC,kDAAkD;
|
|
1
|
+
{"version":3,"file":"account.controller.js","sourceRoot":"","sources":["../../src/controllers/account.controller.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAO8B;AAC9B,yCASwB;AACxB,sCAAkC;AAClC,kDAAkD;AAElD,IAAa,iBAAiB,+BAA9B,MAAa,iBAAiB;IAC5B,YAES,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAC1C,CAAC;IAUE,AAAN,KAAK,CAAC,MAAM,CAWV,OAA4B;QAE5B,OAAO,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAUK,AAAN,KAAK,CAAC,KAAK,CAAuB,KAAsB;QACtD,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;IAiBK,AAAN,KAAK,CAAC,IAAI,CACe,MAAwB;QAE/C,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAUK,AAAN,KAAK,CAAC,SAAS,CAQb,OAAgB,EACM,KAAsB;QAE5C,OAAO,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK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/rest");
|
|
11
11
|
const models_1 = require("../models");
|
|
12
12
|
const repositories_1 = require("../repositories");
|
|
13
|
-
let CustomerController = class CustomerController {
|
|
13
|
+
let CustomerController = exports.CustomerController = class CustomerController {
|
|
14
14
|
constructor(customerRepository) {
|
|
15
15
|
this.customerRepository = customerRepository;
|
|
16
16
|
}
|
|
@@ -184,9 +184,8 @@ tslib_1.__decorate([
|
|
|
184
184
|
tslib_1.__metadata("design:paramtypes", [Number, models_1.Customer]),
|
|
185
185
|
tslib_1.__metadata("design:returntype", Promise)
|
|
186
186
|
], CustomerController.prototype, "replaceById", null);
|
|
187
|
-
CustomerController = tslib_1.__decorate([
|
|
187
|
+
exports.CustomerController = CustomerController = tslib_1.__decorate([
|
|
188
188
|
tslib_1.__param(0, (0, repository_1.repository)(repositories_1.CustomerRepository)),
|
|
189
189
|
tslib_1.__metadata("design:paramtypes", [repositories_1.CustomerRepository])
|
|
190
190
|
], CustomerController);
|
|
191
|
-
exports.CustomerController = CustomerController;
|
|
192
191
|
//# sourceMappingURL=customer.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.controller.js","sourceRoot":"","sources":["../../src/controllers/customer.controller.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAO8B;AAC9B,yCASwB;AACxB,sCAAmC;AACnC,kDAAmD;
|
|
1
|
+
{"version":3,"file":"customer.controller.js","sourceRoot":"","sources":["../../src/controllers/customer.controller.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAO8B;AAC9B,yCASwB;AACxB,sCAAmC;AACnC,kDAAmD;AAEnD,IAAa,kBAAkB,gCAA/B,MAAa,kBAAkB;IAC7B,YAES,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IAC5C,CAAC;IAUE,AAAN,KAAK,CAAC,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AI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;;;;oDAExC;AASK;IAPL,IAAA,UAAG,EAAC,iBAAiB,EAAE;QACtB,SAAS,EAAE;YACT,KAAK,EAAE;gBACL,WAAW,EAAE,sBAAsB;aACpC;SACF;KACF,CAAC;IAEC,mBAAA,YAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACvB,mBAAA,IAAA,kBAAW,GAAE,CAAA;;qDAAW,iBAAQ;;qDAGlC;6BArJU,kBAAkB;IAE1B,mBAAA,IAAA,uBAAU,EAAC,iCAAkB,CAAC,CAAA;6CACJ,iCAAkB;GAHpC,kBAAkB,CAsJ9B"}
|
|
@@ -18,17 +18,16 @@ const config = {
|
|
|
18
18
|
// application is stopped. This allows the application to be shut down
|
|
19
19
|
// gracefully. The `stop()` method is inherited from `juggler.DataSource`.
|
|
20
20
|
// Learn more at https://loopback.io/doc/en/lb4/Life-cycle.html
|
|
21
|
-
let DbDataSource = class DbDataSource extends repository_1.juggler.DataSource {
|
|
21
|
+
let DbDataSource = exports.DbDataSource = class DbDataSource extends repository_1.juggler.DataSource {
|
|
22
22
|
constructor(dsConfig = config) {
|
|
23
23
|
super(dsConfig);
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
DbDataSource.dataSourceName = 'db';
|
|
27
27
|
DbDataSource.defaultConfig = config;
|
|
28
|
-
DbDataSource = tslib_1.__decorate([
|
|
28
|
+
exports.DbDataSource = DbDataSource = tslib_1.__decorate([
|
|
29
29
|
(0, core_1.lifeCycleObserver)('datasource'),
|
|
30
30
|
tslib_1.__param(0, (0, core_1.inject)('datasources.config.db', { optional: true })),
|
|
31
31
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
32
32
|
], DbDataSource);
|
|
33
|
-
exports.DbDataSource = DbDataSource;
|
|
34
33
|
//# sourceMappingURL=db.datasource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.datasource.js","sourceRoot":"","sources":["../../src/datasources/db.datasource.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA4E;AAC5E,qDAA6C;AAE7C,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,EAAE;IAChB,IAAI,EAAE,gBAAgB;CACvB,CAAC;AAEF,qEAAqE;AACrE,sEAAsE;AACtE,0EAA0E;AAC1E,+DAA+D;AAExD,IAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"db.datasource.js","sourceRoot":"","sources":["../../src/datasources/db.datasource.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA4E;AAC5E,qDAA6C;AAE7C,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,EAAE;IAChB,IAAI,EAAE,gBAAgB;CACvB,CAAC;AAEF,qEAAqE;AACrE,sEAAsE;AACtE,0EAA0E;AAC1E,+DAA+D;AAExD,IAAM,YAAY,0BAAlB,MAAM,YACX,SAAQ,oBAAO,CAAC,UAAU;IAM1B,YAEE,WAAmB,MAAM;QAEzB,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClB,CAAC;;AARM,2BAAc,GAAG,IAAI,AAAP,CAAQ;AACb,0BAAa,GAAG,MAAM,AAAT,CAAU;uBAL5B,YAAY;IADxB,IAAA,wBAAiB,EAAC,YAAY,CAAC;IAS3B,mBAAA,IAAA,aAAM,EAAC,uBAAuB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;;GARzC,YAAY,CAaxB"}
|
|
@@ -7,7 +7,7 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
// This file is licensed under the MIT License.
|
|
8
8
|
// License text available at https://opensource.org/licenses/MIT
|
|
9
9
|
const repository_1 = require("@loopback/repository");
|
|
10
|
-
let Account = class Account extends repository_1.Entity {
|
|
10
|
+
let Account = exports.Account = class Account extends repository_1.Entity {
|
|
11
11
|
constructor(data) {
|
|
12
12
|
super(data);
|
|
13
13
|
}
|
|
@@ -27,9 +27,8 @@ tslib_1.__decorate([
|
|
|
27
27
|
}),
|
|
28
28
|
tslib_1.__metadata("design:type", Number)
|
|
29
29
|
], Account.prototype, "balance", void 0);
|
|
30
|
-
Account = tslib_1.__decorate([
|
|
30
|
+
exports.Account = Account = tslib_1.__decorate([
|
|
31
31
|
(0, repository_1.model)(),
|
|
32
32
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
33
33
|
], Account);
|
|
34
|
-
exports.Account = Account;
|
|
35
34
|
//# sourceMappingURL=account.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.model.js","sourceRoot":"","sources":["../../src/models/account.model.ts"],"names":[],"mappings":";;;;AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;AAChE,qDAA6D;AAGtD,IAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"account.model.js","sourceRoot":"","sources":["../../src/models/account.model.ts"],"names":[],"mappings":";;;;AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;AAChE,qDAA6D;AAGtD,IAAM,OAAO,qBAAb,MAAM,OAAQ,SAAQ,mBAAM;IAcjC,YAAY,IAAuB;QACjC,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF,CAAA;AAXC;IALC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,IAAI;QACR,SAAS,EAAE,KAAK;KACjB,CAAC;;mCACS;AAMX;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;KACX,CAAC;;wCACc;kBAZL,OAAO;IADnB,IAAA,kBAAK,GAAE;;GACK,OAAO,CAiBnB"}
|
|
@@ -8,7 +8,7 @@ exports.Customer = void 0;
|
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const repository_1 = require("@loopback/repository");
|
|
10
10
|
const account_model_1 = require("./account.model");
|
|
11
|
-
let Customer = class Customer extends repository_1.Entity {
|
|
11
|
+
let Customer = exports.Customer = class Customer extends repository_1.Entity {
|
|
12
12
|
constructor(data) {
|
|
13
13
|
super(data);
|
|
14
14
|
}
|
|
@@ -37,9 +37,8 @@ tslib_1.__decorate([
|
|
|
37
37
|
(0, repository_1.referencesMany)(() => account_model_1.Account),
|
|
38
38
|
tslib_1.__metadata("design:type", Array)
|
|
39
39
|
], Customer.prototype, "accountIds", void 0);
|
|
40
|
-
Customer = tslib_1.__decorate([
|
|
40
|
+
exports.Customer = Customer = tslib_1.__decorate([
|
|
41
41
|
(0, repository_1.model)(),
|
|
42
42
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
43
43
|
], Customer);
|
|
44
|
-
exports.Customer = Customer;
|
|
45
44
|
//# sourceMappingURL=customer.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.model.js","sourceRoot":"","sources":["../../src/models/customer.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAA6E;AAC7E,mDAA8D;AAGvD,IAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"customer.model.js","sourceRoot":"","sources":["../../src/models/customer.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAA6E;AAC7E,mDAA8D;AAGvD,IAAM,QAAQ,sBAAd,MAAM,QAAS,SAAQ,mBAAM;IAqBlC,YAAY,IAAwB;QAClC,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF,CAAA;AAlBC;IALC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,IAAI;QACR,SAAS,EAAE,IAAI;KAChB,CAAC;;oCACS;AAKX;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;2CACgB;AAKlB;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;0CACe;AAGjB;IADC,IAAA,2BAAc,EAAC,GAAG,EAAE,CAAC,uBAAO,CAAC;;4CACR;mBAnBX,QAAQ;IADpB,IAAA,kBAAK,GAAE;;GACK,QAAQ,CAwBpB"}
|
|
@@ -10,14 +10,13 @@ const core_1 = require("@loopback/core");
|
|
|
10
10
|
const repository_1 = require("@loopback/repository");
|
|
11
11
|
const datasources_1 = require("../datasources");
|
|
12
12
|
const models_1 = require("../models");
|
|
13
|
-
let AccountRepository = class AccountRepository extends repository_1.DefaultCrudRepository {
|
|
13
|
+
let AccountRepository = exports.AccountRepository = class AccountRepository extends repository_1.DefaultCrudRepository {
|
|
14
14
|
constructor(dataSource) {
|
|
15
15
|
super(models_1.Account, dataSource);
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
AccountRepository = tslib_1.__decorate([
|
|
18
|
+
exports.AccountRepository = AccountRepository = tslib_1.__decorate([
|
|
19
19
|
tslib_1.__param(0, (0, core_1.inject)('datasources.db')),
|
|
20
20
|
tslib_1.__metadata("design:paramtypes", [datasources_1.DbDataSource])
|
|
21
21
|
], AccountRepository);
|
|
22
|
-
exports.AccountRepository = AccountRepository;
|
|
23
22
|
//# sourceMappingURL=account.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.repository.js","sourceRoot":"","sources":["../../src/repositories/account.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA2D;AAC3D,gDAA4C;AAC5C,sCAAoD;
|
|
1
|
+
{"version":3,"file":"account.repository.js","sourceRoot":"","sources":["../../src/repositories/account.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA2D;AAC3D,gDAA4C;AAC5C,sCAAoD;AAEpD,IAAa,iBAAiB,+BAA9B,MAAa,iBAAkB,SAAQ,kCAItC;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,gBAAO,EAAE,UAAU,CAAC,CAAC;IAC7B,CAAC;CACF,CAAA;4BARY,iBAAiB;IAKf,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,0BAAY;GALnD,iBAAiB,CAQ7B"}
|
|
@@ -10,7 +10,7 @@ const core_1 = require("@loopback/core");
|
|
|
10
10
|
const repository_1 = require("@loopback/repository");
|
|
11
11
|
const datasources_1 = require("../datasources");
|
|
12
12
|
const models_1 = require("../models");
|
|
13
|
-
let CustomerRepository = class CustomerRepository extends repository_1.DefaultCrudRepository {
|
|
13
|
+
let CustomerRepository = exports.CustomerRepository = class CustomerRepository extends repository_1.DefaultCrudRepository {
|
|
14
14
|
constructor(dataSource, accountRepositoryGetter, customerRepositoryGetter) {
|
|
15
15
|
super(models_1.Customer, dataSource);
|
|
16
16
|
this.accountRepositoryGetter = accountRepositoryGetter;
|
|
@@ -19,11 +19,10 @@ let CustomerRepository = class CustomerRepository extends repository_1.DefaultCr
|
|
|
19
19
|
this.registerInclusionResolver('accounts', this.accounts.inclusionResolver);
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
CustomerRepository = tslib_1.__decorate([
|
|
22
|
+
exports.CustomerRepository = CustomerRepository = tslib_1.__decorate([
|
|
23
23
|
tslib_1.__param(0, (0, core_1.inject)('datasources.db')),
|
|
24
24
|
tslib_1.__param(1, repository_1.repository.getter('AccountRepository')),
|
|
25
25
|
tslib_1.__param(2, repository_1.repository.getter('CustomerRepository')),
|
|
26
26
|
tslib_1.__metadata("design:paramtypes", [datasources_1.DbDataSource, Function, Function])
|
|
27
27
|
], CustomerRepository);
|
|
28
|
-
exports.CustomerRepository = CustomerRepository;
|
|
29
28
|
//# sourceMappingURL=customer.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.repository.js","sourceRoot":"","sources":["../../src/repositories/customer.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,qDAI8B;AAC9B,gDAA4C;AAC5C,sCAA+D;
|
|
1
|
+
{"version":3,"file":"customer.repository.js","sourceRoot":"","sources":["../../src/repositories/customer.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iDAAiD;AACjD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,qDAI8B;AAC9B,gDAA4C;AAC5C,sCAA+D;AAG/D,IAAa,kBAAkB,gCAA/B,MAAa,kBAAmB,SAAQ,kCAIvC;IAMC,YAC4B,UAAwB,EAExC,uBAAkD,EAElD,wBAAoD;QAE9D,KAAK,CAAC,iBAAQ,EAAE,UAAU,CAAC,CAAC;QAJlB,4BAAuB,GAAvB,uBAAuB,CAA2B;QAElD,6BAAwB,GAAxB,wBAAwB,CAA4B;QAI9D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,+BAA+B,CAClD,UAAU,EACV,uBAAuB,CACxB,CAAC;QAEF,IAAI,CAAC,yBAAyB,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC9E,CAAC;CACF,CAAA;6BA1BY,kBAAkB;IAW1B,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;IACxB,mBAAA,uBAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAA;IAEtC,mBAAA,uBAAU,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAA;6CAHF,0BAAY;GAXzC,kBAAkB,CA0B9B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/example-references-many",
|
|
3
3
|
"description": "Example of the references many relation in LoopBack 4.",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.1.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loopback",
|
|
7
7
|
"LoopBack",
|
|
@@ -53,26 +53,26 @@
|
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@loopback/boot": "^6.
|
|
57
|
-
"@loopback/core": "^5.
|
|
58
|
-
"@loopback/repository": "^6.
|
|
59
|
-
"@loopback/rest": "^13.
|
|
60
|
-
"@loopback/rest-explorer": "^6.
|
|
61
|
-
"@loopback/service-proxy": "^6.
|
|
56
|
+
"@loopback/boot": "^6.1.1",
|
|
57
|
+
"@loopback/core": "^5.1.1",
|
|
58
|
+
"@loopback/repository": "^6.1.1",
|
|
59
|
+
"@loopback/rest": "^13.1.1",
|
|
60
|
+
"@loopback/rest-explorer": "^6.1.1",
|
|
61
|
+
"@loopback/service-proxy": "^6.1.1",
|
|
62
62
|
"loopback-connector-rest": "^4.0.3",
|
|
63
|
-
"tslib": "^2.
|
|
63
|
+
"tslib": "^2.6.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@loopback/build": "^10.
|
|
67
|
-
"@loopback/eslint-config": "^14.0.
|
|
68
|
-
"@loopback/http-caching-proxy": "^5.
|
|
66
|
+
"@loopback/build": "^10.1.1",
|
|
67
|
+
"@loopback/eslint-config": "^14.0.2",
|
|
68
|
+
"@loopback/http-caching-proxy": "^5.1.1",
|
|
69
69
|
"@loopback/repository": "^6.0.0",
|
|
70
|
-
"@loopback/testlab": "^6.
|
|
71
|
-
"@types/lodash": "^4.14.
|
|
72
|
-
"@types/node": "^
|
|
73
|
-
"eslint": "^8.
|
|
70
|
+
"@loopback/testlab": "^6.1.1",
|
|
71
|
+
"@types/lodash": "^4.14.195",
|
|
72
|
+
"@types/node": "^16.18.38",
|
|
73
|
+
"eslint": "^8.45.0",
|
|
74
74
|
"lodash": "^4.17.21",
|
|
75
|
-
"typescript": "~
|
|
75
|
+
"typescript": "~5.1.6"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "be0c53e30bbe9edf7753c4fcd7ab3199f7cd3b8c"
|
|
78
78
|
}
|