@weavix/forms-api-types 0.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/LICENSE +9 -0
- package/README.md +21 -0
- package/package.json +22 -0
- package/src/api-paths.d.ts +860 -0
- package/src/index.d.ts +3 -0
- package/src/operations.d.ts +382 -0
- package/src/schemas.d.ts +11167 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Copyright (c) 2026 Yandex
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted to use this software in accordance with the terms
|
|
4
|
+
and conditions outlined in the Yandex Developer Terms, which can be found at
|
|
5
|
+
the following URL:
|
|
6
|
+
https://yandex.ru/legal/360_plugin_dev_agreement
|
|
7
|
+
|
|
8
|
+
By using this software, you agree to comply with these terms and conditions.
|
|
9
|
+
If you do not agree with these terms, you are not permitted to use this software.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Forms API Types
|
|
2
|
+
|
|
3
|
+
OpenAPI-derived TypeScript types for the
|
|
4
|
+
[public Forms API](https://api.forms.yandex.net/v1/openapi.json).
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
pnpm add -D @weavix/forms-api-types
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ApiV1GetMethods, PathsV1Get, components } from '@weavix/forms-api-types';
|
|
16
|
+
|
|
17
|
+
type Schemas = components['schemas'];
|
|
18
|
+
type SurveyPath = PathsV1Get['/surveys/{survey_id}/'];
|
|
19
|
+
type SurveyResponse = SurveyPath['response'];
|
|
20
|
+
type GetSurveyMethod = ApiV1GetMethods['/surveys/{survey_id}/'];
|
|
21
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@weavix/forms-api-types",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "OpenAPI-derived types for the public Forms API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"types": "./src/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./src/index.d.ts"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"src",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"registry": "https://registry.npmjs.org/",
|
|
20
|
+
"access": "public"
|
|
21
|
+
}
|
|
22
|
+
}
|