@yaakapp/api 0.2.26 → 0.2.28
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 +31 -4
- package/lib/bindings/models.d.ts +1 -1
- package/package.json +1 -1
package/lib/bindings/events.d.ts
CHANGED
|
@@ -23,8 +23,7 @@ export type CallHttpAuthenticationRequest = {
|
|
|
23
23
|
headers: Array<HttpHeader>;
|
|
24
24
|
};
|
|
25
25
|
export type CallHttpAuthenticationResponse = {
|
|
26
|
-
|
|
27
|
-
headers: Array<HttpHeader>;
|
|
26
|
+
setHeaders: Array<HttpHeader>;
|
|
28
27
|
};
|
|
29
28
|
export type CallHttpRequestActionArgs = {
|
|
30
29
|
httpRequest: HttpRequest;
|
|
@@ -51,6 +50,7 @@ export type Color = "custom" | "default" | "primary" | "secondary" | "info" | "s
|
|
|
51
50
|
export type CopyTextRequest = {
|
|
52
51
|
text: string;
|
|
53
52
|
};
|
|
53
|
+
export type EditorLanguage = "text" | "javascript" | "json" | "html" | "xml" | "graphql" | "markdown";
|
|
54
54
|
export type EmptyPayload = {};
|
|
55
55
|
export type ExportHttpRequestRequest = {
|
|
56
56
|
httpRequest: HttpRequest;
|
|
@@ -82,6 +82,8 @@ export type FindHttpResponsesResponse = {
|
|
|
82
82
|
export type FormInput = {
|
|
83
83
|
"type": "text";
|
|
84
84
|
} & FormInputText | {
|
|
85
|
+
"type": "editor";
|
|
86
|
+
} & FormInputEditor | {
|
|
85
87
|
"type": "select";
|
|
86
88
|
} & FormInputSelect | {
|
|
87
89
|
"type": "checkbox";
|
|
@@ -120,6 +122,26 @@ export type FormInputCheckbox = {
|
|
|
120
122
|
*/
|
|
121
123
|
defaultValue?: string;
|
|
122
124
|
};
|
|
125
|
+
export type FormInputEditor = {
|
|
126
|
+
/**
|
|
127
|
+
* Placeholder for the text input
|
|
128
|
+
*/
|
|
129
|
+
placeholder?: string | null;
|
|
130
|
+
language: EditorLanguage;
|
|
131
|
+
name: string;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the user must fill in the argument
|
|
134
|
+
*/
|
|
135
|
+
optional?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* The label of the input
|
|
138
|
+
*/
|
|
139
|
+
label?: string;
|
|
140
|
+
/**
|
|
141
|
+
* The default value
|
|
142
|
+
*/
|
|
143
|
+
defaultValue?: string;
|
|
144
|
+
};
|
|
123
145
|
export type FormInputFile = {
|
|
124
146
|
/**
|
|
125
147
|
* The title of the file selection window
|
|
@@ -189,6 +211,10 @@ export type FormInputText = {
|
|
|
189
211
|
* Placeholder for the text input
|
|
190
212
|
*/
|
|
191
213
|
placeholder?: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* Placeholder for the text input
|
|
216
|
+
*/
|
|
217
|
+
password?: boolean;
|
|
192
218
|
name: string;
|
|
193
219
|
/**
|
|
194
220
|
* Whether the user must fill in the argument
|
|
@@ -205,7 +231,8 @@ export type FormInputText = {
|
|
|
205
231
|
};
|
|
206
232
|
export type GetHttpAuthenticationResponse = {
|
|
207
233
|
name: string;
|
|
208
|
-
|
|
234
|
+
label: string;
|
|
235
|
+
shortLabel: string;
|
|
209
236
|
config: Array<FormInput>;
|
|
210
237
|
};
|
|
211
238
|
export type GetHttpRequestActionsRequest = Record<string, never>;
|
|
@@ -348,7 +375,7 @@ export type PromptTextRequest = {
|
|
|
348
375
|
/**
|
|
349
376
|
* Require the user to enter a non-empty value
|
|
350
377
|
*/
|
|
351
|
-
|
|
378
|
+
required?: boolean;
|
|
352
379
|
};
|
|
353
380
|
export type PromptTextResponse = {
|
|
354
381
|
value: string | null;
|
package/lib/bindings/models.d.ts
CHANGED