@rxap/open-api 21.0.1 → 22.0.0-dev.1

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 (173) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +74 -5
  4. package/compodoc/classes/OpenApiHttpResponseError.html +110 -39
  5. package/compodoc/classes/RxapOpenApiError.html +77 -10
  6. package/compodoc/classes/SchemaValidationMixin.html +100 -29
  7. package/compodoc/dependencies.html +124 -35
  8. package/compodoc/index.html +46 -5
  9. package/compodoc/injectables/OpenApiConfigService.html +112 -38
  10. package/compodoc/interfaces/OpenApiInitOptions.html +166 -111
  11. package/compodoc/interfaces/OpenApiMetaData.html +259 -175
  12. package/compodoc/interfaces/OperationObjectWithMetadata.html +165 -91
  13. package/compodoc/interfaces/SchemaValidationResponse.html +247 -182
  14. package/compodoc/js/architecture-graph.js +288 -0
  15. package/compodoc/js/libs/bootstrap-native.js +4 -2
  16. package/compodoc/js/libs/jszip.min.js +13 -0
  17. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  18. package/compodoc/js/libs/tablesort.min.js +3 -3
  19. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  20. package/compodoc/js/libs/vis-network.min.js +78 -0
  21. package/compodoc/js/menu-wc.js +27 -14
  22. package/compodoc/js/menu.js +10 -11
  23. package/compodoc/js/routes/routes_index.js +1 -0
  24. package/compodoc/js/routes.js +142 -34
  25. package/compodoc/js/search/search-lunr.js +6 -8
  26. package/compodoc/js/search/search.js +118 -66
  27. package/compodoc/js/search/search_index.js +2 -2
  28. package/compodoc/js/tabs.js +98 -15
  29. package/compodoc/js/tree.js +44 -7
  30. package/compodoc/license.html +48 -6
  31. package/compodoc/llms.txt +154 -0
  32. package/compodoc/miscellaneous/functions.html +86 -19
  33. package/compodoc/miscellaneous/typealiases.html +46 -4
  34. package/compodoc/miscellaneous/variables.html +123 -16
  35. package/compodoc/modules.html +44 -3
  36. package/compodoc/overview.html +54 -3
  37. package/compodoc/properties.html +45 -4
  38. package/compodoc/routes.html +227 -0
  39. package/compodoc/styles/compodoc.css +365 -44
  40. package/compodoc/styles/dark.css +16 -0
  41. package/compodoc/template-playground/default-templates.json +192 -0
  42. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  43. package/compodoc/template-playground/main.ts +9 -0
  44. package/compodoc/template-playground/template-editor.service.ts +173 -0
  45. package/compodoc/template-playground/template-playground.component.ts +614 -0
  46. package/compodoc/template-playground/template-playground.module.ts +29 -0
  47. package/compodoc/template-playground/zip-export.service.ts +86 -0
  48. package/compodoc/template-playground-app/app.js +1389 -0
  49. package/compodoc/template-playground-app/index.html +462 -0
  50. package/docs/documentation.json +1247 -1038
  51. package/docs/html/assets/highlight.css +1 -1
  52. package/docs/html/assets/icons.js +1 -1
  53. package/docs/html/assets/icons.svg +1 -1
  54. package/docs/html/assets/main.js +5 -5
  55. package/docs/html/assets/navigation.js +1 -1
  56. package/docs/html/assets/search.js +1 -1
  57. package/docs/html/assets/style.css +265 -228
  58. package/docs/html/classes/OpenApiConfigService.html +216 -14
  59. package/docs/html/classes/OpenApiHttpResponseError.html +215 -26
  60. package/docs/html/classes/RxapOpenApiError.html +242 -23
  61. package/docs/html/classes/SchemaValidationMixin.html +245 -16
  62. package/docs/html/functions/AssertOpenApiV3.html +42 -1
  63. package/docs/html/functions/IsOpenApiV3.html +42 -1
  64. package/docs/html/functions/IsReferenceObject.html +42 -1
  65. package/docs/html/functions/NotContainsReferenceObjects.html +46 -1
  66. package/docs/html/functions/OpenApiInit.html +43 -1
  67. package/docs/html/functions/getJsonContentSchema.html +42 -1
  68. package/docs/html/functions/getJsonSchema.html +42 -1
  69. package/docs/html/functions/hasJsonContentSchema.html +46 -1
  70. package/docs/html/functions/hasJsonSchema.html +42 -1
  71. package/docs/html/hierarchy.html +29 -0
  72. package/docs/html/index.html +40 -4
  73. package/docs/html/interfaces/OpenApiInitOptions.html +65 -5
  74. package/docs/html/interfaces/OpenApiMetaData.html +98 -9
  75. package/docs/html/interfaces/OperationObjectWithMetadata.html +151 -15
  76. package/docs/html/interfaces/SchemaValidationResponse.html +77 -5
  77. package/docs/html/modules.html +52 -1
  78. package/docs/html/types/OperationMap.html +33 -1
  79. package/docs/html/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +33 -1
  80. package/docs/html/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +33 -1
  81. package/docs/html/variables/DISABLE_SCHEMA_VALIDATION.html +33 -1
  82. package/docs/html/variables/DISABLE_VALIDATION.html +33 -1
  83. package/docs/html/variables/OPEN_API_OPERATION.html +33 -1
  84. package/docs/html/variables/OPEN_API_OPERATION_ID.html +33 -1
  85. package/docs/html/variables/OPEN_API_SERVER_ID.html +33 -1
  86. package/docs/html/variables/OPEN_API_SERVER_INDEX.html +33 -1
  87. package/docs/html/variables/RXAP_OPEN_API_CONFIG.html +33 -1
  88. package/docs/html/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +33 -1
  89. package/docs/html/variables/injectOpenApiBaseUrlHttpInterceptorFn.html +33 -0
  90. package/docs/markdown/README.md +1 -1
  91. package/docs/markdown/classes/OpenApiConfigService.md +27 -27
  92. package/docs/markdown/classes/OpenApiHttpResponseError.md +26 -26
  93. package/docs/markdown/classes/RxapOpenApiError.md +25 -25
  94. package/docs/markdown/classes/SchemaValidationMixin.md +36 -30
  95. package/docs/markdown/functions/AssertOpenApiV3.md +3 -3
  96. package/docs/markdown/functions/IsOpenApiV3.md +3 -3
  97. package/docs/markdown/functions/IsReferenceObject.md +3 -3
  98. package/docs/markdown/functions/NotContainsReferenceObjects.md +7 -5
  99. package/docs/markdown/functions/OpenApiInit.md +5 -5
  100. package/docs/markdown/functions/getJsonContentSchema.md +5 -5
  101. package/docs/markdown/functions/getJsonSchema.md +5 -5
  102. package/docs/markdown/functions/hasJsonContentSchema.md +8 -6
  103. package/docs/markdown/functions/hasJsonSchema.md +3 -3
  104. package/docs/markdown/globals.md +3 -3
  105. package/docs/markdown/interfaces/OpenApiInitOptions.md +6 -6
  106. package/docs/markdown/interfaces/OpenApiMetaData.md +12 -12
  107. package/docs/markdown/interfaces/OperationObjectWithMetadata.md +15 -15
  108. package/docs/markdown/interfaces/SchemaValidationResponse.md +11 -9
  109. package/docs/markdown/type-aliases/OperationMap.md +3 -3
  110. package/docs/markdown/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +2 -2
  111. package/docs/markdown/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +2 -2
  112. package/docs/markdown/variables/DISABLE_SCHEMA_VALIDATION.md +2 -2
  113. package/docs/markdown/variables/DISABLE_VALIDATION.md +2 -2
  114. package/docs/markdown/variables/OPEN_API_OPERATION.md +2 -2
  115. package/docs/markdown/variables/OPEN_API_OPERATION_ID.md +2 -2
  116. package/docs/markdown/variables/OPEN_API_SERVER_ID.md +3 -3
  117. package/docs/markdown/variables/OPEN_API_SERVER_INDEX.md +2 -2
  118. package/docs/markdown/variables/RXAP_OPEN_API_CONFIG.md +2 -2
  119. package/docs/markdown/variables/RXAP_OPEN_API_STRICT_VALIDATOR.md +2 -2
  120. package/docs/markdown/variables/injectOpenApiBaseUrlHttpInterceptorFn.md +11 -0
  121. package/docs/wiki/Class.OpenApiConfigService.md +26 -26
  122. package/docs/wiki/Class.OpenApiHttpResponseError.md +25 -25
  123. package/docs/wiki/Class.RxapOpenApiError.md +24 -24
  124. package/docs/wiki/Class.SchemaValidationMixin.md +35 -29
  125. package/docs/wiki/Function.AssertOpenApiV3.md +2 -2
  126. package/docs/wiki/Function.IsOpenApiV3.md +2 -2
  127. package/docs/wiki/Function.IsReferenceObject.md +2 -2
  128. package/docs/wiki/Function.NotContainsReferenceObjects.md +6 -4
  129. package/docs/wiki/Function.OpenApiInit.md +4 -4
  130. package/docs/wiki/Function.getJsonContentSchema.md +4 -4
  131. package/docs/wiki/Function.getJsonSchema.md +4 -4
  132. package/docs/wiki/Function.hasJsonContentSchema.md +7 -5
  133. package/docs/wiki/Function.hasJsonSchema.md +2 -2
  134. package/docs/wiki/Interface.OpenApiInitOptions.md +5 -5
  135. package/docs/wiki/Interface.OpenApiMetaData.md +11 -11
  136. package/docs/wiki/Interface.OperationObjectWithMetadata.md +14 -14
  137. package/docs/wiki/Interface.SchemaValidationResponse.md +10 -8
  138. package/docs/wiki/TypeAlias.OperationMap.md +2 -2
  139. package/docs/wiki/Variable.DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +1 -1
  140. package/docs/wiki/Variable.DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +1 -1
  141. package/docs/wiki/Variable.DISABLE_SCHEMA_VALIDATION.md +1 -1
  142. package/docs/wiki/Variable.DISABLE_VALIDATION.md +1 -1
  143. package/docs/wiki/Variable.OPEN_API_OPERATION.md +1 -1
  144. package/docs/wiki/Variable.OPEN_API_OPERATION_ID.md +1 -1
  145. package/docs/wiki/Variable.OPEN_API_SERVER_ID.md +2 -2
  146. package/docs/wiki/Variable.OPEN_API_SERVER_INDEX.md +1 -1
  147. package/docs/wiki/Variable.RXAP_OPEN_API_CONFIG.md +1 -1
  148. package/docs/wiki/Variable.RXAP_OPEN_API_STRICT_VALIDATOR.md +1 -1
  149. package/docs/wiki/Variable.injectOpenApiBaseUrlHttpInterceptorFn.md +7 -0
  150. package/docs/wiki/_Sidebar.md +1 -1
  151. package/docs/wiki/globals.md +2 -2
  152. package/fesm2022/rxap-open-api-data-source-table.mjs +212 -162
  153. package/fesm2022/rxap-open-api-data-source-table.mjs.map +1 -1
  154. package/fesm2022/rxap-open-api-data-source.mjs +243 -188
  155. package/fesm2022/rxap-open-api-data-source.mjs.map +1 -1
  156. package/fesm2022/rxap-open-api-http-resource.mjs +13 -38
  157. package/fesm2022/rxap-open-api-http-resource.mjs.map +1 -1
  158. package/fesm2022/rxap-open-api-remote-method.mjs +299 -263
  159. package/fesm2022/rxap-open-api-remote-method.mjs.map +1 -1
  160. package/fesm2022/rxap-open-api-testing.mjs +55 -82
  161. package/fesm2022/rxap-open-api-testing.mjs.map +1 -1
  162. package/fesm2022/rxap-open-api.mjs +439 -633
  163. package/fesm2022/rxap-open-api.mjs.map +1 -1
  164. package/package.json +30 -30
  165. package/types/rxap-open-api-data-source-table.d.ts +47 -40
  166. package/types/rxap-open-api-data-source.d.ts +58 -52
  167. package/types/rxap-open-api-http-resource.d.ts +13 -17
  168. package/types/rxap-open-api-remote-method.d.ts +89 -86
  169. package/types/rxap-open-api-testing.d.ts +25 -28
  170. package/types/rxap-open-api.d.ts +153 -162
  171. package/docs/html/functions/injectOpenApiBaseUrlHttpInterceptorFn.html +0 -1
  172. package/docs/markdown/functions/injectOpenApiBaseUrlHttpInterceptorFn.md +0 -25
  173. package/docs/wiki/Function.injectOpenApiBaseUrlHttpInterceptorFn.md +0 -21
@@ -1,95 +1,98 @@
1
- import { RxapOpenApiError, SchemaValidationMixin, OpenApiConfigService, OpenApiMetaData, OperationObjectWithMetadata } from '@rxap/open-api';
2
- import { BaseRemoteMethod } from '@rxap/remote-method';
3
- import { TableEvent } from '@rxap/data-source/table';
4
- import { HttpClient, HttpResponse } from '@angular/common/http';
5
- import * as i0 from '@angular/core';
6
- import { Injector } from '@angular/core';
7
- import { BaseHttpRemoteMethod } from '@rxap/remote-method/http';
8
- import { PaginatorLike } from '@rxap/data-source/pagination';
9
-
10
- declare class RxapOpenApiRemoteMethodError extends RxapOpenApiError {
11
- constructor(message: string, code?: string, scope?: string);
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { OpenApiConfigService, OpenApiMetaData, OperationObjectWithMetadata, RxapOpenApiError, SchemaValidationMixin } from "@rxap/open-api";
5
+ import { BaseRemoteMethod } from "@rxap/remote-method";
6
+ import { TableEvent } from "@rxap/data-source/table";
7
+ import { HttpClient, HttpResponse } from "@angular/common/http";
8
+ import * as i0 from "@angular/core";
9
+ import { Injector } from "@angular/core";
10
+ import { BaseHttpRemoteMethod } from "@rxap/remote-method/http";
11
+ import { PaginatorLike } from "@rxap/data-source/pagination";
12
+ export declare class RxapOpenApiRemoteMethodError extends RxapOpenApiError {
13
+ constructor(message: string, code?: string, scope?: string);
12
14
  }
13
-
14
- interface OperationForMetadata {
15
- operation: OperationObjectWithMetadata;
16
- /**
17
- * used to specify the target server for the reset api operation
18
- */
19
- serverId?: string;
20
- /**
21
- * the fallback id used if the operation does not have a operationId
22
- */
23
- fallbackId?: string;
15
+ export interface OperationForMetadata {
16
+ operation: OperationObjectWithMetadata;
17
+ /**
18
+ * used to specify the target server for the reset api operation
19
+ */
20
+ serverId?: string;
21
+ /**
22
+ * the fallback id used if the operation does not have a operationId
23
+ */
24
+ fallbackId?: string;
24
25
  }
25
- interface OperationFromMetadataInline {
26
- operationId: string;
27
- operation: string;
28
- /**
29
- * used to specify the target server for the reset api operation
30
- */
31
- serverId?: string;
26
+ export interface OperationFromMetadataInline {
27
+ operationId: string;
28
+ operation: string;
29
+ /**
30
+ * used to specify the target server for the reset api operation
31
+ */
32
+ serverId?: string;
32
33
  }
33
- declare function IsOperationFromMetadataInline(metadata: OperationForMetadata | OperationFromMetadataInline): metadata is OperationFromMetadataInline;
34
- declare function RxapOpenApiRemoteMethod(operationOrId: string | OperationForMetadata | OperationFromMetadataInline, serverIndex?: number): (target: any) => void;
35
- type OpenApiRemoteMethodMetadata = OpenApiMetaData;
36
- interface OpenApiRemoteMethodParameter<Parameters extends Record<string, any> | void = any, RequestBody = any> {
37
- parameters?: Parameters;
38
- requestBody?: RequestBody;
34
+ export declare function IsOperationFromMetadataInline(metadata: OperationForMetadata | OperationFromMetadataInline): metadata is OperationFromMetadataInline;
35
+ export declare function RxapOpenApiRemoteMethod(operationOrId: string | OperationForMetadata | OperationFromMetadataInline, serverIndex?: number): (target: any) => void;
36
+ export type OpenApiRemoteMethodMetadata = OpenApiMetaData;
37
+ export interface OpenApiRemoteMethodParameter<Parameters extends Record<string, any> | void = any, RequestBody = any> {
38
+ parameters?: Parameters;
39
+ requestBody?: RequestBody;
39
40
  }
40
- interface OpenApiRemoteMethod<Response = any, Parameters extends Record<string, any> | void = any, RequestBody = any> extends SchemaValidationMixin<Response, Parameters, RequestBody> {
41
+ export interface OpenApiRemoteMethod<Response = any, Parameters extends Record<string, any> | void = any, RequestBody = any> extends SchemaValidationMixin<Response, Parameters, RequestBody> {}
42
+ export declare class OpenApiRemoteMethod<Response = any, Parameters extends Record<string, any> | void = any, RequestBody = any> extends BaseHttpRemoteMethod<Response, any, OpenApiRemoteMethodParameter<Parameters, RequestBody>> {
43
+ protected readonly disableSchemaValidation: boolean;
44
+ protected readonly disableValidation: boolean;
45
+ private readonly strict;
46
+ constructor(http: HttpClient, injector: Injector, openApiConfigService: OpenApiConfigService, metadata?: OpenApiRemoteMethodMetadata | null, strict?: boolean | null, disableSchemaValidation?: boolean | null, disableValidation?: boolean | null);
47
+ get operation(): OperationObjectWithMetadata;
48
+ /**
49
+ * Instead of returning the response body the full response object is returned
50
+ */
51
+ callWithResponse(args?: OpenApiRemoteMethodParameter<Parameters, RequestBody>): Promise<HttpResponse<Response>>;
52
+ _callWithResponse(args?: OpenApiRemoteMethodParameter<Parameters, RequestBody>): Promise<HttpResponse<Response>>;
53
+ protected _call(args?: OpenApiRemoteMethodParameter<Parameters, RequestBody>): Promise<Response>;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiRemoteMethod<any, any, any>, [null, null, null, {
55
+ optional: true;
56
+ }, {
57
+ optional: true;
58
+ }, {
59
+ optional: true;
60
+ }, {
61
+ optional: true;
62
+ }]>;
63
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
41
64
  }
42
- declare class OpenApiRemoteMethod<Response = any, Parameters extends Record<string, any> | void = any, RequestBody = any> extends BaseHttpRemoteMethod<Response, any, OpenApiRemoteMethodParameter<Parameters, RequestBody>> {
43
- protected readonly disableSchemaValidation: boolean;
44
- protected readonly disableValidation: boolean;
45
- private readonly strict;
46
- constructor(http: HttpClient, injector: Injector, openApiConfigService: OpenApiConfigService, metadata?: OpenApiRemoteMethodMetadata | null, strict?: boolean | null, disableSchemaValidation?: boolean | null, disableValidation?: boolean | null);
47
- get operation(): OperationObjectWithMetadata;
48
- /**
49
- * Instead of returning the response body the full response object is returned
50
- */
51
- callWithResponse(args?: OpenApiRemoteMethodParameter<Parameters, RequestBody>): Promise<HttpResponse<Response>>;
52
- _callWithResponse(args?: OpenApiRemoteMethodParameter<Parameters, RequestBody>): Promise<HttpResponse<Response>>;
53
- protected _call(args?: OpenApiRemoteMethodParameter<Parameters, RequestBody>): Promise<Response>;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiRemoteMethod<any, any, any>, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
55
- static ɵprov: i0.ɵɵInjectableDeclaration<OpenApiRemoteMethod<any, any, any>>;
65
+ export interface GetPageRemoteMethodParameters {
66
+ pageIndex: number;
67
+ pageSize: number;
68
+ sortBy?: string;
69
+ sortDirection?: 'desc' | 'asc' | undefined | '' | string;
70
+ filter: string[];
56
71
  }
57
-
58
- interface GetPageRemoteMethodParameters {
59
- pageIndex: number;
60
- pageSize: number;
61
- sortBy?: string;
62
- sortDirection?: 'desc' | 'asc' | undefined | '' | string;
63
- filter: string[];
72
+ export interface GetPageResponse<Data extends Record<string, any>> {
73
+ total: number;
74
+ rows: Data[];
75
+ [key: string]: any;
64
76
  }
65
- interface GetPageResponse<Data extends Record<string, any>> {
66
- total: number;
67
- rows: Data[];
68
- [key: string]: any;
77
+ export interface GetPageAdapterDefaultOptions {
78
+ sortBy?: string;
79
+ sortDirection?: 'asc' | 'desc' | string;
69
80
  }
70
- interface GetPageAdapterDefaultOptions {
71
- sortBy?: string;
72
- sortDirection?: 'asc' | 'desc' | string;
81
+ export declare class GetPageAdapterRemoteMethod<Data extends Record<string, any>> extends BaseRemoteMethod<Data[], TableEvent> {
82
+ private readonly remoteMethod;
83
+ private readonly paginator?;
84
+ private readonly options?;
85
+ constructor(remoteMethod: OpenApiRemoteMethod<GetPageResponse<Data>, GetPageRemoteMethodParameters>, paginator?: PaginatorLike | undefined, options?: GetPageAdapterDefaultOptions | undefined);
86
+ static BuildFilter(filterEvent?: string | Record<string, any> | null): string[];
87
+ protected _call(event: TableEvent): Promise<Data[]>;
73
88
  }
74
- declare class GetPageAdapterRemoteMethod<Data extends Record<string, any>> extends BaseRemoteMethod<Data[], TableEvent> {
75
- private readonly remoteMethod;
76
- private readonly paginator?;
77
- private readonly options?;
78
- constructor(remoteMethod: OpenApiRemoteMethod<GetPageResponse<Data>, GetPageRemoteMethodParameters>, paginator?: PaginatorLike | undefined, options?: GetPageAdapterDefaultOptions | undefined);
79
- static BuildFilter(filterEvent?: string | Record<string, any> | null): string[];
80
- protected _call(event: TableEvent): Promise<Data[]>;
81
- }
82
- declare function GetPageAdapterFactory(remoteMethod: OpenApiRemoteMethod, paginator?: PaginatorLike): GetPageAdapterRemoteMethod<Record<string, any>>;
83
- declare function GetPageAdapterFactoryWithOptions(options?: GetPageAdapterDefaultOptions): (remoteMethod: OpenApiRemoteMethod, paginator?: PaginatorLike) => GetPageAdapterRemoteMethod<Record<string, any>>;
84
-
85
- declare class OpenApiRemoteMethodLoader {
86
- readonly openApiConfig: OpenApiConfigService;
87
- readonly http: HttpClient;
88
- readonly injector: Injector;
89
- load(definitionId: string): OpenApiRemoteMethod | null;
90
- static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiRemoteMethodLoader, never>;
91
- static ɵprov: i0.ɵɵInjectableDeclaration<OpenApiRemoteMethodLoader>;
92
- }
93
-
94
- export { GetPageAdapterFactory, GetPageAdapterFactoryWithOptions, GetPageAdapterRemoteMethod, IsOperationFromMetadataInline, OpenApiRemoteMethod, OpenApiRemoteMethodLoader, RxapOpenApiRemoteMethod, RxapOpenApiRemoteMethodError };
95
- export type { GetPageAdapterDefaultOptions, GetPageRemoteMethodParameters, GetPageResponse, OpenApiRemoteMethodMetadata, OpenApiRemoteMethodParameter, OperationForMetadata, OperationFromMetadataInline };
89
+ export declare function GetPageAdapterFactory(remoteMethod: OpenApiRemoteMethod, paginator?: PaginatorLike): GetPageAdapterRemoteMethod<Record<string, any>>;
90
+ export declare function GetPageAdapterFactoryWithOptions(options?: GetPageAdapterDefaultOptions): (remoteMethod: OpenApiRemoteMethod, paginator?: PaginatorLike) => GetPageAdapterRemoteMethod<Record<string, any>>;
91
+ export declare class OpenApiRemoteMethodLoader {
92
+ readonly openApiConfig: OpenApiConfigService;
93
+ readonly http: HttpClient;
94
+ readonly injector: Injector;
95
+ load(definitionId: string): OpenApiRemoteMethod | null;
96
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiRemoteMethodLoader, never>;
97
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
98
+ }
@@ -1,30 +1,27 @@
1
- import * as _angular_core from '@angular/core';
2
- import { InjectionToken, Provider } from '@angular/core';
3
- import { OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
4
- import { Method, MethodWithParameters } from '@rxap/pattern';
5
- import { Constructor } from '@rxap/utilities';
6
-
7
- 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;
8
- 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;
9
- 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;
10
-
11
- interface GetPageParameter {
12
- filter?: Array<string>;
13
- pageIndex: number;
14
- pageSize: number;
15
- sortBy?: string;
16
- sortDirection?: string;
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { InjectionToken, Provider } from "@angular/core";
5
+ import { OpenApiRemoteMethodParameter } from "@rxap/open-api/remote-method";
6
+ import { Method, MethodWithParameters } from "@rxap/pattern";
7
+ import { Constructor } from "@rxap/utilities";
8
+ 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;
9
+ 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;
10
+ 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;
11
+ export interface GetPageParameter {
12
+ filter?: Array<string>;
13
+ pageIndex: number;
14
+ pageSize: number;
15
+ sortBy?: string;
16
+ sortDirection?: string;
17
17
  }
18
- interface PageDto<T> {
19
- rows: Array<T>;
20
- pageSize: number;
21
- pageIndex: number;
22
- total: number;
23
- sortDirection?: string;
24
- sortBy?: string;
25
- filter?: Array<any>;
18
+ export interface PageDto<T> {
19
+ rows: Array<T>;
20
+ pageSize: number;
21
+ pageIndex: number;
22
+ total: number;
23
+ sortDirection?: string;
24
+ sortBy?: string;
25
+ filter?: Array<any>;
26
26
  }
27
- declare function ProvideRxapNestjsGetPageMethod<T, AddinalParameters>(method: Constructor<MethodWithParameters<PageDto<T>, OpenApiRemoteMethodParameter<GetPageParameter & AddinalParameters>>>, data: T[]): _angular_core.Provider;
28
-
29
- export { ProvideMethodMock, ProvideMethodWithParametersMock, ProvideRemoteMethodMock, ProvideRxapNestjsGetPageMethod };
30
- export type { GetPageParameter, PageDto };
27
+ export declare function ProvideRxapNestjsGetPageMethod<T, AddinalParameters>(method: Constructor<MethodWithParameters<PageDto<T>, OpenApiRemoteMethodParameter<GetPageParameter & AddinalParameters>>>, data: T[]): import("@angular/core").Provider;
@@ -1,171 +1,162 @@
1
- import { RxapError } from '@rxap/utilities';
2
- import { HttpContextToken, HttpInterceptorFn, HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
3
- import { OpenAPIV3 } from 'openapi-types';
4
- import * as i0 from '@angular/core';
5
- import { InjectionToken } from '@angular/core';
6
- import { BaseRemoteMethodMetadata } from '@rxap/remote-method';
7
- import { Environment } from '@rxap/environment';
8
- import { HttpRemoteMethodParameter } from '@rxap/remote-method/http';
9
-
10
- declare class RxapOpenApiError extends RxapError {
11
- constructor(message: string, code?: string, scope?: string);
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { RxapError } from "@rxap/utilities";
5
+ import { HttpContextToken, HttpErrorResponse, HttpHeaders, HttpInterceptorFn, HttpParams } from "@angular/common/http";
6
+ import { OpenAPIV3 } from "openapi-types";
7
+ import * as i0 from "@angular/core";
8
+ import { InjectionToken } from "@angular/core";
9
+ import { BaseRemoteMethodMetadata } from "@rxap/remote-method";
10
+ import { Environment } from "@rxap/environment";
11
+ import { HttpRemoteMethodParameter } from "@rxap/remote-method/http";
12
+ export declare class RxapOpenApiError extends RxapError {
13
+ constructor(message: string, code?: string, scope?: string);
12
14
  }
13
-
14
- declare const OPEN_API_OPERATION_ID: HttpContextToken<string>;
15
- declare const OPEN_API_SERVER_ID: HttpContextToken<string | null>;
16
- declare const OPEN_API_SERVER_INDEX: HttpContextToken<number>;
17
- declare const OPEN_API_OPERATION: HttpContextToken<string>;
18
-
19
- declare const injectOpenApiBaseUrlHttpInterceptorFn: HttpInterceptorFn;
20
-
21
- interface OperationObjectWithMetadata extends OpenAPIV3.OperationObject {
22
- path: string;
23
- method: string;
15
+ export declare const OPEN_API_OPERATION_ID: HttpContextToken<string>;
16
+ export declare const OPEN_API_SERVER_ID: HttpContextToken<string | null>;
17
+ export declare const OPEN_API_SERVER_INDEX: HttpContextToken<number>;
18
+ export declare const OPEN_API_OPERATION: HttpContextToken<string>;
19
+ export declare const injectOpenApiBaseUrlHttpInterceptorFn: HttpInterceptorFn;
20
+ export interface OperationObjectWithMetadata extends OpenAPIV3.OperationObject {
21
+ path: string;
22
+ method: string;
24
23
  }
25
-
26
- type OperationMap = Map<string, OperationObjectWithMetadata>;
27
- declare class OpenApiConfigService {
28
- static Config: OpenAPIV3.Document | null;
29
- static DefaultServerIndex: number;
30
- private static _operations;
31
- defaultServerIndex: number;
32
- private _operations;
33
- private static serverConfigMap;
34
- private get serverConfigMap();
35
- get serverIds(): string[];
36
- constructor(config?: OpenAPIV3.Document | null);
37
- private _config;
38
- get config(): OpenAPIV3.Document;
39
- /**
40
- * Used to load the app open api config from a remote resource.
41
- *
42
- * Promise.all([ OpenApiDataSourceLoader.Load() ])
43
- * .then(() => platformBrowserDynamic().bootstrapModule(AppModule))
44
- * .catch(err => console.error(err))
45
- *
46
- */
47
- static Load(openApiUrl?: string): Promise<void>;
48
- static GetOperation(operationId: string): OperationObjectWithMetadata;
49
- private static LoadOperations;
50
- private static GetBaseUrl;
51
- /**
52
- * Replaces all $ref with the concrete definition
53
- *
54
- * @param config
55
- * @private
56
- */
57
- private static ExpandOpenApi;
58
- getOperation(operationId: string): OperationObjectWithMetadata;
59
- getBaseUrl(serverIndex?: number, serverId?: string): string;
60
- static InsertServer(serverConfig: OpenAPIV3.ServerObject, index: number, serverId?: string, config?: OpenAPIV3.Document): void;
61
- insertServer(serverConfig: OpenAPIV3.ServerObject, index?: number, serverId?: string): void;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiConfigService, [{ optional: true; }]>;
63
- static ɵprov: i0.ɵɵInjectableDeclaration<OpenApiConfigService>;
24
+ export type OperationMap = Map<string, OperationObjectWithMetadata>;
25
+ export declare class OpenApiConfigService {
26
+ static Config: OpenAPIV3.Document | null;
27
+ static DefaultServerIndex: number;
28
+ private static _operations;
29
+ defaultServerIndex: number;
30
+ private _operations;
31
+ private static serverConfigMap;
32
+ private get serverConfigMap();
33
+ get serverIds(): string[];
34
+ constructor(config?: OpenAPIV3.Document | null);
35
+ private _config;
36
+ get config(): OpenAPIV3.Document;
37
+ /**
38
+ * Used to load the app open api config from a remote resource.
39
+ *
40
+ * Promise.all([ OpenApiDataSourceLoader.Load() ])
41
+ * .then(() => platformBrowserDynamic().bootstrapModule(AppModule))
42
+ * .catch(err => console.error(err))
43
+ *
44
+ */
45
+ static Load(openApiUrl?: string): Promise<void>;
46
+ static GetOperation(operationId: string): OperationObjectWithMetadata;
47
+ private static LoadOperations;
48
+ private static GetBaseUrl;
49
+ /**
50
+ * Replaces all $ref with the concrete definition
51
+ *
52
+ * @param config
53
+ * @private
54
+ */
55
+ private static ExpandOpenApi;
56
+ getOperation(operationId: string): OperationObjectWithMetadata;
57
+ getBaseUrl(serverIndex?: number, serverId?: string): string;
58
+ static InsertServer(serverConfig: OpenAPIV3.ServerObject, index: number, serverId?: string, config?: OpenAPIV3.Document): void;
59
+ insertServer(serverConfig: OpenAPIV3.ServerObject, index?: number, serverId?: string): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiConfigService, [{
61
+ optional: true;
62
+ }]>;
63
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
64
64
  }
65
-
66
- interface OpenApiMetaData extends BaseRemoteMethodMetadata {
67
- /**
68
- * The operation object with path and method
69
- */
70
- operation?: OperationObjectWithMetadata | string;
71
- /**
72
- * The index of the server object in the servers array in the open api config
73
- */
74
- serverIndex?: number;
75
- /**
76
- * used to specify the target server for the reset api operation
77
- */
78
- serverId?: string;
79
- id: string;
65
+ export interface OpenApiMetaData extends BaseRemoteMethodMetadata {
66
+ /**
67
+ * The operation object with path and method
68
+ */
69
+ operation?: OperationObjectWithMetadata | string;
70
+ /**
71
+ * The index of the server object in the servers array in the open api config
72
+ */
73
+ serverIndex?: number;
74
+ /**
75
+ * used to specify the target server for the reset api operation
76
+ */
77
+ serverId?: string;
78
+ id: string;
80
79
  }
81
-
82
- declare class OpenApiHttpResponseError extends HttpErrorResponse {
83
- readonly httpErrorResponse: HttpErrorResponse;
84
- readonly metadata: OpenApiMetaData;
85
- constructor(httpErrorResponse: HttpErrorResponse, metadata: OpenApiMetaData);
86
- get operationId(): string;
87
- get serverId(): string | undefined;
80
+ export declare class OpenApiHttpResponseError extends HttpErrorResponse {
81
+ readonly httpErrorResponse: HttpErrorResponse;
82
+ readonly metadata: OpenApiMetaData;
83
+ constructor(httpErrorResponse: HttpErrorResponse, metadata: OpenApiMetaData);
84
+ get operationId(): string;
85
+ get serverId(): string | undefined;
88
86
  }
89
-
90
- interface OpenApiInitOptions {
91
- /**
92
- * true - load the open api config file from the default url
93
- * default url: openapi.json
94
- */
95
- load?: {
96
- openApiUrl?: string;
97
- } | boolean;
98
- /**
99
- * The location origin prefix for the open api base urls if the base url is not absolute. defaults to location.origin
100
- */
101
- origin?: string;
87
+ export interface OpenApiInitOptions {
88
+ /**
89
+ * true - load the open api config file from the default url
90
+ * default url: openapi.json
91
+ */
92
+ load?: {
93
+ openApiUrl?: string;
94
+ } | boolean;
95
+ /**
96
+ * The location origin prefix for the open api base urls if the base url is not absolute. defaults to location.origin
97
+ */
98
+ origin?: string;
102
99
  }
103
- declare function OpenApiInit(environment: Environment, options?: OpenApiInitOptions): Promise<void> | undefined;
104
-
105
- interface SchemaValidationResponse<Data> {
106
- headers: HttpHeaders;
107
- status: number;
108
- body?: Data | null;
109
- data?: Data;
100
+ export declare function OpenApiInit(environment: Environment, options?: OpenApiInitOptions): Promise<void> | undefined;
101
+ export interface SchemaValidationResponse<Data> {
102
+ headers: HttpHeaders;
103
+ status: number;
104
+ body?: Data | null;
105
+ data?: Data;
110
106
  }
111
- declare class SchemaValidationMixin<Response = any, Parameters extends Record<string, any> | void = any, RequestBody = any> {
112
- static STRICT: boolean;
113
- protected disableSchemaValidation?: boolean;
114
- /**
115
- * Validates the parameters against the schema specified in the operation object
116
- *
117
- * @param operation
118
- * @param parameters
119
- * @param strict
120
- * @protected
121
- */
122
- validateParameters(operation: OperationObjectWithMetadata, parameters?: Parameters, strict?: boolean): void;
123
- /**
124
- * Validates the http response against the schema specified in the operation object
125
- *
126
- * @param operation
127
- * @param response
128
- * @param strict
129
- * @protected
130
- */
131
- validateResponse(operation: OperationObjectWithMetadata, response: SchemaValidationResponse<Response>, strict?: boolean): void;
132
- validateRequestBody(operation: OperationObjectWithMetadata, body?: RequestBody, strict?: boolean): void;
133
- validationError(message: string, strict: boolean, schema?: OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject, value?: any): void;
134
- buildHttpParams(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters, ignoreUndefined?: boolean): HttpParams;
135
- buildHttpHeaders(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters): HttpHeaders;
136
- buildHttpPathParams(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters): Record<string, string>;
137
- protected normalizePathParamValue(value: any, paramName: string): string;
138
- /**
139
- * Converts open api parameters into the corresponding http options to
140
- * create a http request. The transformation is guided by the openapi definition
141
- *
142
- * @param operation
143
- * @param parameters
144
- * @param requestBody
145
- * @param ignoreUndefined
146
- */
147
- buildHttpOptions(operation: OperationObjectWithMetadata, parameters?: Parameters, requestBody?: RequestBody, ignoreUndefined?: boolean): HttpRemoteMethodParameter;
148
- private buildBody;
149
- private validate;
107
+ export declare class SchemaValidationMixin<Response = any, Parameters extends Record<string, any> | void = any, RequestBody = any> {
108
+ static STRICT: boolean;
109
+ protected disableSchemaValidation?: boolean;
110
+ /**
111
+ * Validates the parameters against the schema specified in the operation object
112
+ *
113
+ * @param operation
114
+ * @param parameters
115
+ * @param strict
116
+ * @protected
117
+ */
118
+ validateParameters(operation: OperationObjectWithMetadata, parameters?: Parameters, strict?: boolean): void;
119
+ /**
120
+ * Validates the http response against the schema specified in the operation object
121
+ *
122
+ * @param operation
123
+ * @param response
124
+ * @param strict
125
+ * @protected
126
+ */
127
+ validateResponse(operation: OperationObjectWithMetadata, response: SchemaValidationResponse<Response>, strict?: boolean): void;
128
+ validateRequestBody(operation: OperationObjectWithMetadata, body?: RequestBody, strict?: boolean): void;
129
+ validationError(message: string, strict: boolean, schema?: OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject, value?: any): void;
130
+ buildHttpParams(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters, ignoreUndefined?: boolean): HttpParams;
131
+ buildHttpHeaders(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters): HttpHeaders;
132
+ buildHttpPathParams(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters): Record<string, string>;
133
+ protected normalizePathParamValue(value: any, paramName: string): string;
134
+ /**
135
+ * Converts open api parameters into the corresponding http options to
136
+ * create a http request. The transformation is guided by the openapi definition
137
+ *
138
+ * @param operation
139
+ * @param parameters
140
+ * @param requestBody
141
+ * @param ignoreUndefined
142
+ */
143
+ buildHttpOptions(operation: OperationObjectWithMetadata, parameters?: Parameters, requestBody?: RequestBody, ignoreUndefined?: boolean): HttpRemoteMethodParameter;
144
+ private buildBody;
145
+ private validate;
150
146
  }
151
-
152
- declare const RXAP_OPEN_API_CONFIG: InjectionToken<unknown>;
153
- declare const RXAP_OPEN_API_STRICT_VALIDATOR: InjectionToken<unknown>;
154
- declare const DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA: InjectionToken<unknown>;
155
- declare const DEFAULT_OPEN_API_DATA_SOURCE_META_DATA: InjectionToken<unknown>;
156
- declare const DISABLE_SCHEMA_VALIDATION: InjectionToken<boolean>;
157
- declare const DISABLE_VALIDATION: InjectionToken<boolean>;
158
-
159
- declare function IsReferenceObject(obj?: any): obj is OpenAPIV3.ReferenceObject;
160
- declare function NotContainsReferenceObjects<T>(array?: Array<OpenAPIV3.ReferenceObject | T | undefined>): array is T[];
161
- declare function IsOpenApiV3(obj?: any): obj is OpenAPIV3.Document;
162
- declare function AssertOpenApiV3(obj?: any): asserts obj is OpenAPIV3.Document;
163
- declare function hasJsonContentSchema<T extends OpenAPIV3.RequestBodyObject | OpenAPIV3.ResponseObject>(data: T | undefined | OpenAPIV3.ReferenceObject): data is T & {
164
- content: Record<string, OpenAPIV3.MediaTypeObject>;
147
+ export declare const RXAP_OPEN_API_CONFIG: InjectionToken<unknown>;
148
+ export declare const RXAP_OPEN_API_STRICT_VALIDATOR: InjectionToken<unknown>;
149
+ export declare const DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA: InjectionToken<unknown>;
150
+ export declare const DEFAULT_OPEN_API_DATA_SOURCE_META_DATA: InjectionToken<unknown>;
151
+ export declare const DISABLE_SCHEMA_VALIDATION: InjectionToken<boolean>;
152
+ export declare const DISABLE_VALIDATION: InjectionToken<boolean>;
153
+ export declare function IsReferenceObject(obj?: any): obj is OpenAPIV3.ReferenceObject;
154
+ export declare function NotContainsReferenceObjects<T>(array?: Array<OpenAPIV3.ReferenceObject | T | undefined>): array is T[];
155
+ export declare function IsOpenApiV3(obj?: any): obj is OpenAPIV3.Document;
156
+ export declare function AssertOpenApiV3(obj?: any): asserts obj is OpenAPIV3.Document;
157
+ export declare function hasJsonContentSchema<T extends OpenAPIV3.RequestBodyObject | OpenAPIV3.ResponseObject>(data: T | undefined | OpenAPIV3.ReferenceObject): data is T & {
158
+ content: Record<string, OpenAPIV3.MediaTypeObject>;
165
159
  };
166
- declare function getJsonContentSchema(data: OpenAPIV3.RequestBodyObject | OpenAPIV3.ResponseObject): OpenAPIV3.SchemaObject | null;
167
- declare function hasJsonSchema(map: Record<string, OpenAPIV3.MediaTypeObject> | undefined): boolean;
168
- declare function getJsonSchema(map: Record<string, OpenAPIV3.MediaTypeObject>): OpenAPIV3.SchemaObject | null;
169
-
170
- export { AssertOpenApiV3, DEFAULT_OPEN_API_DATA_SOURCE_META_DATA, DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA, DISABLE_SCHEMA_VALIDATION, DISABLE_VALIDATION, IsOpenApiV3, IsReferenceObject, NotContainsReferenceObjects, OPEN_API_OPERATION, OPEN_API_OPERATION_ID, OPEN_API_SERVER_ID, OPEN_API_SERVER_INDEX, OpenApiConfigService, OpenApiHttpResponseError, OpenApiInit, RXAP_OPEN_API_CONFIG, RXAP_OPEN_API_STRICT_VALIDATOR, RxapOpenApiError, SchemaValidationMixin, getJsonContentSchema, getJsonSchema, hasJsonContentSchema, hasJsonSchema, injectOpenApiBaseUrlHttpInterceptorFn };
171
- export type { OpenApiInitOptions, OpenApiMetaData, OperationMap, OperationObjectWithMetadata, SchemaValidationResponse };
160
+ export declare function getJsonContentSchema(data: OpenAPIV3.RequestBodyObject | OpenAPIV3.ResponseObject): OpenAPIV3.SchemaObject | null;
161
+ export declare function hasJsonSchema(map: Record<string, OpenAPIV3.MediaTypeObject> | undefined): boolean;
162
+ export declare function getJsonSchema(map: Record<string, OpenAPIV3.MediaTypeObject>): OpenAPIV3.SchemaObject | null;
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>injectOpenApiBaseUrlHttpInterceptorFn | @rxap/open-api - v21.0.1</title><meta name="description" content="Documentation for @rxap/open-api"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@rxap/open-api - v21.0.1</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@rxap/open-api</a></li><li><a href="injectOpenApiBaseUrlHttpInterceptorFn.html">injectOpenApiBaseUrlHttpInterceptorFn</a></li></ul><h1>Function injectOpenApiBaseUrlHttpInterceptorFn</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="injectopenapibaseurlhttpinterceptorfn" class="tsd-anchor"></a><span class="tsd-kind-call-signature">injectOpenApiBaseUrlHttpInterceptorFn</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">req</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HttpRequest</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">next</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HttpHandlerFn</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HttpEvent</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#injectopenapibaseurlhttpinterceptorfn" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">req</span>: <span class="tsd-signature-type">HttpRequest</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">next</span>: <span class="tsd-signature-type">HttpHandlerFn</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HttpEvent</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/open-api/src/lib/http-interceptors.ts#L9">packages/angular/open-api/src/lib/http-interceptors.ts:9</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@rxap/open-api - v21.0.1</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>