@rxap/open-api 19.0.4-dev.0 → 19.1.0-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 (80) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/compodoc/changelog.html +5 -0
  3. package/compodoc/dependencies.html +7 -7
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +107 -107
  7. package/docs/html/classes/OpenApiConfigService.html +3 -3
  8. package/docs/html/classes/OpenApiHttpResponseError.html +4 -4
  9. package/docs/html/classes/RxapOpenApiError.html +5 -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/index.html +2 -2
  17. package/docs/html/interfaces/OpenApiInitOptions.html +3 -3
  18. package/docs/html/interfaces/OpenApiMetaData.html +5 -5
  19. package/docs/html/interfaces/OperationObjectWithMetadata.html +2 -2
  20. package/docs/html/interfaces/SchemaValidationResponse.html +2 -2
  21. package/docs/html/modules.html +1 -1
  22. package/docs/html/types/OperationMap.html +1 -1
  23. package/docs/html/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +1 -1
  24. package/docs/html/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +1 -1
  25. package/docs/html/variables/DISABLE_SCHEMA_VALIDATION.html +1 -1
  26. package/docs/html/variables/DISABLE_VALIDATION.html +1 -1
  27. package/docs/html/variables/RXAP_OPEN_API_CONFIG.html +1 -1
  28. package/docs/html/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +1 -1
  29. package/docs/markdown/README.md +1 -1
  30. package/docs/markdown/classes/OpenApiConfigService.md +14 -14
  31. package/docs/markdown/classes/OpenApiHttpResponseError.md +7 -7
  32. package/docs/markdown/classes/RxapOpenApiError.md +13 -13
  33. package/docs/markdown/classes/SchemaValidationMixin.md +12 -12
  34. package/docs/markdown/functions/AssertOpenApiV3.md +2 -2
  35. package/docs/markdown/functions/IsOpenApiV3.md +2 -2
  36. package/docs/markdown/functions/IsReferenceObject.md +2 -2
  37. package/docs/markdown/functions/NotContainsReferenceObjects.md +2 -2
  38. package/docs/markdown/functions/OpenApiInit.md +2 -2
  39. package/docs/markdown/globals.md +2 -2
  40. package/docs/markdown/interfaces/OpenApiInitOptions.md +4 -4
  41. package/docs/markdown/interfaces/OpenApiMetaData.md +7 -7
  42. package/docs/markdown/interfaces/OperationObjectWithMetadata.md +4 -4
  43. package/docs/markdown/interfaces/SchemaValidationResponse.md +6 -6
  44. package/docs/markdown/type-aliases/OperationMap.md +2 -2
  45. package/docs/markdown/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +2 -2
  46. package/docs/markdown/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +2 -2
  47. package/docs/markdown/variables/DISABLE_SCHEMA_VALIDATION.md +2 -2
  48. package/docs/markdown/variables/DISABLE_VALIDATION.md +2 -2
  49. package/docs/markdown/variables/RXAP_OPEN_API_CONFIG.md +2 -2
  50. package/docs/markdown/variables/RXAP_OPEN_API_STRICT_VALIDATOR.md +2 -2
  51. package/docs/wiki/Class.OpenApiConfigService.md +13 -13
  52. package/docs/wiki/Class.OpenApiHttpResponseError.md +6 -6
  53. package/docs/wiki/Class.RxapOpenApiError.md +12 -12
  54. package/docs/wiki/Class.SchemaValidationMixin.md +11 -11
  55. package/docs/wiki/Function.AssertOpenApiV3.md +1 -1
  56. package/docs/wiki/Function.IsOpenApiV3.md +1 -1
  57. package/docs/wiki/Function.IsReferenceObject.md +1 -1
  58. package/docs/wiki/Function.NotContainsReferenceObjects.md +1 -1
  59. package/docs/wiki/Function.OpenApiInit.md +1 -1
  60. package/docs/wiki/Interface.OpenApiInitOptions.md +3 -3
  61. package/docs/wiki/Interface.OpenApiMetaData.md +6 -6
  62. package/docs/wiki/Interface.OperationObjectWithMetadata.md +3 -3
  63. package/docs/wiki/Interface.SchemaValidationResponse.md +5 -5
  64. package/docs/wiki/TypeAlias.OperationMap.md +1 -1
  65. package/docs/wiki/Variable.DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +1 -1
  66. package/docs/wiki/Variable.DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +1 -1
  67. package/docs/wiki/Variable.DISABLE_SCHEMA_VALIDATION.md +1 -1
  68. package/docs/wiki/Variable.DISABLE_VALIDATION.md +1 -1
  69. package/docs/wiki/Variable.RXAP_OPEN_API_CONFIG.md +1 -1
  70. package/docs/wiki/Variable.RXAP_OPEN_API_STRICT_VALIDATOR.md +1 -1
  71. package/docs/wiki/globals.md +1 -1
  72. package/fesm2022/rxap-open-api-http-resource.mjs +39 -0
  73. package/fesm2022/rxap-open-api-http-resource.mjs.map +1 -0
  74. package/http-resource/README.md +3 -0
  75. package/http-resource/index.d.ts +4 -0
  76. package/http-resource/lib/http-context-tokens.d.ts +4 -0
  77. package/http-resource/lib/http-interceptors.d.ts +2 -0
  78. package/http-resource/lib/to-http-params.d.ts +3 -0
  79. package/http-resource/lib/types.d.ts +11 -0
  80. package/package.json +26 -26
@@ -0,0 +1,11 @@
1
+ import { Signal } from '@angular/core';
2
+ /**
3
+ * Converts all properties of type T to Signal<T[K]>
4
+ */
5
+ export type SignalProperties<T> = {
6
+ [K in keyof T]: Signal<T[K]>;
7
+ };
8
+ export interface OpenApiHttpResourceOptions<Parameters extends Record<string, any> | void = any, RequestBody = any> {
9
+ parameters?: SignalProperties<Parameters>;
10
+ requestBody?: Signal<RequestBody>;
11
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "19.0.4-dev.0",
2
+ "version": "19.1.0-dev.0",
3
3
  "name": "@rxap/open-api",
4
4
  "description": "This package provides tools for working with OpenAPI specifications in Angular applications. It includes services for configuring and loading OpenAPI definitions, validating requests and responses against schemas, and handling errors. It also offers utilities for building HTTP requests based on OpenAPI definitions.\n",
5
5
  "license": "GPL-3.0-or-later",
@@ -10,13 +10,13 @@
10
10
  "peerDependencies": {
11
11
  "@angular/common": "^19.2.1",
12
12
  "@angular/core": "^19.2.1",
13
- "@rxap/config": "^19.0.3",
14
- "@rxap/data-source": "^19.0.3",
15
- "@rxap/environment": "^19.0.3",
16
- "@rxap/mixin": "^16.0.13",
17
- "@rxap/remote-method": "^19.0.3",
18
- "@rxap/rxjs": "^1.1.15",
19
- "@rxap/utilities": "^16.4.3",
13
+ "@rxap/config": "^19.0.4-dev.0",
14
+ "@rxap/data-source": "^19.0.4-dev.0",
15
+ "@rxap/environment": "^19.0.4-dev.0",
16
+ "@rxap/mixin": "^16.0.14-dev.0",
17
+ "@rxap/remote-method": "^19.0.4-dev.0",
18
+ "@rxap/rxjs": "^1.1.16-dev.0",
19
+ "@rxap/utilities": "^16.4.4-dev.0",
20
20
  "ajv": "^8.12.0",
21
21
  "openapi-types": "^10.0.0",
22
22
  "rxjs": "^7.8.1"
@@ -42,13 +42,9 @@
42
42
  ],
43
43
  "nx-migrations": {
44
44
  "packageGroup": [
45
- {
46
- "package": "@angular/animations",
47
- "version": "19.2.1"
48
- },
49
45
  {
50
46
  "package": "@angular/cdk",
51
- "version": "19.1.1"
47
+ "version": "19.2.2"
52
48
  },
53
49
  {
54
50
  "package": "@angular/common",
@@ -64,7 +60,7 @@
64
60
  },
65
61
  {
66
62
  "package": "@angular/material",
67
- "version": "19.1.1"
63
+ "version": "19.2.2"
68
64
  },
69
65
  {
70
66
  "package": "@angular/platform-browser",
@@ -72,47 +68,47 @@
72
68
  },
73
69
  {
74
70
  "package": "@rxap/config",
75
- "version": "19.0.3"
71
+ "version": "19.0.4-dev.0"
76
72
  },
77
73
  {
78
74
  "package": "@rxap/data-source",
79
- "version": "19.0.3"
75
+ "version": "19.0.4-dev.0"
80
76
  },
81
77
  {
82
78
  "package": "@rxap/data-structure-tree",
83
- "version": "1.1.15"
79
+ "version": "1.1.16-dev.0"
84
80
  },
85
81
  {
86
82
  "package": "@rxap/definition",
87
- "version": "19.0.3"
83
+ "version": "19.0.4-dev.0"
88
84
  },
89
85
  {
90
86
  "package": "@rxap/environment",
91
- "version": "19.0.3"
87
+ "version": "19.0.4-dev.0"
92
88
  },
93
89
  {
94
90
  "package": "@rxap/mixin",
95
- "version": "16.0.13"
91
+ "version": "16.0.14-dev.0"
96
92
  },
97
93
  {
98
94
  "package": "@rxap/pattern",
99
- "version": "1.1.13"
95
+ "version": "1.1.14-dev.0"
100
96
  },
101
97
  {
102
98
  "package": "@rxap/reflect-metadata",
103
- "version": "1.0.14"
99
+ "version": "1.0.15-dev.0"
104
100
  },
105
101
  {
106
102
  "package": "@rxap/remote-method",
107
- "version": "19.0.3"
103
+ "version": "19.0.4-dev.0"
108
104
  },
109
105
  {
110
106
  "package": "@rxap/rxjs",
111
- "version": "1.1.15"
107
+ "version": "1.1.16-dev.0"
112
108
  },
113
109
  {
114
110
  "package": "@rxap/utilities",
115
- "version": "16.4.3"
111
+ "version": "16.4.4-dev.0"
116
112
  }
117
113
  ]
118
114
  },
@@ -127,7 +123,7 @@
127
123
  },
128
124
  "schematics": "./generators.json",
129
125
  "sideEffects": false,
130
- "gitHead": "e4552670b179901abc7ce57cc3ff490ac705b867",
126
+ "gitHead": "146687a6d9632a9f24d12da46224d3eeb40e552b",
131
127
  "module": "fesm2022/rxap-open-api.mjs",
132
128
  "typings": "index.d.ts",
133
129
  "exports": {
@@ -142,6 +138,10 @@
142
138
  "types": "./data-source/index.d.ts",
143
139
  "default": "./fesm2022/rxap-open-api-data-source.mjs"
144
140
  },
141
+ "./http-resource": {
142
+ "types": "./http-resource/index.d.ts",
143
+ "default": "./fesm2022/rxap-open-api-http-resource.mjs"
144
+ },
145
145
  "./remote-method": {
146
146
  "types": "./remote-method/index.d.ts",
147
147
  "default": "./fesm2022/rxap-open-api-remote-method.mjs"