@common-stack/server-core 0.1.8
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 +160 -0
- package/LICENSE +21 -0
- package/README.md +10 -0
- package/lib/connector/connector.d.ts +381 -0
- package/lib/connector/index.d.ts +1 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/types.d.ts +8 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +759 -0
- package/lib/index.js.map +1 -0
- package/lib/interfaces/connector.d.ts +44 -0
- package/lib/interfaces/index.d.ts +6 -0
- package/lib/interfaces/mongo-migration.d.ts +4 -0
- package/lib/interfaces/permissions.d.ts +5 -0
- package/lib/interfaces/policies.d.ts +5 -0
- package/lib/interfaces/roles.d.ts +8 -0
- package/lib/interfaces/rules.d.ts +12 -0
- package/lib/logger/index.d.ts +1 -0
- package/lib/logger/logger.d.ts +2 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/preferences.d.ts +53 -0
- package/package.json +53 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [0.1.8](https://github.com/cdmbase/common-stack/compare/v0.1.7...v0.1.8) (2021-10-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.1.7](https://github.com/cdmbase/common-stack/compare/v0.1.6...v0.1.7) (2021-08-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.1.6](https://github.com/cdmbase/common-stack/compare/v0.1.5...v0.1.6) (2021-08-11)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.1.5](https://github.com/cdmbase/common-stack/compare/v0.1.4...v0.1.5) (2021-08-11)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [0.1.4](https://github.com/cdmbase/common-stack/compare/v0.1.3...v0.1.4) (2021-08-11)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [0.1.3](https://github.com/cdmbase/common-stack/compare/v0.1.2...v0.1.3) (2021-08-11)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [0.1.1](https://github.com/cdmbase/common-stack/compare/v0.0.264...v0.1.1) (2021-08-05)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [0.0.264](https://github.com/cdmbase/common-stack/compare/v0.0.263...v0.0.264) (2021-07-04)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [0.0.263](https://github.com/cdmbase/common-stack/compare/v0.0.262...v0.0.263) (2021-07-03)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [0.0.262](https://github.com/cdmbase/common-stack/compare/v0.0.261...v0.0.262) (2021-06-23)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## [0.0.261](https://github.com/cdmbase/common-stack/compare/v0.0.260...v0.0.261) (2021-06-01)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## [0.0.260](https://github.com/cdmbase/common-stack/compare/v0.0.259...v0.0.260) (2021-05-28)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## [0.0.259](https://github.com/cdmbase/common-stack/compare/v0.0.258...v0.0.259) (2021-05-28)
|
|
103
|
+
|
|
104
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## [0.0.258](https://github.com/cdmbase/common-stack/compare/v0.0.257...v0.0.258) (2021-05-14)
|
|
111
|
+
|
|
112
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## [0.0.257](https://github.com/cdmbase/common-stack/compare/v0.0.256...v0.0.257) (2021-05-05)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [0.0.256](https://github.com/cdmbase/common-stack/compare/v0.0.255...v0.0.256) (2021-05-05)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## [0.0.255](https://github.com/cdmbase/common-stack/compare/v0.0.254...v0.0.255) (2021-04-03)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## [0.0.254](https://github.com/cdmbase/common-stack/compare/v0.0.253...v0.0.254) (2021-03-31)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## [0.0.253](https://github.com/cdmbase/common-stack/compare/v0.0.252...v0.0.253) (2021-03-31)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @common-stack/server-core
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## [0.0.252](https://github.com/cdmbase/common-stack/compare/v0.0.251...v0.0.252) (2021-03-29)
|
|
159
|
+
|
|
160
|
+
**Note:** Version bump only for package @common-stack/server-core
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 CDMBase LLC.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { ConfigurationScope, IDirectiveOptions, IMongoMigration, IOverwritePreference, IPreferences, IResolverOptions, IWebsocketConfig, IGraphqlShieldRules, IAddPermissions, IAddPolicies } from '../interfaces';
|
|
2
|
+
import { Container, interfaces } from 'inversify';
|
|
3
|
+
import { IRoleUpdate } from '../interfaces/roles';
|
|
4
|
+
export declare const featureCatalog: any;
|
|
5
|
+
export interface IFederationServiceOptions {
|
|
6
|
+
port: number;
|
|
7
|
+
config?: any;
|
|
8
|
+
}
|
|
9
|
+
export declare type FederationServiceDeclaration = (options: IFederationServiceOptions) => Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Feature Params that can be passed to Feature Module.
|
|
12
|
+
*/
|
|
13
|
+
export declare type FeatureParams<T = ConfigurationScope> = {
|
|
14
|
+
schema?: string | string[];
|
|
15
|
+
createRemoteSchemas?: Function | Function[];
|
|
16
|
+
createDirectivesFunc?: Function | Function[];
|
|
17
|
+
createResolversFunc?: Function | Function[];
|
|
18
|
+
createContextFunc?: Function | Function[];
|
|
19
|
+
createServiceFunc?: Function | Function[];
|
|
20
|
+
createDataSourceFunc?: Function | Function[];
|
|
21
|
+
createContainerFunc?: Function | Function[];
|
|
22
|
+
createHemeraContainerFunc?: Function | Function[];
|
|
23
|
+
createAsyncContainerFunc?: Function | Function[];
|
|
24
|
+
createAsyncHemeraContainerFunc?: Function | Function[];
|
|
25
|
+
preCreateServiceFunc?: Function | Function[];
|
|
26
|
+
postCreateServiceFunc?: Function | Function[];
|
|
27
|
+
preStartFunc?: Function | Function[];
|
|
28
|
+
postStartFunc?: Function | Function[];
|
|
29
|
+
microservicePreStartFunc?: Function | Function[];
|
|
30
|
+
microservicePostStartFunc?: Function | Function[];
|
|
31
|
+
addBrokerMainServiceClass?: Function | Function[];
|
|
32
|
+
addBrokerClientServiceClass?: Function | Function[];
|
|
33
|
+
createWebsocketConfig?: IWebsocketConfig | IWebsocketConfig[];
|
|
34
|
+
updateContainerFunc?: any | any[];
|
|
35
|
+
createPreference?: IPreferences<T> | IPreferences<T>[];
|
|
36
|
+
overwritePreference?: IOverwritePreference | IOverwritePreference[];
|
|
37
|
+
/**
|
|
38
|
+
* Permissions Preferences
|
|
39
|
+
*/
|
|
40
|
+
addPermissions?: IAddPermissions<T>;
|
|
41
|
+
/**
|
|
42
|
+
* Policies Preferences
|
|
43
|
+
*/
|
|
44
|
+
addPolicies?: IAddPolicies<T>;
|
|
45
|
+
/**
|
|
46
|
+
* Roles to provide permissions to access resources.
|
|
47
|
+
*/
|
|
48
|
+
rolesUpdate?: IRoleUpdate<T>;
|
|
49
|
+
federation?: FederationServiceDeclaration | FederationServiceDeclaration[];
|
|
50
|
+
dataIdFromObject?: Function | Function[];
|
|
51
|
+
disposeFunc?: any | any[];
|
|
52
|
+
beforeware?: any | any[];
|
|
53
|
+
middleware?: any | any[];
|
|
54
|
+
catalogInfo?: any | any[];
|
|
55
|
+
/**
|
|
56
|
+
* Graphql shields rules, a graphql middleware for authorization
|
|
57
|
+
* based on defined permissions
|
|
58
|
+
*/
|
|
59
|
+
rules?: IGraphqlShieldRules;
|
|
60
|
+
};
|
|
61
|
+
declare class Feature<T = ConfigurationScope> {
|
|
62
|
+
schema: string[];
|
|
63
|
+
createRemoteSchemas?: Function | Function[];
|
|
64
|
+
createDirectivesFunc: Function[];
|
|
65
|
+
createResolversFunc: Function[];
|
|
66
|
+
createContextFunc: Function[];
|
|
67
|
+
createServiceFunc: Function[];
|
|
68
|
+
createContainerFunc: Function[];
|
|
69
|
+
federation: FederationServiceDeclaration[];
|
|
70
|
+
createHemeraContainerFunc: Function[];
|
|
71
|
+
createAsyncContainerFunc: Function[];
|
|
72
|
+
createAsyncHemeraContainerFunc: Function[];
|
|
73
|
+
createDataSourceFunc: Function[];
|
|
74
|
+
preCreateServiceFunc: Function[];
|
|
75
|
+
postCreateServiceFunc: Function[];
|
|
76
|
+
preStartFunc: Function[];
|
|
77
|
+
postStartFunc: Function[];
|
|
78
|
+
microservicePreStartFunc: Function[];
|
|
79
|
+
microservicePostStartFunc: Function[];
|
|
80
|
+
addBrokerMainServiceClass: Function[];
|
|
81
|
+
addBrokerClientServiceClass: Function[];
|
|
82
|
+
disposeFunc: any[];
|
|
83
|
+
updateContainerFunc: any[];
|
|
84
|
+
beforeware: Function[];
|
|
85
|
+
middleware: Function[];
|
|
86
|
+
createWebsocketConfig: IWebsocketConfig[];
|
|
87
|
+
createPreference: IPreferences<T>[];
|
|
88
|
+
addPermissions?: IAddPermissions<T>;
|
|
89
|
+
addPolicies: IAddPolicies<T>;
|
|
90
|
+
rolesUpdate: IRoleUpdate<T>;
|
|
91
|
+
overwritePreference: IOverwritePreference[];
|
|
92
|
+
overwriteRole: IOverwritePreference[];
|
|
93
|
+
migrations?: Array<{
|
|
94
|
+
[id: string]: IMongoMigration;
|
|
95
|
+
}>;
|
|
96
|
+
private _rules;
|
|
97
|
+
private services;
|
|
98
|
+
private container;
|
|
99
|
+
private hemeraContainer;
|
|
100
|
+
private dataSources;
|
|
101
|
+
constructor(feature?: FeatureParams<T>, ...features: Feature<T>[]);
|
|
102
|
+
get rules(): IGraphqlShieldRules;
|
|
103
|
+
get schemas(): string[];
|
|
104
|
+
/**
|
|
105
|
+
* Creates context
|
|
106
|
+
* @param req
|
|
107
|
+
* @param connectionParams
|
|
108
|
+
* @param webSocket
|
|
109
|
+
* @deprecated
|
|
110
|
+
*/
|
|
111
|
+
createContext(req: any, connectionParams: any, webSocket?: any): Promise<any>;
|
|
112
|
+
/**
|
|
113
|
+
* If you need to attach service to Graphql Context, you can use this function.
|
|
114
|
+
* It should be called twice to get the context.
|
|
115
|
+
*/
|
|
116
|
+
createServiceContext(options: any, updateOptions?: any): (req: any, connectionParams: any, webSocket?: any) => Promise<any>;
|
|
117
|
+
/**
|
|
118
|
+
* Its wrapper to container to get services
|
|
119
|
+
* @param container
|
|
120
|
+
*/
|
|
121
|
+
createService(options: any, updateOptions?: any): Promise<any>;
|
|
122
|
+
/**
|
|
123
|
+
* Pre start action will be executed there.
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
preStart<S = unknown>(options: S): Promise<any[]>;
|
|
127
|
+
/**
|
|
128
|
+
* Post start actions will be executed here.
|
|
129
|
+
*/
|
|
130
|
+
postStart<S = unknown>(options: S): Promise<any[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Pre start action will be executed there.
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
135
|
+
microservicePreStart<S = unknown>(options: S): Promise<any[]>;
|
|
136
|
+
/**
|
|
137
|
+
* Post start actions will be executed here.
|
|
138
|
+
*/
|
|
139
|
+
microservicePostStart<S = unknown>(options: S): Promise<any[]>;
|
|
140
|
+
createDataSource(options?: any): any;
|
|
141
|
+
createResolvers(options?: IResolverOptions): any;
|
|
142
|
+
createDirectives(options?: IDirectiveOptions): any;
|
|
143
|
+
createContainers(options: any, containerOptions?: interfaces.ContainerOptions): Promise<any>;
|
|
144
|
+
/**
|
|
145
|
+
* Use createMicroserviceContainer
|
|
146
|
+
* @param options
|
|
147
|
+
* @deprecated
|
|
148
|
+
*/
|
|
149
|
+
createHemeraContainers(options: any): Promise<any>;
|
|
150
|
+
/**
|
|
151
|
+
* Creates container for the microservice
|
|
152
|
+
*
|
|
153
|
+
* @param options
|
|
154
|
+
*/
|
|
155
|
+
createMicroserviceContainers(options: any): Promise<any>;
|
|
156
|
+
updateContainers(options: any, updateOptions?: any): void;
|
|
157
|
+
loadMainMoleculerService({ container, broker, settings }: {
|
|
158
|
+
container: Container;
|
|
159
|
+
broker: any;
|
|
160
|
+
settings: unknown;
|
|
161
|
+
}): void;
|
|
162
|
+
loadClientMoleculerService({ container, broker, settings }: {
|
|
163
|
+
container: Container;
|
|
164
|
+
broker: any;
|
|
165
|
+
settings: unknown;
|
|
166
|
+
}): void;
|
|
167
|
+
createDefaultPreferences(): import("../interfaces").IPreferencesData<unknown>[];
|
|
168
|
+
get beforewares(): any[];
|
|
169
|
+
get middlewares(): any[];
|
|
170
|
+
getPreferences<S = ConfigurationScope>(): IPreferences<S>[];
|
|
171
|
+
getPreferencesObj<S>(): {
|
|
172
|
+
[x: number]: IPreferences<S>;
|
|
173
|
+
length: number;
|
|
174
|
+
toString(): string;
|
|
175
|
+
toLocaleString(): string;
|
|
176
|
+
pop(): IPreferences<S>;
|
|
177
|
+
push(...items: IPreferences<S>[]): number;
|
|
178
|
+
concat(...items: ConcatArray<IPreferences<S>>[]): IPreferences<S>[];
|
|
179
|
+
concat(...items: (IPreferences<S> | ConcatArray<IPreferences<S>>)[]): IPreferences<S>[];
|
|
180
|
+
join(separator?: string): string;
|
|
181
|
+
reverse(): IPreferences<S>[];
|
|
182
|
+
shift(): IPreferences<S>;
|
|
183
|
+
slice(start?: number, end?: number): IPreferences<S>[];
|
|
184
|
+
sort(compareFn?: (a: IPreferences<S>, b: IPreferences<S>) => number): IPreferences<S>[];
|
|
185
|
+
splice(start: number, deleteCount?: number): IPreferences<S>[];
|
|
186
|
+
splice(start: number, deleteCount: number, ...items: IPreferences<S>[]): IPreferences<S>[];
|
|
187
|
+
unshift(...items: IPreferences<S>[]): number;
|
|
188
|
+
indexOf(searchElement: IPreferences<S>, fromIndex?: number): number;
|
|
189
|
+
lastIndexOf(searchElement: IPreferences<S>, fromIndex?: number): number;
|
|
190
|
+
every(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => unknown, thisArg?: any): boolean;
|
|
191
|
+
some(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => unknown, thisArg?: any): boolean;
|
|
192
|
+
forEach(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => void, thisArg?: any): void;
|
|
193
|
+
map<U>(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => U, thisArg?: any): U[];
|
|
194
|
+
filter<S_1 extends IPreferences<S>>(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => value is S_1, thisArg?: any): S_1[];
|
|
195
|
+
filter(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => unknown, thisArg?: any): IPreferences<S>[];
|
|
196
|
+
reduce(callbackfn: (previousValue: IPreferences<S>, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => IPreferences<S>): IPreferences<S>;
|
|
197
|
+
reduce(callbackfn: (previousValue: IPreferences<S>, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => IPreferences<S>, initialValue: IPreferences<S>): IPreferences<S>;
|
|
198
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => U_1, initialValue: U_1): U_1;
|
|
199
|
+
reduceRight(callbackfn: (previousValue: IPreferences<S>, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => IPreferences<S>): IPreferences<S>;
|
|
200
|
+
reduceRight(callbackfn: (previousValue: IPreferences<S>, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => IPreferences<S>, initialValue: IPreferences<S>): IPreferences<S>;
|
|
201
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => U_2, initialValue: U_2): U_2;
|
|
202
|
+
find<S_2 extends IPreferences<S>>(predicate: (this: void, value: IPreferences<S>, index: number, obj: IPreferences<S>[]) => value is S_2, thisArg?: any): S_2;
|
|
203
|
+
find(predicate: (value: IPreferences<S>, index: number, obj: IPreferences<S>[]) => unknown, thisArg?: any): IPreferences<S>;
|
|
204
|
+
findIndex(predicate: (value: IPreferences<S>, index: number, obj: IPreferences<S>[]) => unknown, thisArg?: any): number;
|
|
205
|
+
fill(value: IPreferences<S>, start?: number, end?: number): IPreferences<S>[];
|
|
206
|
+
copyWithin(target: number, start: number, end?: number): IPreferences<S>[];
|
|
207
|
+
[Symbol.iterator](): IterableIterator<IPreferences<S>>;
|
|
208
|
+
entries(): IterableIterator<[number, IPreferences<S>]>;
|
|
209
|
+
keys(): IterableIterator<number>;
|
|
210
|
+
values(): IterableIterator<IPreferences<S>>;
|
|
211
|
+
[Symbol.unscopables](): {
|
|
212
|
+
copyWithin: boolean;
|
|
213
|
+
entries: boolean;
|
|
214
|
+
fill: boolean;
|
|
215
|
+
find: boolean;
|
|
216
|
+
findIndex: boolean;
|
|
217
|
+
keys: boolean;
|
|
218
|
+
values: boolean;
|
|
219
|
+
};
|
|
220
|
+
includes(searchElement: IPreferences<S>, fromIndex?: number): boolean;
|
|
221
|
+
};
|
|
222
|
+
getPermissionPreferences<T = ConfigurationScope>(): IPreferences<T>[];
|
|
223
|
+
getPermissionPreferencesObj<T>(): {
|
|
224
|
+
[x: number]: IPreferences<T>;
|
|
225
|
+
length: number;
|
|
226
|
+
toString(): string;
|
|
227
|
+
toLocaleString(): string;
|
|
228
|
+
pop(): IPreferences<T>;
|
|
229
|
+
push(...items: IPreferences<T>[]): number;
|
|
230
|
+
concat(...items: ConcatArray<IPreferences<T>>[]): IPreferences<T>[];
|
|
231
|
+
concat(...items: (IPreferences<T> | ConcatArray<IPreferences<T>>)[]): IPreferences<T>[];
|
|
232
|
+
join(separator?: string): string;
|
|
233
|
+
reverse(): IPreferences<T>[];
|
|
234
|
+
shift(): IPreferences<T>;
|
|
235
|
+
slice(start?: number, end?: number): IPreferences<T>[];
|
|
236
|
+
sort(compareFn?: (a: IPreferences<T>, b: IPreferences<T>) => number): IPreferences<T>[];
|
|
237
|
+
splice(start: number, deleteCount?: number): IPreferences<T>[];
|
|
238
|
+
splice(start: number, deleteCount: number, ...items: IPreferences<T>[]): IPreferences<T>[];
|
|
239
|
+
unshift(...items: IPreferences<T>[]): number;
|
|
240
|
+
indexOf(searchElement: IPreferences<T>, fromIndex?: number): number;
|
|
241
|
+
lastIndexOf(searchElement: IPreferences<T>, fromIndex?: number): number;
|
|
242
|
+
every(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => unknown, thisArg?: any): boolean;
|
|
243
|
+
some(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => unknown, thisArg?: any): boolean;
|
|
244
|
+
forEach(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => void, thisArg?: any): void;
|
|
245
|
+
map<U>(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => U, thisArg?: any): U[];
|
|
246
|
+
filter<S extends IPreferences<T>>(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => value is S, thisArg?: any): S[];
|
|
247
|
+
filter(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => unknown, thisArg?: any): IPreferences<T>[];
|
|
248
|
+
reduce(callbackfn: (previousValue: IPreferences<T>, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => IPreferences<T>): IPreferences<T>;
|
|
249
|
+
reduce(callbackfn: (previousValue: IPreferences<T>, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => IPreferences<T>, initialValue: IPreferences<T>): IPreferences<T>;
|
|
250
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => U_1, initialValue: U_1): U_1;
|
|
251
|
+
reduceRight(callbackfn: (previousValue: IPreferences<T>, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => IPreferences<T>): IPreferences<T>;
|
|
252
|
+
reduceRight(callbackfn: (previousValue: IPreferences<T>, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => IPreferences<T>, initialValue: IPreferences<T>): IPreferences<T>;
|
|
253
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => U_2, initialValue: U_2): U_2;
|
|
254
|
+
find<S_1 extends IPreferences<T>>(predicate: (this: void, value: IPreferences<T>, index: number, obj: IPreferences<T>[]) => value is S_1, thisArg?: any): S_1;
|
|
255
|
+
find(predicate: (value: IPreferences<T>, index: number, obj: IPreferences<T>[]) => unknown, thisArg?: any): IPreferences<T>;
|
|
256
|
+
findIndex(predicate: (value: IPreferences<T>, index: number, obj: IPreferences<T>[]) => unknown, thisArg?: any): number;
|
|
257
|
+
fill(value: IPreferences<T>, start?: number, end?: number): IPreferences<T>[];
|
|
258
|
+
copyWithin(target: number, start: number, end?: number): IPreferences<T>[];
|
|
259
|
+
[Symbol.iterator](): IterableIterator<IPreferences<T>>;
|
|
260
|
+
entries(): IterableIterator<[number, IPreferences<T>]>;
|
|
261
|
+
keys(): IterableIterator<number>;
|
|
262
|
+
values(): IterableIterator<IPreferences<T>>;
|
|
263
|
+
[Symbol.unscopables](): {
|
|
264
|
+
copyWithin: boolean;
|
|
265
|
+
entries: boolean;
|
|
266
|
+
fill: boolean;
|
|
267
|
+
find: boolean;
|
|
268
|
+
findIndex: boolean;
|
|
269
|
+
keys: boolean;
|
|
270
|
+
values: boolean;
|
|
271
|
+
};
|
|
272
|
+
includes(searchElement: IPreferences<T>, fromIndex?: number): boolean;
|
|
273
|
+
};
|
|
274
|
+
getPolicyPreferences<T = ConfigurationScope>(): IPreferences<T>[];
|
|
275
|
+
getPolicyPreferencesObj<T>(): {
|
|
276
|
+
[x: number]: IPreferences<T>;
|
|
277
|
+
length: number;
|
|
278
|
+
toString(): string;
|
|
279
|
+
toLocaleString(): string;
|
|
280
|
+
pop(): IPreferences<T>;
|
|
281
|
+
push(...items: IPreferences<T>[]): number;
|
|
282
|
+
concat(...items: ConcatArray<IPreferences<T>>[]): IPreferences<T>[];
|
|
283
|
+
concat(...items: (IPreferences<T> | ConcatArray<IPreferences<T>>)[]): IPreferences<T>[];
|
|
284
|
+
join(separator?: string): string;
|
|
285
|
+
reverse(): IPreferences<T>[];
|
|
286
|
+
shift(): IPreferences<T>;
|
|
287
|
+
slice(start?: number, end?: number): IPreferences<T>[];
|
|
288
|
+
sort(compareFn?: (a: IPreferences<T>, b: IPreferences<T>) => number): IPreferences<T>[];
|
|
289
|
+
splice(start: number, deleteCount?: number): IPreferences<T>[];
|
|
290
|
+
splice(start: number, deleteCount: number, ...items: IPreferences<T>[]): IPreferences<T>[];
|
|
291
|
+
unshift(...items: IPreferences<T>[]): number;
|
|
292
|
+
indexOf(searchElement: IPreferences<T>, fromIndex?: number): number;
|
|
293
|
+
lastIndexOf(searchElement: IPreferences<T>, fromIndex?: number): number;
|
|
294
|
+
every(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => unknown, thisArg?: any): boolean;
|
|
295
|
+
some(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => unknown, thisArg?: any): boolean;
|
|
296
|
+
forEach(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => void, thisArg?: any): void;
|
|
297
|
+
map<U>(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => U, thisArg?: any): U[];
|
|
298
|
+
filter<S extends IPreferences<T>>(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => value is S, thisArg?: any): S[];
|
|
299
|
+
filter(callbackfn: (value: IPreferences<T>, index: number, array: IPreferences<T>[]) => unknown, thisArg?: any): IPreferences<T>[];
|
|
300
|
+
reduce(callbackfn: (previousValue: IPreferences<T>, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => IPreferences<T>): IPreferences<T>;
|
|
301
|
+
reduce(callbackfn: (previousValue: IPreferences<T>, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => IPreferences<T>, initialValue: IPreferences<T>): IPreferences<T>;
|
|
302
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => U_1, initialValue: U_1): U_1;
|
|
303
|
+
reduceRight(callbackfn: (previousValue: IPreferences<T>, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => IPreferences<T>): IPreferences<T>;
|
|
304
|
+
reduceRight(callbackfn: (previousValue: IPreferences<T>, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => IPreferences<T>, initialValue: IPreferences<T>): IPreferences<T>;
|
|
305
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: IPreferences<T>, currentIndex: number, array: IPreferences<T>[]) => U_2, initialValue: U_2): U_2;
|
|
306
|
+
find<S_1 extends IPreferences<T>>(predicate: (this: void, value: IPreferences<T>, index: number, obj: IPreferences<T>[]) => value is S_1, thisArg?: any): S_1;
|
|
307
|
+
find(predicate: (value: IPreferences<T>, index: number, obj: IPreferences<T>[]) => unknown, thisArg?: any): IPreferences<T>;
|
|
308
|
+
findIndex(predicate: (value: IPreferences<T>, index: number, obj: IPreferences<T>[]) => unknown, thisArg?: any): number;
|
|
309
|
+
fill(value: IPreferences<T>, start?: number, end?: number): IPreferences<T>[];
|
|
310
|
+
copyWithin(target: number, start: number, end?: number): IPreferences<T>[];
|
|
311
|
+
[Symbol.iterator](): IterableIterator<IPreferences<T>>;
|
|
312
|
+
entries(): IterableIterator<[number, IPreferences<T>]>;
|
|
313
|
+
keys(): IterableIterator<number>;
|
|
314
|
+
values(): IterableIterator<IPreferences<T>>;
|
|
315
|
+
[Symbol.unscopables](): {
|
|
316
|
+
copyWithin: boolean;
|
|
317
|
+
entries: boolean;
|
|
318
|
+
fill: boolean;
|
|
319
|
+
find: boolean;
|
|
320
|
+
findIndex: boolean;
|
|
321
|
+
keys: boolean;
|
|
322
|
+
values: boolean;
|
|
323
|
+
};
|
|
324
|
+
includes(searchElement: IPreferences<T>, fromIndex?: number): boolean;
|
|
325
|
+
};
|
|
326
|
+
getRoles(): {};
|
|
327
|
+
getRolesObj<S>(): {
|
|
328
|
+
[x: number]: IPreferences<S>;
|
|
329
|
+
length: number;
|
|
330
|
+
toString(): string;
|
|
331
|
+
toLocaleString(): string;
|
|
332
|
+
pop(): IPreferences<S>;
|
|
333
|
+
push(...items: IPreferences<S>[]): number;
|
|
334
|
+
concat(...items: ConcatArray<IPreferences<S>>[]): IPreferences<S>[];
|
|
335
|
+
concat(...items: (IPreferences<S> | ConcatArray<IPreferences<S>>)[]): IPreferences<S>[];
|
|
336
|
+
join(separator?: string): string;
|
|
337
|
+
reverse(): IPreferences<S>[];
|
|
338
|
+
shift(): IPreferences<S>;
|
|
339
|
+
slice(start?: number, end?: number): IPreferences<S>[];
|
|
340
|
+
sort(compareFn?: (a: IPreferences<S>, b: IPreferences<S>) => number): IPreferences<S>[];
|
|
341
|
+
splice(start: number, deleteCount?: number): IPreferences<S>[];
|
|
342
|
+
splice(start: number, deleteCount: number, ...items: IPreferences<S>[]): IPreferences<S>[];
|
|
343
|
+
unshift(...items: IPreferences<S>[]): number;
|
|
344
|
+
indexOf(searchElement: IPreferences<S>, fromIndex?: number): number;
|
|
345
|
+
lastIndexOf(searchElement: IPreferences<S>, fromIndex?: number): number;
|
|
346
|
+
every(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => unknown, thisArg?: any): boolean;
|
|
347
|
+
some(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => unknown, thisArg?: any): boolean;
|
|
348
|
+
forEach(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => void, thisArg?: any): void;
|
|
349
|
+
map<U>(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => U, thisArg?: any): U[];
|
|
350
|
+
filter<S_1 extends IPreferences<S>>(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => value is S_1, thisArg?: any): S_1[];
|
|
351
|
+
filter(callbackfn: (value: IPreferences<S>, index: number, array: IPreferences<S>[]) => unknown, thisArg?: any): IPreferences<S>[];
|
|
352
|
+
reduce(callbackfn: (previousValue: IPreferences<S>, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => IPreferences<S>): IPreferences<S>;
|
|
353
|
+
reduce(callbackfn: (previousValue: IPreferences<S>, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => IPreferences<S>, initialValue: IPreferences<S>): IPreferences<S>;
|
|
354
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => U_1, initialValue: U_1): U_1;
|
|
355
|
+
reduceRight(callbackfn: (previousValue: IPreferences<S>, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => IPreferences<S>): IPreferences<S>;
|
|
356
|
+
reduceRight(callbackfn: (previousValue: IPreferences<S>, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => IPreferences<S>, initialValue: IPreferences<S>): IPreferences<S>;
|
|
357
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: IPreferences<S>, currentIndex: number, array: IPreferences<S>[]) => U_2, initialValue: U_2): U_2;
|
|
358
|
+
find<S_2 extends IPreferences<S>>(predicate: (this: void, value: IPreferences<S>, index: number, obj: IPreferences<S>[]) => value is S_2, thisArg?: any): S_2;
|
|
359
|
+
find(predicate: (value: IPreferences<S>, index: number, obj: IPreferences<S>[]) => unknown, thisArg?: any): IPreferences<S>;
|
|
360
|
+
findIndex(predicate: (value: IPreferences<S>, index: number, obj: IPreferences<S>[]) => unknown, thisArg?: any): number;
|
|
361
|
+
fill(value: IPreferences<S>, start?: number, end?: number): IPreferences<S>[];
|
|
362
|
+
copyWithin(target: number, start: number, end?: number): IPreferences<S>[];
|
|
363
|
+
[Symbol.iterator](): IterableIterator<IPreferences<S>>;
|
|
364
|
+
entries(): IterableIterator<[number, IPreferences<S>]>;
|
|
365
|
+
keys(): IterableIterator<number>;
|
|
366
|
+
values(): IterableIterator<IPreferences<S>>;
|
|
367
|
+
[Symbol.unscopables](): {
|
|
368
|
+
copyWithin: boolean;
|
|
369
|
+
entries: boolean;
|
|
370
|
+
fill: boolean;
|
|
371
|
+
find: boolean;
|
|
372
|
+
findIndex: boolean;
|
|
373
|
+
keys: boolean;
|
|
374
|
+
values: boolean;
|
|
375
|
+
};
|
|
376
|
+
includes(searchElement: IPreferences<S>, fromIndex?: number): boolean;
|
|
377
|
+
};
|
|
378
|
+
getWebsocketConfig(): IWebsocketConfig;
|
|
379
|
+
private convertArrayToObject;
|
|
380
|
+
}
|
|
381
|
+
export { Feature };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './connector';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
package/lib/index.d.ts
ADDED