@yaakapp/api 0.2.13 → 0.2.14
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/lib/bindings/events.d.ts +21 -21
- package/lib/plugins/Context.d.ts +2 -2
- package/package.json +2 -1
package/lib/bindings/events.d.ts
CHANGED
|
@@ -155,10 +155,10 @@ export type InternalEventPayload = {
|
|
|
155
155
|
} & TemplateRenderResponse | {
|
|
156
156
|
"type": "show_toast_request";
|
|
157
157
|
} & ShowToastRequest | {
|
|
158
|
-
"type": "
|
|
159
|
-
} &
|
|
160
|
-
"type": "
|
|
161
|
-
} &
|
|
158
|
+
"type": "prompt_text_request";
|
|
159
|
+
} & PromptTextRequest | {
|
|
160
|
+
"type": "prompt_text_response";
|
|
161
|
+
} & PromptTextResponse | {
|
|
162
162
|
"type": "get_http_request_by_id_request";
|
|
163
163
|
} & GetHttpRequestByIdRequest | {
|
|
164
164
|
"type": "get_http_request_by_id_response";
|
|
@@ -173,21 +173,7 @@ export type OpenFileFilter = {
|
|
|
173
173
|
name: string;
|
|
174
174
|
extensions: Array<string>;
|
|
175
175
|
};
|
|
176
|
-
export type
|
|
177
|
-
httpRequest: HttpRequest;
|
|
178
|
-
purpose: RenderPurpose;
|
|
179
|
-
};
|
|
180
|
-
export type RenderHttpRequestResponse = {
|
|
181
|
-
httpRequest: HttpRequest;
|
|
182
|
-
};
|
|
183
|
-
export type RenderPurpose = "send" | "preview";
|
|
184
|
-
export type SendHttpRequestRequest = {
|
|
185
|
-
httpRequest: HttpRequest;
|
|
186
|
-
};
|
|
187
|
-
export type SendHttpRequestResponse = {
|
|
188
|
-
httpResponse: HttpResponse;
|
|
189
|
-
};
|
|
190
|
-
export type ShowPromptRequest = {
|
|
176
|
+
export type PromptTextRequest = {
|
|
191
177
|
id: string;
|
|
192
178
|
title: string;
|
|
193
179
|
label: string;
|
|
@@ -207,8 +193,22 @@ export type ShowPromptRequest = {
|
|
|
207
193
|
*/
|
|
208
194
|
require?: boolean;
|
|
209
195
|
};
|
|
210
|
-
export type
|
|
211
|
-
value: string;
|
|
196
|
+
export type PromptTextResponse = {
|
|
197
|
+
value: string | null;
|
|
198
|
+
};
|
|
199
|
+
export type RenderHttpRequestRequest = {
|
|
200
|
+
httpRequest: HttpRequest;
|
|
201
|
+
purpose: RenderPurpose;
|
|
202
|
+
};
|
|
203
|
+
export type RenderHttpRequestResponse = {
|
|
204
|
+
httpRequest: HttpRequest;
|
|
205
|
+
};
|
|
206
|
+
export type RenderPurpose = "send" | "preview";
|
|
207
|
+
export type SendHttpRequestRequest = {
|
|
208
|
+
httpRequest: HttpRequest;
|
|
209
|
+
};
|
|
210
|
+
export type SendHttpRequestResponse = {
|
|
211
|
+
httpResponse: HttpResponse;
|
|
212
212
|
};
|
|
213
213
|
export type ShowToastRequest = {
|
|
214
214
|
message: string;
|
package/lib/plugins/Context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FindHttpResponsesRequest, FindHttpResponsesResponse, GetHttpRequestByIdRequest, GetHttpRequestByIdResponse, PromptTextRequest, PromptTextResponse, RenderHttpRequestRequest, RenderHttpRequestResponse, SendHttpRequestRequest, SendHttpRequestResponse, ShowToastRequest, TemplateRenderRequest, TemplateRenderResponse } from '..';
|
|
2
2
|
export type Context = {
|
|
3
3
|
clipboard: {
|
|
4
4
|
copyText(text: string): void;
|
|
@@ -7,7 +7,7 @@ export type Context = {
|
|
|
7
7
|
show(args: ShowToastRequest): void;
|
|
8
8
|
};
|
|
9
9
|
prompt: {
|
|
10
|
-
|
|
10
|
+
text(args: PromptTextRequest): Promise<PromptTextResponse['value']>;
|
|
11
11
|
};
|
|
12
12
|
httpRequest: {
|
|
13
13
|
send(args: SendHttpRequestRequest): Promise<SendHttpRequestResponse['httpResponse']>;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yaakapp/api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "./lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"lib/**/*"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
+
"bootstrap": "npm run build",
|
|
10
11
|
"build": "run-s build:copy-types build:tsc",
|
|
11
12
|
"build:tsc": "tsc",
|
|
12
13
|
"build:copy-types": "run-p build:copy-types:*",
|