@produce8/analytics-openapi-types 1.0.0-dev.20251218191537 → 1.0.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.
- package/README.md +1 -14
- package/openapi-types.ts +0 -1
- package/package.json +1 -2
- package/openapi.json +0 -1672
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @produce8/analytics-openapi-types
|
|
2
2
|
|
|
3
|
-
TypeScript types
|
|
3
|
+
TypeScript types generated from the Analytics Service OpenAPI specification.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -12,8 +12,6 @@ yarn add @produce8/analytics-openapi-types
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
### TypeScript Types
|
|
16
|
-
|
|
17
15
|
```typescript
|
|
18
16
|
import type {
|
|
19
17
|
paths,
|
|
@@ -27,17 +25,6 @@ const healthCheck: operations['HealthController_healthCheck'] = {
|
|
|
27
25
|
};
|
|
28
26
|
```
|
|
29
27
|
|
|
30
|
-
### OpenAPI JSON Spec
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
// Import the OpenAPI spec
|
|
34
|
-
import openApiSpec from '@produce8/analytics-openapi-types/openapi.json';
|
|
35
|
-
|
|
36
|
-
// Or resolve the path
|
|
37
|
-
import { resolve } from 'path';
|
|
38
|
-
const openApiPath = require.resolve('@produce8/analytics-openapi-types/openapi.json');
|
|
39
|
-
```
|
|
40
|
-
|
|
41
28
|
## Environment Tags
|
|
42
29
|
|
|
43
30
|
This package is published with different dist-tags based on the environment:
|
package/openapi-types.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@produce8/analytics-openapi-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "TypeScript types generated from Analytics Service OpenAPI specification",
|
|
5
5
|
"main": "openapi-types.ts",
|
|
6
6
|
"types": "openapi-types.ts",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"openapi-types.ts",
|
|
14
|
-
"openapi.json",
|
|
15
14
|
"README.md"
|
|
16
15
|
]
|
|
17
16
|
}
|