@kaapi/kaapi 0.0.39 → 0.0.41

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.
@@ -1,7 +1,21 @@
1
1
  import { HandlerDecorations, Lifecycle, ReqRef, ReqRefDefaults } from '@hapi/hapi';
2
2
  import { KaapiServerRoute, KaapiServer, KaapiServerOptions } from '@kaapi/server';
3
+ import type { BaseResponseUtil } from '@novice1/api-doc-generator/lib/utils/responses/baseResponseUtils';
3
4
  import { ILogger } from './services/log';
4
5
  import { IMessaging, IMessagingContext, IMessagingSubscribeConfig, IPublishMethod, ISubscribeMethod } from './services/messaging';
6
+ import type { RequestBodyDocsModifier } from './services/docs/modifiers';
7
+ import type { KaapiOpenAPIHelperClass } from './services/docs/generators';
8
+ export interface KaapiPluginConfiguration {
9
+ docs?: {
10
+ disabled?: boolean;
11
+ openAPIHelperClass?: KaapiOpenAPIHelperClass;
12
+ helperSchemaProperty?: string;
13
+ modifiers?: (() => {
14
+ requestBody?: RequestBodyDocsModifier;
15
+ responses?: BaseResponseUtil;
16
+ });
17
+ } | false;
18
+ }
5
19
  export interface IKaapiApp extends IMessaging {
6
20
  log: ILogger;
7
21
  emit: IPublishMethod;
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-app.js","sourceRoot":"","sources":["../src/abstract-app.ts"],"names":[],"mappings":";;;AAoBA,MAAsB,gBAAgB;IAYlC,KAAK,CACD,WAAmC,EACnC,OAAkF;QAClF,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,CAAO,WAAW,EAAE,OAAO,CAAC,CAAA;QAC/C,OAAO,IAAI,CAAA;IACf,CAAC;IAED,QAAQ;;QACJ,IAAI,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,IAAI,OAAO,EAAE,CAAA;QACzC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,MAAM,IAAI,aAAa,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,CAAC,IAAI,CAAC,G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;IAED,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QACtC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC;IAC3D,CAAC;CACJ;AA/BD,4CA+BC"}
@@ -1,21 +1,9 @@
1
1
  import '@hapi/hapi'
2
- import type { RequestBodyDocsModifier } from './services/docs/modifiers'
3
- import type { KaapiOpenAPIHelperClass } from './services/docs/generators'
4
- import { BaseResponseUtil } from '@novice1/api-doc-generator/lib/utils/responses/baseResponseUtils';
2
+ import type { KaapiPluginConfiguration } from './abstract-app';
5
3
 
6
4
  declare module '@hapi/hapi' {
7
5
  interface PluginSpecificConfiguration {
8
- kaapi?: {
9
- docs?: {
10
- disabled?: boolean;
11
- openAPIHelperClass?: KaapiOpenAPIHelperClass;
12
- helperSchemaProperty?: string;
13
- modifiers?: (() => {
14
- requestBody?: RequestBodyDocsModifier;
15
- responses?: BaseResponseUtil
16
- })
17
- } | false
18
- };
6
+ kaapi?: KaapiPluginConfiguration;
19
7
  [x: string]: unknown;
20
8
  }
21
9
  }
@@ -0,0 +1,14 @@
1
+ import type { RequestBodyDocsModifier } from './services/docs/modifiers';
2
+ import type { KaapiOpenAPIHelperClass } from './services/docs/generators';
3
+ import type { BaseResponseUtil } from '@novice1/api-doc-generator/lib/utils/responses/baseResponseUtils';
4
+ export interface KaapiPluginConfiguration {
5
+ docs?: {
6
+ disabled?: boolean;
7
+ openAPIHelperClass?: KaapiOpenAPIHelperClass;
8
+ helperSchemaProperty?: string;
9
+ modifiers?: (() => {
10
+ requestBody?: RequestBodyDocsModifier;
11
+ responses?: BaseResponseUtil;
12
+ });
13
+ } | false;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=kaapi-plugin-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kaapi-plugin-config.js","sourceRoot":"","sources":["../src/kaapi-plugin-config.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaapi/kaapi",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "private": false,
5
5
  "description": "TypeScript-based framework",
6
6
  "main": "lib/index.js",
@@ -30,11 +30,11 @@
30
30
  "@novice1/api-doc-generator": "^1.2.5",
31
31
  "@novice1/routing": "^2.0.2",
32
32
  "jsontoxml": "^1.0.1",
33
- "qs": "^6.14.0",
33
+ "qs": "^6.14.1",
34
34
  "swagger-ui-dist": "^5.31.0",
35
35
  "tslib": "^2.8.1",
36
36
  "winston": "^3.19.0",
37
- "@kaapi/server": "^0.0.39"
37
+ "@kaapi/server": "^0.0.41"
38
38
  },
39
39
  "scripts": {
40
40
  "lint": "eslint .",