@innet/server 2.0.0-beta.4 → 2.0.0-beta.5

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.
Files changed (45) hide show
  1. package/README.md +215 -0
  2. package/handler/handler.d.ts +1 -1
  3. package/hooks/index.d.ts +24 -24
  4. package/hooks/index.es6.js +24 -24
  5. package/hooks/index.js +24 -24
  6. package/index.d.ts +2 -2
  7. package/index.es6.js +86 -86
  8. package/index.js +195 -195
  9. package/package.json +3 -3
  10. package/plugins/index.d.ts +2 -2
  11. package/plugins/index.es6.js +2 -2
  12. package/plugins/index.js +2 -2
  13. package/plugins/main/index.d.ts +8 -8
  14. package/plugins/main/index.es6.js +8 -8
  15. package/plugins/main/index.js +8 -8
  16. package/plugins/request/index.d.ts +5 -5
  17. package/plugins/request/index.es6.js +5 -5
  18. package/plugins/request/index.js +5 -5
  19. package/plugins/schema/array/array.d.ts +3 -0
  20. package/plugins/schema/array/array.es6.js +10 -1
  21. package/plugins/schema/array/array.js +10 -1
  22. package/plugins/schema/field/field.d.ts +2 -0
  23. package/plugins/schema/field/field.es6.js +7 -1
  24. package/plugins/schema/field/field.js +7 -1
  25. package/plugins/schema/index.d.ts +8 -8
  26. package/plugins/schema/index.es6.js +8 -8
  27. package/plugins/schema/index.js +8 -8
  28. package/plugins/schema/integer/integer.d.ts +37 -0
  29. package/plugins/schema/integer/integer.es6.js +21 -7
  30. package/plugins/schema/integer/integer.js +21 -7
  31. package/plugins/schema/number/number.d.ts +32 -0
  32. package/plugins/schema/number/number.es6.js +21 -5
  33. package/plugins/schema/number/number.js +21 -5
  34. package/plugins/schema/string/string.d.ts +27 -0
  35. package/plugins/schema/string/string.es6.js +9 -3
  36. package/plugins/schema/string/string.js +9 -3
  37. package/plugins/utils/index.d.ts +2 -2
  38. package/plugins/utils/index.es6.js +2 -2
  39. package/plugins/utils/index.js +2 -2
  40. package/utils/index.d.ts +8 -8
  41. package/utils/index.es6.js +8 -8
  42. package/utils/index.js +8 -8
  43. package/utils/rules/index.d.ts +17 -17
  44. package/utils/rules/index.es6.js +17 -17
  45. package/utils/rules/index.js +18 -18
package/README.md CHANGED
@@ -2176,6 +2176,26 @@ you get an error:
2176
2176
  }
2177
2177
  ```
2178
2178
 
2179
+ #### format
2180
+
2181
+ An optional format modifier serves as a hint at the contents and format of the string.
2182
+ Available formats include: `email`, `date-time`, `date`, `uri`, `hostname`, `ipv4`, `ipv6`, `uuid`, `byte`, `binary`, `password` or custom string.
2183
+
2184
+ *src/app.tsx*
2185
+ ```typescript jsx
2186
+ export default (
2187
+ <server>
2188
+ <api>
2189
+ <endpoint method='get' path='/users'>
2190
+ <param in='query' name='email'>
2191
+ <string format='email' />
2192
+ </param>
2193
+ </endpoint>
2194
+ </api>
2195
+ </server>
2196
+ )
2197
+ ```
2198
+
2179
2199
  ### \<number>
2180
2200
 
2181
2201
  [← back](#primitive-data)
@@ -2325,6 +2345,66 @@ export default (
2325
2345
 
2326
2346
  *In this example `/products?rating=5` is valid and `/products?rating=6` is not*
2327
2347
 
2348
+ #### exclusiveMinimum, exclusiveMaximum
2349
+
2350
+ These props restrict the value to be strictly greater than or less than the specified number.
2351
+
2352
+ *src/app.tsx*
2353
+ ```typescript jsx
2354
+ export default (
2355
+ <server>
2356
+ <api>
2357
+ <endpoint method='get' path='/products'>
2358
+ <param in='query' name='rating'>
2359
+ <number
2360
+ exclusiveMinimum={0}
2361
+ exclusiveMaximum={5}
2362
+ />
2363
+ </param>
2364
+ </endpoint>
2365
+ </api>
2366
+ </server>
2367
+ )
2368
+ ```
2369
+
2370
+ #### multipleOf
2371
+
2372
+ This prop restricts the value to be a multiple of the specified number.
2373
+
2374
+ *src/app.tsx*
2375
+ ```typescript jsx
2376
+ export default (
2377
+ <server>
2378
+ <api>
2379
+ <endpoint method='get' path='/products'>
2380
+ <param in='query' name='quantity'>
2381
+ <number multipleOf={10} />
2382
+ </param>
2383
+ </endpoint>
2384
+ </api>
2385
+ </server>
2386
+ )
2387
+ ```
2388
+
2389
+ #### format
2390
+
2391
+ An optional format modifier serves as a hint at the contents and format of the number.
2392
+
2393
+ *src/app.tsx*
2394
+ ```typescript jsx
2395
+ export default (
2396
+ <server>
2397
+ <api>
2398
+ <endpoint method='get' path='/products'>
2399
+ <param in='query' name='price'>
2400
+ <number format='float' />
2401
+ </param>
2402
+ </endpoint>
2403
+ </api>
2404
+ </server>
2405
+ )
2406
+ ```
2407
+
2328
2408
  ### \<integer>
2329
2409
 
2330
2410
  [← back](#primitive-data)
@@ -2498,6 +2578,47 @@ export default (
2498
2578
 
2499
2579
  *In this example `/products?rating=5` is valid and `/products?rating=6` is not*
2500
2580
 
2581
+ #### exclusiveMinimum, exclusiveMaximum
2582
+
2583
+ These props restrict the value to be strictly greater than or less than the specified number.
2584
+
2585
+ *src/app.tsx*
2586
+ ```typescript jsx
2587
+ export default (
2588
+ <server>
2589
+ <api>
2590
+ <endpoint method='get' path='/products'>
2591
+ <param in='query' name='count'>
2592
+ <integer
2593
+ exclusiveMinimum={0}
2594
+ exclusiveMaximum={100}
2595
+ />
2596
+ </param>
2597
+ </endpoint>
2598
+ </api>
2599
+ </server>
2600
+ )
2601
+ ```
2602
+
2603
+ #### multipleOf
2604
+
2605
+ This prop restricts the value to be a multiple of the specified number.
2606
+
2607
+ *src/app.tsx*
2608
+ ```typescript jsx
2609
+ export default (
2610
+ <server>
2611
+ <api>
2612
+ <endpoint method='get' path='/products'>
2613
+ <param in='query' name='quantity'>
2614
+ <integer multipleOf={5} />
2615
+ </param>
2616
+ </endpoint>
2617
+ </api>
2618
+ </server>
2619
+ )
2620
+ ```
2621
+
2501
2622
  ### \<date>
2502
2623
 
2503
2624
  [← back](#primitive-data)
@@ -3135,6 +3256,48 @@ export default (
3135
3256
  )
3136
3257
  ```
3137
3258
 
3259
+ #### minItems, maxItems
3260
+
3261
+ Those two props validate the array by minimum and maximum number of items.
3262
+
3263
+ *src/app.tsx*
3264
+ ```typescript jsx
3265
+ export default (
3266
+ <server>
3267
+ <api>
3268
+ <endpoint method='get' path='/products'>
3269
+ <param in='query' name='tags'>
3270
+ <array minItems={1} maxItems={10}>
3271
+ <string />
3272
+ </array>
3273
+ </param>
3274
+ </endpoint>
3275
+ </api>
3276
+ </server>
3277
+ )
3278
+ ```
3279
+
3280
+ #### uniqueItems
3281
+
3282
+ This prop validates that all items in the array are unique.
3283
+
3284
+ *src/app.tsx*
3285
+ ```typescript jsx
3286
+ export default (
3287
+ <server>
3288
+ <api>
3289
+ <endpoint method='get' path='/products'>
3290
+ <param in='query' name='ids'>
3291
+ <array uniqueItems>
3292
+ <number />
3293
+ </array>
3294
+ </param>
3295
+ </endpoint>
3296
+ </api>
3297
+ </server>
3298
+ )
3299
+ ```
3300
+
3138
3301
  ### \<object>
3139
3302
 
3140
3303
  [← back](#list-of-data)
@@ -3298,6 +3461,58 @@ export default (
3298
3461
  )
3299
3462
  ```
3300
3463
 
3464
+ #### readOnly
3465
+
3466
+ You can mark a field as read-only, meaning it can only be returned in responses, not sent in requests.
3467
+
3468
+ *src/app.tsx*
3469
+ ```typescript jsx
3470
+ export default (
3471
+ <server>
3472
+ <api>
3473
+ <endpoint method='get' path='/users'>
3474
+ <response>
3475
+ <object>
3476
+ <field key='id' readOnly>
3477
+ <uuid />
3478
+ </field>
3479
+ <field key='name'>
3480
+ <string />
3481
+ </field>
3482
+ </object>
3483
+ </response>
3484
+ </endpoint>
3485
+ </api>
3486
+ </server>
3487
+ )
3488
+ ```
3489
+
3490
+ #### writeOnly
3491
+
3492
+ You can mark a field as write-only, meaning it can only be sent in requests, not returned in responses.
3493
+
3494
+ *src/app.tsx*
3495
+ ```typescript jsx
3496
+ export default (
3497
+ <server>
3498
+ <api>
3499
+ <endpoint method='post' path='/users'>
3500
+ <body>
3501
+ <object>
3502
+ <field key='password' writeOnly>
3503
+ <string />
3504
+ </field>
3505
+ <field key='name'>
3506
+ <string />
3507
+ </field>
3508
+ </object>
3509
+ </body>
3510
+ </endpoint>
3511
+ </api>
3512
+ </server>
3513
+ )
3514
+ ```
3515
+
3301
3516
  ## Run-Time
3302
3517
 
3303
3518
  Next elements relate to run-time action.
@@ -50,7 +50,7 @@ export declare const promisePlugins: (typeof async)[];
50
50
  export declare const handler: import("innet").Handler;
51
51
  declare global {
52
52
  namespace JSX {
53
- type Element = ArrayElement | FunctionElement | JSXElement | boolean | null | number | (string & {}) | undefined;
53
+ type Element = ({} & string) | ArrayElement | FunctionElement | JSXElement | boolean | null | number | undefined;
54
54
  interface ArrayElement extends Array<Element> {
55
55
  }
56
56
  type FunctionElement = () => Element;
package/hooks/index.d.ts CHANGED
@@ -1,33 +1,33 @@
1
- export * from './useServer';
1
+ export * from './useAction';
2
2
  export * from './useApi';
3
- export * from './useHost';
4
- export * from './useTag';
5
- export * from './useComponentName';
6
- export * from './useOneElementError';
7
- export * from './useSchemaContext';
8
- export * from './useSchemaType';
9
- export * from './useNewSchema';
10
- export * from './useRequest';
11
- export * from './useResponse';
12
- export * from './useParams';
3
+ export * from './useBlock';
13
4
  export * from './useBody';
14
- export * from './useSearch';
15
- export * from './useParam';
5
+ export * from './useBodyFile';
6
+ export * from './useClientIp';
7
+ export * from './useComponentName';
8
+ export * from './useCookies';
9
+ export * from './useEffect';
16
10
  export * from './useEndpoint';
17
- export * from './useBlock';
18
11
  export * from './useHeaders';
19
- export * from './useCookies';
20
- export * from './useAction';
21
- export * from './useThrow';
22
- export * from './useRule';
12
+ export * from './useHost';
13
+ export * from './useIsServerHttps';
14
+ export * from './useNewSchema';
23
15
  export * from './useObjectRule';
24
- export * from './useBodyFile';
16
+ export * from './useObjectSchemaContext';
17
+ export * from './useOneElementError';
18
+ export * from './useParam';
19
+ export * from './useParams';
25
20
  export * from './usePath';
21
+ export * from './useRequest';
22
+ export * from './useRequestHandler';
23
+ export * from './useResponse';
24
+ export * from './useRule';
25
+ export * from './useSchemaContext';
26
+ export * from './useSchemaType';
27
+ export * from './useSearch';
28
+ export * from './useServer';
26
29
  export * from './useServerPlugin';
27
- export * from './useClientIp';
28
30
  export * from './useServerPlugins';
29
- export * from './useObjectSchemaContext';
30
31
  export * from './useServerPort';
31
- export * from './useIsServerHttps';
32
- export * from './useRequestHandler';
33
- export * from './useEffect';
32
+ export * from './useTag';
33
+ export * from './useThrow';
@@ -1,33 +1,33 @@
1
- import './useServer/index.es6.js';
1
+ import './useAction/index.es6.js';
2
2
  import './useApi/index.es6.js';
3
- import './useHost/index.es6.js';
4
- import './useTag/index.es6.js';
5
- import './useComponentName/index.es6.js';
6
- import './useOneElementError/index.es6.js';
7
- import './useSchemaContext/index.es6.js';
8
- import './useSchemaType/index.es6.js';
9
- import './useNewSchema/index.es6.js';
10
- import './useRequest/index.es6.js';
11
- import './useResponse/index.es6.js';
12
- import './useParams/index.es6.js';
3
+ import './useBlock/index.es6.js';
13
4
  import './useBody/index.es6.js';
14
- import './useSearch/index.es6.js';
15
- import './useParam/index.es6.js';
5
+ import './useBodyFile/index.es6.js';
6
+ import './useClientIp/index.es6.js';
7
+ import './useComponentName/index.es6.js';
8
+ import './useCookies/index.es6.js';
9
+ import './useEffect/index.es6.js';
16
10
  import './useEndpoint/index.es6.js';
17
- import './useBlock/index.es6.js';
18
11
  import './useHeaders/index.es6.js';
19
- import './useCookies/index.es6.js';
20
- import './useAction/index.es6.js';
21
- import './useThrow/index.es6.js';
22
- import './useRule/index.es6.js';
12
+ import './useHost/index.es6.js';
13
+ import './useIsServerHttps/index.es6.js';
14
+ import './useNewSchema/index.es6.js';
23
15
  import './useObjectRule/index.es6.js';
24
- import './useBodyFile/index.es6.js';
16
+ import './useObjectSchemaContext/index.es6.js';
17
+ import './useOneElementError/index.es6.js';
18
+ import './useParam/index.es6.js';
19
+ import './useParams/index.es6.js';
25
20
  import './usePath/index.es6.js';
21
+ import './useRequest/index.es6.js';
22
+ import './useRequestHandler/index.es6.js';
23
+ import './useResponse/index.es6.js';
24
+ import './useRule/index.es6.js';
25
+ import './useSchemaContext/index.es6.js';
26
+ import './useSchemaType/index.es6.js';
27
+ import './useSearch/index.es6.js';
28
+ import './useServer/index.es6.js';
26
29
  import './useServerPlugin/index.es6.js';
27
- import './useClientIp/index.es6.js';
28
30
  import './useServerPlugins/index.es6.js';
29
- import './useObjectSchemaContext/index.es6.js';
30
31
  import './useServerPort/index.es6.js';
31
- import './useIsServerHttps/index.es6.js';
32
- import './useRequestHandler/index.es6.js';
33
- import './useEffect/index.es6.js';
32
+ import './useTag/index.es6.js';
33
+ import './useThrow/index.es6.js';
package/hooks/index.js CHANGED
@@ -1,36 +1,36 @@
1
1
  'use strict';
2
2
 
3
- require('./useServer/index.js');
3
+ require('./useAction/index.js');
4
4
  require('./useApi/index.js');
5
- require('./useHost/index.js');
6
- require('./useTag/index.js');
7
- require('./useComponentName/index.js');
8
- require('./useOneElementError/index.js');
9
- require('./useSchemaContext/index.js');
10
- require('./useSchemaType/index.js');
11
- require('./useNewSchema/index.js');
12
- require('./useRequest/index.js');
13
- require('./useResponse/index.js');
14
- require('./useParams/index.js');
5
+ require('./useBlock/index.js');
15
6
  require('./useBody/index.js');
16
- require('./useSearch/index.js');
17
- require('./useParam/index.js');
7
+ require('./useBodyFile/index.js');
8
+ require('./useClientIp/index.js');
9
+ require('./useComponentName/index.js');
10
+ require('./useCookies/index.js');
11
+ require('./useEffect/index.js');
18
12
  require('./useEndpoint/index.js');
19
- require('./useBlock/index.js');
20
13
  require('./useHeaders/index.js');
21
- require('./useCookies/index.js');
22
- require('./useAction/index.js');
23
- require('./useThrow/index.js');
24
- require('./useRule/index.js');
14
+ require('./useHost/index.js');
15
+ require('./useIsServerHttps/index.js');
16
+ require('./useNewSchema/index.js');
25
17
  require('./useObjectRule/index.js');
26
- require('./useBodyFile/index.js');
18
+ require('./useObjectSchemaContext/index.js');
19
+ require('./useOneElementError/index.js');
20
+ require('./useParam/index.js');
21
+ require('./useParams/index.js');
27
22
  require('./usePath/index.js');
23
+ require('./useRequest/index.js');
24
+ require('./useRequestHandler/index.js');
25
+ require('./useResponse/index.js');
26
+ require('./useRule/index.js');
27
+ require('./useSchemaContext/index.js');
28
+ require('./useSchemaType/index.js');
29
+ require('./useSearch/index.js');
30
+ require('./useServer/index.js');
28
31
  require('./useServerPlugin/index.js');
29
- require('./useClientIp/index.js');
30
32
  require('./useServerPlugins/index.js');
31
- require('./useObjectSchemaContext/index.js');
32
33
  require('./useServerPort/index.js');
33
- require('./useIsServerHttps/index.js');
34
- require('./useRequestHandler/index.js');
35
- require('./useEffect/index.js');
34
+ require('./useTag/index.js');
35
+ require('./useThrow/index.js');
36
36
 
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { handler as default } from './handler';
2
- export * from './plugins';
3
2
  export * from './handler';
4
- export * from './utils';
5
3
  export * from './hooks';
4
+ export * from './plugins';
6
5
  export * from './types';
6
+ export * from './utils';
package/index.es6.js CHANGED
@@ -1,119 +1,119 @@
1
1
  import './handler/index.es6.js';
2
- import './plugins/index.es6.js';
3
- import './utils/index.es6.js';
4
2
  import './hooks/index.es6.js';
3
+ import './plugins/index.es6.js';
5
4
  import './types.es6.js';
5
+ import './utils/index.es6.js';
6
6
  export { JSXPlugins, arrayPlugins, handler as default, fnPlugins, handler, objectPlugins, promisePlugins } from './handler/handler.es6.js';
7
- export { server } from './plugins/main/server/server.es6.js';
7
+ export { actionContext, useAction } from './hooks/useAction/useAction.es6.js';
8
+ export { apiContext, useApi } from './hooks/useApi/useApi.es6.js';
9
+ export { useBlock } from './hooks/useBlock/useBlock.es6.js';
10
+ export { useBody } from './hooks/useBody/useBody.es6.js';
11
+ export { bodyFileContext, useBodyFile } from './hooks/useBodyFile/useBodyFile.es6.js';
12
+ export { useClientIp } from './hooks/useClientIp/useClientIp.es6.js';
13
+ export { useComponentName } from './hooks/useComponentName/useComponentName.es6.js';
14
+ export { useCookies } from './hooks/useCookies/useCookies.es6.js';
15
+ export { useEffect } from './hooks/useEffect/useEffect.es6.js';
16
+ export { endpointContext, useEndpoint } from './hooks/useEndpoint/useEndpoint.es6.js';
17
+ export { useHeaders } from './hooks/useHeaders/useHeaders.es6.js';
18
+ export { hostContext, useHost } from './hooks/useHost/useHost.es6.js';
19
+ export { serverHttpsContext, useIsServerHttps } from './hooks/useIsServerHttps/useIsServerHttps.es6.js';
20
+ export { useNewSchema } from './hooks/useNewSchema/useNewSchema.es6.js';
21
+ export { objectRuleContext, useObjectRule } from './hooks/useObjectRule/useObjectRule.es6.js';
22
+ export { objectSchemaContext, useObjectSchemaContext } from './hooks/useObjectSchemaContext/useObjectSchemaContext.es6.js';
23
+ export { useOneElementError } from './hooks/useOneElementError/useOneElementError.es6.js';
24
+ export { paramContext, useParam } from './hooks/useParam/useParam.es6.js';
25
+ export { paramsContext, useParams } from './hooks/useParams/useParams.es6.js';
26
+ export { usePath } from './hooks/usePath/usePath.es6.js';
27
+ export { useRequest } from './hooks/useRequest/useRequest.es6.js';
28
+ export { requestHandlerContext, useRequestHandler } from './hooks/useRequestHandler/useRequestHandler.es6.js';
29
+ export { useResponse } from './hooks/useResponse/useResponse.es6.js';
30
+ export { ruleContext, useRule, useSetRule } from './hooks/useRule/useRule.es6.js';
31
+ export { schemaContext, useSchemaContext } from './hooks/useSchemaContext/useSchemaContext.es6.js';
32
+ export { useSchemaType } from './hooks/useSchemaType/useSchemaType.es6.js';
33
+ export { useSearch } from './hooks/useSearch/useSearch.es6.js';
34
+ export { serverContext, useServer } from './hooks/useServer/useServer.es6.js';
35
+ export { useServerPlugin } from './hooks/useServerPlugin/useServerPlugin.es6.js';
36
+ export { serverPlugins, useServerPlugins } from './hooks/useServerPlugins/useServerPlugins.es6.js';
37
+ export { serverPortContext, useServerPort } from './hooks/useServerPort/useServerPort.es6.js';
38
+ export { tagContext, useTag } from './hooks/useTag/useTag.es6.js';
39
+ export { useThrow } from './hooks/useThrow/useThrow.es6.js';
40
+ export { serverFn } from './plugins/handler/serverFn/serverFn.es6.js';
8
41
  export { api } from './plugins/main/api/api.es6.js';
42
+ export { body } from './plugins/main/body/body.es6.js';
9
43
  export { contact } from './plugins/main/contact/contact.es6.js';
10
- export { license } from './plugins/main/license/license.es6.js';
11
- export { host } from './plugins/main/host/host.es6.js';
12
- export { variable } from './plugins/main/variable/variable.es6.js';
13
- export { tag } from './plugins/main/tag/tag.es6.js';
14
44
  export { endpoint } from './plugins/main/endpoint/endpoint.es6.js';
15
- export { response, statuses } from './plugins/main/response/response.es6.js';
16
- export { returnPlugin } from './plugins/main/return/return.es6.js';
45
+ export { host } from './plugins/main/host/host.es6.js';
46
+ export { license } from './plugins/main/license/license.es6.js';
17
47
  export { param } from './plugins/main/param/param.es6.js';
18
- export { body } from './plugins/main/body/body.es6.js';
19
48
  export { preset } from './plugins/main/preset/preset.es6.js';
20
- export { object } from './plugins/schema/object/object.es6.js';
21
- export { field } from './plugins/schema/field/field.es6.js';
22
- export { number } from './plugins/schema/number/number.es6.js';
23
- export { integer } from './plugins/schema/integer/integer.es6.js';
24
- export { string } from './plugins/schema/string/string.es6.js';
49
+ export { response, statuses } from './plugins/main/response/response.es6.js';
50
+ export { returnPlugin } from './plugins/main/return/return.es6.js';
51
+ export { server } from './plugins/main/server/server.es6.js';
52
+ export { tag } from './plugins/main/tag/tag.es6.js';
53
+ export { variable } from './plugins/main/variable/variable.es6.js';
54
+ export { cms } from './plugins/request/cms/cms.es6.js';
55
+ export { cookie } from './plugins/request/cookie/cookie.es6.js';
56
+ export { error, errorStatuses } from './plugins/request/error/error.es6.js';
57
+ export { file } from './plugins/request/file/file.es6.js';
58
+ export { header } from './plugins/request/header/header.es6.js';
59
+ export { proxy } from './plugins/request/proxy/proxy.es6.js';
60
+ export { redirect, redirectStatuses } from './plugins/request/redirect/redirect.es6.js';
61
+ export { success, successStatuses } from './plugins/request/success/success.es6.js';
62
+ export { any } from './plugins/schema/any/any.es6.js';
25
63
  export { array } from './plugins/schema/array/array.es6.js';
64
+ export { binary } from './plugins/schema/binary/binary.es6.js';
26
65
  export { boolean } from './plugins/schema/boolean/boolean.es6.js';
27
- export { nullPlugin } from './plugins/schema/null/null.es6.js';
28
66
  export { date } from './plugins/schema/date/date.es6.js';
67
+ export { field } from './plugins/schema/field/field.es6.js';
68
+ export { integer } from './plugins/schema/integer/integer.es6.js';
69
+ export { nullPlugin } from './plugins/schema/null/null.es6.js';
70
+ export { number } from './plugins/schema/number/number.es6.js';
71
+ export { object } from './plugins/schema/object/object.es6.js';
72
+ export { string } from './plugins/schema/string/string.es6.js';
29
73
  export { tuple } from './plugins/schema/tuple/tuple.es6.js';
30
74
  export { uuid } from './plugins/schema/uuid/uuid.es6.js';
31
- export { binary } from './plugins/schema/binary/binary.es6.js';
32
- export { any } from './plugins/schema/any/any.es6.js';
33
- export { success, successStatuses } from './plugins/request/success/success.es6.js';
34
- export { error, errorStatuses } from './plugins/request/error/error.es6.js';
35
- export { proxy } from './plugins/request/proxy/proxy.es6.js';
36
- export { redirect, redirectStatuses } from './plugins/request/redirect/redirect.es6.js';
37
- export { header } from './plugins/request/header/header.es6.js';
38
- export { cookie } from './plugins/request/cookie/cookie.es6.js';
39
- export { file } from './plugins/request/file/file.es6.js';
40
- export { cms } from './plugins/request/cms/cms.es6.js';
41
- export { swagger } from './plugins/utils/swagger/swagger.es6.js';
75
+ export { blacklist } from './plugins/utils/blacklist/blacklist.es6.js';
42
76
  export { dts } from './plugins/utils/dts/dts.es6.js';
43
77
  export { env } from './plugins/utils/env/env.es6.js';
44
78
  export { protection } from './plugins/utils/protection/protection.es6.js';
45
- export { blacklist } from './plugins/utils/blacklist/blacklist.es6.js';
79
+ export { swagger } from './plugins/utils/swagger/swagger.es6.js';
46
80
  export { whitelist } from './plugins/utils/whitelist/whitelist.es6.js';
47
- export { serverFn } from './plugins/handler/serverFn/serverFn.es6.js';
48
- export { EMPTY_SEARCH, parseSearch } from './utils/parseSearch/parseSearch.es6.js';
49
- export { stringifySearch } from './utils/stringifySearch/stringifySearch.es6.js';
50
- export { httpOnStart } from './utils/httpOnStart/httpOnStart.es6.js';
81
+ export { Bin } from './utils/FileData/Bin.es6.js';
82
+ export { JSONString } from './utils/JSONString/JSONString.es6.js';
83
+ export { Action, URL_PARSER } from './utils/action/Action.es6.js';
84
+ export { once } from './utils/decorators/once/once.es6.js';
85
+ export { generateSchemaTypes, generateTypes } from './utils/generateTypes/generateTypes.es6.js';
51
86
  export { getEndpoint } from './utils/getEndpoint/getEndpoint.es6.js';
52
87
  export { getOrAdd } from './utils/getOrAdd/getOrAdd.es6.js';
53
- export { once } from './utils/decorators/once/once.es6.js';
54
- export { Action, URL_PARSER } from './utils/action/Action.es6.js';
88
+ export { httpOnStart } from './utils/httpOnStart/httpOnStart.es6.js';
55
89
  export { parseBody } from './utils/parseBody/parseBody.es6.js';
56
90
  export { parseFormBody } from './utils/parseFormBody/parseFormBody.es6.js';
57
- export { RulesError, addKey } from './utils/rules/helpers.es6.js';
58
- export { rulesErrors } from './utils/rules/constants.es6.js';
59
- export { num } from './utils/rules/num/num.es6.js';
91
+ export { EMPTY_SEARCH, parseSearch } from './utils/parseSearch/parseSearch.es6.js';
60
92
  export { arrayOf } from './utils/rules/arrayOf/arrayOf.es6.js';
61
- export { oneOf } from './utils/rules/oneOf/oneOf.es6.js';
93
+ export { bin } from './utils/rules/bin/bin.es6.js';
94
+ export { binaryAccept } from './utils/rules/binaryAccept/binaryAccept.es6.js';
95
+ export { rulesErrors } from './utils/rules/constants.es6.js';
62
96
  export { dateTo } from './utils/rules/dateTo/dateTo.es6.js';
97
+ export { defaultTo } from './utils/rules/defaultTo/defaultTo.es6.js';
98
+ export { RulesError, addKey } from './utils/rules/helpers.es6.js';
63
99
  export { int } from './utils/rules/int/int.es6.js';
100
+ export { max } from './utils/rules/max/max.es6.js';
101
+ export { maxBin } from './utils/rules/maxBin/maxBin.es6.js';
102
+ export { maxDate } from './utils/rules/maxDate/maxDate.es6.js';
103
+ export { maxLength } from './utils/rules/maxLength/maxLength.es6.js';
104
+ export { min } from './utils/rules/min/min.es6.js';
105
+ export { minBin } from './utils/rules/minBin/minBin.es6.js';
106
+ export { minDate } from './utils/rules/minDate/minDate.es6.js';
107
+ export { minLength } from './utils/rules/minLength/minLength.es6.js';
64
108
  export { nullable } from './utils/rules/nullable/nullable.es6.js';
109
+ export { num } from './utils/rules/num/num.es6.js';
65
110
  export { objectOf } from './utils/rules/objectOf/objectOf.es6.js';
111
+ export { oneOf } from './utils/rules/oneOf/oneOf.es6.js';
66
112
  export { optional } from './utils/rules/optional/optional.es6.js';
67
113
  export { pattern } from './utils/rules/pattern/pattern.es6.js';
114
+ export { pipe } from './utils/rules/pipe/pipe.es6.js';
68
115
  export { required } from './utils/rules/required/required.es6.js';
69
116
  export { tupleOf } from './utils/rules/tupleOf/tupleOf.es6.js';
70
117
  export { uuidTo } from './utils/rules/uuidTo/uuidTo.es6.js';
71
118
  export { values } from './utils/rules/values/values.es6.js';
72
- export { pipe } from './utils/rules/pipe/pipe.es6.js';
73
- export { maxDate } from './utils/rules/maxDate/maxDate.es6.js';
74
- export { minDate } from './utils/rules/minDate/minDate.es6.js';
75
- export { maxLength } from './utils/rules/maxLength/maxLength.es6.js';
76
- export { minLength } from './utils/rules/minLength/minLength.es6.js';
77
- export { max } from './utils/rules/max/max.es6.js';
78
- export { min } from './utils/rules/min/min.es6.js';
79
- export { defaultTo } from './utils/rules/defaultTo/defaultTo.es6.js';
80
- export { bin } from './utils/rules/bin/bin.es6.js';
81
- export { minBin } from './utils/rules/minBin/minBin.es6.js';
82
- export { maxBin } from './utils/rules/maxBin/maxBin.es6.js';
83
- export { binaryAccept } from './utils/rules/binaryAccept/binaryAccept.es6.js';
84
- export { JSONString } from './utils/JSONString/JSONString.es6.js';
85
- export { Bin } from './utils/FileData/Bin.es6.js';
86
- export { generateSchemaTypes, generateTypes } from './utils/generateTypes/generateTypes.es6.js';
87
- export { serverContext, useServer } from './hooks/useServer/useServer.es6.js';
88
- export { apiContext, useApi } from './hooks/useApi/useApi.es6.js';
89
- export { hostContext, useHost } from './hooks/useHost/useHost.es6.js';
90
- export { tagContext, useTag } from './hooks/useTag/useTag.es6.js';
91
- export { useComponentName } from './hooks/useComponentName/useComponentName.es6.js';
92
- export { useOneElementError } from './hooks/useOneElementError/useOneElementError.es6.js';
93
- export { schemaContext, useSchemaContext } from './hooks/useSchemaContext/useSchemaContext.es6.js';
94
- export { useSchemaType } from './hooks/useSchemaType/useSchemaType.es6.js';
95
- export { useNewSchema } from './hooks/useNewSchema/useNewSchema.es6.js';
96
- export { useRequest } from './hooks/useRequest/useRequest.es6.js';
97
- export { useResponse } from './hooks/useResponse/useResponse.es6.js';
98
- export { paramsContext, useParams } from './hooks/useParams/useParams.es6.js';
99
- export { useBody } from './hooks/useBody/useBody.es6.js';
100
- export { useSearch } from './hooks/useSearch/useSearch.es6.js';
101
- export { paramContext, useParam } from './hooks/useParam/useParam.es6.js';
102
- export { endpointContext, useEndpoint } from './hooks/useEndpoint/useEndpoint.es6.js';
103
- export { useBlock } from './hooks/useBlock/useBlock.es6.js';
104
- export { useHeaders } from './hooks/useHeaders/useHeaders.es6.js';
105
- export { useCookies } from './hooks/useCookies/useCookies.es6.js';
106
- export { actionContext, useAction } from './hooks/useAction/useAction.es6.js';
107
- export { useThrow } from './hooks/useThrow/useThrow.es6.js';
108
- export { ruleContext, useRule, useSetRule } from './hooks/useRule/useRule.es6.js';
109
- export { objectRuleContext, useObjectRule } from './hooks/useObjectRule/useObjectRule.es6.js';
110
- export { bodyFileContext, useBodyFile } from './hooks/useBodyFile/useBodyFile.es6.js';
111
- export { usePath } from './hooks/usePath/usePath.es6.js';
112
- export { useServerPlugin } from './hooks/useServerPlugin/useServerPlugin.es6.js';
113
- export { useClientIp } from './hooks/useClientIp/useClientIp.es6.js';
114
- export { serverPlugins, useServerPlugins } from './hooks/useServerPlugins/useServerPlugins.es6.js';
115
- export { objectSchemaContext, useObjectSchemaContext } from './hooks/useObjectSchemaContext/useObjectSchemaContext.es6.js';
116
- export { serverPortContext, useServerPort } from './hooks/useServerPort/useServerPort.es6.js';
117
- export { serverHttpsContext, useIsServerHttps } from './hooks/useIsServerHttps/useIsServerHttps.es6.js';
118
- export { requestHandlerContext, useRequestHandler } from './hooks/useRequestHandler/useRequestHandler.es6.js';
119
- export { useEffect } from './hooks/useEffect/useEffect.es6.js';
119
+ export { stringifySearch } from './utils/stringifySearch/stringifySearch.es6.js';