monday-sdk-js 0.3.3 → 0.3.4
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/package.json
CHANGED
|
@@ -184,13 +184,27 @@ export interface ClientExecute {
|
|
|
184
184
|
height?: string;
|
|
185
185
|
},
|
|
186
186
|
): Promise<{ data: any }>;
|
|
187
|
+
/**
|
|
188
|
+
* Opens the provided link in a new tab.
|
|
189
|
+
* @param type Which action to perform
|
|
190
|
+
* @param params Optional parameters for the action
|
|
191
|
+
*/
|
|
192
|
+
execute(
|
|
193
|
+
type: 'openLinkInTab',
|
|
194
|
+
params: {
|
|
195
|
+
/**
|
|
196
|
+
* The URL to open a new tab with
|
|
197
|
+
*/
|
|
198
|
+
url: string;
|
|
199
|
+
},
|
|
200
|
+
): Promise<{ data: Record<string, any> }>;
|
|
187
201
|
/**
|
|
188
202
|
* Closes the modal window.
|
|
189
203
|
* @param type Which action to perform
|
|
190
204
|
*/
|
|
191
205
|
execute(type: 'closeAppFeatureModal'): Promise<{ data: any }>;
|
|
192
206
|
/**
|
|
193
|
-
* Notifies the monday platform when a user gains a first value in your app.
|
|
207
|
+
* Notifies the monday platform when a user gains a first value in your app.
|
|
194
208
|
* @param type Which action to perform
|
|
195
209
|
*/
|
|
196
210
|
execute(type: 'valueCreatedForUser'): Promise<any>;
|
|
@@ -207,9 +221,9 @@ export interface ClientExecute {
|
|
|
207
221
|
*/
|
|
208
222
|
type: BlockTypes;
|
|
209
223
|
/**
|
|
210
|
-
* Used to specify where in the doc the new block should go.
|
|
211
|
-
* Provide the block's ID that will be above the new block.
|
|
212
|
-
* Without this parameter, the block will appear at the top of the doc.
|
|
224
|
+
* Used to specify where in the doc the new block should go.
|
|
225
|
+
* Provide the block's ID that will be above the new block.
|
|
226
|
+
* Without this parameter, the block will appear at the top of the doc.
|
|
213
227
|
*/
|
|
214
228
|
afterBlockId?: string | undefined;
|
|
215
229
|
/**
|
|
@@ -217,7 +231,7 @@ export interface ClientExecute {
|
|
|
217
231
|
*/
|
|
218
232
|
content: BlockContent;
|
|
219
233
|
},
|
|
220
|
-
): Promise<any>;
|
|
234
|
+
): Promise<any>;
|
|
221
235
|
/**
|
|
222
236
|
* Updates a block's content
|
|
223
237
|
* @param type Which action to perform
|
|
@@ -227,7 +241,7 @@ export interface ClientExecute {
|
|
|
227
241
|
type: 'updateDocBlock',
|
|
228
242
|
params: {
|
|
229
243
|
/**
|
|
230
|
-
* The block's unique identifier.
|
|
244
|
+
* The block's unique identifier.
|
|
231
245
|
*/
|
|
232
246
|
id: string;
|
|
233
247
|
/**
|
|
@@ -245,11 +259,11 @@ export interface ClientExecute {
|
|
|
245
259
|
type: 'addMultiBlocks',
|
|
246
260
|
params: {
|
|
247
261
|
/**
|
|
248
|
-
* The block's unique identifier.
|
|
262
|
+
* The block's unique identifier.
|
|
249
263
|
*/
|
|
250
264
|
afterBlockId?: string | undefined;
|
|
251
265
|
/**
|
|
252
|
-
* The block's content in Delta format.
|
|
266
|
+
* The block's content in Delta format.
|
|
253
267
|
* We support the following block types
|
|
254
268
|
*/
|
|
255
269
|
blocks: Array<{ type: BlockTypes, content: BlockContent}>;
|
|
@@ -260,4 +274,4 @@ export interface ClientExecute {
|
|
|
260
274
|
* @param type Which action to perform
|
|
261
275
|
*/
|
|
262
276
|
execute (type: 'closeDocModal'): Promise<any>;
|
|
263
|
-
}
|
|
277
|
+
}
|