@constantant/openapi-resource-gen 1.7.0 → 1.8.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## 1.8.0 (2026-06-14)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **openapi-resource-mocks:** reload status, event fixes, clearHistory, requestCount, keyDiscriminator ([6adfd13](https://github.com/constantant/angular-openapi-gen/commit/6adfd13))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated openapi-resource-mocks to 0.5.0
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Claude Sonnet 4.6
|
|
14
|
+
- kk
|
|
15
|
+
|
|
1
16
|
## 1.7.0 (2026-06-13)
|
|
2
17
|
|
|
3
18
|
### 🚀 Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constantant/openapi-resource-gen",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Nx generator: one InjectionToken per OpenAPI endpoint — tree-shakeable Angular data-access libs via httpResource",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -14,7 +14,7 @@ function renderMockFile(ep, specId) {
|
|
|
14
14
|
const tagLine = ep.tag !== 'default' ? `\n tag: '${ep.tag}',` : '';
|
|
15
15
|
return `import { FactoryProvider } from '@angular/core';
|
|
16
16
|
import { provideMockResource } from '@constantant/openapi-resource-mocks';
|
|
17
|
-
import type { ProviderInitialBehavior, MockResourceMeta } from '@constantant/openapi-resource-mocks';
|
|
17
|
+
import type { ProviderInitialBehavior, MockProviderOptions, MockResourceMeta } from '@constantant/openapi-resource-mocks';
|
|
18
18
|
import { ${ep.tokenName} } from './${ep.fileName}.token';${responseImport}
|
|
19
19
|
|
|
20
20
|
const _meta: MockResourceMeta = {
|
|
@@ -26,8 +26,9 @@ const _meta: MockResourceMeta = {
|
|
|
26
26
|
|
|
27
27
|
export function provide${pascal}Mock(
|
|
28
28
|
initialBehavior?: ${behaviorType},
|
|
29
|
+
options?: MockProviderOptions,
|
|
29
30
|
): FactoryProvider {
|
|
30
|
-
return provideMockResource(${ep.tokenName}, '${ep.tokenName}', initialBehavior, _meta);
|
|
31
|
+
return provideMockResource(${ep.tokenName}, '${ep.tokenName}', initialBehavior, _meta, options);
|
|
31
32
|
}
|
|
32
33
|
`;
|
|
33
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-mock-file.js","sourceRoot":"","sources":["../../../../../../tools/openapi-resource-gen/src/generators/api-resource/render-mock-file.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"render-mock-file.js","sourceRoot":"","sources":["../../../../../../tools/openapi-resource-gen/src/generators/api-resource/render-mock-file.ts"],"names":[],"mappings":";;AAGA,wCA8BC;AAhCD,iDAA8C;AAE9C,SAAgB,cAAc,CAAC,EAAiB,EAAE,MAAc;IAC9D,MAAM,MAAM,GAAG,IAAA,2BAAY,EAAC,EAAE,CAAC,WAAW,CAAC,CAAC;IAC5C,MAAM,YAAY,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,MAAM,cAAc,GAAG,YAAY;QACjC,CAAC,CAAC,mBAAmB,YAAY,cAAc,EAAE,CAAC,QAAQ,UAAU;QACpE,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,YAAY,GAAG,YAAY;QAC/B,CAAC,CAAC,2BAA2B,YAAY,GAAG;QAC5C,CAAC,CAAC,kCAAkC,CAAC;IACvC,MAAM,OAAO,GAAG,EAAE,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAEpE,OAAO;;;WAGE,EAAE,CAAC,SAAS,cAAc,EAAE,CAAC,QAAQ,WAAW,cAAc;;;aAG5D,MAAM;kBACD,EAAE,CAAC,WAAW;WACrB,EAAE,CAAC,OAAO;aACR,EAAE,CAAC,MAAM,KAAK,OAAO;;;yBAGT,MAAM;sBACT,YAAY;;;+BAGH,EAAE,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS;;CAE5D,CAAC;AACF,CAAC"}
|