@feathersjs/schema 5.0.0-pre.29 → 5.0.0-pre.31

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.
@@ -0,0 +1,505 @@
1
+ import { FromSchema } from 'json-schema-to-ts';
2
+ export declare const authenticationSettingsSchema: {
3
+ readonly type: "object";
4
+ readonly required: readonly ["secret", "entity", "authStrategies"];
5
+ readonly properties: {
6
+ readonly secret: {
7
+ readonly type: "string";
8
+ readonly description: "The JWT signing secret";
9
+ };
10
+ readonly entity: {
11
+ readonly oneOf: readonly [{
12
+ readonly type: "null";
13
+ }, {
14
+ readonly type: "string";
15
+ }];
16
+ readonly description: "The name of the authentication entity (e.g. user)";
17
+ };
18
+ readonly entityId: {
19
+ readonly type: "string";
20
+ readonly description: "The name of the authentication entity id property";
21
+ };
22
+ readonly service: {
23
+ readonly type: "string";
24
+ readonly description: "The path of the entity service";
25
+ };
26
+ readonly authStrategies: {
27
+ readonly type: "array";
28
+ readonly items: {
29
+ readonly type: "string";
30
+ };
31
+ readonly description: "A list of authentication strategy names that are allowed to create JWT access tokens";
32
+ };
33
+ readonly parseStrategies: {
34
+ readonly type: "array";
35
+ readonly items: {
36
+ readonly type: "string";
37
+ };
38
+ readonly description: "A list of authentication strategy names that should parse HTTP headers for authentication information (defaults to `authStrategies`)";
39
+ };
40
+ readonly jwtOptions: {
41
+ readonly type: "object";
42
+ };
43
+ readonly jwt: {
44
+ readonly type: "object";
45
+ readonly properties: {
46
+ readonly header: {
47
+ readonly type: "string";
48
+ readonly default: "Authorization";
49
+ readonly description: "The HTTP header containing the JWT";
50
+ };
51
+ readonly schemes: {
52
+ readonly type: "array";
53
+ readonly items: {
54
+ readonly type: "string";
55
+ };
56
+ readonly description: "An array of schemes to support";
57
+ };
58
+ };
59
+ };
60
+ readonly local: {
61
+ readonly type: "object";
62
+ readonly required: readonly ["usernameField", "passwordField"];
63
+ readonly properties: {
64
+ readonly usernameField: {
65
+ readonly type: "string";
66
+ readonly description: "Name of the username field (e.g. `email`)";
67
+ };
68
+ readonly passwordField: {
69
+ readonly type: "string";
70
+ readonly description: "Name of the password field (e.g. `password`)";
71
+ };
72
+ readonly hashSize: {
73
+ readonly type: "number";
74
+ readonly description: "The BCrypt salt length";
75
+ };
76
+ readonly errorMessage: {
77
+ readonly type: "string";
78
+ readonly default: "Invalid login";
79
+ readonly description: "The error message to return on errors";
80
+ };
81
+ readonly entityUsernameField: {
82
+ readonly type: "string";
83
+ readonly description: "Name of the username field on the entity if authentication request data and entity field names are different";
84
+ };
85
+ readonly entityPasswordField: {
86
+ readonly type: "string";
87
+ readonly description: "Name of the password field on the entity if authentication request data and entity field names are different";
88
+ };
89
+ };
90
+ };
91
+ readonly oauth: {
92
+ readonly type: "object";
93
+ readonly properties: {
94
+ readonly redirect: {
95
+ readonly type: "string";
96
+ };
97
+ readonly origins: {
98
+ readonly type: "array";
99
+ readonly items: {
100
+ readonly type: "string";
101
+ };
102
+ };
103
+ readonly defaults: {
104
+ readonly type: "object";
105
+ readonly properties: {
106
+ readonly key: {
107
+ readonly type: "string";
108
+ };
109
+ readonly secret: {
110
+ readonly type: "string";
111
+ };
112
+ };
113
+ };
114
+ };
115
+ };
116
+ };
117
+ };
118
+ export declare type AuthenticationConfiguration = FromSchema<typeof authenticationSettingsSchema>;
119
+ export declare const sqlSettingsSchema: {
120
+ readonly type: "object";
121
+ readonly properties: {
122
+ readonly client: {
123
+ readonly type: "string";
124
+ };
125
+ readonly connection: {
126
+ readonly type: "string";
127
+ };
128
+ };
129
+ };
130
+ /**
131
+ * Schema for properties that are available in a standard Feathers application.
132
+ */
133
+ export declare const defaultAppSettings: {
134
+ readonly authentication: {
135
+ readonly type: "object";
136
+ readonly required: readonly ["secret", "entity", "authStrategies"];
137
+ readonly properties: {
138
+ readonly secret: {
139
+ readonly type: "string";
140
+ readonly description: "The JWT signing secret";
141
+ };
142
+ readonly entity: {
143
+ readonly oneOf: readonly [{
144
+ readonly type: "null";
145
+ }, {
146
+ readonly type: "string";
147
+ }];
148
+ readonly description: "The name of the authentication entity (e.g. user)";
149
+ };
150
+ readonly entityId: {
151
+ readonly type: "string";
152
+ readonly description: "The name of the authentication entity id property";
153
+ };
154
+ readonly service: {
155
+ readonly type: "string";
156
+ readonly description: "The path of the entity service";
157
+ };
158
+ readonly authStrategies: {
159
+ readonly type: "array";
160
+ readonly items: {
161
+ readonly type: "string";
162
+ };
163
+ readonly description: "A list of authentication strategy names that are allowed to create JWT access tokens";
164
+ };
165
+ readonly parseStrategies: {
166
+ readonly type: "array";
167
+ readonly items: {
168
+ readonly type: "string";
169
+ };
170
+ readonly description: "A list of authentication strategy names that should parse HTTP headers for authentication information (defaults to `authStrategies`)";
171
+ };
172
+ readonly jwtOptions: {
173
+ readonly type: "object";
174
+ };
175
+ readonly jwt: {
176
+ readonly type: "object";
177
+ readonly properties: {
178
+ readonly header: {
179
+ readonly type: "string";
180
+ readonly default: "Authorization";
181
+ readonly description: "The HTTP header containing the JWT";
182
+ };
183
+ readonly schemes: {
184
+ readonly type: "array";
185
+ readonly items: {
186
+ readonly type: "string";
187
+ };
188
+ readonly description: "An array of schemes to support";
189
+ };
190
+ };
191
+ };
192
+ readonly local: {
193
+ readonly type: "object";
194
+ readonly required: readonly ["usernameField", "passwordField"];
195
+ readonly properties: {
196
+ readonly usernameField: {
197
+ readonly type: "string";
198
+ readonly description: "Name of the username field (e.g. `email`)";
199
+ };
200
+ readonly passwordField: {
201
+ readonly type: "string";
202
+ readonly description: "Name of the password field (e.g. `password`)";
203
+ };
204
+ readonly hashSize: {
205
+ readonly type: "number";
206
+ readonly description: "The BCrypt salt length";
207
+ };
208
+ readonly errorMessage: {
209
+ readonly type: "string";
210
+ readonly default: "Invalid login";
211
+ readonly description: "The error message to return on errors";
212
+ };
213
+ readonly entityUsernameField: {
214
+ readonly type: "string";
215
+ readonly description: "Name of the username field on the entity if authentication request data and entity field names are different";
216
+ };
217
+ readonly entityPasswordField: {
218
+ readonly type: "string";
219
+ readonly description: "Name of the password field on the entity if authentication request data and entity field names are different";
220
+ };
221
+ };
222
+ };
223
+ readonly oauth: {
224
+ readonly type: "object";
225
+ readonly properties: {
226
+ readonly redirect: {
227
+ readonly type: "string";
228
+ };
229
+ readonly origins: {
230
+ readonly type: "array";
231
+ readonly items: {
232
+ readonly type: "string";
233
+ };
234
+ };
235
+ readonly defaults: {
236
+ readonly type: "object";
237
+ readonly properties: {
238
+ readonly key: {
239
+ readonly type: "string";
240
+ };
241
+ readonly secret: {
242
+ readonly type: "string";
243
+ };
244
+ };
245
+ };
246
+ };
247
+ };
248
+ };
249
+ };
250
+ readonly origins: {
251
+ readonly type: "array";
252
+ readonly items: {
253
+ readonly type: "string";
254
+ };
255
+ };
256
+ readonly paginate: {
257
+ readonly type: "object";
258
+ readonly additionalProperties: false;
259
+ readonly required: readonly ["default", "max"];
260
+ readonly properties: {
261
+ readonly default: {
262
+ readonly type: "number";
263
+ };
264
+ readonly max: {
265
+ readonly type: "number";
266
+ };
267
+ };
268
+ };
269
+ readonly mongodb: {
270
+ readonly type: "string";
271
+ };
272
+ readonly mysql: {
273
+ readonly type: "object";
274
+ readonly properties: {
275
+ readonly client: {
276
+ readonly type: "string";
277
+ };
278
+ readonly connection: {
279
+ readonly type: "string";
280
+ };
281
+ };
282
+ };
283
+ readonly postgresql: {
284
+ readonly type: "object";
285
+ readonly properties: {
286
+ readonly client: {
287
+ readonly type: "string";
288
+ };
289
+ readonly connection: {
290
+ readonly type: "string";
291
+ };
292
+ };
293
+ };
294
+ readonly sqlite: {
295
+ readonly type: "object";
296
+ readonly properties: {
297
+ readonly client: {
298
+ readonly type: "string";
299
+ };
300
+ readonly connection: {
301
+ readonly type: "string";
302
+ };
303
+ };
304
+ };
305
+ readonly mssql: {
306
+ readonly type: "object";
307
+ readonly properties: {
308
+ readonly client: {
309
+ readonly type: "string";
310
+ };
311
+ readonly connection: {
312
+ readonly type: "string";
313
+ };
314
+ };
315
+ };
316
+ };
317
+ export declare const defaultAppConfiguration: {
318
+ readonly type: "object";
319
+ readonly additionalProperties: false;
320
+ readonly properties: {
321
+ readonly authentication: {
322
+ readonly type: "object";
323
+ readonly required: readonly ["secret", "entity", "authStrategies"];
324
+ readonly properties: {
325
+ readonly secret: {
326
+ readonly type: "string";
327
+ readonly description: "The JWT signing secret";
328
+ };
329
+ readonly entity: {
330
+ readonly oneOf: readonly [{
331
+ readonly type: "null";
332
+ }, {
333
+ readonly type: "string";
334
+ }];
335
+ readonly description: "The name of the authentication entity (e.g. user)";
336
+ };
337
+ readonly entityId: {
338
+ readonly type: "string";
339
+ readonly description: "The name of the authentication entity id property";
340
+ };
341
+ readonly service: {
342
+ readonly type: "string";
343
+ readonly description: "The path of the entity service";
344
+ };
345
+ readonly authStrategies: {
346
+ readonly type: "array";
347
+ readonly items: {
348
+ readonly type: "string";
349
+ };
350
+ readonly description: "A list of authentication strategy names that are allowed to create JWT access tokens";
351
+ };
352
+ readonly parseStrategies: {
353
+ readonly type: "array";
354
+ readonly items: {
355
+ readonly type: "string";
356
+ };
357
+ readonly description: "A list of authentication strategy names that should parse HTTP headers for authentication information (defaults to `authStrategies`)";
358
+ };
359
+ readonly jwtOptions: {
360
+ readonly type: "object";
361
+ };
362
+ readonly jwt: {
363
+ readonly type: "object";
364
+ readonly properties: {
365
+ readonly header: {
366
+ readonly type: "string";
367
+ readonly default: "Authorization";
368
+ readonly description: "The HTTP header containing the JWT";
369
+ };
370
+ readonly schemes: {
371
+ readonly type: "array";
372
+ readonly items: {
373
+ readonly type: "string";
374
+ };
375
+ readonly description: "An array of schemes to support";
376
+ };
377
+ };
378
+ };
379
+ readonly local: {
380
+ readonly type: "object";
381
+ readonly required: readonly ["usernameField", "passwordField"];
382
+ readonly properties: {
383
+ readonly usernameField: {
384
+ readonly type: "string";
385
+ readonly description: "Name of the username field (e.g. `email`)";
386
+ };
387
+ readonly passwordField: {
388
+ readonly type: "string";
389
+ readonly description: "Name of the password field (e.g. `password`)";
390
+ };
391
+ readonly hashSize: {
392
+ readonly type: "number";
393
+ readonly description: "The BCrypt salt length";
394
+ };
395
+ readonly errorMessage: {
396
+ readonly type: "string";
397
+ readonly default: "Invalid login";
398
+ readonly description: "The error message to return on errors";
399
+ };
400
+ readonly entityUsernameField: {
401
+ readonly type: "string";
402
+ readonly description: "Name of the username field on the entity if authentication request data and entity field names are different";
403
+ };
404
+ readonly entityPasswordField: {
405
+ readonly type: "string";
406
+ readonly description: "Name of the password field on the entity if authentication request data and entity field names are different";
407
+ };
408
+ };
409
+ };
410
+ readonly oauth: {
411
+ readonly type: "object";
412
+ readonly properties: {
413
+ readonly redirect: {
414
+ readonly type: "string";
415
+ };
416
+ readonly origins: {
417
+ readonly type: "array";
418
+ readonly items: {
419
+ readonly type: "string";
420
+ };
421
+ };
422
+ readonly defaults: {
423
+ readonly type: "object";
424
+ readonly properties: {
425
+ readonly key: {
426
+ readonly type: "string";
427
+ };
428
+ readonly secret: {
429
+ readonly type: "string";
430
+ };
431
+ };
432
+ };
433
+ };
434
+ };
435
+ };
436
+ };
437
+ readonly origins: {
438
+ readonly type: "array";
439
+ readonly items: {
440
+ readonly type: "string";
441
+ };
442
+ };
443
+ readonly paginate: {
444
+ readonly type: "object";
445
+ readonly additionalProperties: false;
446
+ readonly required: readonly ["default", "max"];
447
+ readonly properties: {
448
+ readonly default: {
449
+ readonly type: "number";
450
+ };
451
+ readonly max: {
452
+ readonly type: "number";
453
+ };
454
+ };
455
+ };
456
+ readonly mongodb: {
457
+ readonly type: "string";
458
+ };
459
+ readonly mysql: {
460
+ readonly type: "object";
461
+ readonly properties: {
462
+ readonly client: {
463
+ readonly type: "string";
464
+ };
465
+ readonly connection: {
466
+ readonly type: "string";
467
+ };
468
+ };
469
+ };
470
+ readonly postgresql: {
471
+ readonly type: "object";
472
+ readonly properties: {
473
+ readonly client: {
474
+ readonly type: "string";
475
+ };
476
+ readonly connection: {
477
+ readonly type: "string";
478
+ };
479
+ };
480
+ };
481
+ readonly sqlite: {
482
+ readonly type: "object";
483
+ readonly properties: {
484
+ readonly client: {
485
+ readonly type: "string";
486
+ };
487
+ readonly connection: {
488
+ readonly type: "string";
489
+ };
490
+ };
491
+ };
492
+ readonly mssql: {
493
+ readonly type: "object";
494
+ readonly properties: {
495
+ readonly client: {
496
+ readonly type: "string";
497
+ };
498
+ readonly connection: {
499
+ readonly type: "string";
500
+ };
501
+ };
502
+ };
503
+ };
504
+ };
505
+ export declare type DefaultAppConfiguration = FromSchema<typeof defaultAppConfiguration>;
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultAppConfiguration = exports.defaultAppSettings = exports.sqlSettingsSchema = exports.authenticationSettingsSchema = void 0;
4
+ exports.authenticationSettingsSchema = {
5
+ type: 'object',
6
+ required: ['secret', 'entity', 'authStrategies'],
7
+ properties: {
8
+ secret: {
9
+ type: 'string',
10
+ description: 'The JWT signing secret'
11
+ },
12
+ entity: {
13
+ oneOf: [
14
+ {
15
+ type: 'null'
16
+ },
17
+ {
18
+ type: 'string'
19
+ }
20
+ ],
21
+ description: 'The name of the authentication entity (e.g. user)'
22
+ },
23
+ entityId: {
24
+ type: 'string',
25
+ description: 'The name of the authentication entity id property'
26
+ },
27
+ service: {
28
+ type: 'string',
29
+ description: 'The path of the entity service'
30
+ },
31
+ authStrategies: {
32
+ type: 'array',
33
+ items: { type: 'string' },
34
+ description: 'A list of authentication strategy names that are allowed to create JWT access tokens'
35
+ },
36
+ parseStrategies: {
37
+ type: 'array',
38
+ items: { type: 'string' },
39
+ description: 'A list of authentication strategy names that should parse HTTP headers for authentication information (defaults to `authStrategies`)'
40
+ },
41
+ jwtOptions: {
42
+ type: 'object'
43
+ },
44
+ jwt: {
45
+ type: 'object',
46
+ properties: {
47
+ header: {
48
+ type: 'string',
49
+ default: 'Authorization',
50
+ description: 'The HTTP header containing the JWT'
51
+ },
52
+ schemes: {
53
+ type: 'array',
54
+ items: { type: 'string' },
55
+ description: 'An array of schemes to support'
56
+ }
57
+ }
58
+ },
59
+ local: {
60
+ type: 'object',
61
+ required: ['usernameField', 'passwordField'],
62
+ properties: {
63
+ usernameField: {
64
+ type: 'string',
65
+ description: 'Name of the username field (e.g. `email`)'
66
+ },
67
+ passwordField: {
68
+ type: 'string',
69
+ description: 'Name of the password field (e.g. `password`)'
70
+ },
71
+ hashSize: {
72
+ type: 'number',
73
+ description: 'The BCrypt salt length'
74
+ },
75
+ errorMessage: {
76
+ type: 'string',
77
+ default: 'Invalid login',
78
+ description: 'The error message to return on errors'
79
+ },
80
+ entityUsernameField: {
81
+ type: 'string',
82
+ description: 'Name of the username field on the entity if authentication request data and entity field names are different'
83
+ },
84
+ entityPasswordField: {
85
+ type: 'string',
86
+ description: 'Name of the password field on the entity if authentication request data and entity field names are different'
87
+ }
88
+ }
89
+ },
90
+ oauth: {
91
+ type: 'object',
92
+ properties: {
93
+ redirect: {
94
+ type: 'string'
95
+ },
96
+ origins: {
97
+ type: 'array',
98
+ items: { type: 'string' }
99
+ },
100
+ defaults: {
101
+ type: 'object',
102
+ properties: {
103
+ key: { type: 'string' },
104
+ secret: { type: 'string' }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ };
111
+ exports.sqlSettingsSchema = {
112
+ type: 'object',
113
+ properties: {
114
+ client: { type: 'string' },
115
+ connection: { type: 'string' }
116
+ }
117
+ };
118
+ /**
119
+ * Schema for properties that are available in a standard Feathers application.
120
+ */
121
+ exports.defaultAppSettings = {
122
+ authentication: exports.authenticationSettingsSchema,
123
+ origins: {
124
+ type: 'array',
125
+ items: {
126
+ type: 'string'
127
+ }
128
+ },
129
+ paginate: {
130
+ type: 'object',
131
+ additionalProperties: false,
132
+ required: ['default', 'max'],
133
+ properties: {
134
+ default: { type: 'number' },
135
+ max: { type: 'number' }
136
+ }
137
+ },
138
+ mongodb: { type: 'string' },
139
+ mysql: exports.sqlSettingsSchema,
140
+ postgresql: exports.sqlSettingsSchema,
141
+ sqlite: exports.sqlSettingsSchema,
142
+ mssql: exports.sqlSettingsSchema
143
+ };
144
+ exports.defaultAppConfiguration = {
145
+ type: 'object',
146
+ additionalProperties: false,
147
+ properties: exports.defaultAppSettings
148
+ };
149
+ //# sourceMappingURL=default-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-schemas.js","sourceRoot":"","sources":["../src/default-schemas.ts"],"names":[],"mappings":"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"}
@@ -18,4 +18,5 @@ export declare const resolveQuery: <T, H extends HookContext<import("@feathersjs
18
18
  export declare const resolveData: <H extends HookContext<import("@feathersjs/feathers").Application<any, any>, any>>(settings: DataResolvers<H> | Resolver<any, H>) => (context: H, next?: NextFunction) => Promise<any>;
19
19
  export declare const resolveResult: <T, H extends HookContext<import("@feathersjs/feathers").Application<any, any>, any>>(...resolvers: Resolver<T, H>[]) => (context: H, next?: NextFunction) => Promise<void>;
20
20
  export declare const resolveDispatch: <T, H extends HookContext<import("@feathersjs/feathers").Application<any, any>, any>>(...resolvers: Resolver<T, H>[]) => (context: H, next?: NextFunction) => Promise<void>;
21
+ export declare const resolveExternal: <T, H extends HookContext<import("@feathersjs/feathers").Application<any, any>, any>>(...resolvers: Resolver<T, H>[]) => (context: H, next?: NextFunction) => Promise<void>;
21
22
  export declare const resolveAll: <H extends HookContext<import("@feathersjs/feathers").Application<any, any>, any>>(map: ResolveAllSettings<H>) => (this: any, context: H, next?: import("@feathersjs/hooks").AsyncMiddleware<H>) => Promise<any>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveAll = exports.resolveDispatch = exports.resolveResult = exports.resolveData = exports.resolveQuery = exports.getDispatch = exports.DISPATCH = void 0;
3
+ exports.resolveAll = exports.resolveExternal = exports.resolveDispatch = exports.resolveResult = exports.resolveData = exports.resolveQuery = exports.getDispatch = exports.DISPATCH = void 0;
4
4
  const hooks_1 = require("@feathersjs/hooks");
5
5
  const resolver_1 = require("../resolver");
6
6
  const getContext = (context) => {
@@ -124,6 +124,7 @@ const resolveDispatch = (...resolvers) => async (context, next) => {
124
124
  });
125
125
  };
126
126
  exports.resolveDispatch = resolveDispatch;
127
+ exports.resolveExternal = exports.resolveDispatch;
127
128
  const resolveAll = (map) => {
128
129
  const middleware = [];
129
130
  middleware.push((0, exports.resolveDispatch)(map.dispatch));