@rxap/open-api 19.3.0-dev.3 → 21.0.1-dev.0

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 (150) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/compodoc/changelog.html +22 -0
  3. package/compodoc/dependencies.html +11 -11
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +912 -682
  7. package/docs/html/classes/OpenApiConfigService.html +3 -3
  8. package/docs/html/classes/OpenApiHttpResponseError.html +26 -9
  9. package/docs/html/classes/RxapOpenApiError.html +6 -5
  10. package/docs/html/classes/SchemaValidationMixin.html +5 -5
  11. package/docs/html/functions/AssertOpenApiV3.html +1 -1
  12. package/docs/html/functions/IsOpenApiV3.html +1 -1
  13. package/docs/html/functions/IsReferenceObject.html +1 -1
  14. package/docs/html/functions/NotContainsReferenceObjects.html +1 -1
  15. package/docs/html/functions/OpenApiInit.html +1 -1
  16. package/docs/html/functions/getJsonContentSchema.html +1 -1
  17. package/docs/html/functions/getJsonSchema.html +1 -1
  18. package/docs/html/functions/hasJsonContentSchema.html +1 -1
  19. package/docs/html/functions/hasJsonSchema.html +1 -1
  20. package/docs/html/functions/injectOpenApiBaseUrlHttpInterceptorFn.html +1 -1
  21. package/docs/html/index.html +2 -2
  22. package/docs/html/interfaces/OpenApiInitOptions.html +3 -3
  23. package/docs/html/interfaces/OpenApiMetaData.html +5 -5
  24. package/docs/html/interfaces/OperationObjectWithMetadata.html +2 -2
  25. package/docs/html/interfaces/SchemaValidationResponse.html +2 -2
  26. package/docs/html/modules.html +1 -1
  27. package/docs/html/types/OperationMap.html +1 -1
  28. package/docs/html/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +1 -1
  29. package/docs/html/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +1 -1
  30. package/docs/html/variables/DISABLE_SCHEMA_VALIDATION.html +1 -1
  31. package/docs/html/variables/DISABLE_VALIDATION.html +1 -1
  32. package/docs/html/variables/OPEN_API_OPERATION.html +1 -1
  33. package/docs/html/variables/OPEN_API_OPERATION_ID.html +1 -1
  34. package/docs/html/variables/OPEN_API_SERVER_ID.html +1 -1
  35. package/docs/html/variables/OPEN_API_SERVER_INDEX.html +1 -1
  36. package/docs/html/variables/RXAP_OPEN_API_CONFIG.html +1 -1
  37. package/docs/html/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +1 -1
  38. package/docs/markdown/README.md +1 -1
  39. package/docs/markdown/classes/OpenApiConfigService.md +14 -14
  40. package/docs/markdown/classes/OpenApiHttpResponseError.md +61 -17
  41. package/docs/markdown/classes/RxapOpenApiError.md +25 -13
  42. package/docs/markdown/classes/SchemaValidationMixin.md +13 -13
  43. package/docs/markdown/functions/AssertOpenApiV3.md +2 -2
  44. package/docs/markdown/functions/IsOpenApiV3.md +2 -2
  45. package/docs/markdown/functions/IsReferenceObject.md +2 -2
  46. package/docs/markdown/functions/NotContainsReferenceObjects.md +2 -2
  47. package/docs/markdown/functions/OpenApiInit.md +2 -2
  48. package/docs/markdown/functions/getJsonContentSchema.md +2 -2
  49. package/docs/markdown/functions/getJsonSchema.md +2 -2
  50. package/docs/markdown/functions/hasJsonContentSchema.md +2 -2
  51. package/docs/markdown/functions/hasJsonSchema.md +2 -2
  52. package/docs/markdown/functions/injectOpenApiBaseUrlHttpInterceptorFn.md +2 -2
  53. package/docs/markdown/globals.md +2 -2
  54. package/docs/markdown/interfaces/OpenApiInitOptions.md +4 -4
  55. package/docs/markdown/interfaces/OpenApiMetaData.md +8 -8
  56. package/docs/markdown/interfaces/OperationObjectWithMetadata.md +4 -4
  57. package/docs/markdown/interfaces/SchemaValidationResponse.md +6 -6
  58. package/docs/markdown/type-aliases/OperationMap.md +2 -2
  59. package/docs/markdown/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +2 -2
  60. package/docs/markdown/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +2 -2
  61. package/docs/markdown/variables/DISABLE_SCHEMA_VALIDATION.md +2 -2
  62. package/docs/markdown/variables/DISABLE_VALIDATION.md +2 -2
  63. package/docs/markdown/variables/OPEN_API_OPERATION.md +2 -2
  64. package/docs/markdown/variables/OPEN_API_OPERATION_ID.md +2 -2
  65. package/docs/markdown/variables/OPEN_API_SERVER_ID.md +2 -2
  66. package/docs/markdown/variables/OPEN_API_SERVER_INDEX.md +2 -2
  67. package/docs/markdown/variables/RXAP_OPEN_API_CONFIG.md +2 -2
  68. package/docs/markdown/variables/RXAP_OPEN_API_STRICT_VALIDATOR.md +2 -2
  69. package/docs/wiki/Class.OpenApiConfigService.md +13 -13
  70. package/docs/wiki/Class.OpenApiHttpResponseError.md +60 -16
  71. package/docs/wiki/Class.RxapOpenApiError.md +24 -12
  72. package/docs/wiki/Class.SchemaValidationMixin.md +12 -12
  73. package/docs/wiki/Function.AssertOpenApiV3.md +1 -1
  74. package/docs/wiki/Function.IsOpenApiV3.md +1 -1
  75. package/docs/wiki/Function.IsReferenceObject.md +1 -1
  76. package/docs/wiki/Function.NotContainsReferenceObjects.md +1 -1
  77. package/docs/wiki/Function.OpenApiInit.md +1 -1
  78. package/docs/wiki/Function.getJsonContentSchema.md +1 -1
  79. package/docs/wiki/Function.getJsonSchema.md +1 -1
  80. package/docs/wiki/Function.hasJsonContentSchema.md +1 -1
  81. package/docs/wiki/Function.hasJsonSchema.md +1 -1
  82. package/docs/wiki/Function.injectOpenApiBaseUrlHttpInterceptorFn.md +1 -1
  83. package/docs/wiki/Interface.OpenApiInitOptions.md +3 -3
  84. package/docs/wiki/Interface.OpenApiMetaData.md +7 -7
  85. package/docs/wiki/Interface.OperationObjectWithMetadata.md +3 -3
  86. package/docs/wiki/Interface.SchemaValidationResponse.md +5 -5
  87. package/docs/wiki/TypeAlias.OperationMap.md +1 -1
  88. package/docs/wiki/Variable.DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +1 -1
  89. package/docs/wiki/Variable.DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +1 -1
  90. package/docs/wiki/Variable.DISABLE_SCHEMA_VALIDATION.md +1 -1
  91. package/docs/wiki/Variable.DISABLE_VALIDATION.md +1 -1
  92. package/docs/wiki/Variable.OPEN_API_OPERATION.md +1 -1
  93. package/docs/wiki/Variable.OPEN_API_OPERATION_ID.md +1 -1
  94. package/docs/wiki/Variable.OPEN_API_SERVER_ID.md +1 -1
  95. package/docs/wiki/Variable.OPEN_API_SERVER_INDEX.md +1 -1
  96. package/docs/wiki/Variable.RXAP_OPEN_API_CONFIG.md +1 -1
  97. package/docs/wiki/Variable.RXAP_OPEN_API_STRICT_VALIDATOR.md +1 -1
  98. package/docs/wiki/globals.md +1 -1
  99. package/fesm2022/rxap-open-api-data-source-table.mjs +11 -11
  100. package/fesm2022/rxap-open-api-data-source-table.mjs.map +1 -1
  101. package/fesm2022/rxap-open-api-data-source.mjs +7 -7
  102. package/fesm2022/rxap-open-api-data-source.mjs.map +1 -1
  103. package/fesm2022/rxap-open-api-http-resource.mjs.map +1 -1
  104. package/fesm2022/rxap-open-api-remote-method.mjs +7 -7
  105. package/fesm2022/rxap-open-api-remote-method.mjs.map +1 -1
  106. package/fesm2022/rxap-open-api-testing.mjs +1 -1
  107. package/fesm2022/rxap-open-api-testing.mjs.map +1 -1
  108. package/fesm2022/rxap-open-api.mjs +4 -4
  109. package/fesm2022/rxap-open-api.mjs.map +1 -1
  110. package/package.json +41 -40
  111. package/types/rxap-open-api-data-source-table.d.ts +50 -0
  112. package/{data-source/lib/open-api.data-source.d.ts → types/rxap-open-api-data-source.d.ts} +25 -8
  113. package/types/rxap-open-api-http-resource.d.ts +21 -0
  114. package/types/rxap-open-api-remote-method.d.ts +96 -0
  115. package/types/rxap-open-api-testing.d.ts +30 -0
  116. package/types/rxap-open-api.d.ts +171 -0
  117. package/data-source/index.d.ts +0 -3
  118. package/data-source/lib/error.d.ts +0 -4
  119. package/data-source/lib/open-api-data-source.loader.d.ts +0 -12
  120. package/data-source/table/index.d.ts +0 -4
  121. package/data-source/table/lib/error.d.ts +0 -4
  122. package/data-source/table/lib/open-api-table.data-source.d.ts +0 -29
  123. package/data-source/table/lib/to-open-api-table-data-source.pipe.d.ts +0 -17
  124. package/data-source/table/lib/tokens.d.ts +0 -2
  125. package/http-resource/index.d.ts +0 -5
  126. package/http-resource/lib/http-context-tokens.d.ts +0 -4
  127. package/http-resource/lib/http-interceptors.d.ts +0 -4
  128. package/http-resource/lib/to-http-headers.d.ts +0 -3
  129. package/http-resource/lib/to-http-params.d.ts +0 -3
  130. package/http-resource/lib/types.d.ts +0 -11
  131. package/index.d.ts +0 -11
  132. package/lib/error.d.ts +0 -4
  133. package/lib/http-context-tokens.d.ts +0 -5
  134. package/lib/http-interceptors.d.ts +0 -2
  135. package/lib/open-api-config.service.d.ts +0 -42
  136. package/lib/open-api-http-response.error.d.ts +0 -9
  137. package/lib/open-api-init.d.ts +0 -15
  138. package/lib/open-api.d.ts +0 -5
  139. package/lib/open-api.meta-data.d.ts +0 -17
  140. package/lib/schema-validation.mixin.d.ts +0 -50
  141. package/lib/tokens.d.ts +0 -7
  142. package/lib/utilities.d.ts +0 -11
  143. package/remote-method/index.d.ts +0 -4
  144. package/remote-method/lib/error.d.ts +0 -4
  145. package/remote-method/lib/get-page-adapter.factory.d.ts +0 -30
  146. package/remote-method/lib/open-api-remote-method.loader.d.ts +0 -14
  147. package/remote-method/lib/open-api.remote-method.d.ts +0 -48
  148. package/testing/index.d.ts +0 -2
  149. package/testing/lib/provide-method-mock.d.ts +0 -7
  150. package/testing/lib/provide-rxap-nestjs-get-page-method.d.ts +0 -20
@@ -1,30 +0,0 @@
1
- import { BaseRemoteMethod } from '@rxap/remote-method';
2
- import { TableEvent } from '@rxap/data-source/table';
3
- import type { OpenApiRemoteMethod } from './open-api.remote-method';
4
- import { PaginatorLike } from '@rxap/data-source/pagination';
5
- export interface GetPageRemoteMethodParameters {
6
- pageIndex: number;
7
- pageSize: number;
8
- sortBy?: string;
9
- sortDirection?: 'desc' | 'asc' | undefined | '' | string;
10
- filter: string[];
11
- }
12
- export interface GetPageResponse<Data extends Record<string, any>> {
13
- total: number;
14
- rows: Data[];
15
- [key: string]: any;
16
- }
17
- export interface GetPageAdapterDefaultOptions {
18
- sortBy?: string;
19
- sortDirection?: 'asc' | 'desc' | string;
20
- }
21
- export declare class GetPageAdapterRemoteMethod<Data extends Record<string, any>> extends BaseRemoteMethod<Data[], TableEvent> {
22
- private readonly remoteMethod;
23
- private readonly paginator?;
24
- private readonly options?;
25
- constructor(remoteMethod: OpenApiRemoteMethod<GetPageResponse<Data>, GetPageRemoteMethodParameters>, paginator?: PaginatorLike | undefined, options?: GetPageAdapterDefaultOptions | undefined);
26
- static BuildFilter(filterEvent?: string | Record<string, any> | null): string[];
27
- protected _call(event: TableEvent): Promise<Data[]>;
28
- }
29
- export declare function GetPageAdapterFactory(remoteMethod: OpenApiRemoteMethod, paginator?: PaginatorLike): GetPageAdapterRemoteMethod<Record<string, any>>;
30
- export declare function GetPageAdapterFactoryWithOptions(options?: GetPageAdapterDefaultOptions): (remoteMethod: OpenApiRemoteMethod, paginator?: PaginatorLike) => GetPageAdapterRemoteMethod<Record<string, any>>;
@@ -1,14 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { HttpClient } from '@angular/common/http';
3
- import { OpenApiRemoteMethod } from './open-api.remote-method';
4
- import { OpenApiConfigService } from '@rxap/open-api';
5
- import * as i0 from "@angular/core";
6
- export declare class OpenApiRemoteMethodLoader {
7
- readonly openApiConfig: OpenApiConfigService;
8
- readonly http: HttpClient;
9
- readonly injector: Injector;
10
- constructor(openApiConfig: OpenApiConfigService, http: HttpClient, injector: Injector);
11
- load(definitionId: string): OpenApiRemoteMethod | null;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiRemoteMethodLoader, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<OpenApiRemoteMethodLoader>;
14
- }
@@ -1,48 +0,0 @@
1
- import { HttpClient, HttpResponse } from '@angular/common/http';
2
- import { Injector } from '@angular/core';
3
- import { OpenApiConfigService, OpenApiMetaData, OperationObjectWithMetadata, SchemaValidationMixin } from '@rxap/open-api';
4
- import { BaseHttpRemoteMethod } from '@rxap/remote-method/http';
5
- import * as i0 from "@angular/core";
6
- export interface OperationForMetadata {
7
- operation: OperationObjectWithMetadata;
8
- /**
9
- * used to specify the target server for the reset api operation
10
- */
11
- serverId?: string;
12
- /**
13
- * the fallback id used if the operation does not have a operationId
14
- */
15
- fallbackId?: string;
16
- }
17
- export interface OperationFromMetadataInline {
18
- operationId: string;
19
- operation: string;
20
- /**
21
- * used to specify the target server for the reset api operation
22
- */
23
- serverId?: string;
24
- }
25
- export declare function IsOperationFromMetadataInline(metadata: OperationForMetadata | OperationFromMetadataInline): metadata is OperationFromMetadataInline;
26
- export declare function RxapOpenApiRemoteMethod(operationOrId: string | OperationForMetadata | OperationFromMetadataInline, serverIndex?: number): (target: any) => void;
27
- export type OpenApiRemoteMethodMetadata = OpenApiMetaData;
28
- export interface OpenApiRemoteMethodParameter<Parameters extends Record<string, any> | void = any, RequestBody = any> {
29
- parameters?: Parameters;
30
- requestBody?: RequestBody;
31
- }
32
- export interface OpenApiRemoteMethod<Response = any, Parameters extends Record<string, any> | void = any, RequestBody = any> extends SchemaValidationMixin<Response, Parameters, RequestBody> {
33
- }
34
- export declare class OpenApiRemoteMethod<Response = any, Parameters extends Record<string, any> | void = any, RequestBody = any> extends BaseHttpRemoteMethod<Response, any, OpenApiRemoteMethodParameter<Parameters, RequestBody>> {
35
- protected readonly disableSchemaValidation: boolean;
36
- protected readonly disableValidation: boolean;
37
- private readonly strict;
38
- constructor(http: HttpClient, injector: Injector, openApiConfigService: OpenApiConfigService, metadata?: OpenApiRemoteMethodMetadata | null, strict?: boolean | null, disableSchemaValidation?: boolean | null, disableValidation?: boolean | null);
39
- get operation(): OperationObjectWithMetadata;
40
- /**
41
- * Instead of returning the response body the full response object is returned
42
- */
43
- callWithResponse(args?: OpenApiRemoteMethodParameter<Parameters, RequestBody>): Promise<HttpResponse<Response>>;
44
- _callWithResponse(args?: OpenApiRemoteMethodParameter<Parameters, RequestBody>): Promise<HttpResponse<Response>>;
45
- protected _call(args?: OpenApiRemoteMethodParameter<Parameters, RequestBody>): Promise<Response>;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiRemoteMethod<any, any, any>, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
47
- static ɵprov: i0.ɵɵInjectableDeclaration<OpenApiRemoteMethod<any, any, any>>;
48
- }
@@ -1,2 +0,0 @@
1
- export * from './lib/provide-method-mock';
2
- export * from './lib/provide-rxap-nestjs-get-page-method';
@@ -1,7 +0,0 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
- import { OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
3
- import { Method, MethodWithParameters } from '@rxap/pattern';
4
- import { Constructor } from '@rxap/utilities';
5
- export declare function ProvideMethodMock<ReturnValue, Parameters>(method: InjectionToken<Method<ReturnValue, Parameters>> | Constructor<Method<ReturnValue, Parameters>>, implementation?: (parameters?: Parameters, ...args: any[]) => ReturnValue | Promise<ReturnValue>, delay?: number): Provider;
6
- export declare function ProvideMethodWithParametersMock<ReturnValue, Parameters>(method: InjectionToken<MethodWithParameters<ReturnValue, Parameters>> | Constructor<MethodWithParameters<ReturnValue, Parameters>>, implementation: (parameters: Parameters, ...args: any[]) => ReturnValue | Promise<ReturnValue>, delay?: number, defaultParameters?: Parameters): Provider;
7
- export declare function ProvideRemoteMethodMock<ReturnValue, Parameters extends Record<string, any> | void, RequestBody>(method: InjectionToken<MethodWithParameters<ReturnValue, OpenApiRemoteMethodParameter<Parameters, RequestBody>>> | Constructor<MethodWithParameters<ReturnValue, OpenApiRemoteMethodParameter<Parameters, RequestBody>>>, implementation: (parameters: OpenApiRemoteMethodParameter<Parameters, RequestBody>, ...args: any[]) => ReturnValue | Promise<ReturnValue>, delay?: number): Provider;
@@ -1,20 +0,0 @@
1
- import { OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
2
- import { MethodWithParameters } from '@rxap/pattern';
3
- import { Constructor } from '@rxap/utilities';
4
- export interface GetPageParameter {
5
- filter?: Array<string>;
6
- pageIndex: number;
7
- pageSize: number;
8
- sortBy?: string;
9
- sortDirection?: string;
10
- }
11
- export interface PageDto<T> {
12
- rows: Array<T>;
13
- pageSize: number;
14
- pageIndex: number;
15
- total: number;
16
- sortDirection?: string;
17
- sortBy?: string;
18
- filter?: Array<any>;
19
- }
20
- export declare function ProvideRxapNestjsGetPageMethod<T, AddinalParameters>(method: Constructor<MethodWithParameters<PageDto<T>, OpenApiRemoteMethodParameter<GetPageParameter & AddinalParameters>>>, data: T[]): import("@angular/core").Provider;