11# Automate
22
3+ ### AutomateEntry
4+
5+ > ** AutomateEntry** = ` object `
6+
7+ A automate entry.
8+
9+ #### Properties
10+
11+ ##### createdAt
12+
13+ > ** createdAt** : ` Date `
14+
15+ The date the entry was created.
16+
17+ ##### id
18+
19+ > ** id** : [ ` ID ` ] ( utils.md#id )
20+
21+ The ID of the entry.
22+
23+ ##### name
24+
25+ > ** name** : ` string `
26+
27+ The name of the entry.
28+
29+ ***
30+
331### AutomateSDK
432
533> ** AutomateSDK** = ` object `
@@ -8,6 +36,38 @@ Utilities to interact with the Automate page.
836
937#### Properties
1038
39+ ##### addEntryIndicator()
40+
41+ > ** addEntryIndicator** : (` entryId ` : ` ID ` , ` indicator ` : ` AddIndicatorOptions ` ) => ` Indicator `
42+
43+ Add an indicator to an automate entry.
44+ Indicators are displayed next to the entry name in the collections tree.
45+
46+ ###### Parameters
47+
48+ | Parameter | Type | Description |
49+ | ------ | ------ | ------ |
50+ | ` entryId ` | ` ID ` | The ID of the entry to add the indicator to. |
51+ | ` indicator ` | ` AddIndicatorOptions ` | The indicator configuration. |
52+
53+ ###### Returns
54+
55+ ` Indicator `
56+
57+ A handle object with a ` remove ` method to remove the indicator.
58+
59+ ###### Example
60+
61+ ``` ts
62+ const indicator = sdk .automate .addEntryIndicator (entryId , {
63+ icon: " fas fa-exclamation-triangle" ,
64+ description: " Security warning" ,
65+ });
66+
67+ // Later, remove the indicator
68+ indicator .remove ();
69+ ```
70+
1171##### addRequestEditorExtension()
1272
1373> ** addRequestEditorExtension** : (` extension ` : ` Extension ` ) => ` void `
@@ -39,3 +99,67 @@ Add a custom request view mode.
3999###### Returns
40100
41101` void `
102+
103+ ##### getEntries()
104+
105+ > ** getEntries** : (` sessionId ` : ` ID ` ) => ` AutomateEntry ` [ ]
106+
107+ Get the list of all automate entries.
108+
109+ ###### Parameters
110+
111+ | Parameter | Type | Description |
112+ | ------ | ------ | ------ |
113+ | ` sessionId ` | ` ID ` | The ID of the session to get the entries of. |
114+
115+ ###### Returns
116+
117+ ` AutomateEntry ` [ ]
118+
119+ The list of all automate entries.
120+
121+ ##### getSessions()
122+
123+ > ** getSessions** : () => ` AutomateSession ` [ ]
124+
125+ Get the list of all automate sessions.
126+
127+ ###### Returns
128+
129+ ` AutomateSession ` [ ]
130+
131+ The list of all automate sessions.
132+
133+ ***
134+
135+ ### AutomateSession
136+
137+ > ** AutomateSession** = ` object `
138+
139+ A automate session.
140+
141+ #### Properties
142+
143+ ##### createdAt
144+
145+ > ** createdAt** : ` Date `
146+
147+ The date the session was created.
148+
149+ ##### entryIds
150+
151+ > ** entryIds** : [ ` ID ` ] ( utils.md#id ) [ ]
152+
153+ The IDs of all entries in this session.
154+
155+ ##### id
156+
157+ > ** id** : [ ` ID ` ] ( utils.md#id )
158+
159+ The ID of the session.
160+
161+ ##### name
162+
163+ > ** name** : ` string `
164+
165+ The name of the session.
0 commit comments