@yaakapp/api 0.6.0 → 0.6.2
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 +27 -0
- package/lib/bindings/gen_events.d.ts +2 -8
- package/lib/bindings/gen_models.d.ts +1 -0
- package/package.json +7 -1
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Yaak Plugin API
|
|
2
|
+
|
|
3
|
+
Yaak is a desktop API client for interacting with REST, GraphQL, Server Sent Events (SSE),
|
|
4
|
+
WebSocket, and gRPC APIs. It's built using Tauri, Rust, and ReactJS.
|
|
5
|
+
|
|
6
|
+
Plugins can be created in TypeScript, which are executed alongside Yaak in a NodeJS
|
|
7
|
+
runtime. This package contains the TypeScript type definitions required to make building
|
|
8
|
+
Yaak plugins a breeze.
|
|
9
|
+
|
|
10
|
+
## Quick Start
|
|
11
|
+
|
|
12
|
+
The easiest way to get started is by generating a plugin with the Yaak CLI:
|
|
13
|
+
|
|
14
|
+
```shell
|
|
15
|
+
npx @yaakapp/cli generate
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
For more details on creating plugins, check out
|
|
19
|
+
the [Quick Start Guide](https://feedback.yaak.app/help/articles/6911763-plugins-quick-start)
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
If you prefer starting from scratch, manually install the types package:
|
|
24
|
+
|
|
25
|
+
```shell
|
|
26
|
+
npm install @yaakapp/api
|
|
27
|
+
```
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import type { Environment } from "./gen_models.js";
|
|
2
|
-
import type { Folder } from "./gen_models.js";
|
|
3
|
-
import type { GrpcRequest } from "./gen_models.js";
|
|
4
|
-
import type { HttpRequest } from "./gen_models.js";
|
|
5
|
-
import type { HttpResponse } from "./gen_models.js";
|
|
1
|
+
import type { Environment, Folder, GrpcRequest, HttpRequest, HttpResponse, WebsocketRequest, Workspace } from "./gen_models.js";
|
|
6
2
|
import type { JsonValue } from "./serde_json/JsonValue.js";
|
|
7
|
-
import type { WebsocketRequest } from "./gen_models.js";
|
|
8
|
-
import type { Workspace } from "./gen_models.js";
|
|
9
3
|
export type BootRequest = {
|
|
10
4
|
dir: string;
|
|
11
5
|
watch: boolean;
|
|
@@ -52,7 +46,7 @@ export type CallHttpRequestActionRequest = {
|
|
|
52
46
|
export type CallTemplateFunctionArgs = {
|
|
53
47
|
purpose: RenderPurpose;
|
|
54
48
|
values: {
|
|
55
|
-
[key in string]?:
|
|
49
|
+
[key in string]?: JsonValue;
|
|
56
50
|
};
|
|
57
51
|
};
|
|
58
52
|
export type CallTemplateFunctionRequest = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yaakapp/api",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"api-client",
|
|
6
|
+
"insomnia-alternative",
|
|
7
|
+
"bruno-alternative",
|
|
8
|
+
"postman-alternative"
|
|
9
|
+
],
|
|
4
10
|
"main": "lib/index.js",
|
|
5
11
|
"typings": "./lib/index.d.ts",
|
|
6
12
|
"files": [
|