@yaakapp/api 0.2.25 → 0.2.27
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
CHANGED
|
@@ -51,6 +51,7 @@ export type Color = "custom" | "default" | "primary" | "secondary" | "info" | "s
|
|
|
51
51
|
export type CopyTextRequest = {
|
|
52
52
|
text: string;
|
|
53
53
|
};
|
|
54
|
+
export type EditorLanguage = "text" | "javascript" | "json" | "html" | "xml" | "graphql" | "markdown";
|
|
54
55
|
export type EmptyPayload = {};
|
|
55
56
|
export type ExportHttpRequestRequest = {
|
|
56
57
|
httpRequest: HttpRequest;
|
|
@@ -82,6 +83,8 @@ export type FindHttpResponsesResponse = {
|
|
|
82
83
|
export type FormInput = {
|
|
83
84
|
"type": "text";
|
|
84
85
|
} & FormInputText | {
|
|
86
|
+
"type": "editor";
|
|
87
|
+
} & FormInputEditor | {
|
|
85
88
|
"type": "select";
|
|
86
89
|
} & FormInputSelect | {
|
|
87
90
|
"type": "checkbox";
|
|
@@ -120,6 +123,26 @@ export type FormInputCheckbox = {
|
|
|
120
123
|
*/
|
|
121
124
|
defaultValue?: string;
|
|
122
125
|
};
|
|
126
|
+
export type FormInputEditor = {
|
|
127
|
+
/**
|
|
128
|
+
* Placeholder for the text input
|
|
129
|
+
*/
|
|
130
|
+
placeholder?: string | null;
|
|
131
|
+
language: EditorLanguage;
|
|
132
|
+
name: string;
|
|
133
|
+
/**
|
|
134
|
+
* Whether the user must fill in the argument
|
|
135
|
+
*/
|
|
136
|
+
optional?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* The label of the input
|
|
139
|
+
*/
|
|
140
|
+
label?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The default value
|
|
143
|
+
*/
|
|
144
|
+
defaultValue?: string;
|
|
145
|
+
};
|
|
123
146
|
export type FormInputFile = {
|
|
124
147
|
/**
|
|
125
148
|
* The title of the file selection window
|
|
@@ -189,6 +212,10 @@ export type FormInputText = {
|
|
|
189
212
|
* Placeholder for the text input
|
|
190
213
|
*/
|
|
191
214
|
placeholder?: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* Placeholder for the text input
|
|
217
|
+
*/
|
|
218
|
+
password?: boolean;
|
|
192
219
|
name: string;
|
|
193
220
|
/**
|
|
194
221
|
* Whether the user must fill in the argument
|
|
@@ -205,6 +232,8 @@ export type FormInputText = {
|
|
|
205
232
|
};
|
|
206
233
|
export type GetHttpAuthenticationResponse = {
|
|
207
234
|
name: string;
|
|
235
|
+
label: string;
|
|
236
|
+
shortLabel: string;
|
|
208
237
|
config: Array<FormInput>;
|
|
209
238
|
};
|
|
210
239
|
export type GetHttpRequestActionsRequest = Record<string, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CallHttpAuthenticationRequest, CallHttpAuthenticationResponse, GetHttpAuthenticationResponse } from '..';
|
|
2
2
|
import type { Context } from './Context';
|
|
3
|
-
export type AuthenticationPlugin = GetHttpAuthenticationResponse & {
|
|
3
|
+
export type AuthenticationPlugin = Omit<GetHttpAuthenticationResponse, 'pluginName'> & {
|
|
4
4
|
onApply(ctx: Context, args: CallHttpAuthenticationRequest): Promise<CallHttpAuthenticationResponse> | CallHttpAuthenticationResponse;
|
|
5
5
|
};
|