Display
This is a JSON parameter to define where your app should appear

Latest version

1
{
2
twake: {
3
version: 1;
4
5
files?: {
6
preview?: {
7
url: string; //Url to preview file (full screen or inline)
8
inline?: boolean;
9
main_ext?: string[]; //Main extensions app can read
10
other_ext?: string[]; //Secondary extensions app can read
11
};
12
actions?: //List of action that can apply on a file
13
{
14
name: string;
15
id: string;
16
}[];
17
};
18
19
//Chat plugin
20
chat: {
21
input?:
22
| true
23
| {
24
icon?: string; //If defined replace original icon url of your app
25
type?: "file" | "call"; //To add in existing apps folder / default icon
26
};
27
commands?: {
28
command: string; // my_app mycommand
29
description: string;
30
}[];
31
actions?: //List of action that can apply on a message
32
{
33
name: string;
34
id: string;
35
}[];
36
};
37
38
//Allow app to appear as a bot user in direct chat
39
direct?:
40
| true
41
| {
42
name?: string;
43
icon?: string; //If defined replace original icon url of your app
44
};
45
46
//Display app as a standalone application in a tab
47
tab?: {
48
url: string;
49
};
50
51
//Display app as a standalone application on the left bar
52
standalone?: {
53
url: string;
54
};
55
56
//Define where the app can be configured from
57
configuration: ("global" | "channel")[];
58
};
59
};
60
Copied!

Legacy format

1
type ApplicationDisplay = {
2
twake:
3
{
4
"version": 0, //Legacy
5
"tasks_module" : {
6
"can_connect_to_tasks": true
7
},
8
"calendar_module" : {
9
"can_connect_to_calendar": true
10
}
11
"drive_module" : {
12
"can_connect_to_directory": true,
13
"can_open_files": {
14
"url": "", //Une url à appeler pour éditer le fichier (ouvert dans un onglet)
15
"preview_url": "", //Une url à appeler pour prévisualiser un fichier (iframe)
16
"main_ext": ["docx", "xlsx"], //Extensions principales
17
"other_ext": ["txt", "html"] //Extensions secondaires
18
},
19
"can_create_files": [
20
{
21
"url": "https://[...]/empty.docx",
22
"filename": "Untitled.docx",
23
"name": "Word Document"
24
},
25
{
26
"url": "https://[...]/empty.xlsx",
27
"filename": "Untitled.xlsx",
28
"name": "Excel Document"
29
}
30
]
31
},
32
"member_app": true, // Si défini, votre application génèrera un membre
33
// virtuel dans l'espace de travail avec lequel les
34
// utilisateurs pourront discuter.
35
"messages_module": {
36
"in_plus": {
37
"should_wait_for_popup": true
38
},
39
"right_icon": {
40
"icon_url": "", //If defined replace original icon url of your app
41
"should_wait_for_popup": true,
42
"type": "file" //"file" | "call"
43
},
44
"action": {
45
"should_wait_for_popup": true,
46
"description": "fdsqfds" //Description de l'action, sinon remplacé par le nom de l'app
47
},
48
"commands": [
49
{
50
"command": "mycommand", // my_app mycommand
51
"description": "fdsqfds"
52
}
53
]
54
},
55
"channel": {
56
"can_connect_to_channel": ""
57
},
58
"channel_tab": {
59
"iframe": ""
60
},
61
"app": {
62
"iframe": "",
63
"plus_btn": {
64
"should_wait_for_popup": true
65
}
66
},
67
"configuration": {
68
"can_configure_in_workspace": true,
69
"can_configure_in_channel": true,
70
"can_configure_in_calendar": true,
71
"can_configure_in_tasks": true,
72
//"can_configure_in_directory": true
73
}
74
}
75
}
76
}
Copied!
Last modified 4mo ago
Copy link