@qlik/api 2.2.0 → 2.3.1

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.
Files changed (232) hide show
  1. package/analytics/change-stores.d.ts +386 -0
  2. package/analytics/change-stores.js +123 -0
  3. package/analytics.d.ts +14 -0
  4. package/analytics.js +13 -0
  5. package/api-keys.d.ts +362 -3
  6. package/api-keys.js +2 -3
  7. package/apps.d.ts +2673 -3
  8. package/apps.js +2 -3
  9. package/assistants.d.ts +1370 -3
  10. package/assistants.js +2 -3
  11. package/audits.d.ts +318 -3
  12. package/audits.js +4 -4
  13. package/auth-types.d.ts +1 -1
  14. package/auth-types.js +1 -2
  15. package/auth.d.ts +94 -2
  16. package/auth.js +63 -3
  17. package/automation-connections.d.ts +366 -3
  18. package/automation-connections.js +2 -3
  19. package/automation-connectors.d.ts +84 -3
  20. package/automation-connectors.js +2 -3
  21. package/automations.d.ts +805 -3
  22. package/automations.js +2 -3
  23. package/automl-deployments.d.ts +101 -3
  24. package/automl-deployments.js +2 -3
  25. package/automl-predictions.d.ts +238 -3
  26. package/automl-predictions.js +2 -3
  27. package/banners.d.ts +184 -3
  28. package/banners.js +2 -3
  29. package/brands.d.ts +670 -3
  30. package/brands.js +2 -3
  31. package/chunks/auth-XusKk8IA.js +32 -0
  32. package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
  33. package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
  34. package/chunks/{auth-functions-BmZgZYSs.js → interceptors-2VSXImC9.js} +498 -146
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-CckTK7bh.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-D9lpiAb-.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-BqxAMJ9M.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-DpvHvpx7.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-BXZPnE6J.js} +48 -50
  41. package/collections.d.ts +582 -3
  42. package/collections.js +2 -3
  43. package/conditions.d.ts +662 -3
  44. package/conditions.js +2 -3
  45. package/consumption.d.ts +182 -3
  46. package/consumption.js +2 -3
  47. package/core/ip-policies.d.ts +328 -4
  48. package/core/ip-policies.js +108 -5
  49. package/core.d.ts +13 -4
  50. package/core.js +3 -4
  51. package/csp-origins.d.ts +273 -3
  52. package/csp-origins.js +2 -3
  53. package/csrf-token.d.ts +62 -3
  54. package/csrf-token.js +2 -3
  55. package/data-alerts.d.ts +1004 -3
  56. package/data-alerts.js +2 -3
  57. package/data-assets.d.ts +207 -3
  58. package/data-assets.js +2 -3
  59. package/data-connections.d.ts +678 -3
  60. package/data-connections.js +2 -3
  61. package/data-credentials.d.ts +292 -3
  62. package/data-credentials.js +2 -3
  63. package/data-files.d.ts +860 -3
  64. package/data-files.js +2 -3
  65. package/data-qualities.d.ts +175 -3
  66. package/data-qualities.js +2 -3
  67. package/data-sets.d.ts +424 -3
  68. package/data-sets.js +2 -3
  69. package/data-sources.d.ts +348 -3
  70. package/data-sources.js +2 -3
  71. package/data-stores.d.ts +537 -3
  72. package/data-stores.js +2 -3
  73. package/dcaas.d.ts +192 -3
  74. package/dcaas.js +2 -3
  75. package/di-projects.d.ts +812 -4
  76. package/di-projects.js +25 -4
  77. package/direct-access-agents.d.ts +710 -4
  78. package/direct-access-agents.js +37 -5
  79. package/docs/authentication.md +1 -1
  80. package/encryption.d.ts +372 -3
  81. package/encryption.js +2 -3
  82. package/extensions.d.ts +295 -3
  83. package/extensions.js +2 -3
  84. package/global-types.d.ts +1 -1
  85. package/global-types.js +0 -2
  86. package/glossaries.d.ts +1223 -3
  87. package/glossaries.js +2 -3
  88. package/groups.d.ts +510 -3
  89. package/groups.js +2 -3
  90. package/identity-providers.d.ts +711 -3
  91. package/identity-providers.js +2 -3
  92. package/index.d.ts +78 -69
  93. package/index.js +28 -10
  94. package/interceptors.d.ts +52 -3
  95. package/interceptors.js +1 -2
  96. package/invoke-fetch-types.d.ts +1 -1
  97. package/items.d.ts +536 -3
  98. package/items.js +2 -3
  99. package/knowledgebases.d.ts +976 -3
  100. package/knowledgebases.js +2 -3
  101. package/licenses.d.ts +663 -3
  102. package/licenses.js +2 -3
  103. package/lineage-graphs.d.ts +704 -3
  104. package/lineage-graphs.js +2 -3
  105. package/ml.d.ts +2808 -3
  106. package/ml.js +2 -3
  107. package/notes.d.ts +110 -3
  108. package/notes.js +2 -3
  109. package/notifications.d.ts +98 -3
  110. package/notifications.js +2 -3
  111. package/oauth-callback.iife.js +1151 -0
  112. package/oauth-clients.d.ts +562 -3
  113. package/oauth-clients.js +2 -3
  114. package/oauth-tokens.d.ts +126 -3
  115. package/oauth-tokens.js +2 -3
  116. package/package.json +5 -4
  117. package/qix.d.ts +3 -3
  118. package/qix.js +38 -3
  119. package/questions.d.ts +364 -3
  120. package/questions.js +2 -3
  121. package/quotas.d.ts +112 -3
  122. package/quotas.js +2 -3
  123. package/reload-tasks.d.ts +249 -3
  124. package/reload-tasks.js +2 -3
  125. package/reloads.d.ts +260 -3
  126. package/reloads.js +2 -3
  127. package/report-templates.d.ts +287 -3
  128. package/report-templates.js +2 -3
  129. package/reports.d.ts +863 -3
  130. package/reports.js +2 -3
  131. package/roles.d.ts +312 -3
  132. package/roles.js +2 -3
  133. package/sharing-tasks.d.ts +1164 -3
  134. package/sharing-tasks.js +2 -3
  135. package/spaces.d.ts +779 -3
  136. package/spaces.js +2 -3
  137. package/tasks.d.ts +564 -3
  138. package/tasks.js +2 -3
  139. package/temp-contents.d.ts +167 -3
  140. package/temp-contents.js +2 -3
  141. package/tenants.d.ts +360 -3
  142. package/tenants.js +2 -3
  143. package/themes.d.ts +270 -3
  144. package/themes.js +2 -3
  145. package/transports.d.ts +435 -4
  146. package/transports.js +20 -5
  147. package/ui-config.d.ts +274 -3
  148. package/ui-config.js +2 -3
  149. package/users.d.ts +674 -3
  150. package/users.js +2 -3
  151. package/web-integrations.d.ts +294 -3
  152. package/web-integrations.js +2 -3
  153. package/web-notifications.d.ts +273 -3
  154. package/web-notifications.js +2 -3
  155. package/webhooks.d.ts +505 -3
  156. package/webhooks.js +2 -3
  157. package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
  158. package/chunks/apps-BwpXUGDb.d.ts +0 -2673
  159. package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
  160. package/chunks/audits-DakwzT97.d.ts +0 -316
  161. package/chunks/auth-6mptVm5Q.d.ts +0 -95
  162. package/chunks/auth-Cle0_tmz.js +0 -32
  163. package/chunks/auth-D11iO7ZV.js +0 -65
  164. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  165. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  166. package/chunks/automations-BGy83EBO.d.ts +0 -797
  167. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  168. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  169. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  170. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  171. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  172. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  173. package/chunks/consumption-DerFk437.d.ts +0 -182
  174. package/chunks/core-DQXNZdnf.d.ts +0 -12
  175. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  176. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  177. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  178. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  179. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  180. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  181. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  182. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  183. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  184. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  185. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  186. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  187. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  188. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  189. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  190. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  191. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  192. package/chunks/groups-C86-UG7S.d.ts +0 -511
  193. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  194. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  195. package/chunks/interceptors-DTYm37AU.js +0 -104
  196. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  197. package/chunks/ip-policies-DXlf172B.js +0 -108
  198. package/chunks/items-C-jzqvFW.d.ts +0 -536
  199. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  200. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  201. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  202. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  203. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  204. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  205. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  206. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  207. package/chunks/qix-CYQsLyGQ.js +0 -40
  208. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  209. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  210. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  211. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  212. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  213. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  214. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  215. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  216. package/chunks/spaces-BK823t-b.d.ts +0 -780
  217. package/chunks/tasks-COKDfShO.d.ts +0 -564
  218. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  219. package/chunks/tenants-Bhn86519.d.ts +0 -361
  220. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  221. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  222. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  223. package/chunks/users-BSOBU_fg.d.ts +0 -675
  224. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  225. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  226. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  227. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  228. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  229. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  230. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  231. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  232. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
@@ -1,249 +0,0 @@
1
- import { y as ApiCallOptions } from "./auth-types-E99tzdN0.js";
2
-
3
- //#region src/public/rest/reload-tasks.d.ts
4
- type Error = {
5
- code: string;
6
- detail?: string;
7
- title: string;
8
- };
9
- /**
10
- * @example
11
- * {
12
- * errors: [
13
- * {
14
- * code: "TASKS-123",
15
- * title: "short error message"
16
- * }
17
- * ],
18
- * traceId: "7975401f3954aa47"
19
- * }
20
- */
21
- type Errors = {
22
- errors?: Error[];
23
- traceId?: string;
24
- };
25
- /**
26
- * @example
27
- * {
28
- * href: "http://example.com"
29
- * }
30
- */
31
- type Href = {
32
- href: string;
33
- };
34
- type PaginationLinks = SelfLink & {
35
- next?: Href;
36
- prev?: Href;
37
- };
38
- type PostTaskBody = TaskBase & {
39
- /** @deprecated
40
- * Type of task being created - only contains the "scheduled_reload" value. Type value is not used for creating a schedule reload. It has been deprecated since 2022-04-05. */
41
- type?: "scheduled_reload";
42
- };
43
- type PutTaskBody = TaskBase & {
44
- /** Toggle for enabling and disabling the reload task */
45
- state?: "Enabled" | "Disabled" | "Completed";
46
- };
47
- type SelfLink = {
48
- self: Href;
49
- };
50
- type Task = TaskBase & {
51
- /** The reason why the task was disabled. */
52
- disabledCode?: "MANUALLY" | "CONSECUTIVE-FAILURES" | "OWNER-DELETED" | "OWNER-DISABLED";
53
- /** @deprecated
54
- * The fortress ID of the application */
55
- fortressId?: string;
56
- /** The ID of the task. */
57
- id: string;
58
- /** The last time the task executed. */
59
- lastExecutionTime?: string;
60
- links: SelfLink;
61
- /** @deprecated
62
- * The reason why the task was disabled. */
63
- log?: string;
64
- /** A flag indicating whether the task has been migrated to the new scheduling service. */
65
- migrated?: boolean;
66
- /** The next time the task will execute. */
67
- nextExecutionTime?: string;
68
- /** The space ID of the application */
69
- spaceId?: string;
70
- /** Toggle for enabling and disabling the reload task */
71
- state: "Enabled" | "Disabled" | "Completed";
72
- /** The ID of the tenant who owns the task. */
73
- tenantId: string;
74
- /** The ID of the user who owns the task. */
75
- userId: string;
76
- };
77
- type TaskBase = {
78
- /** The ID of the app. */
79
- appId?: string;
80
- /** A flag that indicates whether a reload is triggered when data of the app is changed */
81
- autoReload?: boolean;
82
- /** A flag that indicates whether it is a partial reload or not for the auto reload */
83
- autoReloadPartial?: boolean;
84
- /** The time that the task will stop recurring. If the time zone is missing, this is a combined date-time value expressing a time with a fixed UTC offset (formatted according to RFC3339). If a time zone is given, the zone offset must be omitted. */
85
- endDateTime?: string;
86
- /** The task is partial reload or not */
87
- partial?: boolean;
88
- /** List of RECUR lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events */
89
- recurrence?: string[];
90
- /** The time that the task execution start recurring. If the time zone is missing, this is a combined date-time value expressing a time with a fixed UTC offset (formatted according to RFC3339). If a time zone is given, the zone offset must be omitted. Field startDateTime should not be before the Unix epoch 00:00:00 UTC on 1 January 1970. Note that the empty string value with the empty recurrence array indicates the scheduled job is not set. */
91
- startDateTime?: string;
92
- /** The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. Europe/Zurich.) This field specifies the time zone in which the event start/end are expanded. If missing the start/end fields must specify a UTC offset in RFC3339 format. */
93
- timeZone?: string;
94
- };
95
- type Tasks = {
96
- data: Task[];
97
- links: PaginationLinks;
98
- };
99
- /**
100
- * Finds and returns the tasks that the user has access to.
101
- *
102
- * @param query an object with query parameters
103
- * @throws GetReloadTasksHttpError
104
- */
105
- declare function getReloadTasks(query: {
106
- /** The case sensitive string used to search for a task by app ID. */
107
- appId?: string;
108
- /** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
109
- limit?: number;
110
- /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
111
- next?: string;
112
- /** The boolean value used to search for a task is partial or not */
113
- partial?: boolean;
114
- /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
115
- prev?: string;
116
- }, options?: ApiCallOptions): Promise<GetReloadTasksHttpResponse>;
117
- type GetReloadTasksHttpResponse = {
118
- data: Tasks;
119
- headers: Headers;
120
- status: 200;
121
- prev?: (options?: ApiCallOptions) => Promise<GetReloadTasksHttpResponse>;
122
- next?: (options?: ApiCallOptions) => Promise<GetReloadTasksHttpResponse>;
123
- };
124
- type GetReloadTasksHttpError = {
125
- data: Errors;
126
- headers: Headers;
127
- status: 400 | 401 | 403 | 404 | 429 | 500 | 503;
128
- };
129
- /**
130
- * Creates a task for a specified app.
131
- *
132
- * @param body an object with the body content
133
- * @throws CreateReloadTaskHttpError
134
- */
135
- declare function createReloadTask(body: PostTaskBody, options?: ApiCallOptions): Promise<CreateReloadTaskHttpResponse>;
136
- type CreateReloadTaskHttpResponse = {
137
- data: Task;
138
- headers: Headers;
139
- status: 201;
140
- };
141
- type CreateReloadTaskHttpError = {
142
- data: Errors;
143
- headers: Headers;
144
- status: 400 | 401 | 403 | 404 | 500 | 503;
145
- };
146
- /**
147
- * Deletes a task
148
- *
149
- * @param taskId The unique identifier of the task.
150
- * @throws DeleteReloadTaskHttpError
151
- */
152
- declare function deleteReloadTask(taskId: string, options?: ApiCallOptions): Promise<DeleteReloadTaskHttpResponse>;
153
- type DeleteReloadTaskHttpResponse = {
154
- data: void;
155
- headers: Headers;
156
- status: 204;
157
- };
158
- type DeleteReloadTaskHttpError = {
159
- data: Errors;
160
- headers: Headers;
161
- status: 400 | 401 | 403 | 404 | 500;
162
- };
163
- /**
164
- * Finds and returns a task.
165
- *
166
- * @param taskId The unique identifier of the task.
167
- * @throws GetReloadTaskHttpError
168
- */
169
- declare function getReloadTask(taskId: string, options?: ApiCallOptions): Promise<GetReloadTaskHttpResponse>;
170
- type GetReloadTaskHttpResponse = {
171
- data: Task;
172
- headers: Headers;
173
- status: 200;
174
- };
175
- type GetReloadTaskHttpError = {
176
- data: Errors;
177
- headers: Headers;
178
- status: 400 | 401 | 403 | 404 | 429 | 500 | 503;
179
- };
180
- /**
181
- * Updates an existing task
182
- *
183
- * @param taskId The unique identifier of the task.
184
- * @param body an object with the body content
185
- * @throws UpdateReloadTaskHttpError
186
- */
187
- declare function updateReloadTask(taskId: string, body: PutTaskBody, options?: ApiCallOptions): Promise<UpdateReloadTaskHttpResponse>;
188
- type UpdateReloadTaskHttpResponse = {
189
- data: Task;
190
- headers: Headers;
191
- status: 200;
192
- };
193
- type UpdateReloadTaskHttpError = {
194
- data: Errors;
195
- headers: Headers;
196
- status: 400 | 401 | 403 | 404 | 500 | 503;
197
- };
198
- /**
199
- * Clears the cache for reload-tasks api requests.
200
- */
201
- declare function clearCache(): void;
202
- type ReloadTasksAPI = {
203
- /**
204
- * Finds and returns the tasks that the user has access to.
205
- *
206
- * @param query an object with query parameters
207
- * @throws GetReloadTasksHttpError
208
- */
209
- getReloadTasks: typeof getReloadTasks;
210
- /**
211
- * Creates a task for a specified app.
212
- *
213
- * @param body an object with the body content
214
- * @throws CreateReloadTaskHttpError
215
- */
216
- createReloadTask: typeof createReloadTask;
217
- /**
218
- * Deletes a task
219
- *
220
- * @param taskId The unique identifier of the task.
221
- * @throws DeleteReloadTaskHttpError
222
- */
223
- deleteReloadTask: typeof deleteReloadTask;
224
- /**
225
- * Finds and returns a task.
226
- *
227
- * @param taskId The unique identifier of the task.
228
- * @throws GetReloadTaskHttpError
229
- */
230
- getReloadTask: typeof getReloadTask;
231
- /**
232
- * Updates an existing task
233
- *
234
- * @param taskId The unique identifier of the task.
235
- * @param body an object with the body content
236
- * @throws UpdateReloadTaskHttpError
237
- */
238
- updateReloadTask: typeof updateReloadTask;
239
- /**
240
- * Clears the cache for reload-tasks api requests.
241
- */
242
- clearCache: typeof clearCache;
243
- };
244
- /**
245
- * Functions for the reload-tasks api
246
- */
247
- declare const reloadTasksExport: ReloadTasksAPI;
248
- //#endregion
249
- export { createReloadTask as C, reloadTasksExport as D, getReloadTasks as E, updateReloadTask as O, clearCache as S, getReloadTask as T, Task as _, Error as a, UpdateReloadTaskHttpError as b, GetReloadTaskHttpResponse as c, Href as d, PaginationLinks as f, SelfLink as g, ReloadTasksAPI as h, DeleteReloadTaskHttpResponse as i, GetReloadTasksHttpError as l, PutTaskBody as m, CreateReloadTaskHttpResponse as n, Errors as o, PostTaskBody as p, DeleteReloadTaskHttpError as r, GetReloadTaskHttpError as s, CreateReloadTaskHttpError as t, GetReloadTasksHttpResponse as u, TaskBase as v, deleteReloadTask as w, UpdateReloadTaskHttpResponse as x, Tasks as y };
@@ -1,260 +0,0 @@
1
- import { y as ApiCallOptions } from "./auth-types-E99tzdN0.js";
2
-
3
- //#region src/public/rest/reloads.d.ts
4
- type Error = {
5
- /** The error code is in form of 'RELOADS-xxx'. ranges from 'RELOADS-001' to 'RELOADS-013'. */
6
- code: string;
7
- detail?: string;
8
- title: string;
9
- };
10
- /**
11
- * @example
12
- * {
13
- * errors: [
14
- * {
15
- * code: "HTTP-123",
16
- * title: "short error message"
17
- * }
18
- * ]
19
- * }
20
- */
21
- type Errors = {
22
- errors?: Error[];
23
- };
24
- /**
25
- * @example
26
- * {
27
- * href: "http://example.com"
28
- * }
29
- */
30
- type Href = {
31
- href?: string;
32
- };
33
- /**
34
- * The boolean value used to present the reload is partial or not.
35
- * @example
36
- * false
37
- */
38
- type Partial = boolean;
39
- type Reload = {
40
- /** The ID of the app. */
41
- appId: string;
42
- /** The time the reload job was created. */
43
- creationTime: string;
44
- /** The time the reload job finished. */
45
- endTime?: string;
46
- /** The timestamp returned from the Sense engine upon successful reload. */
47
- engineTime?: string;
48
- /** The error code when the status is FAILED. */
49
- errorCode?: string;
50
- /** The error message when the status is FAILED. */
51
- errorMessage?: string;
52
- /** The ID of the reload. */
53
- id: string;
54
- links?: ReloadLinks;
55
- /** The log describing the result of the latest reload execution from the request. */
56
- log?: string;
57
- /** The boolean value used to present the reload is partial or not. */
58
- partial?: Partial;
59
- /** The time the reload job was consumed from the queue. */
60
- startTime?: string;
61
- /** The status of the reload. There are seven statuses. `QUEUED`, `RELOADING`, `CANCELING` are the active statuses. `SUCCEEDED`, `FAILED`, `CANCELED`, `EXCEEDED_LIMIT` are the end statuses. */
62
- status: Status;
63
- /** The ID of the tenant who owns the reload. */
64
- tenantId: string;
65
- /** What initiated the reload: hub = one-time reload manually triggered in hub, chronos = time based scheduled reload triggered by chronos, external = reload triggered via external API request, automations = reload triggered in automation, data-refresh = reload triggered by refresh of data, choreographer = reload triggered by choreographer. */
66
- type: Type;
67
- /** The ID of the user who created the reload. */
68
- userId: string;
69
- /** The weight of the reload for the same tenant. The higher the weight, the sooner the reload will be scheduled relative to other reloads for the same tenant. The personal app will be always set as 1. */
70
- weight?: Weight;
71
- };
72
- type ReloadLinks = {
73
- self?: Href;
74
- };
75
- type ReloadRequest = {
76
- /** The ID of the app to be reloaded. */
77
- appId: string;
78
- /** The boolean value used to present the reload is partial or not */
79
- partial?: boolean;
80
- /** The variables to be used in the load script. Maximum of 20 variables allowed with a maximum length of 256 characters for each name/value. */
81
- variables?: Record<string, string>;
82
- /** The weight of the reload for the same tenant. The higher the weight, the sooner the reload will be scheduled relative to other reloads for the same tenant. The personal app will be always set as 1. */
83
- weight?: Weight;
84
- };
85
- type Reloads = {
86
- data: Reload[];
87
- links: ReloadsLinks;
88
- };
89
- type ReloadsLinks = ReloadLinks & {
90
- next?: Href;
91
- prev?: Href;
92
- };
93
- /**
94
- * The status of the reload. There are seven statuses. `QUEUED`, `RELOADING`, `CANCELING` are the active statuses. `SUCCEEDED`, `FAILED`, `CANCELED`, `EXCEEDED_LIMIT` are the end statuses.
95
- * @example
96
- * "FAILED"
97
- */
98
- type Status = "QUEUED" | "RELOADING" | "CANCELING" | "SUCCEEDED" | "FAILED" | "CANCELED" | "EXCEEDED_LIMIT";
99
- /**
100
- * What initiated the reload: hub = one-time reload manually triggered in hub, chronos = time based scheduled reload triggered by chronos, external = reload triggered via external API request, automations = reload triggered in automation, data-refresh = reload triggered by refresh of data, choreographer = reload triggered by choreographer.
101
- * @example
102
- * "chronos"
103
- */
104
- type Type = "hub" | "external" | "chronos" | "automations" | "data-refresh" | "choreographer";
105
- /**
106
- * The weight of the reload for the same tenant. The higher the weight, the sooner the reload will be scheduled relative to other reloads for the same tenant. The personal app will be always set as 1.
107
- */
108
- type Weight = number;
109
- /**
110
- * Finds and returns the reloads that the user has access to.
111
- * @example
112
- * getReloads(
113
- * {
114
- * filter: "(status eq \"FAILED\" or status eq \"EXCEEDED_LIMIT\") and partial eq \"false\" and type eq \"chronos\"
115
- * "
116
- * }
117
- * )
118
- *
119
- * @param query an object with query parameters
120
- * @throws GetReloadsHttpError
121
- */
122
- declare function getReloads(query: {
123
- /** The UUID formatted string used to search for an app's reload history entries. TenantAdmin users may omit this parameter to list all reload history in the tenant. */
124
- appId: string;
125
- /** SCIM filter expression used to search for reloads.
126
- * The filter syntax is defined in RFC 7644 section 3.4.2.2
127
- *
128
- * Supported attributes:
129
- * - status: see #schemas/Status
130
- * - partial: see #schemas/Partial
131
- * - type: see #schemas/Type
132
- *
133
- * Supported operators:
134
- * - eq */
135
- filter?: string;
136
- /** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
137
- limit?: number;
138
- /** The boolean value used to include the log field or not, set log=true to include the log field. */
139
- log?: boolean;
140
- /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
141
- next?: string;
142
- /** The boolean value used to search for a reload is partial or not. */
143
- partial?: boolean;
144
- /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
145
- prev?: string;
146
- }, options?: ApiCallOptions): Promise<GetReloadsHttpResponse>;
147
- type GetReloadsHttpResponse = {
148
- data: Reloads;
149
- headers: Headers;
150
- status: 200;
151
- prev?: (options?: ApiCallOptions) => Promise<GetReloadsHttpResponse>;
152
- next?: (options?: ApiCallOptions) => Promise<GetReloadsHttpResponse>;
153
- };
154
- type GetReloadsHttpError = {
155
- data: Errors;
156
- headers: Headers;
157
- status: 400 | 401 | 403 | 500;
158
- };
159
- /**
160
- * Reloads an app specified by an app ID.
161
- *
162
- * @param body an object with the body content
163
- * @throws QueueReloadHttpError
164
- */
165
- declare function queueReload(body: ReloadRequest, options?: ApiCallOptions): Promise<QueueReloadHttpResponse>;
166
- type QueueReloadHttpResponse = {
167
- data: Reload;
168
- headers: Headers;
169
- status: 201;
170
- };
171
- type QueueReloadHttpError = {
172
- data: Errors;
173
- headers: Headers;
174
- status: 400 | 401 | 403 | 429 | 500;
175
- };
176
- /**
177
- * Finds and returns a reload record.
178
- *
179
- * @param reloadId The unique identifier of the reload.
180
- * @throws GetReloadHttpError
181
- */
182
- declare function getReload(reloadId: string, options?: ApiCallOptions): Promise<GetReloadHttpResponse>;
183
- type GetReloadHttpResponse = {
184
- data: Reload;
185
- headers: Headers;
186
- status: 200;
187
- };
188
- type GetReloadHttpError = {
189
- data: Errors;
190
- headers: Headers;
191
- status: 400 | 401 | 403 | 404 | 500;
192
- };
193
- /**
194
- * Cancels a reload that is in progress or has been queued
195
- *
196
- * @param reloadId The unique identifier of the reload.
197
- * @throws CancelReloadHttpError
198
- */
199
- declare function cancelReload(reloadId: string, options?: ApiCallOptions): Promise<CancelReloadHttpResponse>;
200
- type CancelReloadHttpResponse = {
201
- data: void;
202
- headers: Headers;
203
- status: 202 | 204;
204
- };
205
- type CancelReloadHttpError = {
206
- data: Errors;
207
- headers: Headers;
208
- status: 400 | 401 | 403 | 404 | 409 | 500;
209
- };
210
- /**
211
- * Clears the cache for reloads api requests.
212
- */
213
- declare function clearCache(): void;
214
- type ReloadsAPI = {
215
- /**
216
- * Finds and returns the reloads that the user has access to.
217
- * @example
218
- * getReloads(
219
- * {
220
- * filter: "(status eq \"FAILED\" or status eq \"EXCEEDED_LIMIT\") and partial eq \"false\" and type eq \"chronos\"
221
- * "
222
- * }
223
- * )
224
- *
225
- * @param query an object with query parameters
226
- * @throws GetReloadsHttpError
227
- */
228
- getReloads: typeof getReloads;
229
- /**
230
- * Reloads an app specified by an app ID.
231
- *
232
- * @param body an object with the body content
233
- * @throws QueueReloadHttpError
234
- */
235
- queueReload: typeof queueReload;
236
- /**
237
- * Finds and returns a reload record.
238
- *
239
- * @param reloadId The unique identifier of the reload.
240
- * @throws GetReloadHttpError
241
- */
242
- getReload: typeof getReload;
243
- /**
244
- * Cancels a reload that is in progress or has been queued
245
- *
246
- * @param reloadId The unique identifier of the reload.
247
- * @throws CancelReloadHttpError
248
- */
249
- cancelReload: typeof cancelReload;
250
- /**
251
- * Clears the cache for reloads api requests.
252
- */
253
- clearCache: typeof clearCache;
254
- };
255
- /**
256
- * Functions for the reloads api
257
- */
258
- declare const reloadsExport: ReloadsAPI;
259
- //#endregion
260
- export { clearCache as C, reloadsExport as D, queueReload as E, cancelReload as S, getReloads as T, ReloadsAPI as _, GetReloadHttpError as a, Type as b, GetReloadsHttpResponse as c, QueueReloadHttpError as d, QueueReloadHttpResponse as f, Reloads as g, ReloadRequest as h, Errors as i, Href as l, ReloadLinks as m, CancelReloadHttpResponse as n, GetReloadHttpResponse as o, Reload as p, Error as r, GetReloadsHttpError as s, CancelReloadHttpError as t, Partial as u, ReloadsLinks as v, getReload as w, Weight as x, Status as y };